Repository Summary
| Description | ros2 package for use with ip camera |
| Checkout URI | https://github.com/surfertas/ros2_ipcamera.git |
| VCS Type | git |
| VCS Version | master |
| Last Updated | 2020-09-17 |
| Dev Status | UNMAINTAINED |
| CI status | No Continuous Integration |
| Released | UNRELEASED |
| Tags | opencv ipcamera ros2 |
| Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Packages
| Name | Version |
|---|---|
| ros2_ipcamera | 0.0.1 |
README
ROS2 IP Camera Component ====
ROS2 component that publishes raw images taken from an IP camera.
Note: to cross-compile for ARM architecture see the related article.
Installation: ----
``` {.sourceCode .bash} git clone https://github.com/surfertas/ros2_ipcamera.git colcon build –symlink-install . install/setup.bash
Docker:
``` {.sourceCode .bash}
git clone https://github.com/surfertas/ros2_ipcamera.git
cd ros2_ipcamera
sudo docker build -t ros2_ipcamera/latest .
Usage: ----
- Update
rtsp_uriparameter found in/config/ipcamera.yamlwith the appropriate rtsp uri to your IP camera. - Set the width and height to match the resolution of the IP camera. The node does not resize the image, but only sets the capture.
- Generate a camera_info.yaml file and place in
/config.
``` {.sourceCode .bash} ros2 run ros2_ipcamera composition
Alternatively use the launch file
ros2 launch ros2_ipcamera ipcamera.launch.py
Docker:
``` {.sourceCode .bash}
# Update rtsp_uri in the yaml file.
sudo docker run -it ros2_ipcamera/latest bash
vi src/ros2_ipcamera/config/ipcamera.yaml
source ./install/setup.bash
ros2 launch ros2_ipcamera ipcamera.launch.py
Topics:
/ipcamera/image_raw - topic for raw image data
/ipcamera/camera_info - topic for camera info
References: ----1. https://github.com/ros2/demos/blob/master/image_tools/src/cam2image.cpp
https://github.com/klintan/ros2_usb_camera/blob/master/src/usb_camera_driver.cpp
- https://github.com/ros-perception/image_common/wiki/ROS2-Migration
- https://github.com/ros2/demos/tree/master/composition 6.
https://github.com/christianrauch/raspicam2_node/blob/master/src/RasPiCamPublisherNode.cpp