ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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("~");