Fawkes API
Fawkes Development Version
|
Thread aspect that allows to obtain the current time from the clock. More...
#include <>>
Inherits fawkes::Aspect.
Inherited by AmclThread, BBLoggerThread, BBLogReplayThread, BlackBoardSynchronizationThread, Bumblebee2Thread, ClipsAgentThread, CLIPSThread, ColliThread, DepthcamSimThread, fawkes::WebviewJpegStreamProducer, FestivalSynthThread, FliteSynthThread, FvBaseThread, FvRetrieverThread, GazeboNodeThread, GazsimTimesourceThread, GossipExampleReceiverThread, GossipExampleSenderThread, IMUAcquisitionThread, KatanaActThread, LaserAcquisitionThread, LaserClusterThread, LaserLinesThread, LaserSimThread, LocalizationSimThread, LuaAgentContinuousExecutionThread, LuaAgentPeriodicExecutionThread, MapLaserGenThread, MongoDBThread, MongoLogBlackboardThread, MongoLogImagesThread, MongoLogLoggerThread, MongoLogPointCloudThread, MongoLogTransformsThread, MongoRRDThread, NaoQiBrokerThread, NaoQiButtonThread, NaoQiDCMThread, NaoQiMotionThread, NaoQiSpeechSynthThread, NavGraphClustersThread, NavGraphInteractiveThread, NavGraphROSPubThread, NavGraphThread, OpenNiContextThread, OpenNiDepthThread, OpenNiHandTrackerThread, OpenNiImageThread, OpenNiPclOnlyThread, OpenNiPointCloudThread, OpenNiUserTrackerThread, OpenPRSAgentThread, OpenPRSThread, PlayerClientThread, PointCloudDBMergeThread, PointCloudDBRetrieveThread, PointCloudDBStoreThread, ProcRRDThread, RobotinoActThread, RobotinoComThread, RobotinoSensorThread, RobotinoSimThread, RobotStatePublisherThread, Roomba500Thread, RoombaJoystickThread, RosClockThread, RosImagesThread, ROSNodeThread, RosPointCloudThread, ROSTalkerPubThread, RosTfThread, ROSWebviewThread, RRDThread, RRDWebThread, SkillerExecutionThread, StaticTransformsThread, TabletopObjectsThread, TimeTrackerMainLoopThread, VisLocalizationThread, WebcamSimThread, WebviewPtzCamThread, and XabslEngineThread.
Public Member Functions | |
ClockAspect () | |
Constructor. More... | |
virtual | ~ClockAspect () |
Virtual empty destructor. More... | |
void | init_ClockAspect (Clock *clock) |
Set the clock. More... | |
![]() | |
const std::list< const char * > & | get_aspects () const |
Get list of aspect names attached to a aspected thread. More... | |
Protected Attributes | |
Clock * | clock |
By means of this member access to the clock is given. More... | |
Additional Inherited Members | |
![]() | |
void | add_aspect (const char *name) |
Add an aspect to a thread. More... | |
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.
References clock.
Referenced by fawkes::ClockAspectIniFin::init().
|
protected |
By means of this member access to the clock is given.
Definition at line 45 of file clock.h.
Referenced by RosTfThread::bb_interface_data_changed(), RobotStatePublisherThread::bb_interface_data_changed(), RosTfThread::bb_interface_reader_removed(), RosClockThread::finalize(), StaticTransformsThread::finalize(), MapLaserGenThread::finalize(), HokuyoUrgAcquisitionThread::init(), GossipExampleSenderThread::init(), RosClockThread::init(), RRDThread::init(), TimeTrackerMainLoopThread::init(), ProcRRDThread::init(), MongoRRDThread::init(), WebviewPtzCamThread::init(), MongoLogBlackboardThread::init(), MongoLogTransformsThread::init(), LaserSimThread::init(), RosImagesThread::init(), BlackBoardSynchronizationThread::init(), FvRetrieverThread::init(), Roomba500Thread::init(), OpenNiContextThread::init(), VisLocalizationThread::init(), CLIPSThread::init(), OpenNiDepthThread::init(), OpenNiImageThread::init(), OpenPRSThread::init(), RobotinoActThread::init(), NaoQiButtonThread::init(), XabslEngineThread::init(), BBLoggerThread::init(), MongoLogImagesThread::init(), RosTfThread::init(), LuaAgentPeriodicExecutionThread::init(), NavGraphThread::init(), LuaAgentContinuousExecutionThread::init(), MongoLogPointCloudThread::init(), ColliThread::init(), Bumblebee2Thread::init(), SkillerExecutionThread::init(), OpenNiPointCloudThread::init(), KatanaActThread::init(), OpenRobotinoComThread::init(), fawkes::WebviewJpegStreamProducer::init(), TabletopObjectsThread::init(), init_ClockAspect(), OpenPRSAgentThread::loop(), GossipExampleSenderThread::loop(), WebviewPtzCamThread::loop(), MongoLogTransformsThread::loop(), LaserSimThread::loop(), MapLaserGenThread::loop(), LocalizationSimThread::loop(), VisLocalizationThread::loop(), DepthcamSimThread::loop(), ClipsAgentThread::loop(), PointCloudDBRetrieveThread::loop(), PointCloudDBMergeThread::loop(), RobotinoActThread::loop(), MongoLogImagesThread::loop(), RosTfThread::loop(), RobotinoSimThread::loop(), MongoLogPointCloudThread::loop(), NavGraphThread::loop(), ColliThread::loop(), Bumblebee2Thread::loop(), LaserLinesThread::loop(), KatanaActThread::loop(), RobotStatePublisherThread::loop(), FvBaseThread::register_for_camera(), FestivalSynthThread::say(), and RobotinoComThread::update_velocities().