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-downloadTo 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 installThis 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-installIn this project, a Python framework pytest is used for unit testing.
To run unit tests, run the following command:
make pytestThis 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 formattingA static type checker for Python, mypy, is used to check standard Python programs.
To check type hinting, run the following command:
make mypyTo use the cobra as an package, run the following command:
pip install -e .- PyElastica: https://github.com/GazzolaLab/PyElastica