How yueyangwu380-alt/originbot_code works
OriginBot is a ROS 2 robot application spanning a Humble physical robot and a Jazzy desktop. The principal documented workflow brings up robot sensors and motion interfaces, builds maps on the desktop, then uses frontier exploration to send Nav2 goals and save a completed map. Separate branches provide camera-based cat detection, body/gesture control, and desktop visualization. The graph combines README-documented interactions with sampled source; relationships inside unsampled packages are omitted where wiring is not established.
Main entry points: frontier_explorer.py Frontier explorer · nav2_carto.py Nav2 navigation · autonomous_mapping.launch.py Mapping launch · originbot.launch.py Robot bringup
Components 23
Robot runtime
- Base and odometry
official/robot_humble/originbot_base/src/originbot_base.cpp - VP100 lidar
official/robot_humble/originbot_driver/vp100_ros2/src/vp100_ros2_node.cpp - Robot bringup
official/robot_humble/originbot_bringup/launch/originbot.launch.py - Robot buzzer
official/robot_humble/originbot_demo/originbot_demo/control_buzzer.py - Robot motion interface
official/robot_humble/originbot_base/src/originbot_base.cpp
Mapping and navigation
- SLAM mapping
official/desktop_jazzy/originbot_navigation/launch/cartographer_gazebo.launch.py - Nav2 navigation
official/desktop_jazzy/originbot_navigation/launch/nav2_carto.py - Frontier explorer
my_code/originbot_autonomous_mapping/originbot_autonomous_mapping/frontier_explorer.py - Frontier policy
my_code/originbot_autonomous_mapping/originbot_autonomous_mapping/frontier_core.py - Automatic map saving
my_code/originbot_autonomous_mapping/launch/autonomous_mapping.launch.py - Mapping launch
my_code/originbot_autonomous_mapping/launch/autonomous_mapping.launch.py
Perception and control
- Camera pipeline
official/robot_humble/originbot_bringup/launch/camera.launch.py - Cat confirmation buzzer
my_code/originbot_vision/originbot_vision/cat_buzzer.py - Body tracking
official/robot_humble/originbot_deeplearning/body_tracking/src/body_tracking.cpp - Gesture control
official/robot_humble/originbot_deeplearning/gesture_control/src/gesture_control_engine.cpp - Line following
official/robot_humble/originbot_deeplearning/line_follower_perception/src/line_follower_perception.cpp
Desktop tools
- Robot desktop UI
official/desktop_jazzy/originbot_app/src/mainwindow.cpp - RViz visualization
official/desktop_jazzy/originbot_viz/launch/display_navigation.launch.py - Gazebo simulation
official/desktop_jazzy/originbot_gazebo/launch/originbot_navigation_gazebo.launch.py - Goal sender
official/robot_humble/originbot_example/originbot_send_goal/src/send_goal_node.cpp
Other components
- Robot operator
- ROS 2 DDS network
- Saved occupancy map
Connections 26
- Robot operator → Robot bringup: starts robot
README.md - Robot bringup → Base and odometry: starts base
README.md - Robot bringup → VP100 lidar: starts lidar
README.md - Base and odometry → ROS 2 DDS network: publishes robot state
README.md - VP100 lidar → ROS 2 DDS network: publishes scans
README.md - ROS 2 DDS network → SLAM mapping: provides sensor data
README.md - SLAM mapping → Nav2 navigation: provides map
README.md - Mapping launch → SLAM mapping: starts SLAM
README.md - Mapping launch → Nav2 navigation: starts navigation
README.md - Mapping launch → Frontier explorer: starts explorer
README.md - Frontier explorer → Frontier policy: uses policy
my_code/originbot_autonomous_mapping/originbot_autonomous_mapping/frontier_explorer.py - Frontier explorer → Nav2 navigation: sends goals
my_code/originbot_autonomous_mapping/originbot_autonomous_mapping/frontier_explorer.py - Frontier explorer → Automatic map saving: requests map saving
README.md - Automatic map saving → Saved occupancy map: writes map
README.md - Nav2 navigation → ROS 2 DDS network: commands robot
README.md - ROS 2 DDS network → Robot motion interface: delivers motion commands
README.md - Camera pipeline → Cat confirmation buzzer: provides detections
README.md - Cat confirmation buzzer → Robot buzzer: sounds on cat confirmation
README.md - Body tracking → ROS 2 DDS network: tracks people
- Gesture control → Robot motion interface: sends motion control
- Line following → Robot motion interface: controls following
- Robot operator → Robot desktop UI: views robot
- Robot desktop UI → ROS 2 DDS network: exchanges ROS data
- Robot operator → RViz visualization: views navigation
README.md - Robot operator → Gazebo simulation: runs simulation
- Robot operator → Goal sender: submits goal