No version for distro humble showing github. Known supported distros are highlighted in the buttons above.

Repository Summary

Description
Checkout URI https://github.com/legubiao/quadruped_ros2_control.git
VCS Type git
VCS Version main
Last Updated 2025-06-24
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

README

Quadruped ROS2 Control

This repository contains the ros2-control based controllers for the quadruped robot.

  • Controllers: contains the ros2-control controllers
  • Commands: contains command node used to send command to the controller
  • Descriptions: contains the urdf model of the robot
  • Hardwares: contains the ros2-control hardware interface for the robot

Warning: Default branch was developed under ROS2 Jazzy. For ROS2 Humble, please check out humble branch.

Todo List:

  • [2025-02-23] Add Gazebo Playground
    • OCS2 controller for Gazebo Simulation
    • Refactor FSM and Unitree Guide Controller
  • [2025-03-30] Add Real Go2 Robot Support
  • [2025-05-20] Isaac Sim Support
  • OCS2 Perceptive locomotion demo

Video on Real Unitree Go2 Robot:

1. Quick Start

  • rosdep
    cd ~/ros2_ws
    rosdep install --from-paths src --ignore-src -r -y
    
  • Compile the package
    colcon build --packages-up-to unitree_guide_controller go2_description keyboard_input --symlink-install
    

1.1 Mujoco Simulator or Real Unitree Robot

Warning: CycloneDDS ROS2 RMW may conflict with unitree_sdk2. If you cannot launch unitree mujoco simulation without sudo, then you cannot used unitree_mujoco_hardware. This conflict could be solved by one of below two methods:

  1. Uninstall CycloneDDS ROS2 RMW, used another ROS2 RMW, such as FastDDS [Recommended].
  2. Follow the guide in unitree_ros2 to configure the ROS2 RMW by compiling cyclone dds.
  • Compile Unitree Hardware Interfaces
    cd ~/ros2_ws
    colcon build --packages-up-to hardware_unitree_sdk2
    
  • Follow the guide in unitree_mujoco to launch the unitree mujoco go2 simulation
  • Launch the ros2-control
    source ~/ros2_ws/install/setup.bash
    ros2 launch unitree_guide_controller mujoco.launch.py
    
  • Run the keyboard control node
    source ~/ros2_ws/install/setup.bash
    ros2 run keyboard_input keyboard_input
    

mujoco

1.3 Gazebo Harmonic Simulator

  • Install Gazebo
  sudo apt-get install ros-jazzy-ros-gz
  
  • Compile Gazebo Playground
  colcon build --packages-up-to gz_quadruped_playground --symlink-install
  
  • Launch the ros2-control
  source ~/ros2_ws/install/setup.bash
  ros2 launch unitree_guide_controller gazebo.launch.py
  
  • Run the keyboard control node
    source ~/ros2_ws/install/setup.bash
    ros2 run keyboard_input keyboard_input
    

gazebo

For more details, please refer to the unitree guide controller and go2 description.

What’s Next

Congratulations! You have successfully launched the quadruped robot in the simulation. Here are some suggestions for you to have a try:

File truncated at 100 lines see the full file

No version for distro jazzy showing github. Known supported distros are highlighted in the buttons above.

Repository Summary

Description
Checkout URI https://github.com/legubiao/quadruped_ros2_control.git
VCS Type git
VCS Version main
Last Updated 2025-06-24
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

README

Quadruped ROS2 Control

This repository contains the ros2-control based controllers for the quadruped robot.

  • Controllers: contains the ros2-control controllers
  • Commands: contains command node used to send command to the controller
  • Descriptions: contains the urdf model of the robot
  • Hardwares: contains the ros2-control hardware interface for the robot

Warning: Default branch was developed under ROS2 Jazzy. For ROS2 Humble, please check out humble branch.

Todo List:

  • [2025-02-23] Add Gazebo Playground
    • OCS2 controller for Gazebo Simulation
    • Refactor FSM and Unitree Guide Controller
  • [2025-03-30] Add Real Go2 Robot Support
  • [2025-05-20] Isaac Sim Support
  • OCS2 Perceptive locomotion demo

