Get Cell Cost VI
- Updated2023-02-21
- 3 minute(s) read
Get Cell Cost VI
Owning Palette: Occupancy Grid Map VIs
Requires: Robotics Module
Returns the cost of entering the cell in the occupancy grid map at the x- and y-coordinates you specify.

![]() |
map reference in is a reference to the map that represents the robot environment. Use the Create Occupancy Grid Map VI to generate this LabVIEW class object. |
![]() |
x specifies the x-coordinate of a cell in the occupancy grid map. |
![]() |
y specifies the y-coordinate of a cell in the occupancy grid map. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
map reference out is a reference to the map that represents the robot environment. You can wire this output to other Path Planning VIs. |
![]() |
cost returns the cost of traversing the area of the map you specify. |
![]() |
found? indicates whether the cell exists within the map. Valid cells are those whose coordinates fall within the array of occupancy grid cells you pass into the Create Occupancy Grid Map VI. If the cell is not found, LabVIEW does not return an error. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Get Cell Cost Details
![]() | Note 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. |
Examples
Refer to the following VIs for examples of using the Get Cell Cost VI:
- 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







