  | 
  
    YARP 
   Yet Another Robot Platform 
   | 
           
 | 
 
 
 
 
Go to the documentation of this file.
   17 #define JOINTIDCHECK if (j >= castToMapper(helper)->axes()){yError("joint id out of bound"); return false;} 
   22     intBuffManager(nullptr),
 
   23     doubleBuffManager(nullptr)
 
  132     for(
int idx=0; idx<n_joint; idx++)
 
  
 
virtual bool getRefCurrentsRaw(double *currs)=0
Get the reference value of the currents for all motors.
 
bool setRefCurrents(const double *t) override
Set the reference value of the currents for all motors.
 
virtual bool getCurrentRangeRaw(int m, double *min, double *max)=0
Get the full scale of the current measurement for a given motor (e.g.
 
bool getRefCurrents(double *t) override
Get the reference value of the currents for all motors.
 
virtual bool getNumberOfMotorsRaw(int *number)=0
Retrieves the number of controlled motors from the current physical interface.
 
void ampereS2A(const double *sens, double *ampere)
 
T * getData()
Return the data pointer.
 
bool getCurrent(int j, double *t) override
Get the instantaneous current measurement for a single motor.
 
virtual bool getCurrentRangesRaw(double *min, double *max)=0
Get the full scale of the current measurements for all motors motor (e.g.
 
Buffer< T > getBuffer()
Get a buffer and fill its information in @buffer.
 
virtual bool setRefCurrentRaw(int m, double curr)=0
Set the reference value of the current for a single motor.
 
void ampereA2S(double ampere, int j, double &sens, int &k)
 
yarp::dev::impl::FixedSizeBuffersManager< int > * intBuffManager
 
virtual ~ImplementCurrentControl()
Destructor.
 
yarp::dev::ICurrentControlRaw * iCurrentRaw
 
bool getCurrentRange(int j, double *min, double *max) override
Get the full scale of the current measurement for a given motor (e.g.
 
An interface for the device drivers.
 
Interface for control boards implementing current control.
 
bool getCurrentRanges(double *min, double *max) override
Get the full scale of the current measurements for all motors motor (e.g.
 
virtual bool getCurrentsRaw(double *currs)=0
Get the instantaneous current measurement for all motors.
 
Buffer contains info about a buffer of type T and it is used to exchange information with yarp::dev::...
 
virtual bool getRefCurrentRaw(int m, double *curr)=0
Get the reference value of the current for a single motor.
 
bool getRefCurrent(int j, double *) override
Get the reference value of the current for a single motor.
 
bool getNumberOfMotors(int *ax) override
Retrieves the number of controlled axes from the current physical interface.
 
yarp::dev::impl::FixedSizeBuffersManager< double > * doubleBuffManager
 
bool getCurrents(double *t) override
Get the instantaneous current measurement for all motors.
 
void releaseBuffer(Buffer< T > &buffer)
Release a buffer.
 
bool initialize(int size, const int *amap, const double *ampsToSens)
Initialize the internal data and alloc memory.
 
virtual bool setRefCurrentsRaw(const double *currs)=0
Set the reference value of the currents for all motors.
 
bool setRefCurrent(int j, double t) override
Set the reference value of the current for a single motor.
 
An interface to the operating system, including Port based communication.
 
yarp::dev::ControlBoardHelper * castToMapper(void *p)
 
virtual bool getCurrentRaw(int m, double *curr)=0
Get the instantaneous current measurement for a single motor.
 
bool uninitialize()
Clean up internal data and memory.
 
ImplementCurrentControl(yarp::dev::ICurrentControlRaw *y)