Code Monkey home page Code Monkey logo

ros2_ipcamera's Introduction

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:

git clone https://github.com/surfertas/ros2_ipcamera.git
colcon build --symlink-install
. install/setup.bash

Docker:

git clone https://github.com/surfertas/ros2_ipcamera.git
cd ros2_ipcamera
sudo docker build -t ros2_ipcamera/latest .

Usage:

  1. Update rtsp_uri parameter found in /config/ipcamera.yaml with the appropriate rtsp uri to your IP camera.
  2. 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.
  3. Generate a camera_info.yaml file and place in /config.
ros2 run ros2_ipcamera composition

# Alternatively use the launch file
ros2 launch ros2_ipcamera ipcamera.launch.py

Docker:

# 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
  2. http://surfertas.github.io/ros2/2019/08/17/ros2-qos.html
  3. https://github.com/klintan/ros2_usb_camera/blob/master/src/usb_camera_driver.cpp
  4. https://github.com/ros-perception/image_common/wiki/ROS2-Migration
  5. https://github.com/ros2/demos/tree/master/composition
  6. https://github.com/christianrauch/raspicam2_node/blob/master/src/RasPiCamPublisherNode.cpp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.