readOccupancyGrid
Read occupancy grid message
Syntax
Description
returns anmap
= readOccupancyGrid(msg
)occupancyMap
object by reading the data inside a ROS message,msg
, which must be a'nav_msgs/OccupancyGrid'
message. All message data values are converted to probabilities from 0 to 1. The unknown values (-1) in the message are set as 0.5 in the map.
Note
Themsg
input is an'nav_msgs/OccupancyGrid'
ROS message. For more info, seeOccupancyGrid
(ROS Toolbox).
Input Arguments
Output Arguments
Version History
See Also
Functions
rosReadBinaryOccupancyGrid
(ROS Toolbox)|rosReadOccupancyMap3D
(ROS Toolbox)|rosWriteBinaryOccupancyGrid
(ROS Toolbox)|rosWriteOccupancyGrid
(ROS Toolbox)