Ask Your Question

rtabmap map data (get_map)

asked 2016-03-11 16:07:21 -0500

Randa gravatar image

updated 2016-03-11 16:08:23 -0500


I have problem in loading the generated map using RTAB map, I already used rtabmap/get_map service but I don't know how to proceed and export the ply mesh using the command line or rviz. I want to do that using the command line since rtabmapviz crashes when I load the cloud and then export the mesh since my map is really too big.

when I call get_map service in command line, I get a lot of information displayed (I loaded them to a file), snap shots of this information is available in the following link : images link

could this information be used to generate a mesh file (.ply), or is there another way other than rtabmapviz to generate a mesh file ??

Note: I use ubuntu 14.04, ros indigo and I preformed the mapping using rtabmap-ros package and writing a launch file to setup rtab to my robot.


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-03-13 18:09:16 -0500

matlabbe gravatar image


The rtabmap_ros/GetMap service returns map data as a graph, not a point cloud. You can however subscribe to /rtabmap/cloud_map topic (which is a sensor_msgs/PointCloud2) to get the point cloud. With pcl_ros, you can save to PCD format (and convert to PLY):

 rosrun pcl_ros pointcloud_to_pcd input:=/rtabmap/cloud_map
 pcl_pcd2ply input.pcd output.ply

If you connect after mapping, call the service rtabmap_ros/PublishMap so that rtabmap will regenerate the map's cloud and send it back on the cloud_map topic. Parameters for cloud generation by rtabmap can be found on the ROS wiki with prefix cloud_ (e.g., cloud_voxel_size).

Note that in rtabmapviz you can decrease the resolution of the point clouds (increase voxel size) to save memory when exporting.


edit flag offensive delete link more


Thanks for your suggestion, I already tried to subscribe to cloud_map and publish the cloud but nothing happened.. as if the cloud_map is empty although I can see the reconstructed map. maybe because the map is so big, I'll try to decrease the resolution and increase voxel size.

Randa gravatar image Randa  ( 2016-03-20 07:55:27 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-03-11 16:07:21 -0500

Seen: 1,378 times

Last updated: Mar 13 '16