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

How do I use my own datasets? #26

Closed
yuhuabing opened this issue Dec 4, 2019 · 7 comments
Closed

How do I use my own datasets? #26

yuhuabing opened this issue Dec 4, 2019 · 7 comments
Labels
debugging Might be a bug, looking into the issue user-platform User has trouble running on their own platform.

Comments

@yuhuabing
Copy link

When I use my own datasets,the terminal appears following error:
[ERROR] [1575476563.620017963]: cv_bridge exception: [8UC1] is not a color format. but [mono8] is. The conversion does not make sense.
I don't know how to solve it,could you help me,thank you!

@goldbattle goldbattle added the debugging Might be a bug, looking into the issue label Dec 4, 2019
@goldbattle
Copy link
Member

goldbattle commented Dec 4, 2019

It looks like you are subscribing to a topic that is published as type 8UC1.
I believe this is normally if the image is a depth map.
You will need to either manually convert it, or change your driver to publish in a good format.
Post an example bag file if you are able to.

@NikolausDemmel
Copy link
Contributor

Yes, it is behaviour of cv_bridge to refuse converting converting the 8UC1 format to intensities (even if the underlying data type is the same as mono8), see for example ros-perception/vision_opencv#175.

So yeah, the source needs to be fixed, or possibly open_vins could be patched to do the conversion on the fly before calling cv_bridge, if you want that.

@yuhuabing
Copy link
Author

@goldbattle ,I just replace all "mono8" in source code with "TYPE_8UC1",it can work but always drift.

@goldbattle
Copy link
Member

goldbattle commented Dec 5, 2019 via email

@yuhuabing
Copy link
Author

@goldbattle could github upload bag file?After my modification,the system always fail to initialization.

@goldbattle
Copy link
Member

goldbattle commented Dec 5, 2019 via email

@goldbattle
Copy link
Member

Please reopen if you wish to troubleshoot any further, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debugging Might be a bug, looking into the issue user-platform User has trouble running on their own platform.
Projects
None yet
Development

No branches or pull requests

3 participants