Control Oriented Actuation Model for a Bending and/or Rotational slender soft arms. The package extend the implementation of Cosserat Rod simulation done by PyElastica.
The detail implementation of the following make
commands are in the Makefile
.
Here is a Makefile tutorial.
In this project, a Python tool poetry
is used for dependency management and packaging.
To install, run the following command:
# https://python-poetry.org/docs/#installing-with-the-official-installer
make poetry-download
To remove the poetry, simply run make poetry-remove
.
To install the dependencies for development, run the following command:
# https://python-poetry.org/docs/cli/#install
make install
This generates the poetry.lock
and requirements.txt
and installs packages accordingly.
To install Git hook scripts tool to identify simple issues before submission to code review, run the following command:
# https://pre-commit.com/#install
make pre-commit-install
In this project, a Python framework pytest
is used for unit testing.
To run unit tests, run the following command:
make pytest
This project uses isort
to sort and organize imported packages, and black
to enforce a consistent code style across the Python codebase.
To format the codebase, run the following command:
make formatting
A static type checker for Python, mypy
, is used to check standard Python programs.
To check type hinting, run the following command:
make mypy
To use the cobra
as an package, run the following command:
pip install -e .
- PyElastica: https://github.com/GazzolaLab/PyElastica