Robotics StackExchange | Archived questions

how to save octomap to a 2D occupancyGrid map?

Hi, is there some tools to save a octomap(octomapmsgs/Octomap) to a 2D occupancyGrid map(navmsgs/OccupancyGrid), i see the octomap_saver can create a mapfile.ot | mapfile.bt file.

Asked by jxl on 2019-08-22 07:05:41 UTC

Comments

octomap_server publish nav_msgs/OccupancyGrid. Link.

Downprojected 2D occupancy map from the 3D map. Be sure to remap this topic if you have another 2D map server running. New / changed in octomap_mapping 0.4.4: The topic is now projected_map by default to avoid collisions with static 2D maps.

Why not record this topic in bagfile by

 rosbag record /topicname

Asked by usamamaq on 2019-08-22 17:33:34 UTC

Answers

Hi,

The octomap_server automatically publishes a 2D projection of the octomap as a nav_msgs/OccupancyGrid message. Therefore, you can use map_saver to save the 2D projection map just like any 2D SLAM algorithm.

Asked by PapaG on 2019-08-22 18:26:02 UTC

Comments