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

Here is an example:

In the launch file set

    <param name="variable" type="double" value="0.4" />

If your node source file is python use:

    variable = rospy.get_param("/variable")

If your node source file is cpp use:

double variable;

ros::param::get("/variable", variable);