readBinaryOccupancyGrid
(To be removed) Read binary occupancy grid
readBinaryOccupancyGrid will be removed in a future release. Use rosReadBinaryOccupancyGrid (ROS Toolbox) instead. For more information, see ROS Message Structure Functions.
Syntax
Description
returns a map = readBinaryOccupancyGrid(msg)binaryOccupancyMap object by reading the data inside
a ROS message, msg, which must be a
'nav_msgs/OccupancyGrid' message. All message data values
greater than or equal to the occupancy threshold are set to occupied,
1, in the map. All other values, including unknown values
(-1) are set to unoccupied, 0, in the
map.
Note
The msg input is an
'nav_msgs/OccupancyGrid' ROS message. For more info,
see OccupancyGrid (ROS Toolbox).
Input Arguments
Output Arguments
Version History
Introduced in R2015aSee Also
Objects
OccupancyGrid(ROS Toolbox) |occupancyMap(Navigation Toolbox) |binaryOccupancyMap
Functions
rosReadOccupancyGrid(ROS Toolbox) |rosWriteBinaryOccupancyGrid(ROS Toolbox) |rosWriteOccupancyGrid(ROS Toolbox)