主要内容

readOccupancyMap3D

(To be removed) Read 3-D map from Octomap ROS message

Since R2021a

readOccupancyMap3D will be removed in a future release. Use rosReadOccupancyMap3D (ROS Toolbox) instead. For more information, see ROS Message Structure Functions.

Description

map = readOccupancyMap3D(msg) reads the data inside a ROS 'octomap_msgs/Octomap' message to return an occupancyMap3D object. All message data values are converted to probabilities from 0 to 1.

Input Arguments

collapse all

Octomap ROS message, specified as a structure of message type 'octomap_msgs/Octomap'. Get this message by subscribing to an 'octomap_msgs/Octomap' topic using rossubscriber (ROS Toolbox) on a live ROS network or by creating your own message using rosmessage (ROS Toolbox).

Output Arguments

collapse all

3-D occupancy map, returned as an occupancyMap3D object handle.

Version History

Introduced in R2021a

collapse all

See Also

| (ROS Toolbox) | (ROS Toolbox)