Robotics StackExchange | Archived questions

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?

Asked by june2473 on 2020-01-13 00:04:06 UTC

Comments

What can I do?

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.

Asked by gvdhoorn on 2020-01-13 02:58:27 UTC

Based on the cv_bridge exception, the image is malformed. The step_size needs to be 720, not 480. Check where that 480 is set in realsense_camera.

Asked by matlabbe on 2020-01-13 10:58:34 UTC

okay.. i dont have that terminal though, just deleted it

Asked by june2473 on 2020-01-14 02:59:41 UTC

I've re-opened.

i dont have that terminal though

wouldn't retrying what you were doing before result in the same error?

Asked by gvdhoorn on 2020-01-14 06:17:26 UTC

I cant find any step_size in realsense2_camera launch files

Asked by june2473 on 2020-01-20 07:59:05 UTC

Try adding some logs just before the image is published in realsense node, and see if height * step != size condition works.

Asked by matlabbe on 2020-01-31 14:47:08 UTC

Answers