error when using rtabmap + rs_rgbd.launch filters:=colorizer

asked 2020-01-12 23:04:06 -0600

june2473 gravatar image

updated 2020-01-14 01:58:45 -0600

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?

edit retag flag offensive close merge delete

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.

gvdhoorn gravatar imagegvdhoorn ( 2020-01-13 01:58:27 -0600 )edit
1

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.

matlabbe gravatar imagematlabbe ( 2020-01-13 09:58:34 -0600 )edit

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

june2473 gravatar imagejune2473 ( 2020-01-14 01:59:41 -0600 )edit

I've re-opened.

i dont have that terminal though

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

gvdhoorn gravatar imagegvdhoorn ( 2020-01-14 05:17:26 -0600 )edit

I cant find any step_size in realsense2_camera launch files

june2473 gravatar imagejune2473 ( 2020-01-20 06:59:05 -0600 )edit