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

Thanks, now it worked. I'm still a bit confused because in the tutorial

http://www.ros.org/wiki/roscpp/Overview/Parameter%20Server

it says

ros::NodeHandle nh;
std::string global_name, relative_name, default_param;
if (nh.getParam("/global_name", global_name))
{
  ...
}

if (nh.getParam("relative_name", relative_name))
{
...
}

But nh.getParam("relative_name", relative_name) shouldn't work when the NodeHandle isn't private, right?