|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
10 #ifndef YARP_DEV_IPOSITIONCONTROL_H
11 #define YARP_DEV_IPOSITIONCONTROL_H
18 class IPositionControlRaw;
19 class IPositionControl;
162 virtual bool positionMoveRaw(
const int n_joint,
const int *joints,
const double *refs)=0;
169 virtual bool relativeMoveRaw(
const int n_joint,
const int *joints,
const double *deltas)=0;
185 virtual bool setRefSpeedsRaw(
const int n_joint,
const int *joints,
const double *spds)=0;
215 virtual bool stopRaw(
const int n_joint,
const int *joints)=0;
389 virtual bool positionMove(
const int n_joint,
const int *joints,
const double *refs)=0;
396 virtual bool relativeMove(
const int n_joint,
const int *joints,
const double *deltas)=0;
411 virtual bool setRefSpeeds(
const int n_joint,
const int *joints,
const double *spds)=0;
427 virtual bool getRefSpeeds(
const int n_joint,
const int *joints,
double *spds)=0;
441 virtual bool stop(
const int n_joint,
const int *joints)=0;
484 #endif // YARP_DEV_IPOSITIONCONTROL_H
virtual bool setRefSpeedsRaw(const int n_joint, const int *joints, const double *spds)=0
Set reference speed on all joints.
virtual bool positionMoveRaw(int j, double ref)=0
Set new reference point for a single axis.
constexpr yarp::conf::vocab32_t VOCAB_RELATIVE_MOVE_GROUP
virtual bool setRefAccelerations(const double *accs)=0
Set reference acceleration on all joints.
virtual bool getTargetPositionRaw(const int joint, double *ref)
Get the last position reference for the specified axis.
constexpr yarp::conf::vocab32_t createVocab(char a, char b=0, char c=0, char d=0)
virtual bool setRefAccelerationsRaw(const double *accs)=0
Set reference acceleration on all joints.
virtual bool positionMove(int j, double ref)=0
Set new reference point for a single axis.
virtual bool positionMove(const int n_joint, const int *joints, const double *refs)=0
Set new reference point for a subset of joints.
virtual bool stop(int j)=0
Stop motion, single joint.
constexpr yarp::conf::vocab32_t VOCAB_MOTION_DONE_GROUP
virtual bool getRefSpeeds(const int n_joint, const int *joints, double *spds)=0
Get reference speed of all joints.
virtual bool checkMotionDone(const int n_joint, const int *joints, bool *flag)=0
Check if the current trajectory is terminated.
virtual bool getRefSpeedRaw(int j, double *ref)=0
Get reference speed for a joint.
virtual bool relativeMove(const double *deltas)=0
Set relative position, all joints.
virtual bool positionMoveRaw(const int n_joint, const int *joints, const double *refs)=0
Set new reference point for a subset of joints.
virtual bool setRefAccelerationRaw(int j, double acc)=0
Set reference acceleration for a joint.
virtual bool relativeMoveRaw(const double *deltas)=0
Set relative position, all joints.
virtual bool stop(const int n_joint, const int *joints)=0
Stop motion for subset of joints.
virtual bool checkMotionDoneRaw(int j, bool *flag)=0
Check if the current trajectory is terminated.
virtual bool setRefAccelerationsRaw(const int n_joint, const int *joints, const double *accs)=0
Set reference acceleration on all joints.
virtual bool checkMotionDone(bool *flag)=0
Check if the current trajectory is terminated.
virtual bool getRefSpeedsRaw(const int n_joint, const int *joints, double *spds)=0
Get reference speed of all joints.
virtual bool setRefAccelerations(const int n_joint, const int *joints, const double *accs)=0
Set reference acceleration on all joints.
virtual bool getRefAcceleration(int j, double *acc)=0
Get reference acceleration for a joint.
virtual bool checkMotionDoneRaw(bool *flag)=0
Check if the current trajectory is terminated.
virtual bool relativeMove(const int n_joint, const int *joints, const double *deltas)=0
Set relative position for a subset of joints.
virtual bool setRefSpeed(int j, double sp)=0
Set reference speed for a joint, this is the speed used during the interpolation of the trajectory.
virtual bool getRefSpeeds(double *spds)=0
Get reference speed of all joints.
virtual bool stopRaw(const int n_joint, const int *joints)=0
Stop motion for subset of joints.
virtual bool getRefAccelerationsRaw(const int n_joint, const int *joints, double *accs)=0
Get reference acceleration for a joint.
virtual bool setRefSpeeds(const int n_joint, const int *joints, const double *spds)=0
Set reference speed on all joints.
constexpr yarp::conf::vocab32_t VOCAB_REF_SPEED_GROUP
virtual bool setRefAcceleration(int j, double acc)=0
Set reference acceleration for a joint.
virtual bool stopRaw()=0
Stop motion, multiple joints.
virtual bool getTargetPositions(const int n_joint, const int *joints, double *refs)
Get the last position reference for the specified group of axes.
virtual bool getRefSpeed(int j, double *ref)=0
Get reference speed for a joint.
virtual bool checkMotionDone(int j, bool *flag)=0
Check if the current trajectory is terminated.
virtual ~IPositionControlRaw()
Destructor.
constexpr yarp::conf::vocab32_t VOCAB_POSITION_MOVE_GROUP
virtual bool checkMotionDoneRaw(const int n_joint, const int *joints, bool *flags)=0
Check if the current trajectory is terminated.
virtual bool relativeMoveRaw(const int n_joint, const int *joints, const double *deltas)=0
Set relative position for a subset of joints.
virtual bool setRefSpeedRaw(int j, double sp)=0
Set reference speed for a joint, this is the speed used during the interpolation of the trajectory.
virtual bool relativeMove(int j, double delta)=0
Set relative position.
virtual bool getAxes(int *ax)=0
Get the number of controlled axes.
virtual bool stop()=0
Stop motion, multiple joints.
virtual bool getRefAccelerations(const int n_joint, const int *joints, double *accs)=0
Get reference acceleration for a joint.
virtual bool relativeMoveRaw(int j, double delta)=0
Set relative position.
virtual bool getTargetPositions(double *refs)
Get the last position reference for all axes.
virtual ~IPositionControl()
Destructor.
Interface for a generic control board device implementing position control in encoder coordinates.
virtual bool stopRaw(int j)=0
Stop motion, single joint.
The main, catch-all namespace for YARP.
virtual bool setRefSpeeds(const double *spds)=0
Set reference speed on all joints.
virtual bool positionMove(const double *refs)=0
Set new reference point for all axes.
virtual bool getTargetPositionsRaw(const int n_joint, const int *joints, double *refs)
Get the last position reference for the specified group of axes.
constexpr yarp::conf::vocab32_t VOCAB_REF_ACCELERATION_GROUP
virtual bool getRefSpeedsRaw(double *spds)=0
Get reference speed of all joints.
virtual bool positionMoveRaw(const double *refs)=0
Set new reference point for all axes.
virtual bool getTargetPosition(const int joint, double *ref)
Get the last position reference for the specified axis.
constexpr yarp::conf::vocab32_t VOCAB_STOP_GROUP
virtual bool getRefAccelerations(double *accs)=0
Get reference acceleration of all joints.
virtual bool setRefSpeedsRaw(const double *spds)=0
Set reference speed on all joints.
Interface for a generic control board device implementing position control.
virtual bool getTargetPositionsRaw(double *refs)
Get the last position reference for all axes.
virtual bool getRefAccelerationsRaw(double *accs)=0
Get reference acceleration of all joints.
virtual bool getAxes(int *ax)=0
Get the number of controlled axes.
virtual bool getRefAccelerationRaw(int j, double *acc)=0
Get reference acceleration for a joint.