Code Monkey home page Code Monkey logo

usb_cam_hardware's Introduction

usb_cam_hardware

USB camera driver based on ros_control

Slides from ROS Japan UG #28 (in Japanese)

Nodelet: usb_cam_hardware/USBCamHardware

An USB camera driver which is almost compatible to usb_cam but based on ros_control. Major enhancements over usb_cam are;

  • impremented as a nodelet
  • supports h264 pixel format (1/10 network usage compared with mjpeg)
  • publishes raw packets from the camera (1/10 cpu usage and less latency compared with decoding mjpeg packets in the node)
  • accepts 3rd party controllers

Published topics

depends on controllers

Parameters

~video_device (string, default: "/dev/video0")

~image_width (int, default: 640)

~image_height (int, default: 480)

~pixel_format (string, default: "mjpeg")

  • Possible values are mjpeg, h264, rgb24, yuyv, uyvy

~framerate (int, default: 30)

Controllers

  • All topics and parameters are defined in each controller's namespace
  • See example launch files to find how to use controllers

CameraInfoController

publishes camera information syncronized to packets from the camera

Published topics

camera_info (sensor_msgs/CameraInfo)

Parameters

camera_frame_id (string, default: "head_camera")

camera_info_url (string, default: "")

camera_name (string, default: "head_camera")

PacketController

publishes raw packets from the camera as images

Published topics

image (sensor_msgs/Image)

Parameters

image_width (int, default: 640)

image_height (int, default: 480)

encoding (string, default: "bgr8")

  • value of Image::encoding

skip (int, default: 0)

  • number of packets skipped after publishment
  • useful to throttle network usage

CompressedPacketController

publishes raw packets from the camera as compressed images

Published topics

packet (sensor_msgs/CompressedImage)

Parameters

format (string, default: "jpeg")

  • value of CompressedImage::format

skip (int, default: 0)

  • number of packets skipped after publishment
  • useful to throttle network usage

MjpegController

decodes mjpeg-compressed packets and publishes decoded images

Published topics

image (sensor_msgs/Image)

H264Controller

decodes h264-compressed packets and publishes decoded images

Published topics

image (sensor_msgs/Image)

RGB24Controller

converts rgb-formatted packets to bgr images and publishes them

Published topics

image (sensor_msgs/Image)

Parameters

image_width (int, default: 640)

image_height (int, default: 480)

UYVYController

converts uyvy-formatted packets to bgr images and publishes them

Published topics

image (sensor_msgs/Image)

Parameters

image_width (int, default: 640)

image_height (int, default: 480)

YUYVController

converts yuyv-formatted packets to bgr images and publishes them

Published topics

image (sensor_msgs/Image)

Parameters

image_width (int, default: 640)

image_height (int, default: 480)

Related ROS packages

codec_image_transport

  • for subscriber-side decoding of h264 packets published by the CompressedPacketController

usb_cam_hardware's People

Contributors

yoshito-okada avatar

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.