# ros2_openvino_toolkit **Repository Path**: mirrors_intel/ros2_openvino_toolkit ## Basic Information - **Project Name**: ros2_openvino_toolkit - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-11-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ros2_openvino_toolkit ## Table of Contents * [➤ Overview](#overview) * [ROS2 Version Supported](#ros2-version-supported) * [Inference Features Supported](#inference-features-supported) * [➤ Prerequisite](#prerequisite) * [➤ Introduction](#introduction) * [Design Architecture](#design-architecture) * [Logic Flow](#logic-flow) * [➤ Supported Features](#supported-features) * [Multiple Input Components](#multiple-input-components) * [Inference Implementations](#inference-implementations) * [ROS Interfaces and Outputs](#ros-interfaces-and-outputs) * [Demo Result Snapshots](#demo-result-snapshots) * [➤ Installation & Launching](#installation-and-launching) * [Deploy in Local Environment](#deploy-in-local-environment) * [Deploy in Docker](#deploy-in-docker) * [Install from Debian Packages](#install-from-debian-packages) * [Test in a Container](#test-in-a-container) * [➤ Reference](#reference) * [➤ FAQ](#faq) * [➤ Feedback](#feedback) * [➤ More Information](#more-information) ## Overview ### ROS2 Version Supported |Branch|ROS 2|Ubuntu|OpenVINO|Install method| |---|---|---|---|---| |[main](https://github.com/intel/ros2_openvino_toolkit/tree/main)|Jazzy (development branch)|24.04|2025.4.0|Intel APT| |[ros2_lyrical](https://github.com/intel/ros2_openvino_toolkit/tree/ros2_lyrical)|Lyrical (pre-release)|26.04|2026.4.1|Intel APT| |[ros2_jazzy](https://github.com/intel/ros2_openvino_toolkit/tree/ros2_jazzy)|Jazzy|24.04|2025.4.0|Intel APT| |[ros2_humble](https://github.com/intel/ros2_openvino_toolkit/tree/ros2_humble)|Humble|22.04|2025.4.0|Intel APT| `main` is the development branch and tracks the Jazzy line. `ros2_jazzy`, `ros2_humble` and `ros2_lyrical` are the maintenance branches of each ROS 2 distribution, and each release is tagged as `/`, for example `jazzy/1.0.0`. Releases for end-of-life distributions (Dashing, Eloquent, Foxy, Galactic) are kept as `archive/*` tags. ### Inference Features Supported * [x] Object Detection * [x] Face Detection * [x] Age Gender Recognition * [x] Emotion Recognition * [x] Head Pose Estimation * [x] Object Segmentation (Semantic & Instance) * [x] Keypoint Detection (Pose Estimation) * [x] Oriented Object Detection (OBB) * [x] Image Classification * [x] Depth Estimation * [x] Person Re-Identification * [x] Vehicle Attribute Detection * [x] Vehicle License Plate Detection * [x] **Intel NPU (Neural Processing Unit) Support** - Hardware acceleration for Intel Core Ultra processors ## Prerequisite |Prerequisite|Mandatory?|Description| |-----------------------|-----------------------|--------------------------------| |**Processor**|Mandatory|A platform with Intel processors assembled. (Refer to the [OpenVINO release notes](https://software.intel.com/content/www/us/en/develop/articles/openvino-2020-3-lts-relnotes.html) for the full list of Intel processors supported.)| |**OS**|Mandatory|Only Ubuntu is tested. Use the Ubuntu release that matches your ROS 2 distribution. **For example: Ubuntu 22.04 for Humble, Ubuntu 24.04 for Jazzy, Ubuntu 26.04 for Lyrical.**| |**ROS2**|Mandatory|Choose the distribution matching your OS and check out the corresponding branch from the table in section [**ROS2 Version Supported**](#ros2-version-supported).| |**OpenVINO**|Mandatory|The version of OpenVINO toolkit is decided by the OS and ROS2 distros you use. See the table above in Section [**ROS2 Version Supported**](#ros2-version-supported).| |**RealSense Camera**|Optional|RealSense Camera is optional, you may choose these alternatives as the input: Standard Camera, ROS Image Topic, Video/Image File or RTSP camera.| ## Introduction ### Design Architecture

