Basic Image AlgorithmS Library
2.8.0
|
PanTiltControlInterface. More...
#include <PanTilt/PanTiltAutoControl.hh>
Public Member Functions | |
void | AwaitCompletion () |
Waits until the current command is completed. More... | |
PanTiltAutoControl (std::string device, bool heavyDutyMode) | |
constructor has nothing to do, super-constructor will startup communication More... | |
void | ResumeControl () |
resume moving around More... | |
void | SetPosition (long int pan, long int tilt, bool waitComplete=true) |
Set the position to move to. More... | |
void | StartControl () |
start moving around More... | |
void | StartMoveTo (const long int pan, const long int tilt) |
move to desired position More... | |
void | StopControl () |
stop/pause moving around More... | |
void | StopMoveTo () |
stop move to desired position More... | |
bool | Stopped () |
check if position is reached More... | |
~PanTiltAutoControl () | |
destructor moves to (0,0), then calls super-destructor to release ttyS0 More... | |
Static Public Member Functions | |
static void | GetPosition (long int &pan, long int &tilt) |
Get position, values should be updated by derived classes. More... | |
static void | GetPositionDegrees (double &panDegree, double &tiltDegree) |
Get position in degrees, values should be updated by derived classes. More... | |
Protected Attributes | |
BIAS::DPPanTiltControl | ptControl |
Static Protected Attributes | |
static long int | cur_pan = 0 |
static long int | cur_tilt = 0 |
static double | presolution = 0.0 |
static double | tresolution = 0.0 |
Automatic control of the PanTilt Unit from Directed Perception
Definition at line 38 of file PanTiltAutoControl.hh.
PanTiltAutoControl::PanTiltAutoControl | ( | std::string | device, |
bool | heavyDutyMode | ||
) |
constructor has nothing to do, super-constructor will startup communication
Definition at line 45 of file PanTiltAutoControl.cpp.
PanTiltAutoControl::~PanTiltAutoControl | ( | ) |
destructor moves to (0,0), then calls super-destructor to release ttyS0
Definition at line 52 of file PanTiltAutoControl.cpp.
References BIAS::DPPanTiltControl::ClosePanTiltUnit(), BIAS::PanTiltControlInterface::ptControl, and ResumeControl().
|
inlineinherited |
Waits until the current command is completed.
Definition at line 123 of file PanTiltControlInterface.hh.
|
inlinestaticinherited |
Get position, values should be updated by derived classes.
Definition at line 99 of file PanTiltControlInterface.hh.
|
inlinestaticinherited |
Get position in degrees, values should be updated by derived classes.
Definition at line 106 of file PanTiltControlInterface.hh.
Referenced by BIAS::PanTiltManualControl::StartControl().
|
virtual |
resume moving around
Implements BIAS::PanTiltControlInterface.
Definition at line 88 of file PanTiltAutoControl.cpp.
Referenced by ~PanTiltAutoControl().
|
inlineinherited |
Set the position to move to.
Definition at line 113 of file PanTiltControlInterface.hh.
|
virtual |
start moving around
Implements BIAS::PanTiltControlInterface.
Definition at line 63 of file PanTiltAutoControl.cpp.
References BIAS::PanTiltControlInterface::cur_pan, BIAS::PanTiltControlInterface::cur_tilt, BIAS::DPPanTiltControl::GetCurrentPosition(), BIAS::PanTiltControlInterface::ptControl, BIAS::DPPanTiltControl::SetMode(), and BIAS::DPPanTiltControl::SetSpeed().
|
virtual |
move to desired position
Reimplemented from BIAS::PanTiltControlInterface.
Definition at line 95 of file PanTiltAutoControl.cpp.
References BIAS::PanTiltControlInterface::cur_pan, BIAS::PanTiltControlInterface::cur_tilt, BIAS::DPPanTiltControl::GetCurrentPosition(), BIAS::PanTiltControlInterface::ptControl, BIAS::DPPanTiltControl::SetMode(), and BIAS::DPPanTiltControl::SetSpeed().
|
virtual |
stop/pause moving around
Implements BIAS::PanTiltControlInterface.
Definition at line 81 of file PanTiltAutoControl.cpp.
References BIAS::PanTiltControlInterface::ptControl, and BIAS::DPPanTiltControl::SetSpeed().
void PanTiltAutoControl::StopMoveTo | ( | ) |
stop move to desired position
Definition at line 111 of file PanTiltAutoControl.cpp.
|
inline |
check if position is reached
Definition at line 58 of file PanTiltAutoControl.hh.
|
staticprotectedinherited |
Definition at line 132 of file PanTiltControlInterface.hh.
Referenced by BIAS::PanTiltManualControl::StartControl(), StartControl(), and StartMoveTo().
|
staticprotectedinherited |
Definition at line 133 of file PanTiltControlInterface.hh.
Referenced by BIAS::PanTiltManualControl::StartControl(), StartControl(), and StartMoveTo().
|
staticprotectedinherited |
Definition at line 134 of file PanTiltControlInterface.hh.
|
protectedinherited |
Definition at line 131 of file PanTiltControlInterface.hh.
Referenced by BIAS::PanTiltManualControl::StartControl(), StartControl(), StartMoveTo(), StopControl(), and ~PanTiltAutoControl().
|
staticprotectedinherited |
Definition at line 135 of file PanTiltControlInterface.hh.