validatorOccupancyMap
State validator based on 2-D grid map
Description
The validatorOccupancyMap object validates states and discretized
motions based on the value in a 2-D occupancy map. If the state location in the map is
occupied or unknown, validatorOccupancyMap considers the state invalid. Only free space
is considered valid.
Creation
Syntax
Description
creates
a 2-D occupancy map validator associated with an SE2 state space with default
settings.validator = validatorOccupancyMap
creates a validator in the given state space definition derived from validator = validatorOccupancyMap(stateSpace)nav.StateSpace.
specifies the validator = validatorOccupancyMap(stateSpace,Name,Value)Map or XYIndices properties
using Name,Value pair arguments.
Properties
Object Functions
copy | Create deep copy of state validator object |
isStateValid | Check if state is valid |
isMotionValid | Check if path between states is valid |
Examples
Extended Capabilities
Version History
Introduced in R2019b
![Figure contains an axes object. The axes object with title Occupancy Grid, xlabel X [meters], ylabel Y [meters] contains an object of type image.](../../examples/nav/win64/ValidatePathThroughOccupancyMapEnvironmentExample_01.png)
![Figure contains an axes object. The axes object with title Occupancy Grid, xlabel X [meters], ylabel Y [meters] contains 2 objects of type image, line.](../../examples/nav/win64/ValidatePathThroughOccupancyMapEnvironmentExample_02.png)
![Figure contains an axes object. The axes object with title Occupancy Grid, xlabel X [meters], ylabel Y [meters] contains 3 objects of type image, line. One or more of the lines displays its values using only markers](../../examples/nav/win64/ValidatePathThroughOccupancyMapEnvironmentExample_03.png)