ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Here is an example of how to do that.
<node name="tfs" pkg="ctt_tools" type="tfs" respawn="true"/>
<param name="param_1" value="23.0" />
</node>
and
double param_1;
node_handle.getParam("/tfs/param_1", param_1);
if(m.point.x > param_1 && m.point.x < 26 && m.point.y > -4.70 && m.point.y < 4.50 )
{
...
}
You could also refer to Parameters in launch file and Use parameters in roscpp for more details.