Control board, encoder interface.
More...
#include <yarp/dev/IMotor.h>
|
virtual | ~IMotor () |
| Destructor.
|
|
virtual bool | getNumberOfMotors (int *num)=0 |
| Get the number of available motors.
|
|
virtual bool | getTemperature (int m, double *val)=0 |
| Get temperature of a motor.
|
|
virtual bool | getTemperatures (double *vals)=0 |
| Get temperature of all the motors.
|
|
virtual bool | getTemperatureLimit (int m, double *temp)=0 |
| Retreives the current temperature limit for a specific motor.
|
|
virtual bool | setTemperatureLimit (int m, const double temp)=0 |
| Set the temperature limit for a specific motor.
|
|
virtual bool | getGearboxRatio (int m, double *val) |
| Get the gearbox ratio for a specific motor.
|
|
virtual bool | setGearboxRatio (int m, const double val) |
| Set the gearbox ratio for a specific motor.
|
|
Control board, encoder interface.
Definition at line 93 of file IMotor.h.
◆ ~IMotor()
virtual yarp::dev::IMotor::~IMotor |
( |
| ) |
|
|
inlinevirtual |
Destructor.
Definition at line 99 of file IMotor.h.
◆ getGearboxRatio()
virtual bool yarp::dev::IMotor::getGearboxRatio |
( |
int |
m, |
|
|
double * |
val |
|
) |
| |
|
inlinevirtual |
◆ getNumberOfMotors()
virtual bool yarp::dev::IMotor::getNumberOfMotors |
( |
int * |
num | ) |
|
|
pure virtual |
◆ getTemperature()
virtual bool yarp::dev::IMotor::getTemperature |
( |
int |
m, |
|
|
double * |
val |
|
) |
| |
|
pure virtual |
◆ getTemperatureLimit()
virtual bool yarp::dev::IMotor::getTemperatureLimit |
( |
int |
m, |
|
|
double * |
temp |
|
) |
| |
|
pure virtual |
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
Implemented in ControlBoardRemapper, RemoteControlBoard, and yarp::dev::ImplementMotor.
◆ getTemperatures()
virtual bool yarp::dev::IMotor::getTemperatures |
( |
double * |
vals | ) |
|
|
pure virtual |
◆ setGearboxRatio()
virtual bool yarp::dev::IMotor::setGearboxRatio |
( |
int |
m, |
|
|
const double |
val |
|
) |
| |
|
inlinevirtual |
◆ setTemperatureLimit()
virtual bool yarp::dev::IMotor::setTemperatureLimit |
( |
int |
m, |
|
|
const double |
temp |
|
) |
| |
|
pure virtual |
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
Implemented in ControlBoardRemapper, RemoteControlBoard, and yarp::dev::ImplementMotor.
The documentation for this class was generated from the following file: