Open martinakos opened 3 years ago
Looking at the source
try:
params = rospy.get_param("~")
except KeyError:
print('error updating parameters: no parameters found on parameter server', file=sys.stderr)
return
it seems like it was intended to only set given parameters, not load any from the server. rospy.get_param("~")
retrieves the private parameters of the current node, which are expected to be passed as remappings on the command line. The way I managed to use it was via:
$ rosrun dynamic_reconfigure dynparam set_from_parameters /octomap_server _sensor_model_hit:=0.98
Note the leading underscore.
I think I need a clarification.
The description of dynparam set_from_parameters node_name is: "Load the configuration for a node from the Parameter Server." I guess that means to set the dynamic reconfigure parameters from a node with the corresponding parameter values in the parameter server for that node.
In contrast dynparam shows this example usage which includes a parameter asignment: Example command line: dynparam set_from_parameters wge100_camera _camera_url:=foo
I guess the assignment is to make possible to load the value of the parameter foo in the paramserver to the dynamic reconfigure parameter _camera_url.
If so, I don't understand my output below:
Why do I get this error? am I using dynparam set_from_parameters correctly?