PanTiltActThread Class Reference

Pan/tilt act thread. More...

#include <act_thread.h>

Inheritance diagram for PanTiltActThread:

[legend]
List of all members.

Public Member Functions

 PanTiltActThread (const char *thread_name)
 Constructor.
virtual ~PanTiltActThread ()
 Destructor.
virtual void update_sensor_values ()=0
 Update sensor values of the PTU in the BB interface.

Detailed Description

Pan/tilt act thread.

This thread integrates into the Fawkes main loop at the ACT_EXEC hook and interacts with the controller of a particular pan/tilt unit. Note that this abstract class is then implemented by threads interacting with a particular pan/tilt unit.

Each implementation of this thread shall open an instance of a PanTiltInterface and act within this thread's loop() method. The data read back from the unit shall be written in the update_sensor_values() method, that is called from the PanTiltSensorThread.

Author:
Tim Niemueller

Definition at line 36 of file act_thread.h.


Constructor & Destructor Documentation

PanTiltActThread::PanTiltActThread ( const char *  thread_name  ) 

Constructor.

Parameters:
thread_name thread name

Definition at line 48 of file act_thread.cpp.

PanTiltActThread::~PanTiltActThread (  )  [virtual]

Destructor.

Definition at line 56 of file act_thread.cpp.


Member Function Documentation

void PanTiltActThread::update_sensor_values (  )  [pure virtual]

Update sensor values of the PTU in the BB interface.

Implemented in PanTiltDirectedPerceptionThread, PanTiltRX28Thread, and PanTiltSonyEviD100PThread.


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