mgonzs13/yolo_ros
Ultralytics YOLOv8, YOLOv9, YOLOv10, YOLOv11, YOLOv12 for ROS 2
What it solves
This project provides a high-performance ROS 2 interface for running YOLO computer vision models. It eliminates the need for a Python runtime by using a pure C++ and ONNX Runtime implementation, allowing robots to perform tasks like object detection, tracking, instance segmentation, pose estimation, and 3D depth-based analysis efficiently.
How it works
The system operates as a single yolo_node executable within ROS 2. It uses a plugin-based architecture where different processing stages—such as detection, tracking, and 3D lifting—are chained together. Data flows between these plugins through an in-memory blackboard, ensuring low latency. The pipeline supports various hardware backends, including CPU, NVIDIA CUDA/TensorRT, and Qualcomm Hexagon NPUs, by leveraging the ONNX Runtime.
Who it’s for
It is designed for robotics developers using ROS 2 who need to integrate state-of-the-art computer vision into their systems without the overhead of a Python-based stack. It is ideal for those who require a modular, high-speed pipeline that can be easily configured via YAML files to support multi-camera setups and diverse hardware acceleration.
Highlights
- Pure C++ Pipeline: No Python runtime or
ultralyticsdependency required at execution time. - Versatile Task Support: Handles detection, tracking, instance segmentation, human pose estimation, oriented bounding boxes, and image classification.
- 3D Capabilities: Includes 3D versions of detection, segmentation, and pose estimation when depth images are provided.
- Hardware Flexible: Supports CPU, CUDA, TensorRT, and QNN (Hexagon NPU) execution providers.
- Modular Design: Uses a plugin-based architecture for flexible, ordered data processing chains.
Related
- Project
- Project
- Project
- Project
- Project