Ask Your Question
0

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
3

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

Comments

Thank you :-)!

Johannes Jaegers gravatar imageJohannes 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

Stats

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

Seen: 506 times

Last updated: Sep 05 '14