23 #include "sensacq_thread.h" 24 #include "controller.h" 44 :
Thread(
"KatanaSensorAcqusitionThread",
Thread::OPMODE_WAITFORWAKEUP)
void set_enabled(bool enabled)
Set whether data acquisition is enabled or not.
Fawkes library namespace.
void unlock()
Unlock the mutex.
KatanaSensorAcquisitionThread(fawkes::RefPtr< fawkes::KatanaController > katana, fawkes::Logger *logger)
Constructor.
virtual const char * what() const
Get primary string.
virtual void read_sensor_data()=0
Read all sensor data from device into controller libray.
Thread class encapsulation of pthreads.
Mutex * loop_mutex
Mutex that is used to protect a call to loop().
Base class for exceptions in Fawkes.
const char * name() const
Get name of thread.
virtual void log_warn(const char *component, const char *format,...)=0
Log warning message.
virtual void loop()
Code to execute in the thread.
void lock()
Lock this mutex.