- The
mpc_controller
package requires acados. To install it, run the following script:
$ ./install_prerequisites.sh [installation_path]
- It is recommended to not alter the default installation path, which is
home/acados
. - If an installation path is provided, the CMake and Make files in the
c_generated_code
folders must be changed accordingly.
-
If an installation path is provided, update the
ACADOS_INSTALL_DIR
in thelaunch/wbc.launch
. -
Build the package
$ catkin build mpc_controller
- To check that acados runs as expected, after sourcing the ws run:
roslaunch mpc_controller test.launch
The node should solve an MPC problem for one iteration and output the solution results.
After sourcing the ws
roslaunch mpc_controller wbc.launch
The simulated scenarios can be changed by tweaking the config file controller_params.yaml
controller_mode
changes the degree of freedom for the reorientation maneuver. It must be the same as thebase_joint_type
in olympus_param.yaml.stabilization_mode
If set totrue
, the attitude controller tracks reference orientations. Otherwise, it tracks the torque specified atmanoeuvre_target_torque