How unitree-go2-robot/go2_robot works
Project type and purpose
• This is a ROS 2 “bringup” integration package for the Unitree GO2 quadruped robot. It provides the robot description, sensor drivers (LiDAR, RealSense), control interfaces (cmd_vel, go2_interfaces services), visualization in RViz, SLAM and Nav2 stubs, and mode/configuration services.
File structure
• Top-level CMakeLists.txt & package.xml define a standard ROS 2 package built with colcon/CMake.
• dependencies.repos lists third-party ROS 2 driver repositories (e.g., Hesai Lidar ROS 2, realsense2_camera).
• .github contains CI workflows (build/test on ROS 2 Humble).
• README.md documents installation, sensor setup, launch files, topics, and services.
• (Not shown but assumed) src/ contains ROS 2 node implementations and config/ contains YAML for sensor parameters.
README for additional insights
• Main launch: go2_bringup/go2.launch.py brings up robot_description, sensor drivers, joint_state_publisher, and optionally RViz.
• Topics published:
• /joint_states (robot joint angles)
• /odom (odometry)
• /cmd_vel (Twist messages from controllers or teleop)
• Services provided by go2_interfaces: /mode, /body_height, /continuous_gait, etc.
• Future work: SLAM & Nav2 integration.
Capturing essential architectural elements
• ROS 2 nodes in the go2_robot package (bringup, interfaces).
-Inter-node topic and service connectivity.