ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

/RobotNode1/robotname means that this parameter has been set in the private namespace of the node.

So, you have to create a private node handle to retrieve this parameter. Do this:

ros::NodeHandle private_node_handle("~");