ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
How do you retrieve the ref
object in your code. I don't see you accessing the parameters at all. The launch file is fine; in you code do something like:
ros::NodeHandle nh("~");
double ref_x;
nh.getParam("ref.x", ref_x);
destination[1] = ref_x;
2 | No.2 Revision |
How do you retrieve the ref
object in your code. I don't see you accessing the parameters at all. The launch file is fine; in you code do something like:
ros::NodeHandle nh("~");
double ref_x;
nh.getParam("ref.x", ref_x);
destination[1] = ref_x;
Edit: Best read up on retrieving parameters in the wiki.