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

Change/Update frequency of Rate or Timer

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

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

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 -0500

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 image Johannes Jaegers  ( 2014-09-27 03:28:35 -0500 )edit

Question Tools

1 follower

Stats

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

Seen: 1,131 times

Last updated: Sep 05 '14