introlab / rtabmap

RTAB-Map library and standalone application
https://introlab.github.io/rtabmap
Other
2.61k stars 761 forks source link

Empty Gridmap and Octomap with recent integration of Gridmap #1238

Closed FlorianMehnert closed 3 months ago

FlorianMehnert commented 3 months ago

Hi there,

with the integration of grid_map_integration into the master #1180 neither Octomap or Gridmap generation work anymore for me anymore. Gridmap publishes Maps containing only Nan values and Octomap publishes empty maps.

Do you have any idea on why this could happen?

As a side effect RviZ is crashing with: catkin_ws/src/grid_map/grid_map_core/src/GridMap.cpp:45: void grid_map::GridMap::setGeometry(const Length&, double, const Position&): Assertionlength(0) > 0.0' failed.`

matlabbe commented 3 months ago

Just tried the latest rtabmap noetic binary releases 0.21.4 with this example:

roslaunch rtabmap_demos demo_stereo_outdoor.launch rviz:=true
rosbag play --clock stereo_outdoorA.bag

and I can get the three topics at the same time: image

I see grid_map is built from source, are you also using rtabmap from source?

FlorianMehnert commented 3 months ago

Yes I was using rtabmap from source. After 2 days of doing nothing everything works :sweat_smile: Maybe there was an issue with the OAK camera I am using or something else :)