Class GeoJsonGraphFileSaver
Defined in File geojson_graph_file_saver.hpp
Inheritance Relationships
Base Type
public nav2_route::GraphFileSaver
(Class GraphFileSaver)
Class Documentation
A GraphFileSaver plugin to save a geojson graph representation.
Public Types
Public Functions
Constructor.
Destructor.
Configure, but do not store the node.
- Parameters:
parent – pointer to user’s node
Saves the graph to a geojson file.
- Parameters:
graph – The graph to save to the geojson file
filepath – The path to save the graph to
- Returns:
True if successful
Protected Functions
Add nodes into the graph.
- Parameters:
graph – [out] The graph that will contain the new nodes
json_features – [in] Json array to add the nodes to
Add edges into the graph.
- Parameters:
graph – [out] The graph that will contain the new edges
json_edges – [in] Json array to add the edges to
Convert graph metadata to Json.
- Parameters:
metadata – Metadata from a node or edge in the graph
json_metadata – Json entry to store metadata in
Convert graph operation to Json.
- Parameters:
Operations – Operations information from the graph
json_operations – Json entry to store operation data in
Protected Attributes