7#ifndef YARP_DEV_IPOSITIONCONTROL_H
8#define YARP_DEV_IPOSITIONCONTROL_H
17class IPositionControlRaw;
18class IPositionControl;
constexpr yarp::conf::vocab32_t VOCAB_REF_ACCELERATION_GROUP
constexpr yarp::conf::vocab32_t VOCAB_STOP_GROUP
constexpr yarp::conf::vocab32_t VOCAB_POSITIONCONTROL_INTERFACE
constexpr yarp::conf::vocab32_t VOCAB_RELATIVE_MOVE_GROUP
constexpr yarp::conf::vocab32_t VOCAB_POSITION_MOVE_GROUP
constexpr yarp::conf::vocab32_t VOCAB_MOTION_DONE_GROUP
constexpr yarp::conf::vocab32_t VOCAB_REF_SPEED_GROUP
Interface for a generic control board device implementing position control in encoder coordinates.
virtual yarp::dev::ReturnValue relativeMoveRaw(const double *deltas)=0
Set relative position, all joints.
virtual yarp::dev::ReturnValue stopRaw()=0
Stop motion, multiple joints.
virtual yarp::dev::ReturnValue getTrajAccelerationsRaw(double *accs)=0
Get reference acceleration of all joints.
virtual yarp::dev::ReturnValue getAxes(size_t &ax)=0
Get the number of controlled axes.
virtual yarp::dev::ReturnValue getTargetPositionRaw(const int joint, double *ref)=0
Get the last position reference for the specified axis.
virtual yarp::dev::ReturnValue relativeMoveRaw(const int n_joint, const int *joints, const double *deltas)=0
Set relative position for a subset of joints.
virtual yarp::dev::ReturnValue getTrajSpeedRaw(int j, double *ref)=0
Get reference speed for a joint.
virtual yarp::dev::ReturnValue positionMoveRaw(const double *refs)=0
Set new reference point for all axes.
virtual yarp::dev::ReturnValue checkMotionDoneRaw(bool &flag)=0
Check if the current trajectory all joints is terminated.
virtual yarp::dev::ReturnValue setTrajAccelerationsRaw(const int n_joint, const int *joints, const double *accs)=0
Set reference acceleration on all joints.
virtual yarp::dev::ReturnValue getTargetPositionsRaw(const int n_joint, const int *joints, double *refs)=0
Get the last position reference for the specified group of axes.
virtual yarp::dev::ReturnValue getTrajSpeedsRaw(const int n_joint, const int *joints, double *spds)=0
Get reference speed of all joints.
virtual yarp::dev::ReturnValue stopRaw(int j)=0
Stop motion, single joint.
virtual yarp::dev::ReturnValue checkMotionDoneRaw(const std::vector< int > &joints, bool &flag)=0
Check if the current trajectory is terminated.
virtual yarp::dev::ReturnValue setTrajSpeedsRaw(const double *spds)=0
Set reference speed on all joints.
virtual yarp::dev::ReturnValue getTrajAccelerationsRaw(const int n_joint, const int *joints, double *accs)=0
Get reference acceleration for a joint.
virtual yarp::dev::ReturnValue positionMoveRaw(int j, double ref)=0
Set new reference point for a single axis.
virtual yarp::dev::ReturnValue getTrajAccelerationRaw(int j, double *acc)=0
Get reference acceleration for a joint.
virtual yarp::dev::ReturnValue setTrajSpeedRaw(int j, double sp)=0
Set reference speed for a joint, this is the speed used during the interpolation of the trajectory.
virtual yarp::dev::ReturnValue checkMotionDoneRaw(int j, bool &flag)=0
Check if the current trajectory is terminated.
virtual yarp::dev::ReturnValue setTrajAccelerationRaw(int j, double acc)=0
Set reference acceleration for a joint.
virtual yarp::dev::ReturnValue stopRaw(const int n_joint, const int *joints)=0
Stop motion for subset of joints.
virtual yarp::dev::ReturnValue getTargetPositionsRaw(double *refs)=0
Get the last position reference for all axes.
virtual yarp::dev::ReturnValue setTrajAccelerationsRaw(const double *accs)=0
Set reference acceleration on all joints.
virtual yarp::dev::ReturnValue setTrajSpeedsRaw(const int n_joint, const int *joints, const double *spds)=0
Set reference speed on all joints.
virtual ~IPositionControlRaw()
Destructor.
virtual yarp::dev::ReturnValue getTrajSpeedsRaw(double *spds)=0
Get reference speed of all joints.
virtual yarp::dev::ReturnValue relativeMoveRaw(int j, double delta)=0
Set relative position.
virtual yarp::dev::ReturnValue positionMoveRaw(const int n_joint, const int *joints, const double *refs)=0
Set new reference point for a subset of joints.
Interface for a generic control board device implementing position control.
virtual yarp::dev::ReturnValue getTargetPosition(const int joint, double *ref)=0
Get the last position reference for the specified axis.
virtual yarp::dev::ReturnValue setTrajSpeed(int j, double sp)=0
Set reference speed for a joint, this is the speed used during the interpolation of the trajectory.
virtual ~IPositionControl()
Destructor.
virtual yarp::dev::ReturnValue stop()=0
Stop motion, multiple joints.
virtual yarp::dev::ReturnValue getTrajAccelerations(const int n_joint, const int *joints, double *accs)=0
Get reference acceleration for a joint.
virtual yarp::dev::ReturnValue getTargetPositions(double *refs)=0
Get the last position reference for all axes.
virtual yarp::dev::ReturnValue setTrajAcceleration(int j, double acc)=0
Set reference acceleration for a joint.
virtual yarp::dev::ReturnValue setTrajAccelerations(const int n_joint, const int *joints, const double *accs)=0
Set reference acceleration on all joints.
virtual yarp::dev::ReturnValue relativeMove(int j, double delta)=0
Set relative position.
virtual yarp::dev::ReturnValue getTrajSpeeds(double *spds)=0
Get reference speed of all joints.
virtual yarp::dev::ReturnValue setTrajSpeeds(const double *spds)=0
Set reference speed on all joints.
virtual yarp::dev::ReturnValue getTrajSpeeds(const int n_joint, const int *joints, double *spds)=0
Get reference speed of all joints.
virtual yarp::dev::ReturnValue relativeMove(const int n_joint, const int *joints, const double *deltas)=0
Set relative position for a subset of joints.
virtual yarp::dev::ReturnValue positionMove(int j, double ref)=0
Set new reference point for a single axis.
virtual yarp::dev::ReturnValue checkMotionDone(bool &flag)=0
Check if the current trajectory is terminated.
virtual yarp::dev::ReturnValue getTargetPositions(const int n_joint, const int *joints, double *refs)=0
Get the last position reference for the specified group of axes.
virtual yarp::dev::ReturnValue getTrajAccelerations(double *accs)=0
Get reference acceleration of all joints.
virtual yarp::dev::ReturnValue checkMotionDone(int j, bool &flag)=0
Check if the current trajectory is terminated.
virtual yarp::dev::ReturnValue stop(const int n_joint, const int *joints)=0
Stop motion for subset of joints.
virtual yarp::dev::ReturnValue positionMove(const double *refs)=0
Set new reference point for all axes.
virtual yarp::dev::ReturnValue checkMotionDone(const std::vector< int > &joints, bool &flag)=0
Check if the current trajectory is terminated.
virtual yarp::dev::ReturnValue getAxes(size_t &ax)=0
Get the number of controlled axes.
virtual yarp::dev::ReturnValue getTrajSpeed(int j, double *ref)=0
Get reference speed for a joint.
virtual yarp::dev::ReturnValue setTrajAccelerations(const double *accs)=0
Set reference acceleration on all joints.
virtual yarp::dev::ReturnValue setTrajSpeeds(const int n_joint, const int *joints, const double *spds)=0
Set reference speed on all joints.
virtual yarp::dev::ReturnValue stop(int j)=0
Stop motion, single joint.
virtual yarp::dev::ReturnValue getTrajAcceleration(int j, double *acc)=0
Get reference acceleration for a joint.
virtual yarp::dev::ReturnValue positionMove(const int n_joint, const int *joints, const double *refs)=0
Set new reference point for a subset of joints.
virtual yarp::dev::ReturnValue relativeMove(const double *deltas)=0
Set relative position, all joints.
For streams capable of holding different kinds of content, check what they actually have.
constexpr yarp::conf::vocab32_t createVocab32(char a, char b=0, char c=0, char d=0)
Create a vocab from chars.
The main, catch-all namespace for YARP.