How akimarayouki/perseverance works
PERSEVERANCE Gen2 is a wheeled-biped robot project spanning Isaac Lab controller development, ROS 2 real-robot control, sensor and actuator drivers, and operator/autonomy tools. The main workflow is operator velocity commands plus IMU feedback into the balance controller, which computes wheel and leg actuation through the CAN motor stack. Simulation and recovery/residual-learning capabilities are also represented. Some ROS topic wiring and unsampled subsystems are documented only at a high level, so uncertain links are omitted.
Main entry points: balance_node.cpp Balance node · env_cfg.py Balance training task · person_follow.py Person following · cmd_mux.py Command mux
Components 20
Simulation and learning
- Reference controller
sim/isaaclab/scripts/wbctrl.py - Balance training task
sim/isaaclab/tasks/env_cfg.py - Recovery task
sim/isaaclab/tasks/recovery.py - Residual task
sim/isaaclab/tasks/residual.py - Robot simulation config
sim/isaaclab/source/wheeled_biped_isaaclab/robot_cfg.py
Balance control
- Balance node
src/gen2_control/src/balance_node.cpp - LQR + VMC core
src/gen2_control/src/wb_core.cpp
Robot I/O
- IMU driver
src/gen2_sensors/src/iahrs_node.cpp - CAN motor bus
src/gen2_hardware/src/motor_bus.cpp - CubeMars codecs
src/gen2_hardware/src/cubemars_mit.cpp - Sensor hub parser
src/gen2_sensor_hub/src/frame_parser.cpp
Navigation and sensing
- Camera driver
src/gen2_camera/gen2_camera/camera_node.py - RPLIDAR driver
src/rplidar_ros/src/rplidar_node.cpp - Leg detection
src/gen2_tools/gen2_tools/leg_detector.py - Person following
src/gen2_tools/gen2_tools/person_follow.py - SLAM launch
src/gen2_bringup/launch/slam.launch.py
Operator tools
- Pad teleop
src/gen2_tools/gen2_tools/pad_teleop.py - Command mux
src/gen2_tools/gen2_tools/cmd_mux.py - Control GUI
tools/gcs/cw_gui.py
Other components
- Robot operator
Connections 18
- Robot operator → Pad teleop: operates
- Pad teleop → Command mux: sends commands
- Command mux → Balance node: routes velocity
- IMU driver → Balance node: provides IMU
src/gen2_control/src/balance_node.cpp - Balance node → LQR + VMC core: runs control
- Balance node → CAN motor bus: commands bus
src/gen2_control/src/balance_node.cpp - CAN motor bus → CubeMars codecs: uses codecs
- Reference controller → LQR + VMC core: ported to
- Robot simulation config → Balance training task: configures robot
sim/isaaclab/tasks/env_cfg.py - Balance training task → Recovery task: extends task
sim/isaaclab/tasks/env_cfg.py - Balance training task → Residual task: supports variant
sim/isaaclab/tasks/env_cfg.py - Robot operator → Control GUI: monitors robot
tools/gcs/cw_gui.py - Camera driver → Person following: supplies detections
src/gen2_tools/gen2_tools/person_follow.py - RPLIDAR driver → Leg detection: supplies scans
- Leg detection → Person following: supplies leg tracks
src/gen2_tools/gen2_tools/person_follow.py - Person following → Command mux: requests motion
- Sensor hub parser → Balance node: provides sensor data
- RPLIDAR driver → SLAM launch: provides scan data