Flatland
|
Public Member Functions | |
UpdateTimer () | |
Update timer constructor. | |
void | SetRate (double rate) |
Set the update rate. More... | |
bool | CheckUpdate (const flatland_server::Timekeeper &timekeeper) |
Public Attributes | |
ros::Duration | period_ |
period of update | |
ros::Time | last_update_time_ |
last time the update occured | |
bool flatland_plugins::UpdateTimer::CheckUpdate | ( | const flatland_server::Timekeeper & | timekeeper | ) |
Call this method to check if an update is required to keep with the set update rate
[in] | timekeeper | The object that manages time for the simulation, update timers get the simulation as well as step size for calculation |
void flatland_plugins::UpdateTimer::SetRate | ( | double | rate | ) |
Set the update rate.
[in] | rate | Rate in Hz |