Simple example for driving to the left and right with the Directed Perception PTU.
- Author
- MIP
#include <PanTilt/DPPanTiltControl.hh>
using namespace BIAS;
using namespace std;
int main(int argc, char *argv[])
{
bool bRet = false;
if (argc < 2)
else
if (!bRet) {
cout<<"Initialising PTU failed!"<<endl;
return -1;
}
else
panTiltControl.
SetMode(ABSOLUTEMODE);
panTiltControl.
SetSpeed(DPPTU_MAXSPEED/4, DPPTU_MAXSPEED/4);
bool reverse = true;
for(int i=0;i<2;i++){
if(reverse){
reverse = false;
}
else{
reverse = true;
}
}
return 0;
}