Fawkes API
Fawkes Development Version
|
Roomba sensor hook integration thread. More...
#include "sensor_thread.h"
Public Member Functions | |
RoombaSensorThread (Roomba500Thread *roomba500_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. |
Roomba sensor hook integration thread.
This thread integrates into the Fawkes main loop at the SENSOR hook and triggers the Roomba thread to write new sensor data.
RoombaSensorThread::RoombaSensorThread | ( | Roomba500Thread * | roomba500_thread | ) |
Constructor.
roomba500_thread | Roomba 500 thread to trigger to write to blackboard. |
Definition at line 38 of file sensor_thread.cpp.
void RoombaSensorThread::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 48 of file sensor_thread.cpp.
References Roomba500Thread::write_blackboard(), fawkes::LoggingAspect::logger, fawkes::Logger::log_warn(), and fawkes::Thread::name().
virtual void RoombaSensorThread::run | ( | ) | [inline, protected, virtual] |
Stub to see name in backtrace for easier debugging.
Reimplemented from fawkes::Thread.
Definition at line 43 of file sensor_thread.h.