|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_DEV_IMPLEMENTCURRENTCONTROL_H
10 #define YARP_DEV_IMPLEMENTCURRENTCONTROL_H
17 class ImplementCurrentControl;
26 class FixedSizeBuffersManager;
46 bool initialize(
int size,
const int *amap,
const double* ampsToSens);
71 bool setRefCurrents(
const int n_joint,
const int *joints,
const double *
t)
override;
78 #endif // YARP_DEV_IMPLEMENTCURRENTCONTROL_H
virtual bool getRefCurrent(int m, double *curr)=0
Get the reference value of the current for a single motor.
yarp::dev::impl::FixedSizeBuffersManager< int > * intBuffManager
virtual bool setRefCurrents(const double *currs)=0
Set the reference value of the currents for all motors.
virtual ~ImplementCurrentControl()
Destructor.
yarp::dev::ICurrentControlRaw * iCurrentRaw
virtual bool getCurrents(double *currs)=0
Get the instantaneous current measurement for all motors.
Interface for control boards implementing current control.
virtual bool getCurrent(int m, double *curr)=0
Get the instantaneous current measurement for a single motor.
virtual bool getRefCurrents(double *currs)=0
Get the reference value of the currents for all motors.
yarp::dev::impl::FixedSizeBuffersManager< double > * doubleBuffManager
bool initialize(int size, const int *amap, const double *ampsToSens)
Initialize the internal data and alloc memory.
Interface for control boards implementing current control.
virtual bool setRefCurrent(int m, double curr)=0
Set the reference value of the current 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.
The main, catch-all namespace for YARP.
virtual bool getNumberOfMotors(int *ax)=0
Retrieves the number of controlled axes from the current physical interface.
virtual bool getCurrentRanges(double *min, double *max)=0
Get the full scale of the current measurements for all motors motor (e.g.
bool uninitialize()
Clean up internal data and memory.
ImplementCurrentControl(yarp::dev::ICurrentControlRaw *y)