|
robotoc
robotoc - efficient ROBOT Optimal Control solvers
|
First, please confirm that your OS is Ubuntu 18.04 or 20.04. Next, please confirm that gcc and CMake are installed. If not, they can be installed, e.g., via
First, install the latest stable version of Eigen3 by
Then install the latest stable version of Pinocchio by following the instruction
If you want to visualize the solution trajectory with Python, you have to install gepetto-viewer-corba by
and/or meshcat-python by
Clone robotoc repository and change the directory as
Then build robotoc library as
If you want to maximize the performance (recommended), use CMake option
This option enables the vectorization of Eigen.
If you do not want to install the Python bindings, change the CMake configuration as
However, we highly recommend installing Python bindings.
After installing robotoc and its Python bindings, it is convenient to set the path to robotoc library in Python path. Suppose that the Python version is 3.8. The Python bindings will then be installed at ROBOTOC_INSTALL_DIR/lib/python3.8/site-packages where ROBOTOC_INSTALL_DIR is the install directory of robotoc configured in CMake (e.g., by -DCMAKE_INSTALL_PREFIX or /use/local/lib if you did sudo make install). To use the installed Python library, it is convenient to set the environment variable as
e.g., in ~/.bashrc. Note that if you use another Python version than python3.8, please adapt it.
To use robotoc_sim module for MPC simulations, please install PyBullet as