6 #ifndef YARP_DEV_IMPLEMENTCURRENTCONTROL_H
7 #define YARP_DEV_IMPLEMENTCURRENTCONTROL_H
14 class ImplementCurrentControl;
23 class FixedSizeBuffersManager;
43 bool initialize(
int size,
const int *amap,
const double* ampsToSens);
68 bool setRefCurrents(
const int n_joint,
const int *joints,
const double *
t)
override;
Interface for control boards implementing current control.
Interface for control boards implementing current control.
virtual bool getCurrents(double *currs)=0
Get the instantaneous current measurement for all motors.
virtual bool setRefCurrent(int m, double curr)=0
Set the reference value of the current for a single motor.
virtual bool getRefCurrents(double *currs)=0
Get the reference value of the currents for all motors.
virtual bool getNumberOfMotors(int *ax)=0
Retrieves the number of controlled axes from the current physical interface.
virtual bool setRefCurrents(const double *currs)=0
Set the reference value of the currents for all motors.
virtual bool getCurrent(int m, double *curr)=0
Get the instantaneous current measurement for a single motor.
virtual bool getCurrentRange(int m, double *min, double *max)=0
Get the full scale of the current measurement for a given motor (e.g.
virtual bool getRefCurrent(int m, double *curr)=0
Get the reference value of the current for a single motor.
virtual bool getCurrentRanges(double *min, double *max)=0
Get the full scale of the current measurements for all motors motor (e.g.
yarp::dev::impl::FixedSizeBuffersManager< int > * intBuffManager
ImplementCurrentControl(yarp::dev::ICurrentControlRaw *y)
bool uninitialize()
Clean up internal data and memory.
yarp::dev::impl::FixedSizeBuffersManager< double > * doubleBuffManager
yarp::dev::ICurrentControlRaw * iCurrentRaw
bool initialize(int size, const int *amap, const double *ampsToSens)
Initialize the internal data and alloc memory.
virtual ~ImplementCurrentControl()
Destructor.
The main, catch-all namespace for YARP.