Video on Real Unitree Go2 Robot:

1. Quick Start

  • rosdep
    cd ~/ros2_ws
    rosdep install --from-paths src --ignore-src -r -y
    
  • Compile the package
    colcon build --packages-up-to unitree_guide_controller go2_description keyboard_input --symlink-install
    

1.1 Mujoco Simulator or Real Unitree Robot

Warning: CycloneDDS ROS2 RMW may conflict with unitree_sdk2. If you cannot launch unitree mujoco simulation without sudo, then you cannot used unitree_mujoco_hardware. This conflict could be solved by one of below two methods:

  1. Uninstall CycloneDDS ROS2 RMW, used another ROS2 RMW, such as FastDDS [Recommended].
  2. Follow the guide in unitree_ros2 to configure the ROS2 RMW by compiling cyclone dds.
  • Compile Unitree Hardware Interfaces
    cd ~/ros2_ws
    colcon build --packages-up-to hardware_unitree_sdk2
    
  • Follow the guide in unitree_mujoco to launch the unitree mujoco go2 simulation
  • Launch the ros2-control
    source ~/ros2_ws/install/setup.bash
    ros2 launch unitree_guide_controller mujoco.launch.py
    
  • Run the keyboard control node
    source ~/ros2_ws/install/setup.bash
    ros2 run keyboard_input keyboard_input
    

mujoco

1.3 Gazebo Harmonic Simulator

  • Install Gazebo
  sudo apt-get install ros-jazzy-ros-gz
  
  • Compile Gazebo Playground
  colcon build --packages-up-to gz_quadruped_playground --symlink-install
  
  • Launch the ros2-control
  source ~/ros2_ws/install/setup.bash
  ros2 launch unitree_guide_controller gazebo.launch.py
  
  • Run the keyboard control node
    source ~/ros2_ws/install/setup.bash
    ros2 run keyboard_input keyboard_input
    

gazebo

For more details, please refer to the unitree guide controller and go2 description.

What’s Next

Congratulations! You have successfully launched the quadruped robot in the simulation. Here are some suggestions for you to have a try:

File truncated at 100 lines see the full file

No version for distro kilted showing github. Known supported distros are highlighted in the buttons above.

Repository Summary

Description
Checkout URI https://github.com/legubiao/quadruped_ros2_control.git
VCS Type git
VCS Version main
Last Updated 2025-06-24
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

README

Quadruped ROS2 Control

This repository contains the ros2-control based controllers for the quadruped robot.

  • Controllers: contains the ros2-control controllers
  • Commands: contains command node used to send command to the controller
  • Descriptions: contains the urdf model of the robot
  • Hardwares: contains the ros2-control hardware interface for the robot

Warning: Default branch was developed under ROS2 Jazzy. For ROS2 Humble, please check out humble branch.

Todo List:

  • [2025-02-23] Add Gazebo Playground
    • OCS2 controller for Gazebo Simulation
    • Refactor FSM and Unitree Guide Controller
  • [2025-03-30] Add Real Go2 Robot Support
  • [2025-05-20] Isaac Sim Support
  • OCS2 Perceptive locomotion demo

Video on Real Unitree Go2 Robot:

1. Quick Start

  • rosdep
    cd ~/ros2_ws
    rosdep install --from-paths src --ignore-src -r -y
    
  • Compile the package
    colcon build --packages-up-to unitree_guide_controller go2_description keyboard_input --symlink-install
    

1.1 Mujoco Simulator or Real Unitree Robot

