How mi1nn/overwatch-amr works
Overwatch AMR is a ROS 2 system that locates an RC car with a fixed webcam, approaches it with TurtleBot4/Nav2, then follows it using the robot’s RGB-depth camera and searches when it is lost. The main runtime spans vision, coordinate calibration, and robot control; the README also documents optional webcam streaming and on-robot detection, plus YOLO evaluation utilities. Source excerpts show the detector publishing target poses and the follower subscribing to them; other subsystem links below use README-documented behavior where implementation was not sampled.
Main entry points: rc_car_follower.py Pursuit state machine · webcam_detector.py Webcam detector · paths.py Repository paths · calibrate_webcam_v2.py Webcam calibration
Components 19
Webcam vision
- Webcam detector
src/rokey_pjt/rokey_pjt/webcam_detector.py - Webcam stream
src/rokey_pjt/rokey_pjt/webcam_publisher.py - Target pose topics
src/rokey_pjt/rokey_pjt/webcam_detector.py - Robot-camera inspector
src/rokey_pjt/rokey_pjt/yolo_detector.py
Robot pursuit
- Pursuit state machine
src/rokey_pjt/rokey_pjt/rc_car_follower.py
Calibration
- Webcam calibration
src/rokey_pjt/rokey_pjt/calibrate_webcam_v2.py - Basic calibration
src/rokey_pjt/rokey_pjt/calibrate_webcam.py - Homography artifact
src/rokey_pjt/rokey_pjt/calibrate_webcam_v2.py - Repository paths
src/rokey_pjt/rokey_pjt/paths.py
Model evaluation
- YOLO comparison report
scripts/yolo/yolo_compare.py - YOLO run statistics
scripts/yolo/yolo_stats.py - Evaluation utilities
scripts/yolo/yolo_report_utils.py
Other components
- Fixed webcam
- YOLO model
- OAK-D camera
- 2D lidar
- Nav2 navigation
- TurtleBot4
- RViz / AMCL points
Connections 24
- Fixed webcam → Webcam detector: supplies frames
- Webcam detector → YOLO model: runs inference
- Webcam detector → Target pose topics: publishes poses
src/rokey_pjt/rokey_pjt/webcam_detector.py - Webcam detector → Homography artifact: transforms coordinates
- Webcam detector → Webcam stream: optional image stream
- Target pose topics → Pursuit state machine: feeds approach goals
src/rokey_pjt/rokey_pjt/rc_car_follower.py - OAK-D camera → Pursuit state machine: supplies RGB and depth
- 2D lidar → Pursuit state machine: provides scan status
- Pursuit state machine → Nav2 navigation: sends navigation goals
- Pursuit state machine → TurtleBot4: publishes rotation commands
src/rokey_pjt/rokey_pjt/rc_car_follower.py - Nav2 navigation → TurtleBot4: drives and avoids obstacles
- Pursuit state machine → Nav2 navigation: recovers lifecycle
src/rokey_pjt/rokey_pjt/rc_car_follower.py - RViz / AMCL points → Webcam calibration: provides map points
src/rokey_pjt/rokey_pjt/calibrate_webcam_v2.py - RViz / AMCL points → Basic calibration: provides map points
src/rokey_pjt/rokey_pjt/calibrate_webcam.py - Webcam calibration → Homography artifact: computes and saves
src/rokey_pjt/rokey_pjt/calibrate_webcam_v2.py - Basic calibration → Homography artifact: computes and saves
src/rokey_pjt/rokey_pjt/calibrate_webcam.py - Webcam calibration → Repository paths: uses model paths
src/rokey_pjt/rokey_pjt/calibrate_webcam_v2.py - Basic calibration → Repository paths: uses model paths
src/rokey_pjt/rokey_pjt/calibrate_webcam.py - Webcam detector → Repository paths: uses model paths
src/rokey_pjt/rokey_pjt/webcam_detector.py - Pursuit state machine → Repository paths: uses model paths
src/rokey_pjt/rokey_pjt/rc_car_follower.py - OAK-D camera → Robot-camera inspector: supplies camera images
src/rokey_pjt/rokey_pjt/yolo_detector.py - Robot-camera inspector → YOLO model: runs inference
src/rokey_pjt/rokey_pjt/yolo_detector.py - YOLO comparison report → Evaluation utilities: uses evaluation helpers
scripts/yolo/yolo_compare.py - YOLO run statistics → Evaluation utilities: uses evaluation helpers
scripts/yolo/yolo_stats.py