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

Revision history [back]

Do not use the MapNode classes, unless you know what you want to do with them.

To read octree files, either use AbstractOcTree::read(filename) as factory or the contstructor you already use.

To write, simply call tree->write("octree.ot") or tree->writeBinary("binaryTree.bt"). Check the online documentation for further details.

As a side note, there is some unfinished code for your purpose in the file "src/edit_octree.cpp" in OctoMap that you can use as a basis. If you have patches to contribute back (see the octomap trac) then I will gladly include them!