Ask Your Question

Determine a Node's Name/Namespace from within the Node (C++)

asked 2012-03-30 13:49:21 -0600

gavinmachine gravatar image

updated 2014-01-28 17:11:49 -0600

ngrennan gravatar image


Is there a way to determine the name of a node and/or its namespace from within the node's C++?


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-03-30 15:25:03 -0600

joq gravatar image

updated 2012-03-30 15:25:56 -0600

Use ros::this_node::getName() and ros::this_node::getNamespace().

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools


Asked: 2012-03-30 13:49:21 -0600

Seen: 1,048 times

Last updated: Mar 30 '12