YARP
Yet Another Robot Platform
yarp::dev::ICurrentControlRaw Class Referenceabstract

Interface for control boards implementing current control. More...

#include <yarp/dev/ICurrentControl.h>

+ Inheritance diagram for yarp::dev::ICurrentControlRaw:

Public Member Functions

virtual ~ICurrentControlRaw ()
 Destructor. More...
 
virtual bool getNumberOfMotorsRaw (int *number)=0
 Retrieves the number of controlled motors from the current physical interface. More...
 
virtual bool getCurrentRaw (int m, double *curr)=0
 Get the instantaneous current measurement for a single motor. More...
 
virtual bool getCurrentsRaw (double *currs)=0
 Get the instantaneous current measurement for all motors. More...
 
virtual bool getCurrentRangeRaw (int m, double *min, double *max)=0
 Get the full scale of the current measurement for a given motor (e.g. More...
 
virtual bool getCurrentRangesRaw (double *min, double *max)=0
 Get the full scale of the current measurements for all motors motor (e.g. More...
 
virtual bool setRefCurrentsRaw (const double *currs)=0
 Set the reference value of the currents for all motors. More...
 
virtual bool setRefCurrentRaw (int m, double curr)=0
 Set the reference value of the current for a single motor. More...
 
virtual bool setRefCurrentsRaw (const int n_motor, const int *motors, const double *currs)=0
 Set the reference value of the current for a group of motors. More...
 
virtual bool getRefCurrentsRaw (double *currs)=0
 Get the reference value of the currents for all motors. More...
 
virtual bool getRefCurrentRaw (int m, double *curr)=0
 Get the reference value of the current for a single motor. More...
 

Detailed Description

Interface for control boards implementing current control.

Definition at line 113 of file ICurrentControl.h.

Constructor & Destructor Documentation

◆ ~ICurrentControlRaw()

virtual yarp::dev::ICurrentControlRaw::~ICurrentControlRaw ( )
inlinevirtual

Destructor.

Definition at line 119 of file ICurrentControl.h.

Member Function Documentation

◆ getCurrentRangeRaw()

virtual bool yarp::dev::ICurrentControlRaw::getCurrentRangeRaw ( int  m,
double *  min,
double *  max 
)
pure virtual

Get the full scale of the current measurement for a given motor (e.g.

-20A +20A) Reference values set by user with methods such as setRefCurrent() should be in this range. This method is not related to the current overload protection methods belonging to the iAmplifierControl interface.

Parameters
mmotor number
minminimum current of the motor m
maxmaximum current of the motor m
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ getCurrentRangesRaw()

virtual bool yarp::dev::ICurrentControlRaw::getCurrentRangesRaw ( double *  min,
double *  max 
)
pure virtual

Get the full scale of the current measurements for all motors motor (e.g.

-20A +20A) Reference values set by user with methods such as setRefCurrent() should be in this range. This method is not related to the current overload protection methods belonging to the iAmplifierControl interface.

Parameters
minpointer to the array that will store minimum currents
maxpointer to the array that will store maximum currents
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ getCurrentRaw()

virtual bool yarp::dev::ICurrentControlRaw::getCurrentRaw ( int  m,
double *  curr 
)
pure virtual

Get the instantaneous current measurement for a single motor.

Parameters
mmotor number
currpointer to the result value
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ getCurrentsRaw()

virtual bool yarp::dev::ICurrentControlRaw::getCurrentsRaw ( double *  currs)
pure virtual

Get the instantaneous current measurement for all motors.

Parameters
currspointer to the array that will store the output
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ getNumberOfMotorsRaw()

virtual bool yarp::dev::ICurrentControlRaw::getNumberOfMotorsRaw ( int *  number)
pure virtual

Retrieves the number of controlled motors from the current physical interface.

Parameters
numberreturns the number of controlled motors.
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ getRefCurrentRaw()

virtual bool yarp::dev::ICurrentControlRaw::getRefCurrentRaw ( int  m,
double *  curr 
)
pure virtual

Get the reference value of the current for a single motor.

Parameters
mmotor number
currthe current reference value for motor m
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ getRefCurrentsRaw()

virtual bool yarp::dev::ICurrentControlRaw::getRefCurrentsRaw ( double *  currs)
pure virtual

Get the reference value of the currents for all motors.

Parameters
currspointer to the array to be filled with reference current values.
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ setRefCurrentRaw()

virtual bool yarp::dev::ICurrentControlRaw::setRefCurrentRaw ( int  m,
double  curr 
)
pure virtual

Set the reference value of the current for a single motor.

Parameters
mmotor number
currthe current reference value for motor m
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ setRefCurrentsRaw() [1/2]

virtual bool yarp::dev::ICurrentControlRaw::setRefCurrentsRaw ( const double *  currs)
pure virtual

Set the reference value of the currents for all motors.

Parameters
currsthe array containt the reference current values
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ setRefCurrentsRaw() [2/2]

virtual bool yarp::dev::ICurrentControlRaw::setRefCurrentsRaw ( const int  n_motor,
const int *  motors,
const double *  currs 
)
pure virtual

Set the reference value of the current for a group of motors.

Parameters
n_motorsize of motors ans currs arrays
motorspointer to the array of motor numbers
refspointer to the array specifying the new current reference
Returns
true/false on success/failure

Implemented in FakeMotionControl.


The documentation for this class was generated from the following file: