50 virtual bool absPosQ(
char axis,
double& nRad) = 0;
69 virtual bool offPosQ(
char axis,
double& nRad) = 0;
73 virtual bool maxPosQ(
char axis,
double& nRad) = 0;
77 virtual bool minPosQ(
char axis,
double& nRad) = 0;
112 virtual bool aWait(
void) = 0;
120 virtual bool halt(
char axis) = 0;
124 virtual bool speed(
char axis,
double RadSec) = 0;
128 virtual bool speedQ(
char axis,
double& RadSec) = 0;
132 virtual bool aceleration(
char axis,
double RadSec2) = 0;
136 virtual bool acelerationQ(
char axis,
double& RadSec2) = 0;
142 virtual bool baseSpeed(
char axis,
double RadSec) = 0;
148 virtual bool baseSpeedQ(
char axis,
double& RadSec) = 0;
152 virtual bool upperSpeed(
char axis,
double RadSec) = 0;
156 virtual bool upperSpeedQ(
char axis,
double& RadSec) = 0;
160 virtual bool lowerSpeed(
char axis,
double RadSec) = 0;
164 virtual bool lowerSpeedQ(
char axis,
double& RadSec) = 0;
168 virtual bool reset(
void) = 0;
172 virtual bool save(
void) = 0;
184 virtual bool version(
char* nVersion) = 0;
188 virtual void nversion(
double& nVersion) = 0;
200 virtual double status(
double& rad) = 0;
204 virtual bool setLimits(
char axis,
double& l,
double& u) = 0;
229 virtual void close() = 0;
236 virtual double radError(
char axis,
double nRadMoved) = 0;
240 virtual long radToPos(
char axis,
double nRad) = 0;
244 virtual double posToRad(
char axis,
long nPos) = 0;
255 char axis,
int wait,
float initial,
float final,
double RadPre) = 0;
259 virtual bool verboseQ(
bool& modo) = 0;
272 virtual bool verbose(
bool set) = 0;
300 virtual bool transmit(
const char* command) = 0;
304 virtual bool receive(
const char* command,
char* response) = 0;
308 virtual bool radQuerry(
char axis,
char command,
double& nRad) = 0;
312 virtual bool radAsign(
char axis,
char command,
double nRad) = 0;
virtual bool upperSpeedQ(char axis, double &RadSec)=0
Query velocity upper limit.
virtual bool absPosQ(char axis, double &nRad)=0
Query position in absolute terms.
virtual bool aceleration(char axis, double RadSec2)=0
Specification (de/a)celeration in turn.
virtual bool enableLimits(bool set)=0
Enable/Disable movement limits.
virtual bool save(void)=0
Save or restart default values.
virtual ~CPtuBase()
Destructor.
virtual bool lowerSpeedQ(char axis, double &RadSec)=0
Query velocity lower limit.
A communications serial port built as an implementation of a utils::CStream.
virtual bool verbose(bool set)=0
Set verbose.
mrpt::comms::CSerialPort serPort
virtual bool verboseQ(bool &modo)=0
Query verbose mode.
virtual bool inmediateExecution(bool set)=0
With I mode (default) instructs pan-tilt unit to immediately execute positional commands.
virtual bool scan(char axis, int wait, float initial, float final, double RadPre)=0
Performs a scan in the axis indicated and whit the precision desired.
This class implements initialization and comunication methods to control a generic Pan and Tilt Unit...
virtual bool resolution(void)=0
Query the pan and tilt resolution per position moved and initialize local atributes.
virtual bool echoMode(bool mode)=0
Enable/Disable echo response with command.
virtual bool upperSpeed(char axis, double RadSec)=0
Specification of velocity upper limit.
virtual bool aWait(void)=0
Wait the finish of the last position command to continue accept commands.
virtual bool restoreDefaults(void)=0
Restore default values.
virtual bool moveToAbsPos(char axis, double nRad)=0
Specification of positions in absolute terms.
virtual bool restoreFactoryDefaults(void)=0
Restore factory default values.
virtual bool init(const std::string &port)=0
PTU and serial port initialization.
virtual bool moveToOffPos(char axis, double nRad)=0
Specify desired axis position as an offset from the current position.
virtual void close()=0
Close Connection with serial port.
virtual bool maxPosQ(char axis, double &nRad)=0
Query max movement limit of a axis in absolute terms.
virtual bool minPosQ(char axis, double &nRad)=0
Query min movement limit of a axis in absolute terms.
virtual double status(double &rad)=0
Check if ptu is moving.
virtual bool powerMode(bool transit, char mode)=0
Specification of power mode.
virtual bool setLimits(char axis, double &l, double &u)=0
Set limits of movement.
virtual bool changeMotionDir()=0
virtual bool baseSpeedQ(char axis, double &RadSec)=0
Query velocity to which start and finish the (de/a)celeration.
virtual double radError(char axis, double nRadMoved)=0
To obtains the mistake for use discrete values when the movement is expressed in radians.
virtual int checkErrors()=0
Check errors, returns 0 if there are not errors or error code otherwise.
virtual bool radQuerry(char axis, char command, double &nRad)=0
Used to obtains a number of radians.
virtual bool acelerationQ(char axis, double &RadSec2)=0
Query (de/a)celeration in turn.
GLsizei const GLchar ** string
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
virtual void clearErrors()=0
Clear errors.
virtual bool reset(void)=0
Reset PTU to initial state.
virtual bool powerModeQ(bool transit, char &mode)=0
Query power mode.
virtual bool rangeMeasure()=0
Search limit forward.
virtual bool halt(char axis)=0
Inmediately stop.
virtual bool transmit(const char *command)=0
To transmition commands to the PTU.
virtual bool haltAll()=0
Inmediately stop all.
virtual bool speedQ(char axis, double &RadSec)=0
Query turn speed.
virtual bool offPosQ(char axis, double &nRad)=0
Query position in relative terms.
virtual double posToRad(char axis, long nPos)=0
To obtain the number of radians for a discrete value.
virtual bool enableLimitsQ(bool &enable)=0
Query if exist movement limits.
virtual long radToPos(char axis, double nRad)=0
To obtain the discrete value for a number of radians.
virtual bool receive(const char *command, char *response)=0
To receive the responseof the PTU.
virtual bool lowerSpeed(char axis, double RadSec)=0
Specification of velocity lower limit.
virtual void nversion(double &nVersion)=0
Number of version.
virtual bool baseSpeed(char axis, double RadSec)=0
Specification of velocity to which start and finish the (de/a)celeration.
virtual bool version(char *nVersion)=0
Version and CopyRights.
virtual bool radAsign(char axis, char command, double nRad)=0
Method used for asign a number of radians with a command.
virtual bool speed(char axis, double RadSec)=0
Specification of turn speed.
virtual bool echoModeQ(bool &mode)=0
Query echo mode.