"unknown encoding yuv422" rosbag record -a
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
Asked by Filipe Santos on 2013-04-11 03:09:38 UTC
Comments
can you try to subscribe to that image topic from an image_view for example?
Asked by Miquel Massot on 2013-04-12 03:12:39 UTC
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?
Asked by Filipe Santos on 2013-04-13 05:45:01 UTC
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?
Asked by Miquel Massot on 2013-04-14 21:45:13 UTC
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
Asked by Albatross on 2013-05-17 05:31:44 UTC