Getting Started with ROS on Embedded Systems/User Guide/C++/Names

From RidgeRun Developer Connection
< Getting Started with ROS on Embedded Systems
Revision as of 11:06, 10 November 2021 by Rgutierrez (talk | contribs) (Created page with "Name manipulation is an important section for ROS, in here you can find useful commands that work well when doing this manipulation An useful command is the resolve, which le...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Name manipulation is an important section for ROS, in here you can find useful commands that work well when doing this manipulation

An useful command is the resolve, which lets you create a name with the namespace of the node and a given name, resulting in node_namespace/name

std::string ros::names::resolve(const std::string& name, bool remap = true);

Another useful command, is the append, which simply appends two strings resulting in left/right

std::string ros::names::append(const std::string& left, const std::string& right);