YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yarp::dev::ICurrentControl Class Referenceabstract

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

#include <yarp/dev/ICurrentControl.h>

+ Inheritance diagram for yarp::dev::ICurrentControl:

Public Member Functions

virtual ~ICurrentControl ()
 Destructor.
 
virtual bool getNumberOfMotors (int *ax)=0
 Retrieves the number of controlled axes from the current physical interface.
 
virtual bool getCurrent (int m, double *curr)=0
 Get the instantaneous current measurement for a single motor.
 
virtual bool getCurrents (double *currs)=0
 Get the instantaneous current measurement for all motors.
 
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 getCurrentRanges (double *min, double *max)=0
 Get the full scale of the current measurements for all motors motor (e.g.
 
virtual bool setRefCurrents (const double *currs)=0
 Set the reference value of the currents for all motors.
 
virtual bool setRefCurrent (int m, double curr)=0
 Set the reference value of the current for a single motor.
 
virtual bool setRefCurrents (const int n_motor, const int *motors, const double *currs)=0
 Set the reference value of the current for a group of motors.
 
virtual bool getRefCurrents (double *currs)=0
 Get the reference value of the currents for all motors.
 
virtual bool getRefCurrent (int m, double *curr)=0
 Get the reference value of the current for a single motor.
 

Detailed Description

Interface for control boards implementing current control.

Definition at line 22 of file ICurrentControl.h.

Constructor & Destructor Documentation

◆ ~ICurrentControl()

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

Destructor.

Definition at line 28 of file ICurrentControl.h.

Member Function Documentation

◆ getCurrent()

virtual bool yarp::dev::ICurrentControl::getCurrent ( int  m,
double *  curr 
)
pure virtual

Get the instantaneous current measurement for a single motor.

Parameters
mmotor number
currpointer to the result value. Value is expressed in amperes.
Returns
true/false on success/failure

Implemented in yarp::dev::ImplementCurrentControl, RemoteControlBoard, and ControlBoardRemapper.

◆ getCurrentRange()

virtual bool yarp::dev::ICurrentControl::getCurrentRange ( 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 RemoteControlBoard, yarp::dev::ImplementCurrentControl, and ControlBoardRemapper.

◆ getCurrentRanges()

virtual bool yarp::dev::ICurrentControl::getCurrentRanges ( 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 ControlBoardRemapper, RemoteControlBoard, and yarp::dev::ImplementCurrentControl.

◆ getCurrents()

virtual bool yarp::dev::ICurrentControl::getCurrents ( double *  currs)
pure virtual

Get the instantaneous current measurement for all motors.

Parameters
currspointer to the array that will store the output. Values are expressed in amperes.
Returns
true/false on success/failure

Implemented in ControlBoardRemapper, yarp::dev::ImplementCurrentControl, and RemoteControlBoard.

◆ getNumberOfMotors()

virtual bool yarp::dev::ICurrentControl::getNumberOfMotors ( int *  ax)
pure virtual

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

Parameters
axreturns the number of controlled axes.
Returns
true/false on success/failure

Implemented in yarp::dev::ImplementCurrentControl, ControlBoardRemapper, and RemoteControlBoard.

◆ getRefCurrent()

virtual bool yarp::dev::ICurrentControl::getRefCurrent ( 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. Value is expressed in amperes.
Returns
true/false on success/failure

Implemented in yarp::dev::ImplementCurrentControl, RemoteControlBoard, and ControlBoardRemapper.

◆ getRefCurrents()

virtual bool yarp::dev::ICurrentControl::getRefCurrents ( 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. Values are expressed in amperes.
Returns
true/false on success/failure

Implemented in ControlBoardRemapper, RemoteControlBoard, and yarp::dev::ImplementCurrentControl.

◆ setRefCurrent()

virtual bool yarp::dev::ICurrentControl::setRefCurrent ( 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. Value is expressed in amperes.
Returns
true/false on success/failure

Implemented in RemoteControlBoard, yarp::dev::ImplementCurrentControl, and ControlBoardRemapper.

◆ setRefCurrents() [1/2]

virtual bool yarp::dev::ICurrentControl::setRefCurrents ( const double *  currs)
pure virtual

Set the reference value of the currents for all motors.

Parameters
currsthe array containing the reference current values. Values are expressed in amperes.
Returns
true/false on success/failure

Implemented in ControlBoardRemapper, RemoteControlBoard, and yarp::dev::ImplementCurrentControl.

◆ setRefCurrents() [2/2]

virtual bool yarp::dev::ICurrentControl::setRefCurrents ( 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 containing the list of motor numbers
currspointer to the array specifying the new current references
Returns
true/false on success/failure

Implemented in RemoteControlBoard, yarp::dev::ImplementCurrentControl, and ControlBoardRemapper.


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