PanTiltSensorThread Class Reference

Katana sensor thread. More...

#include <sensor_thread.h>

Inheritance diagram for PanTiltSensorThread:

[legend]
List of all members.

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.

Detailed Description

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.

Author:
Tim Niemueller

Definition at line 37 of file sensor_thread.h.


Constructor & Destructor Documentation

PanTiltSensorThread::PanTiltSensorThread (  ) 

Constructor.

Definition at line 36 of file sensor_thread.cpp.


Member Function Documentation

void PanTiltSensorThread::add_act_thread ( PanTiltActThread act_thread  ) 

Add an act thread.

Parameters:
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.

See also:
Thread::run()

Reimplemented from fawkes::Thread.

Definition at line 50 of file sensor_thread.h.


The documentation for this class was generated from the following files:
Generated on Tue Feb 22 13:32:36 2011 for Fawkes API by  doxygen 1.4.7