ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

octomap to a 2d map

asked 2013-04-23 08:21:35 -0600

unknown gravatar image

from, it said "octomap_server loads a 3D map (as Octree-based OctoMap) and distributes it to other nodes in a compact binary format". so how can i convert those binary format to a real 2d pmg format map.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-04-23 10:59:56 -0600

fergs gravatar image

While not documented anywhere, I have an octo_to_2d utility in the map_tools package of my sandbox repository. This will take a COLOR octomap in .ot format, take a slice at a specified height, and publish an appropriate map. You can then use map_saver to save the map. The source code is pretty self documenting as far as parameters and topics.

edit flag offensive delete link more


The octomap_server should be able to do that out of the box (not sure about color octomaps).

dornhege gravatar image dornhege  ( 2013-04-25 06:45:03 -0600 )edit

answered 2013-04-23 08:39:49 -0600

dornhege gravatar image

The binary format of the octomap library is not an image format. It is just a compact representation of the 3D map (i.e. not a 2d map) and thus cannot just be converted to a pgm map.

edit flag offensive delete link more

Question Tools


Asked: 2013-04-23 08:21:35 -0600

Seen: 648 times

Last updated: Apr 23 '13