Warning: CycloneDDS ROS2 RMW may conflict with unitree_sdk2. If you cannot launch unitree mujoco simulation without sudo, then you cannot used unitree_mujoco_hardware. This conflict could be solved by one of below two methods:

  1. Uninstall CycloneDDS ROS2 RMW, used another ROS2 RMW, such as FastDDS [Recommended].
  2. Follow the guide in unitree_ros2 to configure the ROS2 RMW by compiling cyclone dds.
  • Compile Unitree Hardware Interfaces
    cd ~/ros2_ws
    colcon build --packages-up-to hardware_unitree_sdk2
    
  • Follow the guide in unitree_mujoco to launch the unitree mujoco go2 simulation
  • Launch the ros2-control
    source ~/ros2_ws/install/setup.bash
    ros2 launch unitree_guide_controller mujoco.launch.py
    
  • Run the keyboard control node
    source ~/ros2_ws/install/setup.bash
    ros2 run keyboard_input keyboard_input
    

mujoco

1.3 Gazebo Harmonic Simulator

  • Install Gazebo
  sudo apt-get install ros-jazzy-ros-gz
  
  • Compile Gazebo Playground
  colcon build --packages-up-to gz_quadruped_playground --symlink-install
  
  • Launch the ros2-control
  source ~/ros2_ws/install/setup.bash
  ros2 launch unitree_guide_controller gazebo.launch.py
  
  • Run the keyboard control node
    source ~/ros2_ws/install/setup.bash
    ros2 run keyboard_input keyboard_input
    

gazebo

For more details, please refer to the unitree guide controller and go2 description.

What’s Next

Congratulations! You have successfully launched the quadruped robot in the simulation. Here are some suggestions for you to have a try:

File truncated at 100 lines see the full file

No version for distro rolling showing github. Known supported distros are highlighted in the buttons above.

Repository Summary

Description
Checkout URI https://github.com/legubiao/quadruped_ros2_control.git
VCS Type git
VCS Version main
Last Updated 2025-06-24
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

README

Quadruped ROS2 Control

This repository contains the ros2-control based controllers for the quadruped robot.

  • Controllers: contains the ros2-control controllers
  • Commands: contains command node used to send command to the controller
  • Descriptions: contains the urdf model of the robot
  • Hardwares: contains the ros2-control hardware interface for the robot

Warning: Default branch was developed under ROS2 Jazzy. For ROS2 Humble, please check out humble branch.

Todo List:

  • [2025-02-23] Add Gazebo Playground
    • OCS2 controller for Gazebo Simulation
    • Refactor FSM and Unitree Guide Controller
  • [2025-03-30] Add Real Go2 Robot Support
  • [2025-05-20] Isaac Sim Support
  • OCS2 Perceptive locomotion demo

Video on Real Unitree Go2 Robot:

1. Quick Start

  • rosdep
    cd ~/ros2_ws
    rosdep install --from-paths src --ignore-src -r -y
    
  • Compile the package
    colcon build --packages-up-to unitree_guide_controller go2_description keyboard_input --symlink-install
    

1.1 Mujoco Simulator or Real Unitree Robot

Warning: CycloneDDS ROS2 RMW may conflict with unitree_sdk2. If you cannot launch unitree mujoco simulation without sudo, then you cannot used unitree_mujoco_hardware. This conflict could be solved by one of below two methods:

  1. Uninstall CycloneDDS ROS2 RMW, used another ROS2 RMW, such as FastDDS [Recommended].
  2. Follow the guide in unitree_ros2 to configure the ROS2 RMW by compiling cyclone dds.
  • Compile Unitree Hardware Interfaces
    cd ~/ros2_ws
    colcon build --packages-up-to hardware_unitree_sdk2
    
  • Follow the guide in unitree_mujoco to launch the unitree mujoco go2 simulation
  • Launch the ros2-control
    source ~/ros2_ws/install/setup.bash
    ros2 launch unitree_guide_controller mujoco.launch.py
    
  • Run the keyboard control node
    source ~/ros2_ws/install/setup.bash
    ros2 run keyboard_input keyboard_input
    

mujoco

1.3 Gazebo Harmonic Simulator

  • Install Gazebo
  sudo apt-get install ros-jazzy-ros-gz
  
  • Compile Gazebo Playground
  colcon build --packages-up-to gz_quadruped_playground --symlink-install
  
  • Launch the ros2-control
  source ~/ros2_ws/install/setup.bash
  ros2 launch unitree_guide_controller gazebo.launch.py
  
  • Run the keyboard control node
    source ~/ros2_ws/install/setup.bash
    ros2 run keyboard_input keyboard_input
    

