Fawkes API  Fawkes Development Version
RoombaSensorThread Class Reference

Roomba sensor hook integration thread. More...

#include "sensor_thread.h"

Inheritance diagram for RoombaSensorThread:

List of all members.

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.

Detailed Description

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.

Author:
Tim Niemueller

Constructor & Destructor Documentation

RoombaSensorThread::RoombaSensorThread ( Roomba500Thread roomba500_thread)

Constructor.

Parameters:
roomba500_threadRoomba 500 thread to trigger to write to blackboard.

Definition at line 38 of file sensor_thread.cpp.


Member Function Documentation

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.

See also:
Thread::run()

Reimplemented from fawkes::Thread.

Definition at line 43 of file sensor_thread.h.


The documentation for this class was generated from the following files: