Am 06.08.2015 um 15:42 schrieb Tiago:
> Hello,
>
> I found other doubt in the messages octomap_binary and octomap_full.
> Both messages are of type octomap_msgs/Octomap, so in the octomap_full
> where is write the probabilities if both uses the same data struct
> (
http://docs.ros.org/api/octomap_msgs/html/msg/Octomap.html) .
Yes, the same data struct is used for both messages. It's basically just
header information and a binary stream 'data', in which all kinds of
octrees could be stored. The flag 'binary' denotes what is stored inside
(binary or full occupancy).
Simply use the conversion functions from conversions.h
(
http://docs.ros.org/jade/api/octomap_msgs/html/conversions_8h.html) to
correctly write either full probabilities or binary information. In both
cases the binary data stream of the Octomap msg will be used.
Cheers,
Armin