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

Another way for this is using ros::param::param instead of nh.param:

using namespace ros;
NodeHandle nh;
double param;
ros::param::param <double> ("~param", param, 0.5);

This way, only the desired param is private, rest aren't affected, unlike with Nodehandle nh("~").

Another way for this is using ros::param::param instead of nh.param::

using namespace ros;
NodeHandle nh;
double param;
ros::param::param <double> ("~param", param, 0.5);

This way, only the desired param is private, rest aren't affected, unlike with Nodehandle nh("~").

Another way for this is using ros::param::param instead of nh.param: :

using namespace ros;
NodeHandle nh;
double param;
ros::param::param <double> ("~param", param, 0.5);

This way, only the desired param is private, rest aren't affected, unlike with Nodehandle nh("~").

Another way for this is using ros::param::param instead of nh.param:. This way, only the desired param is private, rest aren't affected, unlike with Nodehandle nh("~").

using namespace ros;
NodeHandle nh;
double param;
ros::param::param <double> ("~param", param, 0.5);

This way, only the desired param is private, rest aren't affected, unlike with Nodehandle nh("~").

Another way for this is using ros::param::param instead of nh.param. This way, only the desired param is private, rest aren't affected, unlike with the Nodehandle nh("~").

using namespace ros;
NodeHandle nh;
double param;
ros::param::param <double> ("~param", param, 0.5);

Another way for this is using ros::param::param instead of nh.param. This way, only the desired param is set private, rest aren't affected, unlike with the Nodehandle nh("~").

using namespace ros;
NodeHandle nh;
double param;
ros::param::param <double> ("~param", param, 0.5);

Another way for this is using ros::param::param instead of nh.param. This way, only the desired param is set rendered private, rest aren't affected, unlike with the Nodehandle nh("~").

using namespace ros;
NodeHandle nh;
double param;
ros::param::param <double> ("~param", param, 0.5);

Another way for this is using ros::param::param instead of nh.param. This way, only the desired param is rendered private, rest aren't affected, unlike with the Nodehandle nh("~").

using namespace ros;
NodeHandle nh;
double param;
ros::param::param <double> ("~param", param, 0.5);

Another way for this is using ros::param::param instead of nh.param. This way, only the desired param is rendered private, rest aren't affected, unlike with the Nodehandle nh("~").

using namespace ros;
NodeHandle nh;
double param;
ros::param::param <double> ("~param", param, 0.5);