Template Function octomap_msgs::binaryMapToMsg

Function Documentation

template<class OctomapT>
static inline bool octomap_msgs::binaryMapToMsg(const OctomapT &octomap, octomap_msgs::msg::Octomap &msg)

Serialization of an octree into binary data e.g. for messages and services. Compact binary version (stores only max-likelihood free or occupied, .bt file format). The data will be much smaller if you call octomap.toMaxLikelihood() and octomap.prune() before.

Returns:

success of serialization