gazebo

For more details, please refer to the unitree guide controller and go2 description.

What’s Next

Congratulations! You have successfully launched the quadruped robot in the simulation. Here are some suggestions for you to have a try:

File truncated at 100 lines see the full file

Repository Summary

Description
Checkout URI https://github.com/legubiao/quadruped_ros2_control.git
VCS Type git
VCS Version main
Last Updated 2025-06-24
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

README

Quadruped ROS2 Control

This repository contains the ros2-control based controllers for the quadruped robot.

  • Controllers: contains the ros2-control controllers
  • Commands: contains command node used to send command to the controller
  • Descriptions: contains the urdf model of the robot
  • Hardwares: contains the ros2-control hardware interface for the robot

Warning: Default branch was developed under ROS2 Jazzy. For ROS2 Humble, please check out humble branch.

Todo List:

  • [2025-02-23] Add Gazebo Playground
    • OCS2 controller for Gazebo Simulation
    • Refactor FSM and Unitree Guide Controller
  • [2025-03-30] Add Real Go2 Robot Support
  • [2025-05-20] Isaac Sim Support
  • OCS2 Perceptive locomotion demo

Video on Real Unitree Go2 Robot:

1. Quick Start

  • rosdep
    cd ~/ros2_ws
    rosdep install --from-paths src --ignore-src -r -y
    
  • Compile the package
    colcon build --packages-up-to unitree_guide_controller go2_description keyboard_input --symlink-install
    

1.1 Mujoco Simulator or Real Unitree Robot

Warning: CycloneDDS ROS2 RMW may conflict with unitree_sdk2. If you cannot launch unitree mujoco simulation without sudo, then you cannot used unitree_mujoco_hardware. This conflict could be solved by one of below two methods:

  1. Uninstall CycloneDDS ROS2 RMW, used another ROS2 RMW, such as FastDDS [Recommended].
  2. Follow the guide in unitree_ros2 to configure the ROS2 RMW by compiling cyclone dds.
  • Compile Unitree Hardware Interfaces
    cd ~/ros2_ws
    colcon build --packages-up-to hardware_unitree_sdk2
    
  • Follow the guide in unitree_mujoco to launch the unitree mujoco go2 simulation
  • Launch the ros2-control
    source ~/ros2_ws/install/setup.bash
    ros2 launch unitree_guide_controller mujoco.launch.py
    
  • Run the keyboard control node
    source ~/ros2_ws/install/setup.bash
    ros2 run keyboard_input keyboard_input
    

mujoco

1.3 Gazebo Harmonic Simulator

  • Install Gazebo
  sudo apt-get install ros-jazzy-ros-gz
  
  • Compile Gazebo Playground
  colcon build --packages-up-to gz_quadruped_playground --symlink-install
  
  • Launch the ros2-control
  source ~/ros2_ws/install/setup.bash
  ros2 launch unitree_guide_controller gazebo.launch.py
  
  • Run the keyboard control node
    source ~/ros2_ws/install/setup.bash
    ros2 run keyboard_input keyboard_input
    

gazebo

For more details, please refer to the unitree guide controller and go2 description.

What’s Next

Congratulations! You have successfully launched the quadruped robot in the simulation. Here are some suggestions for you to have a try:

File truncated at 100 lines see the full file

No version for distro galactic showing github. Known supported distros are highlighted in the buttons above.

Repository Summary

Description
Checkout URI https://github.com/legubiao/quadruped_ros2_control.git
VCS Type git
VCS Version main
Last Updated 2025-06-24
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

README

Quadruped ROS2 Control

This repository contains the ros2-control based controllers for the quadruped robot.

  • Controllers: contains the ros2-control controllers
  • Commands: contains command node used to send command to the controller
  • Descriptions: contains the urdf model of the robot
  • Hardwares: contains the ros2-control hardware interface for the robot

