You have to request a license for forcespro and install it
according to their documentation.
The location of the python package forcespro
must also be included in your python path.
export PYTHONPATH="${PYTHONPATH}:/path/to/forces/pro"
Consider adding it to your .bashrc
(.zshrc
) file
Then you can install this package using poetry within a virtual environment.
poetry install -E agents
poetry shell
Now you are in the virtual environment with everything installed.
pip3 install .
If you want to test the mpc solvers you need to install additional dependencies.
pip3 install '.[agents]'
cd examples
python3 makeSolver.py <path/to/config/file>
python3 <robot/type>_example.py <path/to/config/file>