ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

camera 1394 uses wrong video mode

asked 2015-06-17 07:26:31 -0600

Team_TAPS gravatar image

We are using a camera134 with a .yaml file in which we set the video_mode parameter to 640x480_yuv422. calling "rosparam get /camera1394/video_mode" returns this value so we are certain that it is read from the .yaml file correctly. But the image we get seems to be in the wrong format, since "rostopic echo /camera/image_raw/encoding" returns rgb8 as the format value. Any ideas on where there might be something wrong?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-06-19 19:13:27 -0600

joq gravatar image

updated 2015-06-22 17:23:06 -0600

The driver converts many different camera-specific encodings to the common-used RGB8 for use in the ROS image pipeline.

That simplifies image processing of data from many different devices.

All supported ROS Image message encodings are defined in the sensor_msgs/image_encodings.h header.

EDIT: Since YUV422 is not a supported ROS Image format, there is no way for a ROS driver to produce Image messages in that format.

If you want to process the YUV422 image directly, you'll need to write your own program and not use ROS Image messages. If you decide to do that, I recommend the excellent libdc1394 for accessing the camera hardware.

edit flag offensive delete link more


@joq: How do we get and yuv422 encoded image?

We don't want to have an RGB8 encoded image, which means that the conversion is absolutely unnecessary!

Stopfer gravatar image Stopfer  ( 2015-06-20 03:02:18 -0600 )edit

@joq: Good to know. It absolutely wasn't clear for us, that ROS actually does not support to transmit YUV422 encoded images.

We already have a software which is using libdc1394. Our initial motivation to use ROS was to save the effort for adapting our software in case of an update in the libdc1394

Stopfer gravatar image Stopfer  ( 2015-06-23 15:58:40 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2015-06-17 07:26:31 -0600

Seen: 156 times

Last updated: Jun 22 '15