Difference between revisions of "Advantech Robotic Suite/Container/Openvino Object Detection ROS Container"
From ESS-WIKI
Line 6: | Line 6: | ||
=== Download container === | === Download container === | ||
− | |||
− | |||
− | |||
− | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | $ | + | $ wget |
− | |||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | <br> | ||
− | + | === 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 [https://github.com/intel/ros2_openvino_toolkit 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 |
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | * 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. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | $ | + | $ vim /usr/local/Advantech/ros/container/ros-extension/openvino_object_detection-ros2-humble/share/pipeline_object.launch.py |
− | |||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | <br> | ||
− | + | === Start docker container === | |
− | + | '''Step1: Launch the docker container of openvino_object_detection-ros2-humble''' | |
− | == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | $ | + | $ cd /usr/local/Advantech/ros/container/ros-extension/openvino_object_detection-ros2-humble |
+ | $ ./launch.sh | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | '''Step2: Launch rviz2 in [[Advantech Robotic Suite/Container/Utility ROS Container#Launch_RViz2|util-ros2-humble]] container''' | |
− | |||
− | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | $ docker exec -it | + | $ cd /usr/local/Advantech/ros/container/docker |
+ | $ ./launch.sh util-ros2-humble | ||
+ | $ docker exec -it util-ros2-humble bash | ||
+ | $ rviz2 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | [[File:ROS2 openvino object detection rviz.png|none|ROS2 openvino object detection rviz]] | |
− | + | |
Revision as of 08:59, 11 December 2024
Contents
Openvino Object Detection ROS Container
A pre-configured container that integrates OpenVINO toolkit with ROS for efficient and accurate object detection in robotic applications.
How To
Download container
$ wget
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