7#ifndef YARP_IPOSITIONDIRECT_H
8#define YARP_IPOSITIONDIRECT_H
16class IPositionDirectRaw;
constexpr yarp::conf::vocab32_t VOCAB_POSITIONDIRECTCONTROL_INTERFACE
constexpr yarp::conf::vocab32_t VOCAB_POSITION_DIRECTS
constexpr yarp::conf::vocab32_t VOCAB_POSITION_DIRECT
constexpr yarp::conf::vocab32_t VOCAB_POSITION_DIRECT_GROUP
Interface for a generic control board device implementing position control in encoder coordinates.
virtual yarp::dev::ReturnValue setPositionsRaw(const double *refs)=0
Set new position for a set of axes.
virtual yarp::dev::ReturnValue setPositionRaw(int j, double ref)=0
Set new position for a single axis.
virtual yarp::dev::ReturnValue getAxes(size_t &axes)=0
Get the number of controlled axes.
virtual yarp::dev::ReturnValue getRefPositionsRaw(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 getRefPositionsRaw(double *refs)=0
Get the last position reference for all axes.
virtual yarp::dev::ReturnValue setPositionsRaw(const int n_joint, const int *joints, const double *refs)=0
Set new reference point for all axes.
virtual yarp::dev::ReturnValue getRefPositionRaw(const int joint, double *ref)=0
Get the last position reference for the specified axis.
virtual ~IPositionDirectRaw()
Destructor.
Interface for a generic control board device implementing position control.
virtual yarp::dev::ReturnValue getRefPosition(const int joint, double *ref)=0
Get the last position reference for the specified axis.
virtual yarp::dev::ReturnValue getRefPositions(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 setPositions(const int n_joint, const int *joints, const double *refs)=0
Set new reference point for all axes.
virtual yarp::dev::ReturnValue getAxes(size_t &ax)=0
Get the number of controlled axes.
virtual yarp::dev::ReturnValue setPosition(int j, double ref)=0
Set new position for a single axis.
virtual yarp::dev::ReturnValue getRefPositions(double *refs)=0
Get the last position reference for all axes.
virtual ~IPositionDirect()
Destructor.
virtual yarp::dev::ReturnValue setPositions(const double *refs)=0
Set new position for a set of axis.
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.