Architecture Design From the view of hierarchical architecture design, the package is divided into different functional components, as shown in the picture below. ![OpenVINO_Architecture](./data/images/design_arch.PNG "OpenVINO RunTime Architecture")

Intel® OpenVINO™ toolkit - **Intel® OpenVINO™ toolkit** provides a ROS-adapted runtime framework of neural network which quickly deploys applications and solutions for vision inference. By leveraging Intel® OpenVINO™ toolkit and corresponding libraries, this ROS2 runtime framework extends workloads across Intel® hardware (including accelerators) and maximizes performance. - Increase deep learning workload performance up to 19x1 with computer vision accelerators from Intel. - Unleash convolutional neural network (CNN)-based deep learning inference using a common API. - Speed development using optimized OpenCV\* and OpenVX\* functions. See the [OpenVINO repository](https://github.com/openvinotoolkit/openvino) for an introduction to Intel OpenVINO™.

ROS OpenVINO Runtime Framework - **ROS OpenVINO Runtime Framework** is the main body of this repo. It provides key logic implementation for pipeline lifecycle management, resource management and ROS system adapter, which extends Intel OpenVINO toolkit and libraries. Furthermore, this runtime framework provides ways to simplify launching, configuration, data analysis and re-use.

ROS Input & Output - **Diverse Input resources** are data resources to be inferred and analyzed with the OpenVINO framework. - **ROS interfaces and outputs** currently include _Topic_ and _service_. Natively, RViz output and CV image window output are also supported by refactoring topic message and inference results.

Optimized Models - **Optimized Models** provided by Model Optimizer component of Intel® OpenVINO™ toolkit. Imports trained models from various frameworks (Caffe*, TensorFlow*, MxNet*, ONNX*, Kaldi*) and converts them to a unified intermediate representation file. It also optimizes topologies through node merging, horizontal fusion, eliminating batch normalization, and quantization. It also supports graph freeze and graph summarize along with dynamic input freezing.

### Logic Flow

Logic Flow From the view of logic implementation, the package introduces the definitions of parameter manager, pipeline and pipeline manager. The following picture depicts how these entities co-work together when the corresponding program is launched. ![Logic_Flow](./data/images/impletation_logic.PNG "OpenVINO RunTime Logic Flow") Once a corresponding program is launched with a specified .yaml config file passed in the .launch file or via command line, _**parameter manager**_ analyzes the configurations about pipeline and the whole framework, then shares the parsed configuration information with pipeline procedure. A _**pipeline instance**_ is created by following the configuration info and is added into _**pipeline manager**_ for lifecycle control and inference action triggering. The contents in **.yaml config file** should be well structured and follow the supported rules and entity names. Please see [yaml configuration guidance](./doc/quick_start/yaml_configuration_guide.md) for how to create or edit the config files.

Pipeline **Pipeline** fulfills the whole data handling process: initializing Input Component for image data gathering and formatting; building up the structured inference network and passing the formatted data through the inference network; transferring the inference results and handling output, etc.

Pipeline manager **Pipeline manager** manages all the created pipelines according to the inference requests or external demands (say, system exception, resource limitation, or end user's operation). Because of co-working with resource management and being aware of the whole framework, it covers the ability of performance optimization by sharing system resource between pipelines and reducing the burden of data copy.

## Supported Features ### Multiple Input Components Currently, the package supports several input resources for acquiring image data. The following tables are listed:

Input Resource Table |Input Resource|Description| |--------------------|------------------------------------------------------------------| |StandardCamera|Any RGB camera with USB port supporting. Currently only the first USB camera if many are connected.| |RealSenseCamera| Deprecated alias of `RealSenseCameraTopic`: reads the image topic of the RealSense ROS node (`camera:=realsense`). The toolkit no longer links librealsense, so it works with any librealsense version.| |ImageTopic| Any ROS topic which is structured in image message.| |Image| Any image file which can be parsed by openCV, such as .png, .jpeg.| |Video| Any video file which can be parsed by openCV.| |IpCamera| Any RTSP server which can push video stream.|

### Inference Implementations Currently, the corresponding relation of supported inference features, models used and yaml configurations are listed as follows:

Inference Feature Correspondence Table |Inference|Description|YAML Configuration|Model Used| |-----------------------|------------------------------------------------------------------|----------------------|----------------------| |Face Detection| Object Detection task applied to face recognition using a sequence of neural networks.|[pipeline_image.yaml](./sample/param/pipeline_image.yaml)
[pipeline_image_video.yaml](./sample/param/pipeline_image_video.yaml)
[pipeline_people.yaml](./sample/param/pipeline_people.yaml)
[pipeline_people_ip.yaml](./sample/param/pipeline_people_ip.yaml)|[face-detection-adas-0001](https://github.com/openvinotoolkit/open_model_zoo/tree/releases/2022/3/models/intel/face-detection-adas-0001)
[age-gender-recognition-retail-0013](https://github.com/openvinotoolkit/open_model_zoo/tree/releases/2022/3/models/intel/age-gender-recognition-retail-0013)
[emotions-recognition-retail-0003](https://github.com/openvinotoolkit/open_model_zoo/tree/releases/2022/3/models/intel/emotions-recognition-retail-0003)
[head-pose-estimation-adas-0001](https://github.com/openvinotoolkit/open_model_zoo/tree/releases/2022/3/models/intel/head-pose-estimation-adas-0001)| |Emotion Recognition| Emotion recognition based on detected face image.|[pipeline_image.yaml](./sample/param/pipeline_image.yaml)
[pipeline_image_video.yaml](./sample/param/pipeline_image_video.yaml)
[pipeline_people.yaml](./sample/param/pipeline_people.yaml)
[pipeline_people_ip.yaml](./sample/param/pipeline_people_ip.yaml)|[emotions-recognition-retail-0003](https://github.com/openvinotoolkit/open_model_zoo/tree/releases/2022/3/models/intel/emotions-recognition-retail-0003)| |Age & Gender Recognition| Age and gender recognition based on detected face image.|[pipeline_image.yaml](./sample/param/pipeline_image.yaml)
[pipeline_image_video.yaml](./sample/param/pipeline_image_video.yaml)
[pipeline_people.yaml](./sample/param/pipeline_people.yaml)
[pipeline_people_ip.yaml](./sample/param/pipeline_people_ip.yaml)|[age-gender-recognition-retail-0013](https://github.com/openvinotoolkit/open_model_zoo/tree/releases/2022/3/models/intel/age-gender-recognition-retail-0013)| |Head Pose Estimation| Head pose estimation based on detected face image.|[pipeline_image.yaml](./sample/param/pipeline_image.yaml)
[pipeline_image_video.yaml](./sample/param/pipeline_image_video.yaml)
[pipeline_people.yaml](./sample/param/pipeline_people.yaml)
[pipeline_people_ip.yaml](./sample/param/pipeline_people_ip.yaml)|[head-pose-estimation-adas-0001](https://github.com/openvinotoolkit/open_model_zoo/tree/releases/2022/3/models/intel/head-pose-estimation-adas-0001)| |Object Detection| Object detection based on SSD-based or YOLO26 trained models.|[pipeline_object.yaml](./sample/param/pipeline_object.yaml)
[pipeline_object_topic.yaml](./sample/param/pipeline_object_topic.yaml)
[pipeline_yolo26_detection.yaml](./sample/param/pipeline_yolo26_detection.yaml)|[ssdlite_mobilenet_v2](./doc/quick_start/getting_started_with_ros2_ov2.0.md#4-download-the-models)
[yolo26](./doc/quick_start/tutorial_for_yolo26.md)| |Vehicle and License Detection| Vehicle and license detection based on Intel models.|[pipeline_vehicle_detection.yaml](./sample/param/pipeline_vehicle_detection.yaml)|[vehicle-license-plate-detection-barrier-0106](https://github.com/openvinotoolkit/open_model_zoo/tree/releases/2022/3/models/intel/vehicle-license-plate-detection-barrier-0106)
[vehicle-attributes-recognition-barrier-0039](https://github.com/openvinotoolkit/open_model_zoo/tree/releases/2022/3/models/intel/vehicle-attributes-recognition-barrier-0039)
[license-plate-recognition-barrier-0001](https://github.com/openvinotoolkit/open_model_zoo/tree/releases/2022/3/models/intel/license-plate-recognition-barrier-0001)| |Object Segmentation - Semantic| semantic segmentation, assign a class label to each pixel in an image. |[pipeline_segmentation.yaml](./sample/param/pipeline_segmentation.yaml)
[pipeline_segmentation_image.yaml](./sample/param/pipeline_segmentation_image.yaml)
[pipeline_video.yaml](./sample/param/pipeline_video.yaml)
[pipeline_yolo26_semantic.yaml](./sample/param/pipeline_yolo26_semantic.yaml)|[semantic-segmentation-adas-0001](https://github.com/openvinotoolkit/open_model_zoo/tree/releases/2022/3/models/intel/semantic-segmentation-adas-0001)
[deeplabv3](https://github.com/openvinotoolkit/open_model_zoo/tree/releases/2022/3/models/public/deeplabv3)
[yolo26-sem](./doc/quick_start/tutorial_for_yolo26.md)| | Object Segmentation - Instance | Instance Segmentation, combination of semantic segmentation & object detection. | [pipeline_yolo26_segmentation.yaml](./sample/param/pipeline_yolo26_segmentation.yaml) | [yolo26-seg](./doc/quick_start/tutorial_for_yolo26.md)
[mask_rcnn_inception_v2_coco_2018_01_28](https://github.com/openvinotoolkit/open_model_zoo/tree/releases/2022/3/models/public/mask_rcnn_inception_resnet_v2_atrous_coco)| |Keypoint Detection| Detection of persons and their body keypoints (pose estimation).|[pipeline_yolo26_pose.yaml](./sample/param/pipeline_yolo26_pose.yaml)|[yolo26-pose](./doc/quick_start/tutorial_for_yolo26.md)| |Oriented Object Detection| Object detection with rotated bounding boxes (OBB).|[pipeline_yolo26_obb.yaml](./sample/param/pipeline_yolo26_obb.yaml)|[yolo26-obb](./doc/quick_start/tutorial_for_yolo26.md)| |Image Classification| Classification of the whole image.|[pipeline_yolo26_classification.yaml](./sample/param/pipeline_yolo26_classification.yaml)|[yolo26-cls](./doc/quick_start/tutorial_for_yolo26.md)| |Depth Estimation| Estimation of the depth of each pixel of an image.|[pipeline_yolo26_depth.yaml](./sample/param/pipeline_yolo26_depth.yaml)|[yolo26-depth](./doc/quick_start/tutorial_for_yolo26.md)| |Person Attributes| Person attributes based on object detection.|[pipeline_person_attributes.yaml](./sample/param/pipeline_person_attributes.yaml)|[person-attributes-recognition-crossroad-0230](https://github.com/openvinotoolkit/open_model_zoo/tree/releases/2022/3/models/intel/person-attributes-recognition-crossroad-0230)
[person-detection-retail-0013](https://github.com/openvinotoolkit/open_model_zoo/tree/releases/2022/3/models/intel/person-detection-retail-0013)| |Person Reidentification|Person reidentification based on object detection.|[pipeline_reidentification.yaml](./sample/param/pipeline_reidentification.yaml)|[person-detection-retail-0013](https://github.com/openvinotoolkit/open_model_zoo/tree/releases/2022/3/models/intel/person-detection-retail-0013)
[person-reidentification-retail-0277](https://github.com/openvinotoolkit/open_model_zoo/tree/releases/2022/3/models/intel/person-reidentification-retail-0277)| |Object Segmentation Maskrcnn| Object segmentation and detection based on maskrcnn model.[_Deprecated, it is recommended to use `object segmentation - instance` for first try._]|[pipeline_segmentation_maskrcnn.yaml](./sample/param/pipeline_segmentation_maskrcnn.yaml)|[mask_rcnn_inception_v2_coco_2018_01_28](https://github.com/openvinotoolkit/open_model_zoo/tree/releases/2022/3/models/public/mask_rcnn_inception_resnet_v2_atrous_coco)|

### ROS interfaces and outputs The inference results can be output in several types. One or more types can be enabled for any inference pipeline. #### Topic Specific topic(s) can be generated and published according to the given inference functionalities.

Published Topic Correspondence Table |Inference|Published Topic| |---|---| |People Detection|```/ros2_openvino_toolkit/face_detection```([object_msgs:msg:ObjectsInBoxes](./object_msgs/msg/ObjectsInBoxes.msg))| |Emotion Recognition|```/ros2_openvino_toolkit/emotions_recognition```([object_msgs:msg:EmotionsStamped](./object_msgs/msg/EmotionsStamped.msg))| |Age and Gender Recognition|```/ros2_openvino_toolkit/age_genders_Recognition```([object_msgs:msg:AgeGenderStamped](./object_msgs/msg/AgeGenderStamped.msg))| |Head Pose Estimation|```/ros2_openvino_toolkit/headposes_estimation```([object_msgs:msg:HeadPoseStamped](./object_msgs/msg/HeadPoseStamped.msg))| |Object Detection|```/ros2_openvino_toolkit/detected_objects```([object_msgs::msg::ObjectsInBoxes](./object_msgs/msg/ObjectsInBoxes.msg))| |Object Segmentation|```/ros2_openvino_toolkit/segmented_objects```([object_msgs::msg::ObjectsInMasks](./object_msgs/msg/ObjectsInMasks.msg))| |Object Segmentation Maskrcnn|```/ros2_openvino_toolkit/segmented_objects```([object_msgs::msg::ObjectsInMasks](./object_msgs/msg/ObjectsInMasks.msg))| |Keypoint Detection|```/ros2_openvino_toolkit/detected_keypoints```([object_msgs::msg::ObjectsWithKeypoints](./object_msgs/msg/ObjectsWithKeypoints.msg))| |Oriented Object Detection|```/ros2_openvino_toolkit/detected_oriented_objects```([object_msgs::msg::ObjectsInOrientedBoxes](./object_msgs/msg/ObjectsInOrientedBoxes.msg))| |Image Classification|```/ros2_openvino_toolkit/classified_objects```([object_msgs::msg::Objects](./object_msgs/msg/Objects.msg))| |Depth Estimation|```/ros2_openvino_toolkit/depth_image```([sensor_msgs::msg::Image](https://docs.ros.org/en/api/sensor_msgs/html/msg/Image.html))| |Person Reidentification|```/ros2_openvino_toolkit/reidentified_persons```([object_msgs::msg::ReidentificationStamped](./object_msgs/msg/ReidentificationStamped.msg))| |Vehicle Detection|```/ros2_openvino_toolkit/detected_vehicles_attribs```([object_msgs::msg::VehicleAttribsStamped](./object_msgs/msg/VehicleAttribsStamped.msg))| |Vehicle License Detection|```/ros2_openvino_toolkit/detected_license_plates```([object_msgs::msg::LicensePlateStamped](./object_msgs/msg/LicensePlateStamped.msg))|

#### Service Several ROS2 Services are created, expecting to be used in client/server mode, especially when synchronously getting inference results for a given image frame or when managing inference pipeline's lifecycle.

Service Correspondence Table |Inference|Service| |---|---| |Object Detection Service|```/detect_object```([object_msgs::srv::DetectObject](./object_msgs/srv/DetectObject.srv))| |Face Detection Service|```/detect_face```([object_msgs::srv::DetectObject](./object_msgs/srv/DetectObject.srv))| |Age Gender Detection Service|```/detect_age_gender```([object_msgs::srv::AgeGender](./object_msgs/srv/AgeGenderSrv.srv))| |Headpose Detection Service|```/detect_head_pose```([object_msgs::srv::HeadPose](./object_msgs/srv/HeadPoseSrv.srv))| |Emotion Detection Service|```/detect_emotion```([object_msgs::srv::Emotion](./object_msgs/srv/EmotionSrv.srv))|

#### RViz RViz display is also supported by the composited topic of original image frame with inference result. To show in RViz tool, add an image marker with the composited topic: ```/ros2_openvino_toolkit/image_rviz```([sensor_msgs::Image](https://docs.ros.org/en/api/sensor_msgs/html/msg/Image.html)) #### Image Window OpenCV based image window is natively supported by the package. To enable window, Image Window output should be added into the output choices in .yaml config file. Refer to [the config file guidance](./doc/quick_start/yaml_configuration_guide.md) for more information about checking/adding this feature in your launching. ### Demo Result Snapshots

Demo Snapshots For the snapshot of demo results, refer to the following picture. * Face detection input from standard camera ![face_detection_demo_image](./data/images/face_detection.png "face detection demo image") * Object detection input from realsense camera ![object_detection_demo_realsense](./data/images/object_detection.gif "object detection demo realsense") * Object segmentation input from video ![object_segmentation_demo_video](./data/images/object_segmentation.gif "object segmentation demo video") * Person reidentification input from standard camera ![person_reidentification_demo_video](./data/images/person-reidentification.gif "person reidentification demo video")

## Installation and Launching ### Quick Start Commands below are for the `ros2_jazzy` branch (Ubuntu 24.04). The full walkthrough, including prerequisites and troubleshooting, is in the [getting started guide](./doc/quick_start/getting_started_with_ros2_ov2.0.md). ```bash # 1. Get the sources and install OpenVINO from the Intel APT repository mkdir -p ~/ros2_ws/src && cd ~/ros2_ws/src git clone https://github.com/intel/ros2_openvino_toolkit -b ros2_jazzy sudo ./ros2_openvino_toolkit/script/packaging/setup_openvino_apt.sh sudo apt install openvino-libraries-dev-2025.4.0 # 2. Build cd ~/ros2_ws source /opt/ros/jazzy/setup.bash colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release source install/setup.bash # 3. Get the models and run a demo on a sample image ros2 run openvino_node setup_models.sh ros2 launch openvino_node pipeline_image.launch.py ``` #### Get the models One command fetches the models: it downloads the pre-converted Intel models and converts or exports the others on your machine. Models that are already present are skipped, so it is safe to run again. |Command|Result| |---|---| |`ros2 run openvino_node setup_models.sh`|Core set: all pre-converted Intel models, SSD object detection, DeepLabv3 segmentation, YOLO26 detection| |`ros2 run openvino_node setup_models.sh --sample pipeline_segmentation`|Only the models of one sample (launch file or YAML name)| |`ros2 run openvino_node setup_models.sh --all`|Every model that the scripts provide, including all YOLO26 tasks and Mask R-CNN (about 3 GB more)| |`ros2 run openvino_node setup_models.sh --list`|The models of all samples and whether they are present| A launch file that misses a model prints the command that fetches it. Add `fetch_models:=true` to fetch the missing models before the launch starts: ```bash ros2 launch openvino_node pipeline_segmentation.launch.py fetch_models:=true ``` The first conversion or export creates a Python environment, which takes a few minutes (about 2 GB for YOLO26). The individual scripts `download_models.sh`, `export_yolo26.sh`, `export_ssdlite_mobilenet_v2.sh`, `export_deeplabv3.sh` and `export_maskrcnn.sh` remain available for finer control, see `--help` of each script. #### Choose the inference device Every sample launch file accepts a `device` argument that overrides the `engine:` value of all models in the YAML file. Without it, the YAML values are used. ```bash ros2 launch openvino_node pipeline_image.launch.py device:=GPU # CPU, GPU, NPU, AUTO, ... ``` The device each model actually runs on is printed at startup (`Engine created: requested device=GPU, executing on=GPU.0`) and drawn on the output image next to the FPS (`FPS` is only shown for camera and video inputs). `NPU` is available on Intel Core Ultra processors. #### Where models and data are located |What|Location| |---|---| |Models|`$OPENVINO_TOOLKIT_DIR/models`, else `~/.local/share/openvino_toolkit/models`, else `/opt/openvino_toolkit/models`| |Labels and sample images|Installed with the package (`share/openvino_node/data`)| The YAML files use the placeholders `` (the models location above) and `` (labels and images). The launch files resolve them at start-up with [launch_helpers.py](./sample/launch/launch_helpers.py), so no path needs to be edited. #### YOLO26 pipelines [Ultralytics YOLO26](https://docs.ultralytics.com/models/yolo26/) models run in pipelines for object detection, instance segmentation, keypoint detection, oriented bounding boxes, classification, semantic segmentation and depth estimation. The models are exported on your machine by a script, which needs about 2 GB for a Python environment. They are licensed by Ultralytics under AGPL-3.0 and are not part of this repository. ```bash ros2 run openvino_node setup_models.sh --sample pipeline_yolo26_detection --sample pipeline_yolo26_pose ros2 launch openvino_node pipeline_yolo26_detection.launch.py ros2 launch openvino_node pipeline_yolo26_pose.launch.py device:=GPU ``` See the [YOLO26 tutorial](./doc/quick_start/tutorial_for_yolo26.md) for all tasks, topics and options. #### SSD object detection pipelines The `ssdlite_mobilenet_v2` model of `pipeline_object.launch.py` and the other SSD samples is converted on your machine from the TensorFlow Object Detection API model with `ovc`. The pipeline reads the TensorFlow outputs of the converted model directly. With `device:=NPU` the backbone runs on the NPU and the TensorFlow post-processing (NMS) on the CPU, because the NPU cannot compile its dynamic shapes; the device is then reported as `CPU,NPU`. ```bash ros2 run openvino_node setup_models.sh --sample pipeline_object ros2 launch openvino_node pipeline_object.launch.py ``` #### DeepLabv3 semantic segmentation pipelines The `deeplabv3` model of `pipeline_segmentation.launch.py` and `pipeline_video.launch.py` is converted from the TensorFlow DeepLabv3 MobileNetV2 (Pascal VOC) model. ```bash ros2 run openvino_node setup_models.sh --sample pipeline_segmentation ros2 launch openvino_node pipeline_segmentation.launch.py ``` ### Deploy in Local Environment * Refer to the quick start document for [getting_started_with_ros2](./doc/quick_start/getting_started_with_ros2_ov2.0.md) for detailed installation & launching instructions. * Refer to the quick start document for [yaml configuration guidance](./doc/quick_start/yaml_configuration_guide.md) for detailed configuration guidance. ### Deploy in Docker * Refer to the [Jazzy docker instructions](./docker/ros2_ov2025/ros2_jazzy/docker_instructions.md). For Humble and Lyrical, see the `ros2_humble` and `ros2_lyrical` branches. * Refer to the quick start document for [yaml configuration guidance](./doc/quick_start/yaml_configuration_guide.md) for detailed configuration guidance. ### Install from Debian Packages The toolkit can be packaged for ROS 2 Jazzy on Ubuntu 24.04 (amd64). The packages are built in a container, so Docker is the only build requirement. |Package|Content| |-----------------------|--------------------------------| |`ros-jazzy-openvino-node`|Pipeline and service nodes, launch files, YAML configurations, labels, sample images, `setup_models.sh` and the individual model scripts it runs. Depends on all packages below.| |`ros-jazzy-openvino-wrapper-lib`|OpenVINO pipeline library and headers| |`ros-jazzy-openvino-param-lib`|YAML parameter library and headers| |`ros-jazzy-openvino-msgs`|Pipeline messages and services| |`ros-jazzy-object-msgs`|Object messages and services, built from the [object_msgs](./object_msgs) copy in this repository| * Build the packages. They are written to `dist/`. ```bash make package ``` * Install the packages on a system with ROS 2 Jazzy. OpenVINO 2025.4.0 is installed as a dependency from the Intel APT repository, which the first command enables. ```bash sudo ./script/packaging/setup_openvino_apt.sh sudo apt install ./dist/*.deb source /opt/ros/jazzy/setup.bash ``` * Each `jazzy/` release on GitHub also provides the packages as `ros-jazzy-openvino-toolkit__amd64.tar.gz`. Extract the archive and install the `.deb` files in the same way. * The OpenVINO models are not part of the packages. Get them with `ros2 run openvino_node setup_models.sh`, see [Get the models](#get-the-models). * `make test` builds the workspace, downloads the models to `.models/` and runs the unit tests in a container. Its colcon output goes to `.colcon-docker/`, separate from the `build/`, `install/` and `log/` of a local `colcon build`. Run `make help` for the other targets, for example `make test-package`, `make build` and `make lint`. ### Test in a Container `make test-functional` and `make shell` run the Debian packages in a `ros:jazzy-ros-base` container, so no local ROS 2 installation is needed. Both install the packages from `dist/` (run `make package` first) and use the model cache `.models/` of `make test`. |Target|Purpose| |-----------------------|--------------------------------| |`make test-functional`|Runs the CI pipelines (`sample/launch/*_ci_test.py`) of the downloadable models on the sample images, and those of the YOLO26 models that are in `.models/` (see the [YOLO26 tutorial](./doc/quick_start/tutorial_for_yolo26.md#4-test)). A pipeline passes when it is created, reports no error and publishes on its topics. The OpenVINO device is `CPU`; select another one with, for example, `make test-functional DEVICE=GPU`.| |`make shell`|Opens a shell for manual tests. The X11 display, the GPU (`/dev/dri`) and the NPU (`/dev/accel`) of the host are passed to the container, and `intel-opencl-icd` and `rqt_image_view` are installed in addition (variable `SHELL_PACKAGES`).| ```bash make shell # inside the container ros2 run openvino_node setup_models.sh --sample pipeline_image ros2 launch openvino_node pipeline_image.launch.py device:=CPU ``` * `GPU` needs a driver in the container that supports the GPU of the host. The `intel-opencl-icd` package of Ubuntu 24.04 is installed for that purpose; see the [OpenVINO GPU configuration](https://docs.openvino.ai/2025/get-started/install-openvino/configurations/configurations-intel-gpu.html) for newer drivers. * `NPU` needs the [Intel NPU driver](https://github.com/intel/linux-npu-driver) inside the container. It is not installed by these targets. ## Reference * Open_model_zoo: Refer to the OpenVINO document for [open_model_zoo](https://github.com/openvinotoolkit/open_model_zoo/tree/releases/2022/3) for detailed model structure and demo samples. * OpenVINO api 2.0: Refer to the OpenVINO document for [OpenVINO_api_2.0](https://docs.openvino.ai/latest/openvino_2_0_transition_guide.html) for latest api 2.0 transition guide. ## FAQ * How to get and run the [YOLO26](./doc/quick_start/tutorial_for_yolo26.md) models? * [How to build OpenVINO by source?](https://github.com/openvinotoolkit/openvino/wiki#how-to-build) * [How to build RealSense by source?](https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md) * [What is the basic command of Docker CLI?](https://docs.docker.com/engine/reference/commandline/docker/) * [What is the canonical C++ API for interacting with ROS?](https://docs.ros2.org/latest/api/rclcpp/)

How to change logging level? This project provides two logging levels: *DEBUG* & *INFO*.
You may follow the steps to change logging level:
- Update ./openvino_wrapper_lib/CMakeLists.txt by uncommenting (for DEBUG level) or commenting (for INFO level) this line: ```code #add_definitions(-DLOG_LEVEL_DEBUG) ``` - Rebuild project
Refer to the corresponding quick-start documents to rebuild this project. e.g.:
```code source /opt/ros//setup.bash colcon build --symlink-install ``` - Launch OpenVINO Node
You will see the logging is changed.

## Feedback * Report questions, issues and suggestions, using: [issue](https://github.com/intel/ros2_openvino_toolkit/issues). ## More Information * ROS2 OpenVINO description written in Chinese: _Any security issue should be reported using process at ._