15 #ifndef NAV2_ROUTE__INTERFACES__GRAPH_FILE_SAVER_HPP_
16 #define NAV2_ROUTE__INTERFACES__GRAPH_FILE_SAVER_HPP_
22 #include "rclcpp/rclcpp.hpp"
23 #include "nav2_ros_common/lifecycle_node.hpp"
24 #include "nav2_route/types.hpp"
36 using Ptr = std::shared_ptr<GraphFileSaver>;
53 const nav2::LifecycleNode::SharedPtr node) = 0;
63 std::string filepath) = 0;
A plugin interface to parse a file into the graph.
virtual void configure(const nav2::LifecycleNode::SharedPtr node)=0
Configure the graph file saver, but do not store the node.
GraphFileSaver()=default
Constructor.
virtual bool saveGraphToFile(Graph &graph, std::string filepath)=0
Method to save the graph to the filepath.
virtual ~GraphFileSaver()=default
Virtual destructor.