The source code is hosted on GitHub: legged_control.
# legged_control
git clone [email protected]:LianzhaoZhang/legged_control.git
# Clone OCS2
git clone [email protected]:leggedrobotics/ocs2.git
# Clone pinocchio
git clone --recurse-submodules https://github.com/leggedrobotics/pinocchio.git
# Clone hpp-fcl
git clone --recurse-submodules https://github.com/leggedrobotics/hpp-fcl.git
# Clone ocs2_robotic_assets
git clone https://github.com/leggedrobotics/ocs2_robotic_assets.git
# Install dependencies
sudo apt install liburdfdom-dev liboctomap-dev libassimp-dev
Compile the code with catkin tools
instead of catkin_make. It will take you about ten minutes.
catkin config -DCMAKE_BUILD_TYPE=RelWithDebInfo
catkin build -j$(nproc) legged_control
-
Run the simulation:
roslaunch legged_unitree_description empty_world.launchNOTE: The hardware interface is not available
-
Load the controller:
roslaunch legged_controllers load_controller.launch -
Start the
legged_controllerusingrqt_controller_managerGUI:sudo apt install ros-noetic-rqt-controller-manager rosrun rqt_controller_manager rqt_controller_manager