Flatland
Public Member Functions | Public Attributes | List of all members
flatland_plugins::UpdateTimer Class Reference

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
 

Member Function Documentation

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

Parameters
[in]timekeeperThe 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.

Parameters
[in]rateRate in Hz

The documentation for this class was generated from the following files: