|
Nav2 Navigation Stack - humble
humble
ROS 2 Navigation Stack
|
A plugin interface to parse a file into the graph. More...
#include <nav2_route/include/nav2_route/interfaces/graph_file_loader.hpp>

Public Types | |
| using | Ptr = std::shared_ptr< GraphFileLoader > |
Public Member Functions | |
| GraphFileLoader ()=default | |
| Constructor. | |
| virtual | ~GraphFileLoader ()=default |
| Virtual destructor. | |
| virtual void | configure (const rclcpp_lifecycle::LifecycleNode::SharedPtr node)=0 |
| Configure the graph file loader, but do not store the node. More... | |
| virtual bool | loadGraphFromFile (Graph &graph, GraphToIDMap &graph_to_id_map, std::string filepath)=0 |
| Method to load the graph from the filepath. More... | |
A plugin interface to parse a file into the graph.
Definition at line 33 of file graph_file_loader.hpp.
|
pure virtual |
Configure the graph file loader, but do not store the node.
| parent | pointer to user's node |
Implemented in nav2_route::GeoJsonGraphFileLoader.
|
pure virtual |
Method to load the graph from the filepath.
| graph | The graph to populate |
| filepath | The file to parse |
| 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. |
Implemented in nav2_route::GeoJsonGraphFileLoader.