-
Notifications
You must be signed in to change notification settings - Fork 161
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
Raw Image does not Load into Rviz. #77
Comments
Same problem here with |
I am also having this issue, hope to hear some kind of fix |
me too! any comment? |
Can confirm this is still a problem. |
I think I know the source of this problem.
What's going on in your case:
We faced this problem in our stereoscopic OpenCV scripts, and use a couple of approaches here:
UPD> More details in a PiCamera documentation here: https://picamera.readthedocs.io/en/release-1.13/recipes2.html#capturing-to-a-numpy-array Cite: |
Hi there,
When I enable the
enable_raw
flag to get the raw image, unfortunately the image cannot be loaded to Rviz. The reason is that the data being published into the/raspicam_node/image
topic is somehow corrupted. Here is an instance of the published raw image:header: seq: 1109 stamp: secs: 1555185561 nsecs: 712540212 frame_id: raspicam height: 308 width: 410 encoding: bgr8 is_bigendian: 0 step: 1230 data: <array type: uint8, length: 399360>
By looking at the published raw image above, we see that the stream size (length of the data:399360) does not match the calculated image size (3084103=378840). And that is why Rviz cannot visualise it.
If I use the image_transport package to uncompress the compressed image published into the
/raspicam_node/image/compressed
, then I get the following data type, and I can visualise it in Rviz.header: seq: 1246 stamp: secs: 1555185575 nsecs: 412069710 frame_id: raspicam height: 308 width: 410 encoding: bgr8 is_bigendian: 0 step: 1230 data: <array type: uint8, length: 378840>
I would appreciate any hint on how to fix this bug. Thank you
The text was updated successfully, but these errors were encountered: