getOccupancy
Get occupancy value of locations
Syntax
Description
The getOccupancy function gets the occupancy values of
specified locations in the binary occupancy map.
returns a matrix of occupancy values by specifying the bottom-left corner location in
world coordinates and the matrix size in meters.occMatrix = getOccupancy(map,bottomLeft,matSize)
returns a matrix of occupancy values by specifying the bottom-left corner location in
local coordinates and the matrix size in meters.occMatrix = getOccupancy(map,bottomLeft,matSize,"local")
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2015a
![Figure contains an axes object. The axes object with title Binary Occupancy Grid, xlabel X [meters], ylabel Y [meters] contains an object of type image.](../../examples/nav_robotics/win64/InsertLaserScansIntoOccupancyMapExample_01.png)
![Figure contains an axes object. The axes object with title Binary Occupancy Grid, xlabel X [meters], ylabel Y [meters] contains an object of type image.](../../examples/nav_robotics/win64/GetOccupancyValuesAndCheckOccupancyStatusExample_01.png)