Projects / Edge AI

ROS 2 node with a TensorRT detector

A ROS 2 Jazzy node runs a TensorRT FP16 YOLO11n detector on a camera topic and publishes vision_msgs/Detection2DArray. A benchmark measures latency on the real ROS 2 message path.

Rate held
30 Hz at 640 and 1280 input
Image stamp to detections, 640
14.1 ms median
Image stamp to detections, 1280
19.4 ms median

What didn’t work

With the default Fast DDS transports, 2.7 MB images were mostly dropped at 30 Hz (about 5 to 10 Hz received). A shared-memory profile with a larger segment fixed it. One stream, batch 1, detections only.

Open the repo on GitHub