Fawkes API
Fawkes Development Version
|
Thread aspect that allows to obtain the current time from the clock. More...
#include <>>
Public Member Functions | |
ClockAspect () | |
Constructor. | |
virtual | ~ClockAspect () |
Virtual empty destructor. | |
void | init_ClockAspect (Clock *clock) |
Set the clock. | |
Protected Attributes | |
Clock * | clock |
By means of this member access to the clock is given. |
Thread aspect that allows to obtain the current time from the clock.
Threads that need to deal with the current time should have this aspect and not obtain the time by means of gettimeofday!
fawkes::ClockAspect::~ClockAspect | ( | ) | [virtual] |
void fawkes::ClockAspect::init_ClockAspect | ( | Clock * | clock | ) |
Set the clock.
It is guaranteed that this is called for a clock thread before Thread::start() is called (when running regularly inside Fawkes).
clock | Clock instance to use. |
Definition at line 64 of file clock.cpp.
Referenced by fawkes::ClockAspectIniFin::init().
Clock fawkes::ClockAspect::clock [protected] |
By means of this member access to the clock is given.
Definition at line 45 of file clock.h.
Referenced by TimeTrackerMainLoopThread::init(), AmclThread::init(), AmclThread::loop(), MapLaserGenThread::loop(), BBLoggerThread::init(), BlackBoardSynchronizationThread::init(), FestivalSynthThread::say(), KatanaActThread::init(), KatanaActThread::loop(), RobotinoActThread::loop(), HokuyoUrgAcquisitionThread::init(), LuaAgentContinuousExecutionThread::init(), LuaAgentPeriodicExecutionThread::init(), NaoQiButtonThread::init(), OpenNiContextThread::init(), OpenNiDepthThread::init(), OpenNiImageThread::init(), RosImagesThread::init(), OpenNiPointCloudThread::init(), FvBaseThread::register_for_camera(), FvRetrieverThread::init(), TabletopObjectsThread::init(), Roomba500Thread::init(), RRDThread::init(), SkillerExecutionThread::init(), StaticTransformsThread::init(), StaticTransformsThread::loop(), and XabslEngineThread::init().