Flatland
Public Member Functions | Public Attributes | List of all members
flatland_server::Timekeeper Class Reference
Collaboration diagram for flatland_server::Timekeeper:
Collaboration graph
[legend]

Public Member Functions

 Timekeeper ()
 constructor
 
void StepTime ()
 Step time once with the current set of parameters.
 
void UpdateRosClock () const
 Publish the clock to ROS.
 
void SetMaxStepSize (double step_size)
 Set the maximum step size. More...
 
const ros::Time & GetSimTime () const
 
double GetStepSize () const
 
double GetMaxStepSize () const
 

Public Attributes

ros::Publisher clock_pub_
 the topic to publish the clock
 
ros::NodeHandle nh_
 ROS Node handle.
 
ros::Time time_
 simulation time
 
double max_step_size_
 maximum step size
 
const std::string clock_topic_
 the name of the clock topic
 

Member Function Documentation

double flatland_server::Timekeeper::GetMaxStepSize ( ) const
Returns
the max step size possible
const ros::Time & flatland_server::Timekeeper::GetSimTime ( ) const
Returns
The current simulation time
double flatland_server::Timekeeper::GetStepSize ( ) const
Returns
The current step size used for the world
void flatland_server::Timekeeper::SetMaxStepSize ( double  step_size)

Set the maximum step size.

Parameters
[in]step_sizeThe step size

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