How zemorobotics/zemo_ros works
Zemo is a ROS 2 robot platform for Eurobot. Its user-facing workflow is to launch the robot, expose its model and hardware through ROS 2, then accept navigation or servo commands and drive the robot. The repository also contains hardware communication, custom Nav2 controllers and costmap support, and collision detection. The README documents these capabilities; source excerpts are partial, so several subsystem relationships are shown only where documented, and unverified wiring is omitted.
Main entry points: can_interface.cpp CAN interface · robot_launch.py Robot launch · robot_state_publisher_launch.py Robot description · collision_detector.cpp Collision detector
Components 24
Robot startup
- Robot launch
zemo_bringup/launch/robot_launch.py - Robot description
zemo_description/launch/robot_state_publisher_launch.py
Robot hardware
- CAN interface
zemo_hardware/src/can_system/can_interface.cpp - Differential drive
zemo_hardware/src/can_system/diff_drive.cpp - Actuator board
zemo_hardware/src/can_system/actuator_board.cpp - IR sensors
zemo_hardware/src/can_system/ir_sensor.cpp - CINCH
zemo_hardware/src/can_system/cinch.cpp - Servo hardware interface
zemo_hardware/src/servo_system/servo_interface.cpp - Servo protocols
zemo_hardware/include/zemo_hardware/servo_system/servo_protocols.hpp - Waveshare drivers
zemo_hardware/include/zemo_hardware/servo_system/waveshare_driver
Navigation
- Navigation launch
zemo_navigation/launch/zemo_navigation_launch.py - Move action server
zemo_navigation/src/move.cpp - Straight-line controller
zemo_navigation/src/controller_plugins/straight_line_move.cpp - Rotation controller
zemo_navigation/src/controller_plugins/rotation.cpp - Circular-arc controller
zemo_navigation/src/controller_plugins/circular_arc.cpp - Obstacle costmap layer
zemo_navigation/src/AdditionalObstacleLayer.cpp - Collision detector
zemo_navigation/src/collision_detector/collision_detector.cpp - Dynamic polygons
zemo_navigation/src/collision_detector/dynamic_polygon.cpp
Robot control
- ROS 2 control
- Servo controller
zemo_controllers/src/servo_controller.cpp
Other components
- Robot operator
- Nav2
- Lidar
- Motion board
Connections 27
- Robot operator → Robot launch: launches
- Robot launch → Robot description: starts
- Robot launch → Navigation launch: starts
- Robot launch → ROS 2 control: starts
- Robot description → ROS 2 control: defines connections
- Robot description → Nav2: provides transforms
- Robot description → ROS 2 control: provides transforms
- ROS 2 control → CAN interface: uses hardware
- ROS 2 control → Servo hardware interface: uses hardware
- CAN interface → Differential drive: communicates
- Differential drive → Motion board: sends wheel speeds
- CAN interface → Actuator board: communicates
- CAN interface → IR sensors: communicates
- CAN interface → CINCH: communicates
- Servo hardware interface → Servo protocols: dispatches protocols
- Servo protocols → Waveshare drivers: selects drivers
zemo_hardware/include/zemo_hardware/servo_system/servo_protocols.hpp - Servo controller → ROS 2 control: writes commands
- Navigation launch → Nav2: configures
- Nav2 → Straight-line controller: uses controller
- Nav2 → Rotation controller: uses controller
- Nav2 → Circular-arc controller: uses controller
- Nav2 → Obstacle costmap layer: loads costmap layer
- Robot operator → Move action server: requests movement
- Move action server → Collision detector: checks collisions
- Collision detector → Dynamic polygons: uses polygons
- Collision detector → Lidar: checks sensor data
- Collision detector → IR sensors: checks sensor data