validatorOccupancyMap
2 次元グリッド マップに基づいた状態バリデーター
説明
validatorOccupancyMap オブジェクトは、2 次元占有マップ内の値に基づいて、状態および離散化された運動を検証します。マップ内の状態の位置が占有されているか不明な場合、validatorOccupancyMap は状態を無効と見なします。自由空間のみが有効と見なされます。
作成
構文
説明
は、SE2 状態空間と関連付けられている 2 次元占有マップ バリデーターを既定の設定で作成します。validator = validatorOccupancyMap
は、validator = validatorOccupancyMap(stateSpace)nav.StateSpace から派生した特定の状態空間定義でバリデーターを作成します。
は、ペアの引数 validator = validatorOccupancyMap(stateSpace,Name,Value)Name,Value を使用して Map プロパティまたは XYIndices プロパティを指定します。
プロパティ
オブジェクト関数
copy | Create deep copy of state validator object |
isStateValid | Check if state is valid |
isMotionValid | Check if path between states is valid |
例
拡張機能
バージョン履歴
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)