yarp-devices
|
Periodic SYNC signal emitter. More...
#include <SyncPeriodicThread.hpp>
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 |
FutureTaskFactory * | taskFactory |
TypedStateObserver< double > * | syncObserver |
yarp::os::Port | syncPort |
yarp::os::PortWriterBuffer< yarp::os::Bottle > | syncWriter |
This thread performs periodic synchronization tasks across all managed subdevices and sends a SYNC signal at the end of each iteration.