Control Motion Design Optimization
CoMoDO is a suite of parametrized controllers and simulators for codesign of robots.
We cannot guarantee stable API
This library depends on
And, optionally, on:
To install comodo in a conda environment, you can use the following commands
conda create -n comododev -c conda-forge adam-robotics bipedal-locomotion-framework=0.19.0 mujoco-python-viewer matplotlib urllib3 urchin notebook jaxsim
conda activate comododev
pip install --no-deps git+https://github.com/CarlottaSartore/urdf-modifiers.git@scalar_modification
pip install --no-deps -e .
To work in comodo with hippopt
requires to install also the following packages:
conda install -c conda-forge -c robotology casadi pytest liecasadi meshcat-python ffmpeg-python
pip install --no-deps git+https://github.com/ami-iit/hippopt.git
To use drake
as the simulator backend requires the following additional dependencies:
conda install meshio tqdm
pip install drake git+https://github.com/ami-iit/amo_urdf
An alternative and easy way to use comodo is with pixi
package manager. It automatically handles the creation and activation of virtual environments in which to use the different simulators that comodo supports.
At the moment there is an environment associated with each simulator backend, namely:
mujoco
: for mujoco simulatorjaxsim
: for jaxsim simulatordrake
: for drake simulatorall
for all the simulators
To activate one of these environments in a terminal run:
pixi shell -e <environment-name>
It is also possible to run directly a command in one of these environments using:
pixi run -e <environment-name> python <script-filename.py>
For example, it is possible to run the Jupyter notebooks in the examples folder by just executing:
pixi run -e all jupyter notebook
and then running the examples you prefer in Jupyter.
Take a look at the examples folder!
This repository is maintained by
@CarlottaSartore |