Go to the documentation of this file.
10 #ifndef CPtuDPerception_H
11 #define CPtuDPerception_H
47 virtual bool absPosQ(
char axis,
double& nRad);
66 virtual bool offPosQ(
char axis,
double& nRad);
70 virtual bool maxPosQ(
char axis,
double& nRad);
74 virtual bool minPosQ(
char axis,
double& nRad);
109 virtual bool aWait(
void);
117 virtual bool halt(
char axis);
121 virtual bool speed(
char axis,
double radSec);
125 virtual bool speedQ(
char axis,
double& radSec);
129 virtual bool aceleration(
char axis,
double radSec2);
139 virtual bool baseSpeed(
char axis,
double radSec);
145 virtual bool baseSpeedQ(
char axis,
double& radSec);
149 virtual bool upperSpeed(
char axis,
double radSec);
153 virtual bool upperSpeedQ(
char axis,
double& radSec);
157 virtual bool lowerSpeed(
char axis,
double radSec);
161 virtual bool lowerSpeedQ(
char axis,
double& radSec);
165 virtual bool reset(
void);
169 virtual bool save(
void);
181 virtual bool version(
char* nVersion);
185 virtual void nversion(
double& nVersion);
205 virtual bool setLimits(
char axis,
double& l,
double& u);
288 virtual void close();
295 virtual double radError(
char axis,
double nRadMoved);
299 virtual long radToPos(
char axis,
double nRad);
303 virtual double posToRad(
char axis,
long nPos);
314 char axis,
int wait,
float initial,
float final,
double radPre);
331 virtual bool verbose(
bool set);
359 virtual bool transmit(
const char* command);
363 virtual bool receive(
const char* command,
char* response);
367 virtual bool radQuerry(
char axis,
char command,
double& nRad);
371 virtual bool radAsign(
char axis,
char command,
double nRad);
virtual bool scan(char axis, int wait, float initial, float final, double radPre)
Performs a scan in the axis indicated and whit the precision desired.
virtual bool moveToAbsPos(char axis, double nRad)
Specification of positions in absolute terms.
virtual long radToPos(char axis, double nRad)
To obtain the discrete value for a number of radians.
virtual bool restoreDefaults(void)
Restore default values.
virtual bool verbose(bool set)
Set verbose.
virtual bool upperSpeedQ(char axis, double &radSec)
Query velocity upper limit.
virtual bool restoreFactoryDefaults(void)
Restore factory default values.
virtual double status(double &rad)
Check if ptu is moving.
virtual bool acelerationQ(char axis, double &radSec2)
Query (de/a)celeration in turn.
virtual int checkErrors()
Check errors, returns 0 if there are not errors or error code in otherwise Error codes:
virtual double convertToDouble(char *sDouble)
Convert string to double.
virtual bool version(char *nVersion)
Version and CopyRights.
virtual bool lowerSpeedQ(char axis, double &radSec)
Query velocity lower limit.
virtual ~CPtuDPerception()
Destructor.
virtual bool save(void)
Save or restart default values.
virtual bool setLimits(char axis, double &l, double &u)
Set limits of movement.
virtual bool init(const std::string &port)
PTU and serial port initialization.
virtual bool receive(const char *command, char *response)
To receive the responseof the PTU.
virtual bool speed(char axis, double radSec)
Specification of turn speed.
virtual void close()
Close Connection with serial port.
virtual bool transmit(const char *command)
To transmition commands to the PTU.
#define MRPT_UNUSED_PARAM(a)
Determines whether this is an X86 or AMD64 platform.
virtual void nversion(double &nVersion)
Number of version.
virtual bool upperSpeed(char axis, double radSec)
Specification of velocity upper limit.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
virtual bool powerModeQ(bool transit, char &mode)
Query power mode.
virtual bool powerMode(bool transit, char mode)
Specification of power mode.
virtual bool reset(void)
Reset PTU to initial state.
int nError
TimeoutError: Only occurs if the communication is cut with PTU so it is advisable to check the connec...
virtual bool minPosQ(char axis, double &nRad)
Query min movement limit of a axis in absolute terms.
virtual bool inmediateExecution(bool set)
With I mode (default) instructs pan-tilt unit to immediately execute positional commands.
virtual bool echoMode(bool mode)
Enable/Disable echo response with command.
virtual bool verboseQ(bool &modo)
Query verbose mode.
virtual double posToRad(char axis, long nPos)
To obtain the number of radians for a discrete value.
virtual bool maxPosQ(char axis, double &nRad)
Query max movement limit of a axis in absolute terms.
virtual bool radAsign(char axis, char command, double nRad)
Method used for asign a number of radians with a command.
virtual bool resolution(void)
Query the pan and tilt resolution per position moved and initialize local atributes.
virtual bool changeMotionDir()
virtual bool enableLimitsQ(bool &enable)
Query if exist movement limits.
virtual bool absPosQ(char axis, double &nRad)
Query position in absolute terms.
This class implements initialization and comunication methods to control a generic Pan and Tilt Unit,...
virtual bool enableLimits(bool set)
Enable/Disable movement limits.
virtual long convertToLong(char *sLong)
Convert string to long.
virtual bool lowerSpeed(char axis, double radSec)
Specification of velocity lower limit.
virtual bool halt(char axis)
Inmediately stop.
virtual bool moveToOffPos(char axis, double nRad)
Specify desired axis position as an offset from the current position.
virtual bool echoModeQ(bool &mode)
Query echo mode.
virtual bool baseSpeed(char axis, double radSec)
Specification of velocity to which start and finish the (de/a)celeration.
virtual bool haltAll()
Inmediately stop all.
virtual bool speedQ(char axis, double &radSec)
Query turn speed.
virtual bool radQuerry(char axis, char command, double &nRad)
Used to obtains a number of radians.
virtual bool rangeMeasure()
Search limit forward.
virtual bool baseSpeedQ(char axis, double &radSec)
Query velocity to which start and finish the (de/a)celeration.
virtual double radError(char axis, double nRadMoved)
To obtains the mistake for use discrete values when the movement is expressed in radians.
virtual bool aWait(void)
Wait the finish of the last position command to continue accept commands.
This class implements initialization and comunication methods to control a Pan and Tilt Unit model PT...
virtual void clearErrors()
Clear errors.
GLsizei const GLchar ** string
virtual bool offPosQ(char axis, double &nRad)
Query position in relative terms.
virtual bool aceleration(char axis, double radSec2)
Specification (de/a)celeration in turn.
bool illegalCommandError()
CPtuDPerception()
Default constructor.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |