23 #include "sensor_thread.h" 25 #include "act_thread.h" 38 :
Thread(
"PanTiltSensorThread",
Thread::OPMODE_WAITFORWAKEUP),
49 act_threads_.push_back(act_thread);
55 for (ati_ = act_threads_.begin(); ati_ != act_threads_.end(); ++ati_) {
57 (*ati_)->update_sensor_values();
60 "Act thread %s threw an exception when updating sensor values",
virtual void loop()
Code to execute in the thread.
Fawkes library namespace.
Thread class encapsulation of pthreads.
Logger * logger
This is the Logger member used to access the logger.
Thread aspect to use blocked timing.
Base class for exceptions in Fawkes.
void add_act_thread(PanTiltActThread *act_thread)
Add an act thread.
const char * name() const
Get name of thread.
virtual void log_warn(const char *component, const char *format,...)=0
Log warning message.
PanTiltSensorThread()
Constructor.