Fawkes API
Fawkes Development Version
|
Read RCSoft map graphs. More...
#include <>>
Public Member Functions | |
RCSoftMapGraph (std::string filename) | |
Constructor. More... | |
~RCSoftMapGraph () | |
Destructor. More... | |
std::string | graph_name () |
Get graph name. More... | |
std::vector< fawkes::RCSoftMapNode > | nodes () |
Get all parsed nodes. More... | |
fawkes::RCSoftMapNode | node (std::string name_or_alias) |
Get node with given name or alias. More... | |
fawkes::RCSoftMapNode | root_node () |
Get root node. More... | |
fawkes::RCSoftMapNode | closest_node (float pos_x, float pos_y, std::string property) |
Find node closest to a specified position. More... | |
std::vector< fawkes::RCSoftMapNode > | search_nodes (std::string property) |
Search nodes for specific property. More... | |
Read RCSoft map graphs.
This class can be used to read and search map graphs of our old software framework RCSoft.
Definition at line 41 of file rcsoft_map_graph.h.
fawkes::RCSoftMapGraph::RCSoftMapGraph | ( | std::string | filename | ) |
Constructor.
filename | path to the file to read |
Definition at line 50 of file rcsoft_map_graph.cpp.
fawkes::RCSoftMapGraph::~RCSoftMapGraph | ( | ) |
Destructor.
Definition at line 66 of file rcsoft_map_graph.cpp.
fawkes::RCSoftMapNode fawkes::RCSoftMapGraph::closest_node | ( | float | pos_x, |
float | pos_y, | ||
std::string | property | ||
) |
Find node closest to a specified position.
pos_x | X world coordinate of close point |
pos_y | Y world coordinate of close point |
property | an optional property that nodes must have to be considered |
Definition at line 256 of file rcsoft_map_graph.cpp.
std::string fawkes::RCSoftMapGraph::graph_name | ( | ) |
RCSoftMapNode fawkes::RCSoftMapGraph::node | ( | std::string | name_or_alias | ) |
Get node with given name or alias.
name_or_alias | name or alias to search for |
Definition at line 212 of file rcsoft_map_graph.cpp.
std::vector< fawkes::RCSoftMapNode > fawkes::RCSoftMapGraph::nodes | ( | ) |
fawkes::RCSoftMapNode fawkes::RCSoftMapGraph::root_node | ( | ) |
std::vector< fawkes::RCSoftMapNode > fawkes::RCSoftMapGraph::search_nodes | ( | std::string | property | ) |
Search nodes for specific property.
Searches all nodes and returns the ones which have the specified property.
property | property to search for |
Definition at line 230 of file rcsoft_map_graph.cpp.