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

If I understand you correctly, you're trying set/get a parameter to/from the parameter server using rospy (if this isn't correct then please update your question with more details about what you're doing, what you expect, and what your results are). Luckily, rospy has this built-in so it's straightforward.

To set a parameter use

rospy.set_param(param_name, param_value)

and to get a parameter use

param_value = rospy.get_param(param_name)

You can get more information from the tutorials on the wiki.