15 #ifndef NAV2_ROUTE__INTERFACES__GRAPH_FILE_LOADER_HPP_
16 #define NAV2_ROUTE__INTERFACES__GRAPH_FILE_LOADER_HPP_
22 #include "rclcpp/rclcpp.hpp"
23 #include "rclcpp_lifecycle/lifecycle_node.hpp"
24 #include "nav2_route/types.hpp"
36 using Ptr = std::shared_ptr<GraphFileLoader>;
53 const rclcpp_lifecycle::LifecycleNode::SharedPtr node) = 0;
66 GraphToIDMap & graph_to_id_map,
67 std::string filepath) = 0;
A plugin interface to parse a file into the graph.
virtual bool loadGraphFromFile(Graph &graph, GraphToIDMap &graph_to_id_map, std::string filepath)=0
Method to load the graph from the filepath.
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.