How cowsjh/lv2_horus_assignment works
Horus is a ROS 2 pan–tilt target-tracking project: camera images are processed into target coordinates, tracking logic determines whether to follow, and control commands travel over serial to a motor board. The sampled sources show the perception, serial, and firmware layers; the center-to-control command connection is not visible in the excerpts, so it is marked unverified. The repository also includes a bag-metric reanalysis utility, shown as a separate results branch.
Main entry points: motor.cpp Motor driver · perception_node.cpp Perception node · control_node.cpp Serial control node · protocol.cpp Firmware protocol
Components 13
Perception
- Perception node
lv2_module5/ros2_ws/src/perception/src/perception_node.cpp - Target detector
lv2_module5/ros2_ws/src/perception/src/detector.cpp - Detector API
lv2_module5/ros2_ws/src/perception/include/perception/detector.hpp
Tracking
- Tracking center
lv2_module5/ros2_ws/src/center/src/center_node.cpp
Motor actuation
- Serial control node
lv2_module5/ros2_ws/src/control/src/control_node.cpp - USB serial link
- Firmware protocol
lv2_module5/firmware/pan_tilt_fw/protocol.cpp - Motor driver
lv2_module5/firmware/pan_tilt_fw/motor.cpp - Firmware settings
lv2_module5/firmware/pan_tilt_fw/config.h
Result analysis
- Bag reanalysis
lv2_module5/results/logs/reanalysis/reanalyze.py
Other components
- RGB-D camera
- DYNAMIXEL motors
- Recorded ROS bags
Connections 13
- RGB-D camera → Perception node: sends images
lv2_module5/ros2_ws/src/perception/src/perception_node.cpp - Perception node → Target detector: processes frames
lv2_module5/ros2_ws/src/perception/src/perception_node.cpp - Target detector → Detector API: implements API
lv2_module5/ros2_ws/src/perception/src/detector.cpp - Perception node → Tracking center: publishes /target
lv2_module5/ros2_ws/src/perception/src/perception_node.cpp - Tracking center → Serial control node: sends commands
- Serial control node → USB serial link: writes commands
lv2_module5/ros2_ws/src/control/src/control_node.cpp - USB serial link → Firmware protocol: carries commands
- Firmware protocol → Motor driver: dispatches goals
lv2_module5/firmware/pan_tilt_fw/protocol.cpp - Motor driver → DYNAMIXEL motors: drives axes
lv2_module5/firmware/pan_tilt_fw/motor.cpp - Firmware settings → Motor driver: sets limits
lv2_module5/firmware/pan_tilt_fw/motor.cpp - Motor driver → Firmware protocol: reports status
lv2_module5/firmware/pan_tilt_fw/protocol.cpp - USB serial link → Serial control node: returns status
lv2_module5/ros2_ws/src/control/src/control_node.cpp - Recorded ROS bags → Bag reanalysis: reads topics
lv2_module5/results/logs/reanalysis/reanalyze.py