Warning: Default branch was developed under ROS2 Jazzy. For ROS2 Humble, please check out humble branch.

Todo List:

  • [2025-02-23] Add Gazebo Playground
    • OCS2 controller for Gazebo Simulation
    • Refactor FSM and Unitree Guide Controller
  • [2025-03-30] Add Real Go2 Robot Support
  • [2025-05-20] Isaac Sim Support
  • OCS2 Perceptive locomotion demo

Video on Real Unitree Go2 Robot:

1. Quick Start

  • rosdep
    cd ~/ros2_ws
    rosdep install --from-paths src --ignore-src -r -y
    
  • Compile the package
    colcon build --packages-up-to unitree_guide_controller go2_description keyboard_input --symlink-install
    

1.1 Mujoco Simulator or Real Unitree Robot

Warning: CycloneDDS ROS2 RMW may conflict with unitree_sdk2. If you cannot launch unitree mujoco simulation without sudo, then you cannot used unitree_mujoco_hardware. This conflict could be solved by one of below two methods:

  1. Uninstall CycloneDDS ROS2 RMW, used another ROS2 RMW, such as FastDDS [Recommended].
  2. Follow the guide in unitree_ros2 to configure the ROS2 RMW by compiling cyclone dds.
  • Compile Unitree Hardware Interfaces
    cd ~/ros2_ws
    colcon build --packages-up-to hardware_unitree_sdk2
    
  • Follow the guide in unitree_mujoco to launch the unitree mujoco go2 simulation
  • Launch the ros2-control
    source ~/ros2_ws/install/setup.bash
    ros2 launch unitree_guide_controller mujoco.launch.py
    
  • Run the keyboard control node
    source ~/ros2_ws/install/setup.bash
    ros2 run keyboard_input keyboard_input
    

mujoco

1.3 Gazebo Harmonic Simulator

  • Install Gazebo
  sudo apt-get install ros-jazzy-ros-gz
  
  • Compile Gazebo Playground
  colcon build --packages-up-to gz_quadruped_playground --symlink-install
  
  • Launch the ros2-control
  source ~/ros2_ws/install/setup.bash
  ros2 launch unitree_guide_controller gazebo.launch.py
  
  • Run the keyboard control node
    source ~/ros2_ws/install/setup.bash
    ros2 run keyboard_input keyboard_input
    

gazebo

For more details, please refer to the unitree guide controller and go2 description.

What’s Next

Congratulations! You have successfully launched the quadruped robot in the simulation. Here are some suggestions for you to have a try:

File truncated at 100 lines see the full file

No version for distro iron showing github. Known supported distros are highlighted in the buttons above.

Repository Summary

Description
Checkout URI https://github.com/legubiao/quadruped_ros2_control.git
VCS Type git
VCS Version main
Last Updated 2025-06-24
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

README

Quadruped ROS2 Control

This repository contains the ros2-control based controllers for the quadruped robot.

  • Controllers: contains the ros2-control controllers
  • Commands: contains command node used to send command to the controller
  • Descriptions: contains the urdf model of the robot
  • Hardwares: contains the ros2-control hardware interface for the robot

Warning: Default branch was developed under ROS2 Jazzy. For ROS2 Humble, please check out humble branch.

Todo List:

  • [2025-02-23] Add Gazebo Playground
    • OCS2 controller for Gazebo Simulation
    • Refactor FSM and Unitree Guide Controller
  • [2025-03-30] Add Real Go2 Robot Support
  • [2025-05-20] Isaac Sim Support
  • OCS2 Perceptive locomotion demo

Video on Real Unitree Go2 Robot:

1. Quick Start

  • rosdep
    cd ~/ros2_ws
    rosdep install --from-paths src --ignore-src -r -y
    
  • Compile the package
    colcon build --packages-up-to unitree_guide_controller go2_description keyboard_input --symlink-install
    

1.1 Mujoco Simulator or Real Unitree Robot

