yarp-devices
Public Member Functions | Private Attributes | List of all members
roboticslab::SyncPeriodicThread Class Referencefinal

Periodic SYNC signal emitter. More...

#include <SyncPeriodicThread.hpp>

Inheritance diagram for roboticslab::SyncPeriodicThread:

Public Member Functions

 SyncPeriodicThread (std::vector< SingleBusBroker * > &brokers, FutureTaskFactory *taskFactory)
 Constructor, manages the lifetime of taskFactory.
 
 ~SyncPeriodicThread () override
 Destructor.
 
bool openPort (const std::string &name)
 Open synchronization port.
 
void setObserver (TypedStateObserver< double > *syncObserver)
 Set synchronization observer.
 
void run () override
 Periodic task.
 

Private Attributes

std::vector< SingleBusBroker * > & brokers
 
FutureTaskFactorytaskFactory
 
TypedStateObserver< double > * syncObserver
 
yarp::os::Port syncPort
 
yarp::os::PortWriterBuffer< yarp::os::Bottle > syncWriter
 

Detailed Description

This thread performs periodic synchronization tasks across all managed subdevices and sends a SYNC signal at the end of each iteration.


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