Skip to content

feat(perception): publish 2D boxes as Detection2DArray, drop projection from yolo_node (#116) - #119

Merged
TCrawley11 merged 2 commits into
perception/perception_devfrom
perception/116-yolo-detection2d
Nov 24, 2026
Merged

TCrawley11 merged 2 commits into
perception/perception_devfrom
perception/116-yolo-detection2d

Conversation

@Gemmaaaaaaa

@Gemmaaaaaaa Gemmaaaaaaa commented Nov 24, 2026 •

Copy link
Copy Markdown

Closes #116.

yolo_node now only detects objects in the image and publishes their 2D pixel boxes. The 3D work (projecting points, picking the points in each box, the median position) moves to the association node (#90), which publishes the final Detection3DArray on ap1/perception/objects.

What changed

  • yolo_node.py publishes vision_msgs/Detection2DArray on ap1/perception/objects_2d, one message per camera image:
    • header = the source image's header (capture stamp and camera frame), so Camera-LiDAR association node v0 #90 can match it with the lidar cloud
    • each detection has a pixel box (bbox.center, size_x, size_y, in the original image's pixels), results[0].hypothesis.class_id from ObjectClass with the YOLO confidence as the score, and an empty id
    • an empty array when nothing is detected
  • The node subscribes to the color image only. The point cloud, CameraInfo and the image/cloud synchronizer are removed, along with the sync_queue_size and sync_slop parameters.
  • projection.py is untouched: Camera-LiDAR association node v0 #90 removes or deprecates it.

Topic

The association node (#90) should subscribe to ap1/perception/objects_2d.

Removed parameters (for #90)

These yolo_node ROS parameters were removed, from the node and from config/yolo.yaml. They only paired the image with the point cloud, which the association node now does, so #90 can use the same or similar parameters:

Parameter Value What it did
sync_queue_size 5 Image/point cloud sync queue length (startup only)
sync_slop 0.05 Max image/point cloud stamp gap, in seconds (startup only)

yolo_node keeps model_path, device and conf_threshold. Neither launch file (yolo.launch.py, full_system.launch.py) set the removed parameters.

Tests

  • test/deploy/test_yolo_node.py now checks the Detection2DArray: SIGN_STOP in every frame, box center and size within a few pixels of the sign's box (found from its red pixels, not from YOLO), image stamp and frame, score, empty id, and an empty array for a blank frame.
  • colcon test --packages-select ap1_perception in perception:cpu-dev: 21 passed, 0 failed.
  • Deploy tests in a locally built perception-cpu image, the same steps as perception-images.yml: 6 passed, 0 failed.

Heads-up

Until #90 lands, nothing publishes ap1/perception/objects.

🤖 Generated with Claude Code

…on from yolo_node (#116)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gemmaaaaaaa
Gemmaaaaaaa requested review from a team as code owners November 24, 2026 19:08
@TCrawley11 TCrawley11 linked an issue Nov 24, 2026 that may be closed by this pull request
@TCrawley11 TCrawley11 added the Perception Related to perception team label Nov 24, 2026
@TCrawley11 TCrawley11 added this to the Object detection pipeline milestone Nov 24, 2026
Comment thread src/perception/config/yolo.yaml Resolved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@TCrawley11
TCrawley11 merged commit 37974e2 into perception/perception_dev Nov 24, 2026
3 checks passed
@TCrawley11
TCrawley11 deleted the perception/116-yolo-detection2d branch November 24, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Perception Related to perception team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove projection operations from yolo node

2 participants