Advantech Robotic Suite/Container/usbcam ROS Container
From ESS-WIKI
Contents
usbcam ROS Container
This container includes a pre-configured ROS node for USB cameras, allowing easy integration of video streams into ROS2 as messages.
How To
Download and install container
$ wget https://iedgeblob.blob.core.windows.net/iedge-public/robotic_suite_extention_container/usbcam-ros2-humble-1.0.0-Ubuntu_x86.run
$ sudo ./usbcam-ros2-humble-1.0.0-Ubuntu_x86.run
Modify config file
- usbcam config file
This file can be used to configure the camera's parameter. For detailed configuration instructions, please refer to the usb_cam GitHub.
$ vim /usr/local/Advantech/ros/container/ros-extension/usbcam-ros2-humble/share/params_1.yaml
- usbcam launch file
This file can be used to configure how to launch usbcam ros2 node. For detailed configuration instructions, please refer to the usb_cam GitHub.
$ vim /usr/local/Advantech/ros/container/ros-extension/usbcam-ros2-humble/share/camera.launch.py
Start docker container
Step1: Launch the docker container of usbcam-ros2-humble
$ cd /usr/local/Advantech/ros/container/ros-extension/usbcam-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 usbcam node and RViz2. Users can customize this script for their own projects.
$ cd /usr/local/Advantech/ros/container/docker/user-quick-scripts
$ ./usbcam_rviz2.sh