#include <sensor_thread.h>
Inheritance diagram for KatanaSensorThread:
Public Member Functions | |
KatanaSensorThread (KatanaActThread *act_thread) | |
Constructor. | |
virtual void | loop () |
Code to execute in the thread. | |
Protected Member Functions | |
virtual void | run () |
Stub to see name in backtrace for easier debugging. |
This thread integrates into the Fawkes main loop at the SENSOR hook and triggers the act thread to retrieve and write new sensor data.
Definition at line 41 of file sensor_thread.h.
KatanaSensorThread::KatanaSensorThread | ( | KatanaActThread * | act_thread | ) |
Constructor.
act_thread | Katana act thread instance to trigger for the sensor update. |
Definition at line 38 of file sensor_thread.cpp.
void KatanaSensorThread::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 46 of file sensor_thread.cpp.
References KatanaActThread::update_sensor_values().
virtual void KatanaSensorThread::run | ( | ) | [inline, protected, virtual] |
Stub to see name in backtrace for easier debugging.
Reimplemented from fawkes::Thread.
Definition at line 53 of file sensor_thread.h.