Fawkes API
Fawkes Development Version
|
#include <>>
Inherits fawkes::Aspect.
Inherited by AmclThread, BBLoggerThread, BBLogReplayThread, BlackboardRestApi, BlackBoardSynchronizationThread, Bumblebee2Thread, CedarThread, ClipsAgentThread, ClipsExecutiveThread, CLIPSThread, ColliThread, DepthcamSimThread, fawkes::WebviewJpegStreamProducer, FestivalSynthThread, FliteSynthThread, FvBaseThread, FvRetrieverThread, GazeboNodeThread, GazsimTimesourceThread, GossipExampleReceiverThread, GossipExampleSenderThread, ImageRestApi, IMUAcquisitionThread, KatanaActThread, LaserAcquisitionThread, LaserClusterThread, LaserLinesThread, LaserSimThread, LocalizationSimThread, LuaAgentContinuousExecutionThread, LuaAgentPeriodicExecutionThread, MapLaserGenThread, MongoDBInstanceConfig, MongoDBReplicaSetConfig, 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, PlexilExecutiveThread, PointCloudDBMergeThread, PointCloudDBRetrieveThread, PointCloudDBStoreThread, ProcRRDThread, Realsense2Thread, RealsenseThread, RobotinoActThread, RobotinoComThread, RobotinoSensorThread, RobotinoSimThread, RobotMemoryThread, RobotStatePublisherThread, Roomba500Thread, RoombaJoystickThread, RosClockThread, RosImagesThread, RosNavigatorThread, ROSNodeThread, RosPointCloudThread, ROSTalkerPubThread, RosTfThread, RRDThread, SkillerExecutionThread, SkillerRestApi, StaticTransformsThread, TabletopObjectsThread, TimeTrackerMainLoopThread, VisLocalizationThread, WebcamSimThread, 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 |
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!
|
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. |
|
protected |
By means of this member access to the clock is given.
Definition at line 56 of file clock.h.
Referenced by GossipExampleSenderThread::init(), RosClockThread::init(), HokuyoUrgAcquisitionThread::init(), TimeTrackerMainLoopThread::init(), ProcRRDThread::init(), MongoRRDThread::init(), MongoLogTransformsThread::init(), RRDThread::init(), LaserSimThread::init(), RosImagesThread::init(), Roomba500Thread::init(), BlackBoardSynchronizationThread::init(), VisLocalizationThread::init(), OpenNiContextThread::init(), FvRetrieverThread::init(), CLIPSThread::init(), MongoDBInstanceConfig::init(), MongoLogBlackboardThread::init(), OpenNiImageThread::init(), OpenNiDepthThread::init(), OpenPRSThread::init(), NaoQiButtonThread::init(), RealsenseThread::init(), RobotinoActThread::init(), PlexilExecutiveThread::init(), XabslEngineThread::init(), RosNavigatorThread::init(), MongoLogPointCloudThread::init(), NavGraphThread::init(), BBLoggerThread::init(), LuaAgentPeriodicExecutionThread::init(), RobotMemoryThread::init(), MongoLogImagesThread::init(), LuaAgentContinuousExecutionThread::init(), MongoDBReplicaSetConfig::init(), ColliThread::init(), RosTfThread::init(), Bumblebee2Thread::init(), SkillerExecutionThread::init(), OpenNiPointCloudThread::init(), KatanaActThread::init(), OpenRobotinoComThread::init(), fawkes::WebviewJpegStreamProducer::init(), TabletopObjectsThread::init(), GossipExampleSenderThread::loop(), OpenPRSAgentThread::loop(), MongoLogTransformsThread::loop(), LocalizationSimThread::loop(), PointCloudDBRetrieveThread::loop(), ClipsAgentThread::loop(), VisLocalizationThread::loop(), MapLaserGenThread::loop(), PointCloudDBMergeThread::loop(), Realsense2Thread::loop(), RealsenseThread::loop(), RobotinoActThread::loop(), MongoLogPointCloudThread::loop(), RosNavigatorThread::loop(), MongoLogImagesThread::loop(), NavGraphThread::loop(), RobotinoSimThread::loop(), RosTfThread::loop(), Bumblebee2Thread::loop(), KatanaActThread::loop(), FvBaseThread::register_for_camera(), FestivalSynthThread::say(), RobotinoComThread::update_velocities(), and ~ClockAspect().