Occupancy Grid Map VIs
- Updated2023-02-21
- 2 minute(s) read
Owning Palette: Path Planning VIs
Requires: Robotics Module. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.
Use the Occupancy Grid Map VIs to create and control an occupancy grid map through which a mobile robot can navigate. Occupancy grid maps are useful for representing robot environments in which you know the cost of traversing each point in the map.
In the Occupancy Grid Map VIs, (x, y) coordinates that define the locations of cells are relative to the origin of the map, which is the cell at the bottom-left corner of the map. Refer to the Details section in the Create Occupancy Grid Map VI topic for more information about how (x, y) coordinate pairs map to cells in occupancy grid maps.![]() | Note The VIs on this palette cannot execute at the same time. Enforce data dependency between these VIs to ensure they do not run simultaneously. |
| Palette Object | Description |
|---|---|
| Close Occupancy Grid Map | Closes an open reference to an occupancy grid map object. |
| Create Occupancy Grid Map | Generates a map in the form of a grid of variables, or cells, that describe the robot environment. |
| Enqueue Change to Cell Cost | Requests that LabVIEW update the cost of entering the cell in the occupancy grid map at the x- and y-coordinates you specify. |
| Get All Occupancy Grid Cells | Returns an array of the cells in an occupancy grid map. |
| Get Cell Cost | Returns the cost of entering the cell in the occupancy grid map at the x- and y-coordinates you specify. |
| Get Cell Reference | Returns a reference to the cell in the occupancy grid map at the position you specify. |
| Get Cells in Path | Returns the cell coordinates of the points along a path through an occupancy grid map. |
Examples
Refer to the following VIs for examples of using the Occupancy Grid Map VIs:
- labview\examples\robotics\Path Planning\ADstar\ADstar on Occupancy Grid\Anytime D Star on an Occupancy Grid.lvproj
- labview\examples\robotics\Path Planning\Astar\Astar on Occupancy Grid\Astar on Occupancy Grid.lvproj
