Directed Graph 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 Directed Graph Map VIs to create and control a map, implemented as a directed graph, through which a mobile robot can navigate.
Directed graph maps are useful for representing large robot environments that are not completely defined because you must define only known points, or nodes, in the map rather than the entire map.
![]() | 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 |
|---|---|
| Add Node | Adds a unique point, or node, to a map at the coordinates you specify. |
| Close Directed Graph Map | Closes an open reference to a directed graph map object. |
| Create Directed Graph Map | Generates a map of the robot environment that consists of irregularly spaced points, or nodes. |
| Enqueue Change to Edge Cost | Requests that LabVIEW set the cost of traversing the area of the directed graph map between start node and end node to the value you specify. |
| Get All Nodes | Returns the names and coordinates of all nodes defined in a map. |
| Get Edge Cost | Returns the cost of traversing the edge, or area, of the directed graph map between start node and end node. |
| Get Node | Returns the coordinates of a map node in map reference in. You can use this VI to verify that a particular node exists or to return node coordinates you can plot. |
| Get Node Reference | Returns a reference to the map node you specify. |
| Get Nodes in Path | Returns the names and coordinates of the nodes along a path through a directed graph map. |
Example
Refer to the Astar on Voronoi.lvproj in the labview\examples\robotics\Path Planning\Astar\Astar on Voronoi Graph directory for an example of using the Directed Graph Map VIs.