Warning: CycloneDDS ROS2 RMW may conflict with unitree_sdk2. If you cannot launch unitree mujoco simulation without sudo, then you cannot used unitree_mujoco_hardware. This conflict could be solved by one of below two methods:

  1. Uninstall CycloneDDS ROS2 RMW, used another ROS2 RMW, such as FastDDS [Recommended].
  2. Follow the guide in unitree_ros2 to configure the ROS2 RMW by compiling cyclone dds.
  • Compile Unitree Hardware Interfaces
    cd ~/ros2_ws
    colcon build --packages-up-to hardware_unitree_sdk2
    
  • Follow the guide in unitree_mujoco to launch the unitree mujoco go2 simulation
  • Launch the ros2-control
    source ~/ros2_ws/install/setup.bash
    ros2 launch unitree_guide_controller mujoco.launch.py
    
  • Run the keyboard control node
    source ~/ros2_ws/install/setup.bash
    ros2 run keyboard_input keyboard_input
    

mujoco

1.3 Gazebo Harmonic Simulator

  • Install Gazebo
  sudo apt-get install ros-jazzy-ros-gz
  
  • Compile Gazebo Playground
  colcon build --packages-up-to gz_quadruped_playground --symlink-install
  
  • Launch the ros2-control
  source ~/ros2_ws/install/setup.bash
  ros2 launch unitree_guide_controller gazebo.launch.py
  
  • Run the keyboard control node
    source ~/ros2_ws/install/setup.bash
    ros2 run keyboard_input keyboard_input
    

gazebo

For more details, please refer to the unitree guide controller and go2 description.

What’s Next

Congratulations! You have successfully launched the quadruped robot in the simulation. Here are some suggestions for you to have a try:

File truncated at 100 lines see the full file

No version for distro melodic showing github. Known supported distros are highlighted in the buttons above.

Repository Summary

Description
Checkout URI https://github.com/legubiao/quadruped_ros2_control.git
VCS Type git
VCS Version main
Last Updated 2025-06-24
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

README

Quadruped ROS2 Control

This repository contains the ros2-control based controllers for the quadruped robot.

  • Controllers: contains the ros2-control controllers
  • Commands: contains command node used to send command to the controller
  • Descriptions: contains the urdf model of the robot
  • Hardwares: contains the ros2-control hardware interface for the robot

Warning: Default branch was developed under ROS2 Jazzy. For ROS2 Humble, please check out humble branch.

Todo List:

  • [2025-02-23] Add Gazebo Playground
    • OCS2 controller for Gazebo Simulation
    • Refactor FSM and Unitree Guide Controller
  • [2025-03-30] Add Real Go2 Robot Support
  • [2025-05-20] Isaac Sim Support
  • OCS2 Perceptive locomotion demo

Video on Real Unitree Go2 Robot:

1. Quick Start

  • rosdep
    cd ~/ros2_ws
    rosdep install --from-paths src --ignore-src -r -y
    
  • Compile the package
    colcon build --packages-up-to unitree_guide_controller go2_description keyboard_input --symlink-install
    

1.1 Mujoco Simulator or Real Unitree Robot

Warning: CycloneDDS ROS2 RMW may conflict with unitree_sdk2. If you cannot launch unitree mujoco simulation without sudo, then you cannot used unitree_mujoco_hardware. This conflict could be solved by one of below two methods:

  1. Uninstall CycloneDDS ROS2 RMW, used another ROS2 RMW, such as FastDDS [Recommended].
  2. Follow the guide in unitree_ros2 to configure the ROS2 RMW by compiling cyclone dds.
  • Compile Unitree Hardware Interfaces
    cd ~/ros2_ws
    colcon build --packages-up-to hardware_unitree_sdk2
    
  • Follow the guide in unitree_mujoco to launch the unitree mujoco go2 simulation
  • Launch the ros2-control
    source ~/ros2_ws/install/setup.bash
    ros2 launch unitree_guide_controller mujoco.launch.py
    
  • Run the keyboard control node
    source ~/ros2_ws/install/setup.bash
    ros2 run keyboard_input keyboard_input
    

