How liangc001/go2-patrol-nav works
GO2-Patrol-Nav combines robot mapping and navigation, patrol-path authoring and execution, YOLOv5 image monitoring, and WebRTC remote operation. The documented operator workflow is to map an environment, save a map, create a route, then simulate or execute it; detection and remote control are parallel capabilities. README statements support the principal cross-system links; sampled source is limited, so internal ROS topic wiring and several runtime integrations are not asserted.
Main entry points: path_runner.py Path runner · detect.py YOLO inference · path_planner.py Path planner · go2_slamtoolbox.launch.py SLAM launch
Components 21
Operator control
- Web console service
go2_launch_sh/server.py
Patrol paths
- Path planner
go2_ros2_ws/path_planner.py - Route commands
- Path runner
go2_ros2_ws/path_runner.py - Path simulator
go2_ros2_ws/path_simulate.py
ROS robot stack
- Go2 core
go2_ros2_ws/src/go2_ros2_toolbox/go2_core/src/go2_base.cpp - Video stream node
go2_ros2_ws/src/go2_ros2_toolbox/go2_core/go2_core/video_stream_node.py - SLAM launch
go2_ros2_ws/src/go2_ros2_toolbox/go2_slam/launch/go2_slamtoolbox.launch.py - Navigation launch
go2_ros2_ws/src/go2_ros2_toolbox/go2_navigation/launch/go2_nav2.launch.py - Sport control API
go2_ros2_ws/src/go2_ros2_toolbox/unitree_pkgs/go2_sport_api/src/common/ros2_sport_client.cpp
Perception and detection
- Pointcloud processing
go2_ros2_ws/src/go2_ros2_toolbox/go2_perception/src/pointcloud_to_laserscan_node.cpp - Detection monitor
Target_Detect/monitor_detect_target.py - YOLO inference
Target_Detect/yolov5/detect.py - YOLO model modules
Target_Detect/yolov5/models/yolo.py - Model components
Target_Detect/yolov5/models - Data and runtime utilities
Target_Detect/yolov5/utils - Detection result folders
Remote communications
- WebRTC driver
go2_webrtc_connect/go2_webrtc_driver/webrtc_driver.py - Navigation TCP bridge
go2_ros2_ws/src/go2_ros2_toolbox/go2_navigation/go2_navigation/navigation_command_tcpbridge.py
Other components
- Operator
- Go2 robot
Connections 19
- Operator → Path planner: plans route
- Path planner → Route commands: saves commands
- Route commands → Path runner: provides commands
- Path runner → Go2 robot: executes patrol
- Path runner → Path simulator: offers simulation
- Operator → SLAM launch: starts mapping
- SLAM launch → Go2 core: starts core
- Operator → Navigation launch: starts navigation
- Operator → Detection monitor: starts monitoring
- Detection monitor → YOLO inference: runs detection
- YOLO inference → Detection result folders: sorts images
- YOLO model modules → Model components: uses modules
Target_Detect/yolov5/models/yolo.py - YOLO inference → Data and runtime utilities: uses utilities
Target_Detect/yolov5/utils/dataloaders.py - Operator → WebRTC driver: uses remote control
- WebRTC driver → Go2 robot: communicates remotely
- Video stream node → Go2 robot: streams video
- Pointcloud processing → Navigation launch: supports sensing
- Navigation TCP bridge → Sport control API: bridges commands
- Web console service → Operator: serves console