#include <yarp/dev/ImplementCurrentControl.h>
Definition at line 23 of file ImplementCurrentControl.h.
◆ ImplementCurrentControl()
◆ ~ImplementCurrentControl()
| ImplementCurrentControl::~ImplementCurrentControl |
( |
| ) |
|
|
virtual |
◆ getCurrent()
Get the instantaneous current measurement for a single motor.
- Parameters
-
| m | motor number |
| curr | pointer to the result value. Value is expressed in amperes. |
- Returns
- true/false on success/failure
Implements yarp::dev::ICurrentControl.
Definition at line 141 of file ImplementCurrentControl.cpp.
◆ getCurrentRange()
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
-
| m | motor number |
| min | minimum current of the motor m |
| max | maximum current of the motor m |
- Returns
- true/false on success/failure
Implements yarp::dev::ICurrentControl.
Definition at line 169 of file ImplementCurrentControl.cpp.
◆ getCurrentRanges()
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
-
| min | pointer to the array that will store minimum currents |
| max | pointer to the array that will store maximum currents |
- Returns
- true/false on success/failure
Implements yarp::dev::ICurrentControl.
Definition at line 156 of file ImplementCurrentControl.cpp.
◆ getCurrents()
Get the instantaneous current measurement for all motors.
- Parameters
-
| currs | pointer to the array that will store the output. Values are expressed in amperes. |
- Returns
- true/false on success/failure
Implements yarp::dev::ICurrentControl.
Definition at line 112 of file ImplementCurrentControl.cpp.
◆ getNumberOfMotors()
◆ getRefCurrent()
Get the reference value of the current for a single motor.
- Parameters
-
| m | motor number |
| curr | the current reference value for motor m. Value is expressed in amperes. |
- Returns
- true/false on success/failure
Implements yarp::dev::ICurrentControl.
Definition at line 64 of file ImplementCurrentControl.cpp.
◆ getRefCurrents()
Get the reference value of the currents for all motors.
- Parameters
-
| currs | pointer to the array to be filled with reference current values. Values are expressed in amperes. |
- Returns
- true/false on success/failure
Implements yarp::dev::ICurrentControl.
Definition at line 79 of file ImplementCurrentControl.cpp.
◆ initialize()
Initialize the internal data and alloc memory.
- Parameters
-
| size | is the number of controlled axes the driver deals with. |
| amap | is a lookup table mapping axes onto physical drivers. |
- Returns
- true if initialized succeeded, false if it wasn't executed, or assert.
Definition at line 29 of file ImplementCurrentControl.cpp.
◆ setRefCurrent()
Set the reference value of the current for a single motor.
- Parameters
-
| m | motor number |
| curr | the current reference value for motor m. Value is expressed in amperes. |
- Returns
- true/false on success/failure
Implements yarp::dev::ICurrentControl.
Definition at line 101 of file ImplementCurrentControl.cpp.
◆ setRefCurrents() [1/2]
Set the reference value of the currents for all motors.
- Parameters
-
| currs | the array containing the reference current values. Values are expressed in amperes. |
- Returns
- true/false on success/failure
Implements yarp::dev::ICurrentControl.
Definition at line 90 of file ImplementCurrentControl.cpp.
◆ setRefCurrents() [2/2]
Set the reference value of the current for a group of motors.
- Parameters
-
| 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 |
- Returns
- true/false on success/failure
Implements yarp::dev::ICurrentControl.
Definition at line 123 of file ImplementCurrentControl.cpp.
◆ uninitialize()
| bool ImplementCurrentControl::uninitialize |
( |
| ) |
|
|
protected |
Clean up internal data and memory.
- Returns
- true if uninitialization is executed, false otherwise.
Definition at line 45 of file ImplementCurrentControl.cpp.
◆ m_buffer_doubles
| std::vector<double> yarp::dev::ImplementCurrentControl::m_buffer_doubles |
|
protected |
◆ m_buffer_doubles2
| std::vector<double> yarp::dev::ImplementCurrentControl::m_buffer_doubles2 |
|
protected |
◆ m_buffer_ints
| std::vector<int> yarp::dev::ImplementCurrentControl::m_buffer_ints |
|
protected |
◆ m_helper
| void* yarp::dev::ImplementCurrentControl::m_helper =nullptr |
|
protected |
◆ m_imp_mutex
| std::mutex yarp::dev::ImplementCurrentControl::m_imp_mutex |
|
protected |
◆ m_iraw
The documentation for this class was generated from the following files: