Contains functions which allow you to manipulate ROS names. More...
Functions | |
ROSCPP_DECL std::string | append (const std::string &left, const std::string &right) |
Append one name to another. More... | |
ROSCPP_DECL std::string | clean (const std::string &name) |
Cleans a graph resource name: removes double slashes, trailing slash. More... | |
ROSCPP_DECL const M_string & | getRemappings () |
ROSCPP_DECL const M_string & | getUnresolvedRemappings () |
void | init (const M_string &remappings) |
bool | isValidCharInName (char c) |
ROSCPP_DECL std::string | parentNamespace (const std::string &name) |
Get the parent namespace of a name. More... | |
ROSCPP_DECL std::string | remap (const std::string &name) |
Apply remappings to a name. More... | |
ROSCPP_DECL std::string | resolve (const std::string &name, bool remap=true) |
Resolve a graph resource name into a fully qualified graph resource name. More... | |
ROSCPP_DECL std::string | resolve (const std::string &ns, const std::string &name, bool remap=true) |
Resolve a graph resource name into a fully qualified graph resource name. More... | |
ROSCPP_DECL bool | validate (const std::string &name, std::string &error) |
Validate a name against the name spec. More... | |
Variables | |
M_string | g_remappings |
M_string | g_unresolved_remappings |
Contains functions which allow you to manipulate ROS names.
std::string ros::names::append | ( | const std::string & | left, |
const std::string & | right | ||
) |
std::string ros::names::clean | ( | const std::string & | name | ) |
std::string ros::names::parentNamespace | ( | const std::string & | name | ) |
Get the parent namespace of a name.
name | The namespace of which to get the parent namespace. |
InvalidNameException | if the name passed is not a valid graph resource name |
std::string ros::names::remap | ( | const std::string & | name | ) |
Apply remappings to a name.
InvalidNameException | if the name passed is not a valid graph resource name |
std::string ros::names::resolve | ( | const std::string & | name, |
bool | remap = true |
||
) |
Resolve a graph resource name into a fully qualified graph resource name.
See http://www.ros.org/wiki/Names for more details
name | Name to resolve |
remap | Whether or not to apply remappings to the name |
InvalidNameException | if the name passed is not a valid graph resource name |
std::string ros::names::resolve | ( | const std::string & | ns, |
const std::string & | name, | ||
bool | remap = true |
||
) |
Resolve a graph resource name into a fully qualified graph resource name.
See http://www.ros.org/wiki/Names for more details
ns | Namespace to use in resolution |
name | Name to resolve |
remap | Whether or not to apply remappings to the name |
InvalidNameException | if the name passed is not a valid graph resource name |
bool ros::names::validate | ( | const std::string & | name, |
std::string & | error | ||
) |