23 #include <navgraph/navgraph_node.h> 124 std::map<std::string, std::string>::const_iterator p;
125 if ((p = properties_.find(prop)) != properties_.end()) {
181 properties_[
property] = value ?
"true" :
"false";
void set_properties(const std::map< std::string, std::string > &properties)
Overwrite properties with given ones.
Fawkes library namespace.
void set_unconnected(bool unconnected)
Set unconnected state of the node.
void set_y(float y)
Set Y position.
std::string property(const std::string &prop) const
Get specified property as string.
const std::map< std::string, std::string > & properties() const
Get all properties.
void set_property(const std::string &property, const std::string &value)
Set property.
const std::string & name() const
Get name of node.
float y() const
Get Y coordinate in global frame.
NavGraphNode()
Constructor for invalid node.
void set_x(float x)
Set X position.
void set_name(const std::string &name)
Set name of node.
bool unconnected() const
Check if this node shall be unconnected.
void set_reachable_nodes(std::vector< std::string > reachable_nodes)
Set directly reachable nodes of node.
float x() const
Get X coordinate in global frame.
const std::vector< std::string > & reachable_nodes() const
Get reachable nodes.
static std::string to_string(unsigned int i)
Convert unsigned int value to a string.