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

Revision history [back]

That is indeed possible. What you need to do is define a new node type and a new octree type, as the nodes just store data and the tree handles the data manipulation. OcTree stores just occupancy but you can easily derive from OccupancyOcTreeBase with your own node type as template parameter if you want to add additional properties to the node. Note that this will not only affect leafs but also inner nodes of the tree (as all nodes are identical).

As examples to get started, there is an OcTreeStamped implementation which stores timestamps, and in the OctoMap trunk there is a ColorOcTree which stores color (not yet released, thus not yet in the ROS octomap).