Main Content
rosReadBinaryOccupancyGrid
Syntax
Description
returns a map
= rosReadBinaryOccupancyGrid(msg
)binaryOccupancyGrid
object by reading the data inside a
ROS or ROS 2 message structure, 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.
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2021a