Class GraphLoader
Defined in File graph_loader.hpp
Class Documentation
An action server to load graph files into the graph object for search and processing.
Public Functions
A constructor for nav2_route::GraphLoader.
- Parameters:
options – Additional options to control creation of the node.
A destructor for nav2_route::GraphLoader.
Loads a graph object with file information from a filepath.
- Parameters:
graph – Graph to populate
idx_map – A map translating nodeid’s to graph idxs for use in graph modification services and idx-based route planning requests. This is much faster than using a map the full graph data structure.
filepath – The filepath to the graph data
graph_file_loader_id – The id of the GraphFileLoader
- Returns:
bool If successful
Loads a graph object with file information from ROS parameter, if provided.
- Parameters:
graph – Graph to populate
idx_map – A map translating nodeid’s to graph idxs for use in graph modification services and idx-based route planning requests. This is much faster than using a map the full graph data structure.
graph_file_loader_id – The id of the GraphFileLoader
- Returns:
bool If successful or none provided
Transform the coordinates in the graph to the route frame.
- Parameters:
[in/out] – graph The graph to be transformed
- Returns:
True if transformation was successful
Protected Attributes