ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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("~")
.
2 | No.2 Revision |
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);
Nodehandle nh("~")
. 3 | No.3 Revision |
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("~")
.4 | No.4 Revision |
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("~")
.
5 | No.5 Revision |
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);
6 | No.6 Revision |
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);
7 | No.7 Revision |
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);
8 | No.8 Revision |
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);
9 | No.9 Revision |
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);