#include <ControlBoardWrapper/ControlBoardWrapperAmplifierControl.h>
Public Member Functions | |
bool | enableAmp (int j) override |
Enable the amplifier on a specific joint. More... | |
bool | disableAmp (int j) override |
Disable the amplifier on a specific joint. More... | |
bool | getAmpStatus (int *st) override |
bool | getAmpStatus (int j, int *v) override |
bool | getCurrent (int m, double *curr) override |
bool | getCurrents (double *currs) override |
bool | setMaxCurrent (int j, double v) override |
bool | getMaxCurrent (int j, double *v) override |
Returns the maximum electric current allowed for a given motor. More... | |
bool | getNominalCurrent (int m, double *val) override |
bool | setNominalCurrent (int m, const double val) override |
bool | getPeakCurrent (int m, double *val) override |
bool | setPeakCurrent (int m, const double val) override |
bool | getPWM (int m, double *val) override |
bool | getPWMLimit (int m, double *val) override |
bool | setPWMLimit (int m, const double val) override |
bool | getPowerSupplyVoltage (int m, double *val) override |
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::IAmplifierControl | |
virtual | ~IAmplifierControl () |
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 ControlBoardWrapperAmplifierControl.h.
|
overridevirtual |
Disable the amplifier on a specific joint.
All computations within the board will be carried out normally, but the output will be disabled.
Implements yarp::dev::IAmplifierControl.
Definition at line 39 of file ControlBoardWrapperAmplifierControl.cpp.
|
overridevirtual |
Enable the amplifier on a specific joint.
Be careful, check that the output of the controller is appropriate (usually zero), to avoid generating abrupt movements.
Implements yarp::dev::IAmplifierControl.
Definition at line 16 of file ControlBoardWrapperAmplifierControl.cpp.
|
overridevirtual |
Implements yarp::dev::IAmplifierControl.
Definition at line 70 of file ControlBoardWrapperAmplifierControl.cpp.
|
overridevirtual |
Implements yarp::dev::IAmplifierControl.
Definition at line 97 of file ControlBoardWrapperAmplifierControl.cpp.
|
inlineoverridevirtual |
Implements yarp::dev::IAmplifierControl.
Definition at line 25 of file ControlBoardWrapperAmplifierControl.h.
|
inlineoverridevirtual |
Implements yarp::dev::IAmplifierControl.
Definition at line 26 of file ControlBoardWrapperAmplifierControl.h.
|
overridevirtual |
Returns the maximum electric current allowed for a given motor.
Exceeding this value will trigger instantaneous hardware fault.
j | motor number |
v | the return value |
Implements yarp::dev::IAmplifierControl.
Definition at line 140 of file ControlBoardWrapperAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 165 of file ControlBoardWrapperAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 184 of file ControlBoardWrapperAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 295 of file ControlBoardWrapperAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 237 of file ControlBoardWrapperAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 257 of file ControlBoardWrapperAmplifierControl.cpp.
|
overridevirtual |
Implements yarp::dev::IAmplifierControl.
Definition at line 117 of file ControlBoardWrapperAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 220 of file ControlBoardWrapperAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 203 of file ControlBoardWrapperAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 278 of file ControlBoardWrapperAmplifierControl.cpp.