|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_DEV_IMOTOR_H
10 #define YARP_DEV_IMOTOR_H
160 virtual bool setGearboxRatio(
int m,
const double val) {
yError(
"setGearboxRatio() not implemented");
return false; };
171 #endif // YARP_DEV_IMOTOR_H
constexpr yarp::conf::vocab32_t VOCAB_TEMPERATURE
constexpr yarp::conf::vocab32_t VOCAB_TEMPERATURES
constexpr yarp::conf::vocab32_t createVocab(char a, char b=0, char c=0, char d=0)
virtual bool getTemperatures(double *vals)=0
Get temperature of all the motors.
constexpr yarp::conf::vocab32_t VOCAB_TEMPERATURE_LIMIT
virtual bool getGearboxRatio(int m, double *val)
Get the gearbox ratio for a specific motor.
virtual ~IMotorRaw()
Destructor.
Control board, encoder interface.
virtual bool setTemperatureLimitRaw(int m, const double temp)=0
Set the temperature limit for a specific motor.
virtual bool getNumberOfMotorsRaw(int *num)=0
Get the number of available motors.
constexpr yarp::conf::vocab32_t VOCAB_GEARBOX_RATIO
virtual bool setGearboxRatioRaw(int m, const double val)
Set the gearbox ratio for a specific motor.
virtual bool getGearboxRatioRaw(int m, double *val)
Get the gearbox ratio for a specific motor.
virtual bool getTemperatureLimitRaw(int m, double *temp)=0
Retreives the current temperature limit for a specific motor.
Control board, encoder interface.
virtual ~IMotor()
Destructor.
virtual bool setTemperatureLimit(int m, const double temp)=0
Set the temperature limit for a specific motor.
virtual bool getTemperature(int m, double *val)=0
Get temperature of a motor.
virtual bool getTemperatureRaw(int m, double *val)=0
Get temperature of a motor.
The main, catch-all namespace for YARP.
virtual bool getNumberOfMotors(int *num)=0
Get the number of available motors.
virtual bool getTemperaturesRaw(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.
constexpr yarp::conf::vocab32_t VOCAB_MOTORS_NUMBER
virtual bool setGearboxRatio(int m, const double val)
Set the gearbox ratio for a specific motor.