error when using rtabmap + rs_rgbd.launch filters:=colorizer
I am using rtabmap with Intel Realsense D435 camera.
I was running rs_rgbd.launch
from realsense2_camera package and it was working ok.
Now I am trying to run rs_rgbd.launch
with flag filters:=colorizer
.
And at the end of rtabmap launching I see error:
terminate called after throwing an instance of 'cv_bridge::Exception'
what(): Image is wrongly formed: height * step != size or 480 * 1280 != 921600
What can I do? Can I use rs_rgbd.launch
with that flag filters:=colorizer
?
please don't post screenshots of terminals. Posting screenshots goes against the support guidelines.
It's all text. So copy-paste the contents of the console into your question, then format it using the Preformatted Text button (the one with
101010
on it).I'll close your question for now. Fix the screenshot by editing your question (use the
edit
button/link for that) and then we can re-open it.Based on the
cv_bridge
exception, the image is malformed. Thestep_size
needs to be 720, not 480. Check where that 480 is set inrealsense_camera
.okay.. i dont have that terminal though, just deleted it
I've re-opened.
wouldn't retrying what you were doing before result in the same error?
I cant find any
step_size
inrealsense2_camera
launch filesTry adding some logs just before the image is published in realsense node, and see if
height * step != size
condition works.