25 #ifndef PANTILTAUTOCONTROL_HH_
26 #define PANTILTAUTOCONTROL_HH_
29 #include "PanTiltControlInterface.hh"
54 void StartMoveTo(
const long int pan,
const long int tilt);
64 pthread_t control_thread;
66 static void* threadFunc_pan_only(
void *ptr);
68 static void* threadFunc_pan_tilt(
void *ptr);
71 static void* threadFunc_move_to(
void *ptr);
74 static pthread_mutex_t condition_mutex;
75 static pthread_cond_t condition_cond;
81 static bool bSpeedMode_;
84 static int abs(
int val);
85 static int min(
int val1,
int val2);
86 static int max(
int val1,
int val2);
88 static long int des_pan;
89 static long int des_tilt;
abstract control class for control of Directed Perception Pan Tilt Unit.
bool Stopped()
check if position is reached
PanTiltAutoControl * Create(std::string device, bool heavyDutyMode)
Abstract controller factory used to create all different kinds of PTU controls.
Factory to create a PanTiltAutoControl.