-
Notifications
You must be signed in to change notification settings - Fork 45
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
Compressed Depth Image Error #21
Comments
@dave992 I assume you are setting up the compressed_depth_image_transport node, since this is not something that the Zivid driver sets up. It complains about "input format is: rgb8", which is the format of the color image published as a part of 3d capture. The messages from the Zivid driver are only generated when there are active subscribers to them, which explain that they are published when I am not familiar with "Compressed Depth Image Transport" but it looks that it tried to compress the color image from the Zivid driver, which does not work because of wrong format. Additionally "Compressed Image Transport" complains about wrong format as well ("input format is: 32FC1", which is actually the depth image format). Maybe color and depth images have been mixed up? Edit: It could be that this happens via image_transport::CameraPublisher which we do use. Will need to look more into it. |
Hi @dave992 Can you explain a bit more about setup and usage of image_transport compression? Are you sure that the in/out topics are correctly connected? From the error above it looks like depth and color images topics have been swapped somewhere. |
I am not creating a For my use case, I am not really interested in the compressed dept images which is why I do not subscribe to it in my application. In this case, I used rosbag to save all ROS messages (including the unused ones), allowing me to simulate the hardware setup. This allows me to also inspect currently unused messages at a later time if required. The resulting bag file was still useable, although I did not inspect the To reproduce this error:
Note: This is from memory, I will have to check it later today when I am at work. Edit: @apartridge I've checked the reproduction steps, these indeed result in the error shown in my original post. You might need to enable at least one frame before you are able to trigger a capture. |
Thanks @dave992. Myself and an colleague have tested your steps now and we don't see the error here. We are testing on ros-noetic currently, so it could be a difference in distribution. Are you using kinetic or melodic? We found this similar issue IntelRealSense/realsense-ros#315. According to this comment it may have been fixed in melodic, so it could be worth checking that. If you are using melodic, can you send us the output from |
An option is also exlude the topics related to compressed_depth_image_transport when recording using |
@dave992, can you confiirm with version of ROS you are using? See #21 (comment), which indicates this issue might be fixed in Melodic. |
I have been using the Zivid camera in my project but ran into the following error when I use
rosbag record -a
to record all topic messages:The error follows after calling the capture service of the Zivid camera node. The error is not present when I do not run
rosbag
(and therefore am not subscribed to all available Zivid topics).When I am not recording, my project only subscribes to the
/zivid_camera/points
and/zivid_camera/depth/image_raw
topics.The text was updated successfully, but these errors were encountered: