#include <ControlBoardWrapper/ControlBoardWrapperCurrentControl.h>
Public Member Functions | |
bool | getNumberOfMotors (int *num) override |
Retrieves the number of controlled axes from the current physical interface. More... | |
bool | getCurrent (int m, double *curr) override |
Get the instantaneous current measurement for a single motor. More... | |
bool | getCurrents (double *currs) override |
Get the instantaneous current measurement for all motors. More... | |
bool | getCurrentRange (int j, double *min, double *max) override |
Get the full scale of the current measurement for a given motor (e.g. More... | |
bool | getCurrentRanges (double *min, double *max) override |
Get the full scale of the current measurements for all motors motor (e.g. More... | |
bool | setRefCurrents (const double *t) override |
Set the reference value of the currents for all motors. More... | |
bool | setRefCurrent (int j, double t) override |
Set the reference value of the current for a single motor. More... | |
bool | setRefCurrents (const int n_joint, const int *joints, const double *t) override |
Set the reference value of the current for a group of motors. More... | |
bool | getRefCurrents (double *t) override |
Get the reference value of the currents for all motors. More... | |
bool | getRefCurrent (int j, double *t) override |
Get the reference value of the current for a single motor. More... | |
Public Member Functions inherited from ControlBoardWrapperCommon | |
bool | getAxes (int *ax) |
bool | setRefAcceleration (int j, double acc) |
bool | setRefAccelerations (const double *accs) |
bool | setRefAccelerations (const int n_joints, const int *joints, const double *accs) |
bool | getRefAcceleration (int j, double *acc) |
bool | getRefAccelerations (double *accs) |
bool | getRefAccelerations (const int n_joints, const int *joints, double *accs) |
bool | stop (int j) |
bool | stop () |
bool | stop (const int n_joint, const int *joints) |
bool | getNumberOfMotors (int *num) |
bool | getCurrent (int m, double *curr) |
bool | getCurrents (double *currs) |
void | printError (const std::string &func_name, const std::string &info, bool result) |
Public Member Functions inherited from yarp::dev::ICurrentControl | |
virtual | ~ICurrentControl () |
Destructor. More... | |
Additional Inherited Members | |
Public Attributes inherited from ControlBoardWrapperCommon | |
WrappedDevice | device |
size_t | controlledJoints {0} |
std::string | partName |
std::mutex | rpcDataMutex |
MultiJointData | rpcData |
std::mutex | timeMutex |
yarp::os::Stamp | time |
Definition at line 16 of file ControlBoardWrapperCurrentControl.h.
|
inlineoverridevirtual |
Get the instantaneous current measurement for a single motor.
m | motor number |
curr | pointer to the result value. Value is expressed in amperes. |
Implements yarp::dev::ICurrentControl.
Definition at line 22 of file ControlBoardWrapperCurrentControl.h.
|
overridevirtual |
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.
m | motor number |
min | minimum current of the motor m |
max | maximum current of the motor m |
Implements yarp::dev::ICurrentControl.
Definition at line 14 of file ControlBoardWrapperCurrentControl.cpp.
|
overridevirtual |
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.
min | pointer to the array that will store minimum currents |
max | pointer to the array that will store maximum currents |
Implements yarp::dev::ICurrentControl.
Definition at line 37 of file ControlBoardWrapperCurrentControl.cpp.
|
inlineoverridevirtual |
Get the instantaneous current measurement for all motors.
currs | pointer to the array that will store the output. Values are expressed in amperes. |
Implements yarp::dev::ICurrentControl.
Definition at line 23 of file ControlBoardWrapperCurrentControl.h.
|
inlineoverridevirtual |
Retrieves the number of controlled axes from the current physical interface.
ax | returns the number of controlled axes. |
Implements yarp::dev::ICurrentControl.
Definition at line 21 of file ControlBoardWrapperCurrentControl.h.
|
overridevirtual |
Get the reference value of the current for a single motor.
m | motor number |
curr | the current reference value for motor m. Value is expressed in amperes. |
Implements yarp::dev::ICurrentControl.
Definition at line 165 of file ControlBoardWrapperCurrentControl.cpp.
|
overridevirtual |
Get the reference value of the currents for all motors.
currs | pointer to the array to be filled with reference current values. Values are expressed in amperes. |
Implements yarp::dev::ICurrentControl.
Definition at line 139 of file ControlBoardWrapperCurrentControl.cpp.
|
overridevirtual |
Set the reference value of the current for a single motor.
m | motor number |
curr | the current reference value for motor m. Value is expressed in amperes. |
Implements yarp::dev::ICurrentControl.
Definition at line 88 of file ControlBoardWrapperCurrentControl.cpp.
|
overridevirtual |
Set the reference value of the currents for all motors.
currs | the array containing the reference current values. Values are expressed in amperes. |
Implements yarp::dev::ICurrentControl.
Definition at line 66 of file ControlBoardWrapperCurrentControl.cpp.
|
overridevirtual |
Set the reference value of the current for a group of motors.
n_motor | size of motors ans currs arrays |
motors | pointer to the array containing the list of motor numbers |
currs | pointer to the array specifying the new current references |
Implements yarp::dev::ICurrentControl.
Definition at line 110 of file ControlBoardWrapperCurrentControl.cpp.