The MPC controller is based on the paper titled Dynamic Locomotion in the MIT Cheetah 3 Through Convex Model-Predictive Control and it's implementation is taken from here.
-
First clone the repository:
git clone -
Compile the MPC controller using:
cd quadruped_ctrl/ mkdir build cd build cmake .. make -j 4This creates a
.sofile inside the build directory namedlibquadruped_ctrl.so. -
In order to train the robot or to run robot on a pretrained model, run the
main.pyfile.python main.py
There are two different configs that determine the behavior of the simulation. The first one is config/training_params.yaml. This file contains the training parameters.
The second config file is quadruped_ctrl/config/quadruped_ctrl_config.yaml. This file contains all the simulation related configurations. The values of interest in this config are: visualization and terrain.
The visualization should be set to False when the display needs to be disabled. This is useful during training.
The terrain option specifies the terrain the robot will walk on. The two options are plane and hybrid.