Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Depth Image Encoding 16UC1 => mono16 #77

Open
hwp opened this issue Dec 14, 2016 · 9 comments
Open

Depth Image Encoding 16UC1 => mono16 #77

hwp opened this issue Dec 14, 2016 · 9 comments

Comments

@hwp
Copy link

hwp commented Dec 14, 2016

The depth image encoding in naoqi_driver is 16UC1 rather than mono16. Is there any reason to do this?
As I understand the cv_bridge does not recognize 16UC1. From time to time, I get error messages like:

[ERROR]: Unable to convert 16UC1 image to bgr8
@suryaambrose
Copy link
Member

I don't think there is. Does it cause any problem for you ? If it does, would you mind trying to change 16UC1 to mono16 and see if it works fine ?
I know your error message can appear when an image_view node receives a 16UC1 image. Maybe other nodes can print that same message.

@hwp
Copy link
Author

hwp commented Dec 14, 2016

Indeed I was trying to use image_saver from image_view to convert images in rosbag to png files. and it has the error.
Once I changed 16UC1 to mono16 (by editing the rosbag file), it works.

@hwp
Copy link
Author

hwp commented Dec 14, 2016

And, there is also an issue when I try to rectify the depth image by image_proc. the error I get is:

[ERROR] [1481728189.791698687]: Raw image topic '/naoqi_driver_node/camera/depth/image_raw' has unsupported encoding '16UC1'

@nlyubova
Copy link
Member

nlyubova commented Apr 6, 2017

@hwp did you try to change the format in Naoqi Driver directly?

@JanhviK
Copy link

JanhviK commented Jun 18, 2018

@hwp can you tell which rosbag file has to be edited for making changes from 16UC1 to mono16?

@frederikscholz
Copy link

I am currently encountering the same problem, has there been a fix yet, or should I open up a new issue with more details?

@hwp
Copy link
Author

hwp commented Oct 10, 2018

@nlyubova no I did't do that. Although I think the naoqi driver should use the format suggested by REP 118. However, I don't know if changing the format will cause a lot of other problems.

@hwp
Copy link
Author

hwp commented Oct 10, 2018

@JanhviK I did the recording without changing naoqi_driver, and then I modified the rosbag that I recorded.

@hwp
Copy link
Author

hwp commented Oct 10, 2018

@frederikscholz I haven't used depth images for a while. I don't know if it has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants