25 #ifndef __DPPanTiltControlExtended_hh__
26 #define __DPPanTiltControlExtended_hh__
28 #include "DPPanTiltControl.hh"
30 #include <Base/Math/Vector.hh>
31 #include <Base/Math/Vector2.hh>
32 #include <Geometry/RMatrix.hh>
34 #ifdef BIAS_HAVE_PTHREADS
39 #define TRACK_ABS_POS_MODE 100
40 #define TRACK_PID_SPEED_MODE 101
41 #define TRACK_REC_SPEED_MODE 102
104 xPictureSize_ = xSize;
105 yPictureSize_ = ySize;
113 xApertureAngle_ = xAngle;
114 yApertureAngle_ = yAngle;
117 #ifdef BIAS_HAVE_PTHREADS
120 void StartCircularMovementThread();
123 void GetCurrentPositionDegreesThreaded(
double &dPanDeg,
double& dTiltDeg);
126 void GetCurrentPositionRadiansThreaded(
double &dPanRad,
double& dTiltRad);
132 #ifdef BIAS_HAVE_PTHREADS
139 static void* threadFuncCircle_(
void *ptr);
144 double KpX_,
KpY_, KiX_, KiY_, KdX_, KdY_;
182 #endif // __DPPanTiltControlExtended_hh__
void SetSamplingTime(float t)
short int yPTDeltaSpeedTMinus1_
Basic controller interface for Directed Perception Pan Tilt Unit.
short int xPTDeltaSpeedTMinus1_
static long tiltThreaded_
Extended controller interface for Directed Perception Pan Tilt Unit.
void SetPictureSize(unsigned int xSize, unsigned int ySize)
Set the size of the picture of the camera mounted to the PTU.
BIAS::RMatrix sensorMatrixMinus1_
unsigned int yPictureSize_
std::vector< int > ErrorTMinus1_
void SetApertureAngle(double xAngle, double yAngle)
Set the aperture angle of the camera mounted to the PTU.
void SetResetTime(float tn)
static pthread_mutex_t condition_mutex
unsigned int xPictureSize_