47 #ifndef FLATLAND_SERVER_TIME_KEEPER_H 48 #define FLATLAND_SERVER_TIME_KEEPER_H 100 #endif // FLATLAND_SERVER_TIME_KEEPER_H void SetMaxStepSize(double step_size)
Set the maximum step size.
Definition: timekeeper.cpp:69
double max_step_size_
maximum step size
Definition: timekeeper.h:60
double GetStepSize() const
Definition: timekeeper.cpp:75
ros::Publisher clock_pub_
the topic to publish the clock
Definition: timekeeper.h:57
double GetMaxStepSize() const
Definition: timekeeper.cpp:77
void UpdateRosClock() const
Publish the clock to ROS.
Definition: timekeeper.cpp:63
Timekeeper()
constructor
Definition: timekeeper.cpp:52
const ros::Time & GetSimTime() const
Definition: timekeeper.cpp:73
ros::NodeHandle nh_
ROS Node handle.
Definition: timekeeper.h:58
void StepTime()
Step time once with the current set of parameters.
Definition: timekeeper.cpp:57
const std::string clock_topic_
the name of the clock topic
Definition: timekeeper.h:61
Definition: timekeeper.h:55
ros::Time time_
simulation time
Definition: timekeeper.h:59