"unknown encoding yuv422" rosbag record -a [closed]

asked 2013-04-11 03:09:38 -0500

updated 2014-01-28 17:16:08 -0500

ngrennan gravatar image

Hello,

I am publishing an image in yuv422 format. When I make "rosbag record -a", I get "unknown encoding yuv422" on camera node. I can use other format, but for my work this is the best format.

how I correct this?

Regards, Filipe

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-12-12 01:19:36.362920

Comments

can you try to subscribe to that image topic from an image_view for example?

Miquel Massot gravatar image Miquel Massot  ( 2013-04-12 03:12:39 -0500 )edit

No I can't, but from image_proc the image is corrected and publish right. From there I can read using image_view. But I still getting other error, It says that the image should be published as 16bit or 32bit. This is a strange thing. Why it is impossible to use the yuv format or in low resolution?

Filipe Santos gravatar image Filipe Santos  ( 2013-04-13 05:45:01 -0500 )edit

I've got a firewire camera, and I can subscribe to raw image data without problem. So if you can't subscribe to image date maybe it's your driver or maybe a message type that it is not correct. Could you give more information of your software and hardware in your original question post?

Miquel Massot gravatar image Miquel Massot  ( 2013-04-14 21:45:13 -0500 )edit

I'm not sure if this will help lead to a solution, but I noticed in the source code that the type yuv422 is defined, but there are some functions that do not have a case for it, and throw the error you mentioned. http://www.ros.org/doc/fuerte/api/sensor_msgs/html/image__encodings_8h_source.html

Albatross gravatar image Albatross  ( 2013-05-17 05:31:44 -0500 )edit