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, BBLogReplayThread, BBLoggerThread, BlackBoardSynchronizationThread, BlackboardRestApi, Bumblebee2Thread, CLIPSThread, CedarThread, ClipsAgentThread, ClipsExecutiveThread, ColliThread, DepthcamSimThread, FestivalSynthThread, FliteSynthThread, FvBaseThread, FvRetrieverThread, GazeboNodeThread, GazsimTimesourceThread, GossipExampleReceiverThread, GossipExampleSenderThread, IMUAcquisitionThread, ImageRestApi, 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, ROSNodeThread, ROSTalkerPubThread, RRDThread, Realsense2Thread, RealsenseThread, RobotMemoryThread, RobotStatePublisherThread, RobotinoActThread, RobotinoComThread, RobotinoSensorThread, RobotinoSimThread, Roomba500Thread, RoombaJoystickThread, RosClockThread, RosImagesThread, RosNavigatorThread, RosPointCloudThread, RosTfThread, SkillerExecutionThread, SkillerRestApi, StaticTransformsThread, TabletopObjectsThread, TimeTrackerMainLoopThread, VisLocalizationThread, WebcamSimThread, XabslEngineThread, fawkes::WebviewJpegStreamProducer, fawkes::gpp::GologppFawkesBackend, and protoboard::BlackboardManager.
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 59 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 42 of file clock.h.
Referenced by GazsimTimesourceThread::finalize(), BBLoggerThread::init(), BlackBoardSynchronizationThread::init(), Bumblebee2Thread::init(), CLIPSThread::init(), ColliThread::init(), LaserSimThread::init(), GazsimTimesourceThread::init(), VisLocalizationThread::init(), GossipExampleSenderThread::init(), KatanaActThread::init(), HokuyoUrgAcquisitionThread::init(), LuaAgentContinuousExecutionThread::init(), LuaAgentPeriodicExecutionThread::init(), MongoDBInstanceConfig::init(), MongoDBReplicaSetConfig::init(), MongoRRDThread::init(), MongoLogBlackboardThread::init(), MongoLogImagesThread::init(), MongoLogPointCloudThread::init(), MongoLogTransformsThread::init(), NaoQiButtonThread::init(), NavGraphThread::init(), OpenNiContextThread::init(), OpenNiDepthThread::init(), OpenNiImageThread::init(), OpenNiPointCloudThread::init(), OpenPRSThread::init(), FvRetrieverThread::init(), TabletopObjectsThread::init(), PlexilExecutiveThread::init(), ProcRRDThread::init(), RealsenseThread::init(), RobotMemoryThread::init(), RobotinoActThread::init(), OpenRobotinoComThread::init(), Roomba500Thread::init(), RosClockThread::init(), RosImagesThread::init(), RosNavigatorThread::init(), RosTfThread::init(), RRDThread::init(), SkillerExecutionThread::init(), TimeTrackerMainLoopThread::init(), fawkes::WebviewJpegStreamProducer::init(), XabslEngineThread::init(), init_ClockAspect(), MapLaserGenThread::loop(), Bumblebee2Thread::loop(), ClipsAgentThread::loop(), LocalizationSimThread::loop(), RobotinoSimThread::loop(), VisLocalizationThread::loop(), GossipExampleSenderThread::loop(), KatanaActThread::loop(), MongoLogImagesThread::loop(), MongoLogPointCloudThread::loop(), MongoLogTransformsThread::loop(), NavGraphThread::loop(), OpenPRSAgentThread::loop(), PointCloudDBMergeThread::loop(), PointCloudDBRetrieveThread::loop(), RealsenseThread::loop(), Realsense2Thread::loop(), RobotinoActThread::loop(), RosNavigatorThread::loop(), RosTfThread::loop(), FvBaseThread::register_for_camera(), FestivalSynthThread::say(), fawkes::gpp::GologppFawkesBackend::time(), and RobotinoComThread::update_velocities().