checkOccupancy
Check if locations are free or occupied
Syntax
Description
The checkOccupancy
function returns the occupancy statuses
of specified locations in the binary occupancy map.
returns a matrix that contains the occupancy status of each location.
Obstacle-free cells return occStatusMatrix
= checkOccupancy(map
)0
, occupied cells return
1
. Unknown locations, including outside the map, return
-1
.
returns a matrix of occupancy statuses by specifying the bottom-left corner
location in world coordinates and the matrix size in meters.occStatusMatrix
= checkOccupancy(map
,bottomLeft
,matSize
)
returns a matrix of occupancy statuses by specifying the bottom-left corner
location in local coordinates and the matrix size in meters.occStatusMatrix
= checkOccupancy(map
,bottomLeft
,matSize
,"local")
returns a matrix of occupancy statuses by specifying the top-left cell index in
grid coordinates and the matrix size.occStatusMatrix
= checkOccupancy(map
,topLeft
,matSize
,"grid")
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2019b
See Also
binaryOccupancyMap
| getOccupancy
| occupancyMap
(Navigation Toolbox)