23 #include "gazsim_timesource_thread.h"
32 GazsimTimesourceThread::GazsimTimesourceThread()
33 :
Thread(
"GazsimTimesourceThread",
Thread::OPMODE_WAITFORWAKEUP),
38 GazsimTimesourceThread::~GazsimTimesourceThread()
49 &GazsimTimesourceThread::on_time_sync_msg,
74 GazsimTimesourceThread::on_time_sync_msg(ConstSimTimePtr &msg)
virtual void finalize()
Finalize the thread.
virtual void init()
Initialize the thread.
virtual void loop()
Code to execute in the thread.
Thread aspect to use blocked timing.
Clock * clock
By means of this member access to the clock is given.
void remove_ext_timesource(TimeSource *ts=0)
Remove external time source.
void register_ext_timesource(TimeSource *ts, bool make_default=false)
Register an external time source.
Configuration * config
This is the Configuration member used to access the configuration.
virtual std::string get_string(const char *path)=0
Get value from configuration which is of type string.
gazebo::transport::NodePtr gazebo_world_node
Gazebo Node for communication with the world (e.g.
This time-source provides the simulation time from Gazebo in Fawkes.
void on_time_sync_msg(ConstSimTimePtr &msg)
store data from gazebo time message
virtual void log_info(const char *component, const char *format,...)=0
Log informational message.
Logger * logger
This is the Logger member used to access the logger.
Thread class encapsulation of pthreads.
const char * name() const
Get name of thread.
Fawkes library namespace.