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

How can I change the publishing rate of a node when the node is running?

asked 2016-07-13 08:13:44 -0500

TAIMAZ gravatar image

I have a publisher and subscriber with a constant publishing rate. I want to change (increase or decrease) the publishing rate while the node is running ? I want to know if it is possible ? thank you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-07-13 11:58:43 -0500

ahendrix gravatar image

The short answer is, if you have access to the source code for your node, you can make it do whatever you want.

Most users use dynamic_reconfigure for changing parameters at run time. If you create a dynamic_reconfigure parameter for your publishing rate, you can use the dynamic reconfigure gui to change it while the node is running.

edit flag offensive delete link more


thank you, it was very useful.

TAIMAZ gravatar image TAIMAZ  ( 2016-07-18 03:53:50 -0500 )edit

Question Tools

1 follower


Asked: 2016-07-13 08:13:44 -0500

Seen: 435 times

Last updated: Jul 13 '16