yarp-devices
Loading...
Searching...
No Matches
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
FutureTaskFactory * taskFactory {nullptr}
TypedStateObserver< double > * syncObserver {nullptr}
yarp::os::BufferedPort< yarp::os::Bottle > syncPort

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:
  • libraries/YarpPlugins/CanBusBroker/SyncPeriodicThread.hpp
  • libraries/YarpPlugins/CanBusBroker/SyncPeriodicThread.cpp