Fawkes API  Fawkes Development Version
fawkes::ClockAspect Class Reference

#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...
 
- Public Member Functions inherited from fawkes::Aspect
const std::list< const char * > & get_aspects () const
 Get list of aspect names attached to a aspected thread. More...
 

Protected Attributes

Clockclock
 

Additional Inherited Members

- Protected Member Functions inherited from fawkes::Aspect
void add_aspect (const char *name)
 Add an aspect to a thread. More...
 

Detailed Description

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!

Author
Daniel Beck

Definition at line 40 of file clock.h.

Constructor & Destructor Documentation

◆ ClockAspect()

fawkes::ClockAspect::ClockAspect ( )

Constructor.

Definition at line 50 of file clock.cpp.

◆ ~ClockAspect()

fawkes::ClockAspect::~ClockAspect ( )
virtual

Virtual empty destructor.

Definition at line 56 of file clock.cpp.

References clock.

Member Function Documentation

◆ init_ClockAspect()

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).

Parameters
clockClock instance to use.

Definition at line 66 of file clock.cpp.

Member Data Documentation

◆ clock

Clock fawkes::ClockAspect::clock
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().


The documentation for this class was generated from the following files: