ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

What to publish from a new camera driver

asked 2011-11-15 16:03:54 -0600

noonv gravatar image

updated 2011-11-16 02:32:13 -0600

joq gravatar image

Hi! im want to write camera driver for ROS. and got some question: ive read page about ROS camera drivers and did not understand - what type of image have to publish driver: as is image or undistored image (if the camera/camera_info was given)?

edit retag flag offensive close merge delete


It's not clear what you want to know. Are you asking what _you_ need to publish if you write a new camera driver? Are you asking what existing drivers publish?
Mac gravatar image Mac  ( 2011-11-15 17:10:48 -0600 )edit
thanks! yes - im want to write camera driver for ROS (update question)
noonv gravatar image noonv  ( 2011-11-15 17:15:55 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2011-11-15 17:19:03 -0600

Mac gravatar image

Based on the camera drivers wiki page and the first few lines of the image pipeline wiki page, you should publish raw (distorted) images, or the closest thing your camera's API can provide. A user would almost certainly pass these to various parts of image_pipeline to get undistorted, debayered, etc. images for their particular application.

edit flag offensive delete link more


i see. Thanks!
noonv gravatar image noonv  ( 2011-11-15 17:21:42 -0600 )edit

answered 2011-11-16 02:31:27 -0600

joq gravatar image

In addition to what @Mac said, camera drivers should publish CameraInfo messages. The best way to do that is using the camera_info_manager and image_transport packages.

The ROS drivers SIG has identified the need for a REP to fully answer this question. Meanwhile, there are other related questions on, most with the camera_drivers tag.

edit flag offensive delete link more


ok. Thanks!
noonv gravatar image noonv  ( 2011-11-17 04:56:52 -0600 )edit

Question Tools


Asked: 2011-11-15 16:03:54 -0600

Seen: 587 times

Last updated: Nov 16 '11