ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Change/Update frequency of Rate or Timer

asked 2014-09-05 08:58:23 -0600

updated 2014-09-05 08:58:55 -0600

Is it possible to update the frequency of the current running loops of a ros::Rate or ros::Timer object?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-09-05 18:42:35 -0600

tfoote gravatar image

A Rate object does not support changing it's frequency. Just make a new one. You can update the period on the Timer, just call setPeriod on it.

edit flag offensive delete link more


Thank you :-)!

Johannes Jaegers gravatar image Johannes Jaegers  ( 2014-09-27 03:28:35 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-09-05 08:58:23 -0600

Seen: 880 times

Last updated: Sep 05 '14