ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

[rosparam] do not overwrite an existing param or default value

asked 2014-11-18 12:12:54 -0600

courrier gravatar image

Hi all,

I'm looking for a way to specify a DEFAULT value for /some/parameter on the parameter server in a XML launch file. In other terms if it's already there I don't want to overwrite the previous value.

Also is it possible to test any other variable than a bool? I would like to do something like:

  <!-- THIS DOES NOT WORK -->
  <node if="$(arg method)==nearest" name="point_provider" pkg="point_providers" type="simple_publisher.py" />
  <node if="$(arg method)==regression" name="point_provider" pkg="regression_models" type="publisher.py" />

Is there any way to achieve this?

Also a complete control structure if/elif/else would be nice.

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-07-01 16:31:52 -0600

130s gravatar image

updated 2018-08-08 05:02:07 -0600

Avoiding parameter override seems to be not possible but in #q173575 some workarounds are suggested.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2014-11-18 12:12:54 -0600

Seen: 880 times

Last updated: Aug 08 '18