Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Nonlinear MPC and WBC for legged robot based on OCS2 and ros-controls

License

Notifications You must be signed in to change notification settings

changzhengwu/legged_control

 
 

Repository files navigation

legged_control

I haven't had time to write the documentation yet. But I tried my best to keep the whole testing process as simple as possible. And did not change the code of ocs2 itself.

Build

  • ocs2 is a huge monorepo, you just need to compile ocs2_legged_robot_ros and its dependencies!
  • If you only run simulation, you do not need to compile unitree_hw;

Quick Start

  1. Set your robot type(a1 or aliengo) as an environment variable: ROBOT_TYPE
export ROBOT_TYPE=a1
  1. Run the simulation:
roslaunch unitree_description empty_world.launch
  1. Load the controller:
mon launch legged_controllers load_controller.launch
  1. You can start the controller using rqt_controller_manager
sudo apt install ros-noetic-rqt-controller-manager
rosrun rqt_controller_manager rqt_controller_manager
  1. After start the controller, you can command the robot by two terminal created by step 3.

About

Nonlinear MPC and WBC for legged robot based on OCS2 and ros-controls

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 89.7%
  • CMake 10.3%