KatanaSensorThread Class Reference

Katana sensor thread. More...

#include <sensor_thread.h>

Inheritance diagram for KatanaSensorThread:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

Katana sensor thread.

This thread integrates into the Fawkes main loop at the SENSOR hook and triggers the act thread to retrieve and write new sensor data.

Author:
Tim Niemueller

Definition at line 41 of file sensor_thread.h.


Constructor & Destructor Documentation

KatanaSensorThread::KatanaSensorThread ( KatanaActThread act_thread  ) 

Constructor.

Parameters:
act_thread Katana act thread instance to trigger for the sensor update.

Definition at line 38 of file sensor_thread.cpp.


Member Function Documentation

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.

See also:
Thread::run()

Reimplemented from fawkes::Thread.

Definition at line 53 of file sensor_thread.h.


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

Generated on 1 Mar 2011 for Fawkes API by  doxygen 1.6.1