#include <yarp/dev/ImplementMotor.h>
|
bool | initialize (int size, const int *amap) |
| Initialize the internal data and alloc memory.
|
|
bool | uninitialize () |
| Clean up internal data and memory.
|
|
Definition at line 23 of file ImplementMotor.h.
◆ ImplementMotor()
◆ ~ImplementMotor()
ImplementMotor::~ImplementMotor |
( |
| ) |
|
|
virtual |
◆ getGearboxRatio()
bool ImplementMotor::getGearboxRatio |
( |
int |
m, |
|
|
double * |
val |
|
) |
| |
|
overridevirtual |
Get the gearbox ratio for a specific motor.
- Parameters
-
m | motor number |
val | retrieved gearbox ratio |
- Returns
- true/false
Reimplemented from yarp::dev::IMotor.
Definition at line 103 of file ImplementMotor.cpp.
◆ getNumberOfMotors()
bool ImplementMotor::getNumberOfMotors |
( |
int * |
num | ) |
|
|
overridevirtual |
◆ getTemperature()
bool ImplementMotor::getTemperature |
( |
int |
m, |
|
|
double * |
val |
|
) |
| |
|
overridevirtual |
◆ getTemperatureLimit()
bool ImplementMotor::getTemperatureLimit |
( |
int |
m, |
|
|
double * |
temp |
|
) |
| |
|
overridevirtual |
Retreives the current temperature limit for a specific motor.
The specific behavior of the motor when the temperature limit is exceeded depends on the implementation (power off recommended)
- Parameters
-
m | motor number |
temp | the current temperature limit. |
- Returns
- true/false
Implements yarp::dev::IMotor.
Definition at line 81 of file ImplementMotor.cpp.
◆ getTemperatures()
bool ImplementMotor::getTemperatures |
( |
double * |
vals | ) |
|
|
overridevirtual |
Get temperature of all the motors.
- Parameters
-
vals | pointer to an array containing all motor temperatures |
- Returns
- true/false
Implements yarp::dev::IMotor.
Definition at line 125 of file ImplementMotor.cpp.
◆ initialize()
bool ImplementMotor::initialize |
( |
int |
size, |
|
|
const int * |
amap |
|
) |
| |
|
protected |
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 28 of file ImplementMotor.cpp.
◆ setGearboxRatio()
bool ImplementMotor::setGearboxRatio |
( |
int |
m, |
|
|
const double |
val |
|
) |
| |
|
overridevirtual |
Set the gearbox ratio for a specific motor.
- Parameters
-
m | motor number |
gearbox | ratio to be set |
- Returns
- true/false
Reimplemented from yarp::dev::IMotor.
Definition at line 114 of file ImplementMotor.cpp.
◆ setTemperatureLimit()
bool ImplementMotor::setTemperatureLimit |
( |
int |
m, |
|
|
const double |
temp |
|
) |
| |
|
overridevirtual |
Set the temperature limit for a specific motor.
The specific behavior of the motor when the temperature limit is exceeded depends on the implementation (power off recommended)
- Parameters
-
m | motor number |
temp | the temperature limit to be set |
- Returns
- true/false
Implements yarp::dev::IMotor.
Definition at line 92 of file ImplementMotor.cpp.
◆ uninitialize()
bool ImplementMotor::uninitialize |
( |
| ) |
|
|
protected |
Clean up internal data and memory.
- Returns
- true if uninitialization is executed, false otherwise.
Definition at line 47 of file ImplementMotor.cpp.
◆ doubleBuffManager
◆ helper
void* yarp::dev::ImplementMotor::helper |
|
protected |
◆ imotor
The documentation for this class was generated from the following files: