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

ros 2 parameter design

asked 2018-05-28 06:54:47 -0600

Skyking gravatar image

HI,

How will a ros 2 node using parameters, be notified regarding any change in its parameters values ? Will it be through using the register_param_change_callback(callback T) funtion ? Is there any demo examples using this ?

Thank you for your help.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-05-29 01:56:19 -0600

tfoote gravatar image

updated 2018-05-29 01:59:09 -0600

There's a similar API on the parameter clients method 'on_parameter_event' that I'd recommend looking at for subscribing to parameter events.

You can see an example of using it in conjunction with the ParameterEventsFilter helper class in the TimeSource implementation

The register_param_change_callback should also work directly on the node object.

edit flag offensive delete link more

Question Tools

4 followers

Stats

Asked: 2018-05-28 06:54:47 -0600

Seen: 448 times

Last updated: May 29 '18