Convert occupancy grid to double matrix
map— Map representation
Map representation, specified as a
occupancyMap object. This object
represents the environment of the vehicle. The object contains a matrix grid
with values representing the probability of the occupancy of that cell.
Values close to 1 represent a high probability that the cell contains an
obstacle. Values close to 0 represent a high probability that the cell is
not occupied and obstacle free.
mat— Occupancy grid values
Occupancy grid values, returned as an
h-by-w matrix, where
h and w are defined by the two
elements of the
GridSize property of the occupancy grid