How chj1319/ros-vision-tracker works
ROS-Vision-Tracker is a ROS 2 camera-tracking system: the Pi captures color and aligned depth, detects and tracks a blue cube, and publishes motion commands for a pan/tilt camera. It also supports annotated previews, remote RViz visualization, and offline tuning/evaluation and bag replay. The main runtime links are documented in the README; sampled source confirms detector/tracker delegation and preview processing. Some launch, replay, and control internals were not sampled, so those links follow documented relationships.
Main entry points: tracker_node.py Tracking node · preview_node.py JPEG preview · detector.py Cube detection · rviz_node.py RViz visualization
Components 21
Vision tracking
- RealSense capture
xmen_tracker/xmen_tracker/realsense_node.py - Cube detection
xmen_tracker/xmen_tracker/detector.py - Cube tracker
xmen_tracker/xmen_tracker/cube_tracker.py - Tracking node
xmen_tracker/xmen_tracker/tracker_node.py
Camera motion
- Serial control
xmen_control/xmen_control/control_lite.py - Full control
xmen_control/xmen_control/control.py - OpenCR firmware
firmware/opencr_lite.ino
Visualization
- JPEG preview
xmen_tracker/xmen_tracker/preview_node.py - Image overlay
xmen_tracker/xmen_tracker/overlay.py - RViz visualization
xmen_tracker/xmen_tracker/rviz_node.py - Target markers
xmen_tracker/xmen_tracker/markers.py - Launch configuration
xmen_bringup/launch/hardware_launch.py - Remote RViz launch
xmen_bringup/launch/rviz2_launch.py
Tuning analysis
- Detector tuning
xmen_tracker/xmen_tracker/tuning.py - Detection evaluation
xmen_tracker/xmen_tracker/evaluate.py - CSRT test tool
xmen_tracker/tools/csrt_track.py - Recorded bags
lv2_module5/results/bags
Robot model
- Robot description
xmen_description/urdf/cctv.urdf
Other components
- Operator
- OpenCR board
- Pan-tilt servos
Connections 27
- Operator → Launch configuration: launches
README.md - Launch configuration → RealSense capture: starts capture
README.md - Launch configuration → Tracking node: starts tracking
README.md - RealSense capture → Tracking node: publishes frames
README.md - Tracking node → Cube detection: detects targets
xmen_tracker/xmen_tracker/tracker_node.py - Tracking node → Cube tracker: uses tracker
xmen_tracker/xmen_tracker/tracker_node.py - Cube detection → Cube tracker: provides detections
xmen_tracker/xmen_tracker/cube_tracker.py - Tracking node → Serial control: publishes commands
README.md - Serial control → OpenCR board: serial commands
README.md - Full control → OpenCR board: serial control
README.md - OpenCR board → Pan-tilt servos: drives axes
README.md - OpenCR firmware → OpenCR board: runs on
README.md - RealSense capture → JPEG preview: publishes color
README.md - Tracking node → JPEG preview: publishes boxes
xmen_tracker/xmen_tracker/preview_node.py - JPEG preview → Image overlay: annotates frames
xmen_tracker/xmen_tracker/preview_node.py - JPEG preview → RViz visualization: sends JPEG
README.md - Tracking node → RViz visualization: publishes target
README.md - RViz visualization → Target markers: builds markers
xmen_tracker/xmen_tracker/rviz_node.py - Remote RViz launch → RViz visualization: starts visualization
README.md - Remote RViz launch → Robot description: displays robot model
README.md - Operator → Detector tuning: tunes detector
xmen_tracker/xmen_tracker/tuning.py - Detector tuning → Cube detection: tests settings
xmen_tracker/xmen_tracker/tuning.py - Operator → Detection evaluation: evaluates detection
xmen_tracker/xmen_tracker/evaluate.py - Detection evaluation → Cube detection: runs detection
xmen_tracker/xmen_tracker/evaluate.py - Operator → CSRT test tool: tests tracking
xmen_tracker/tools/csrt_track.py - CSRT test tool → Cube tracker: uses tracker
xmen_tracker/tools/csrt_track.py - Recorded bags → Detection evaluation: feeds replay
README.md