Go to the documentation of this file.
48 virtual bool absPosQ(
char axis,
double& nRad);
67 virtual bool offPosQ(
char axis,
double& nRad);
71 virtual bool maxPosQ(
char axis,
double& nRad);
75 virtual bool minPosQ(
char axis,
double& nRad);
110 virtual bool aWait(
void);
118 virtual bool halt(
char axis);
122 virtual bool speed(
char axis,
double radSec);
126 virtual bool speedQ(
char axis,
double& radSec);
130 virtual bool aceleration(
char axis,
double radSec2);
140 virtual bool baseSpeed(
char axis,
double radSec);
146 virtual bool baseSpeedQ(
char axis,
double& radSec);
150 virtual bool upperSpeed(
char axis,
double radSec);
154 virtual bool upperSpeedQ(
char axis,
double& radSec);
158 virtual bool lowerSpeed(
char axis,
double radSec);
162 virtual bool lowerSpeedQ(
char axis,
double& radSec);
166 virtual bool reset(
void);
170 virtual bool save(
void);
182 virtual bool version(
char* nVersion);
186 virtual void nversion(
double& nVersion);
202 virtual bool setLimits(
char axis,
double& l,
double& u);
224 virtual void close();
231 virtual double radError(
char axis,
double nRadMoved);
235 virtual long radToPos(
char axis,
double nRad);
239 virtual double posToRad(
char axis,
long nPos);
250 char axis,
int wait,
float initial,
float final,
double radPre);
267 virtual bool verbose(
bool set);
292 virtual double status(
double& rad);
299 virtual bool transmit(
const char* command);
303 virtual bool receive(
const char* command,
char* response);
307 virtual bool radQuerry(
char axis,
char command,
double& nRad);
311 virtual bool radAsign(
char axis,
char command,
double nRad);
virtual double posToRad(char axis, long nPos)
To obtain the number of radians for a discrete value.
virtual bool moveToOffPos(char axis, double nRad)
Specify desired axis position as an offset from the current position.
virtual bool baseSpeed(char axis, double radSec)
Specification of velocity to which start and finish the (de/a)celeration.
virtual void close()
Close Connection with serial port.
CTuMicos()
Default constructor.
virtual double status(double &rad)
Check if ptu is moving.
static double convertToDouble(char *sDouble)
Convert string to double.
virtual bool version(char *nVersion)
Version and CopyRights.
virtual int checkErrors()
Check errors, returns 0 if there are not errors or error code otherwise.
virtual bool offPosQ(char axis, double &nRad)
Query position in relative terms.
virtual bool save(void)
Save or restart default values.
virtual bool rangeMeasure()
Search limit forward.
virtual bool radAsign(char axis, char command, double nRad)
Method used for asign a number of radians with a command.
virtual bool acelerationQ(char axis, double &radSec2)
Query (de/a)celeration in turn.
virtual bool speedQ(char axis, double &radSec)
Query turn speed.
virtual bool resolution(void)
Query the pan and tilt resolution per position moved and initialize local atributes.
virtual bool lowerSpeedQ(char axis, double &radSec)
Query velocity lower limit.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
virtual bool enableLimits(bool set)
Enable/Disable movement limits.
virtual bool baseSpeedQ(char axis, double &radSec)
Query velocity to which start and finish the (de/a)celeration.
virtual bool halt(char axis)
Inmediately stop.
virtual bool maxPosQ(char axis, double &nRad)
Query max movement limit of a axis in absolute terms.
virtual bool speed(char axis, double radSec)
Specification of turn speed.
virtual bool powerMode(bool transit, char mode)
Specification of power mode.
virtual bool upperSpeed(char axis, double radSec)
Specification of velocity upper limit.
virtual bool absPosQ(char axis, double &nRad)
Query position in absolute terms.
virtual bool upperSpeedQ(char axis, double &radSec)
Query velocity upper limit.
This class implements initialization and comunication methods to control a generic Pan and Tilt Unit,...
virtual bool haltAll()
Inmediately stop all.
virtual bool changeMotionDir()
virtual bool echoModeQ(bool &mode)
Query echo mode.
virtual bool transmit(const char *command)
To transmition commands to the PTU.
virtual ~CTuMicos()
Destructor.
virtual bool lowerSpeed(char axis, double radSec)
Specification of velocity lower limit.
virtual bool restoreDefaults(void)
Restore default values.
virtual void nversion(double &nVersion)
Number of version.
virtual bool init(const std::string &port)
PTU and serial port initialization.
Versatile class for consistent logging and management of output messages.
static long convertToLong(char *sLong)
Convert string to long.
virtual bool minPosQ(char axis, double &nRad)
Query min movement limit of a axis in absolute terms.
virtual bool aceleration(char axis, double radSec2)
Specification (de/a)celeration in turn.
virtual bool enableLimitsQ(bool &enable)
Query if exist movement limits.
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.
This class implements initialization and comunication methods to control a Tilt Unit model DT-80,...
virtual bool moveToAbsPos(char axis, double nRad)
Specification of positions in absolute terms.
bool clear()
Clear controller internal stack.
virtual bool verbose(bool set)
Set verbose.
virtual bool reset(void)
Reset PTU to initial state.
GLsizei const GLchar ** string
virtual double radError(char axis, double nRadMoved)
To obtains the mistake for use discrete values when the movement is expressed in radians.
virtual bool echoMode(bool mode)
Enable/Disable echo response with command.
virtual bool setLimits(char axis, double &l, double &u)
Set limits of movement.
virtual void clearErrors()
Clear errors.
virtual bool inmediateExecution(bool set)
With I mode (default) instructs pan-tilt unit to immediately execute positional commands.
virtual bool radQuerry(char axis, char command, double &nRad)
Used to obtains a number of radians.
virtual bool powerModeQ(bool transit, char &mode)
Query power mode.
virtual bool aWait(void)
Wait the finish of the last position command to continue accept commands.
virtual bool receive(const char *command, char *response)
To receive the responseof the PTU.
virtual bool restoreFactoryDefaults(void)
Restore factory default values.
virtual long radToPos(char axis, double nRad)
To obtain the discrete value for a number of radians.
virtual bool verboseQ(bool &modo)
Query verbose mode.
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 | |