empty 2D grid map

Posted by lamuco_lamuco on
URL: http://official-rtab-map-forum.206.s1.nabble.com/empty-2D-grid-map-tp4701.html

Hi matlabbe,

First of all, thanks for this great package. It's working pretty well out of the box, which for sure makes justice with all the hard work is behind. Congratulations!

Following your tutorials, and reading the forum, I've been able to interface rtabmap_ros with my robot. As I wanted to map and navigate around my office, which is quite big, I was following the multi-mapping session tutorials together with ROS so as to be able to generate the full map in several sessions (also saving the rosbags for offline postprocessing).It seems it is working fine, as the loop closure between sessions are found correctly, and I'm able to download the full 3D cloud to RVIZ.

The problem arises with the 2D grid map. When I open the database in localization mode (localization:=true), the 2D grid map is not shown in RVIZ. Even once the robot is localized, I can only see the graph, but not the 2D grid map. This behavior happens both with the real robot and the rosbag files.

Reading the forum, I have tried to disable the memory management to force the fully-spawn of the map, and also force the generation of the grid map setting CreateOccupancyGrid to true, but this changes didn't solve the issue.
I've also tried to save the grid map with the map_saver node, and then reload it once rtabmap is started, but the map is not aligned, and it disappears once rtabmap publish the map, which is empty.
Finally, I've also tried to generate the grid map from the rtabmap-databaseViewer, but the changes are not loaded once I start the database from rtabmap_ros.

Edit: just mention that my robot has both laser and kinect, and I'm building the map with the kinect to have a better estimation of obstacles such as tables and chairs.
Edit 2: with my current configuration, I'm able to display the whole octomap_gridmap, if that helps you to track the problem.

Rigth now, I'm stucked with this issue, and I don't know what I'm missing. If you can point me in the right direction I'll be very grateful.

Best regards

PS: I've attached an image which shows, for just one mapping session, how it looks in rtabmapviz and rviz. It can be seen the robot is localized, but the 2d grid map is not shown.