Fawkes API Fawkes Development Version
|
Katana sensor thread. More...
#include "sensor_thread.h"
Public Member Functions | |
PanTiltSensorThread () | |
Constructor. | |
void | add_act_thread (PanTiltActThread *act_thread) |
Add an act thread. | |
virtual void | loop () |
Code to execute in the thread. | |
Protected Member Functions | |
virtual void | run () |
Stub to see name in backtrace for easier debugging. |
Katana sensor thread.
This thread integrates into the Fawkes main loop at the SENSOR hook and triggers the act threads to retrieve and write new sensor data.
Definition at line 37 of file sensor_thread.h.
PanTiltSensorThread::PanTiltSensorThread | ( | ) |
Constructor.
Definition at line 36 of file sensor_thread.cpp.
void PanTiltSensorThread::add_act_thread | ( | PanTiltActThread * | act_thread | ) |
Add an act thread.
act_thread | to add |
Definition at line 47 of file sensor_thread.cpp.
Referenced by PanTiltPlugin::PanTiltPlugin().
void PanTiltSensorThread::loop | ( | ) | [virtual] |
Code to execute in the thread.
Implement this method to hold the code you want to be executed continously. If you do not implement this method, the default is that the thread will exit. This is useful if you choose to only implement once().
Reimplemented from fawkes::Thread.
Definition at line 54 of file sensor_thread.cpp.
References fawkes::Logger::log_warn(), fawkes::LoggingAspect::logger, and fawkes::Thread::name().
virtual void PanTiltSensorThread::run | ( | ) | [inline, protected, virtual] |
Stub to see name in backtrace for easier debugging.
Reimplemented from fawkes::Thread.
Definition at line 50 of file sensor_thread.h.