Pan/tilt act thread. More...
#include "act_thread.h"
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. |
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.
Definition at line 36 of file act_thread.h.
PanTiltActThread::PanTiltActThread | ( | const char * | thread_name | ) |
PanTiltActThread::~PanTiltActThread | ( | ) | [virtual] |
Destructor.
Definition at line 56 of file act_thread.cpp.
void PanTiltActThread::update_sensor_values | ( | ) | [pure virtual] |
Update sensor values of the PTU in the BB interface.
Implemented in PanTiltDirectedPerceptionThread, PanTiltRX28Thread, and PanTiltSonyEviD100PThread.