mujoco

1.3 Gazebo Harmonic Simulator

  • Install Gazebo
  sudo apt-get install ros-jazzy-ros-gz
  
  • Compile Gazebo Playground
  colcon build --packages-up-to gz_quadruped_playground --symlink-install
  
  • Launch the ros2-control
  source ~/ros2_ws/install/setup.bash
  ros2 launch unitree_guide_controller gazebo.launch.py
  
  • Run the keyboard control node
    source ~/ros2_ws/install/setup.bash
    ros2 run keyboard_input keyboard_input
    

gazebo

For more details, please refer to the unitree guide controller and go2 description.

What’s Next

Congratulations! You have successfully launched the quadruped robot in the simulation. Here are some suggestions for you to have a try:

File truncated at 100 lines see the full file

No version for distro noetic showing github. Known supported distros are highlighted in the buttons above.

Repository Summary

Description
Checkout URI https://github.com/legubiao/quadruped_ros2_control.git
VCS Type git
VCS Version main
Last Updated 2025-06-24
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

README

Quadruped ROS2 Control

This repository contains the ros2-control based controllers for the quadruped robot.

  • Controllers: contains the ros2-control controllers
  • Commands: contains command node used to send command to the controller
  • Descriptions: contains the urdf model of the robot
  • Hardwares: contains the ros2-control hardware interface for the robot

Warning: Default branch was developed under ROS2 Jazzy. For ROS2 Humble, please check out humble branch.

Todo List:

  • [2025-02-23] Add Gazebo Playground
    • OCS2 controller for Gazebo Simulation
    • Refactor FSM and Unitree Guide Controller
  • [2025-03-30] Add Real Go2 Robot Support
  • [2025-05-20] Isaac Sim Support
  • OCS2 Perceptive locomotion demo

Video on Real Unitree Go2 Robot:

1. Quick Start

  • rosdep
    cd ~/ros2_ws
    rosdep install --from-paths src --ignore-src -r -y
    
  • Compile the package
    colcon build --packages-up-to unitree_guide_controller go2_description keyboard_input --symlink-install
    

1.1 Mujoco Simulator or Real Unitree Robot

Warning: CycloneDDS ROS2 RMW may conflict with unitree_sdk2. If you cannot launch unitree mujoco simulation without sudo, then you cannot used unitree_mujoco_hardware. This conflict could be solved by one of below two methods:

  1. Uninstall CycloneDDS ROS2 RMW, used another ROS2 RMW, such as FastDDS [Recommended].
  2. Follow the guide in unitree_ros2 to configure the ROS2 RMW by compiling cyclone dds.
  • Compile Unitree Hardware Interfaces
    cd ~/ros2_ws
    colcon build --packages-up-to hardware_unitree_sdk2
    
  • Follow the guide in unitree_mujoco to launch the unitree mujoco go2 simulation
  • Launch the ros2-control
    source ~/ros2_ws/install/setup.bash
    ros2 launch unitree_guide_controller mujoco.launch.py
    
  • Run the keyboard control node
    source ~/ros2_ws/install/setup.bash
    ros2 run keyboard_input keyboard_input
    

mujoco

1.3 Gazebo Harmonic Simulator

  • Install Gazebo
  sudo apt-get install ros-jazzy-ros-gz
  
  • Compile Gazebo Playground
  colcon build --packages-up-to gz_quadruped_playground --symlink-install
  
  • Launch the ros2-control
  source ~/ros2_ws/install/setup.bash
  ros2 launch unitree_guide_controller gazebo.launch.py
  
  • Run the keyboard control node
    source ~/ros2_ws/install/setup.bash
    ros2 run keyboard_input keyboard_input
    

gazebo

For more details, please refer to the unitree guide controller and go2 description.

What’s Next

Congratulations! You have successfully launched the quadruped robot in the simulation. Here are some suggestions for you to have a try:

File truncated at 100 lines see the full file