Difference between revisions of "Advantech Robotic Suite/Container/Openvino Object Detection ROS Container"
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= Openvino Object Detection ROS Container = | = Openvino Object Detection ROS Container = | ||
− | A pre-configured container that integrates OpenVINO toolkit with ROS for efficient and accurate object detection in robotic applications. | + | A pre-configured container that integrates the [https://github.com/intel/ros2_openvino_toolkit OpenVINO toolkit with ROS] for efficient and accurate object detection in robotic applications. OpenVINO supports both '''NPU''' and '''iGPU''' acceleration, but the availability depends on the system's hardware and environment compatibility. |
== How To == | == How To == | ||
Line 15: | Line 15: | ||
=== Modify config file === | === Modify config file === | ||
* Openvino config file | * Openvino config file | ||
− | This file can be used to configure the input source, model, output, etc. For detailed configuration instructions, please refer to the [https://github.com/intel/ros2_openvino_toolkit ros2_openvino_toolkit] GitHub. | + | This file can be used to configure the input source, model, output, etc. For detailed configuration instructions, please refer to the [https://github.com/intel/ros2_openvino_toolkit/tree/master/sample/param ros2_openvino_toolkit] GitHub. |
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
$ vim /usr/local/Advantech/ros/container/ros-extension/openvino_object_detection-ros2-humble/share/pipeline_object.yaml | $ vim /usr/local/Advantech/ros/container/ros-extension/openvino_object_detection-ros2-humble/share/pipeline_object.yaml | ||
Line 21: | Line 21: | ||
* Openvino launch file | * Openvino launch file | ||
− | This file can be used to configure how to launch openvino ros2 node. For detailed configuration instructions, please refer to the [https://github.com/intel/ros2_openvino_toolkit ros2_openvino_toolkit] GitHub. | + | This file can be used to configure how to launch openvino ros2 node. For detailed configuration instructions, please refer to the [https://github.com/intel/ros2_openvino_toolkit/tree/master/sample/launch ros2_openvino_toolkit] GitHub. |
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
$ vim /usr/local/Advantech/ros/container/ros-extension/openvino_object_detection-ros2-humble/share/pipeline_object.launch.py | $ vim /usr/local/Advantech/ros/container/ros-extension/openvino_object_detection-ros2-humble/share/pipeline_object.launch.py |
Latest revision as of 03:10, 17 December 2024
Contents
Openvino Object Detection ROS Container
A pre-configured container that integrates the OpenVINO toolkit with ROS for efficient and accurate object detection in robotic applications. OpenVINO supports both NPU and iGPU acceleration, but the availability depends on the system's hardware and environment compatibility.
How To
Download and install container
$ wget https://iedgeblob.blob.core.windows.net/iedge-public/robotic_suite_extention_container/openvino_object_detection-ros2-humble-1.0.0-Ubuntu_x86.run
$ chmod +x openvino_object_detection-ros2-humble-1.0.0-Ubuntu_x86.run
$ sudo ./openvino_object_detection-ros2-humble-1.0.0-Ubuntu_x86.run
Modify config file
- Openvino config file
This file can be used to configure the input source, model, output, etc. For detailed configuration instructions, please refer to the ros2_openvino_toolkit GitHub.
$ vim /usr/local/Advantech/ros/container/ros-extension/openvino_object_detection-ros2-humble/share/pipeline_object.yaml
- Openvino launch file
This file can be used to configure how to launch openvino ros2 node. For detailed configuration instructions, please refer to the ros2_openvino_toolkit GitHub.
$ vim /usr/local/Advantech/ros/container/ros-extension/openvino_object_detection-ros2-humble/share/pipeline_object.launch.py
Start docker container
Step1: Launch the docker container of openvino_object_detection-ros2-humble
$ cd /usr/local/Advantech/ros/container/ros-extension/openvino_object_detection-ros2-humble
$ ./launch.sh
Step2: Launch rviz2 in util-ros2-humble container
$ cd /usr/local/Advantech/ros/container/docker
$ ./launch.sh util-ros2-humble
$ docker exec -it util-ros2-humble bash
$ rviz2
Quick start script
A quickstart script for launch OpenVINO object detection and RViz2. Users can customize this script for their own projects.
$ cd /usr/local/Advantech/ros/container/docker/user-quick-scripts
$ ./openvino-object-detection_rviz2.sh