6#ifndef YARP_DEV_IMOTOR_H
7#define YARP_DEV_IMOTOR_H
constexpr yarp::conf::vocab32_t VOCAB_TEMPERATURES
constexpr yarp::conf::vocab32_t VOCAB_TEMPERATURE_LIMIT
constexpr yarp::conf::vocab32_t VOCAB_TEMPERATURE
constexpr yarp::conf::vocab32_t VOCAB_GEARBOX_RATIO
constexpr yarp::conf::vocab32_t VOCAB_MOTORS_NUMBER
Control board, encoder interface.
virtual ~IMotorRaw()
Destructor.
virtual yarp::dev::ReturnValue setGearboxRatioRaw(int m, const double val)=0
Set the gearbox ratio for a specific motor.
virtual yarp::dev::ReturnValue setTemperatureLimitRaw(int m, const double temp)=0
Set the temperature limit for a specific motor.
virtual yarp::dev::ReturnValue getNumberOfMotorsRaw(int *num)=0
Get the number of available motors.
virtual yarp::dev::ReturnValue getTemperaturesRaw(double *vals)=0
Get temperature of all the motors.
virtual yarp::dev::ReturnValue getTemperatureRaw(int m, double *val)=0
Get temperature of a motor.
virtual yarp::dev::ReturnValue getTemperatureLimitRaw(int m, double *temp)=0
Retrieves the current temperature limit for a specific motor.
virtual yarp::dev::ReturnValue getGearboxRatioRaw(int m, double *val)=0
Get the gearbox ratio for a specific motor.
Control board, encoder interface.
virtual yarp::dev::ReturnValue getTemperatureLimit(int m, double *temp)=0
Retrieves the current temperature limit for a specific motor.
virtual yarp::dev::ReturnValue setGearboxRatio(int m, const double val)=0
Set the gearbox ratio for a specific motor.
virtual yarp::dev::ReturnValue getTemperature(int m, double *val)=0
Get temperature of a motor.
virtual ~IMotor()
Destructor.
virtual yarp::dev::ReturnValue getGearboxRatio(int m, double *val)=0
Get the gearbox ratio for a specific motor.
virtual yarp::dev::ReturnValue getNumberOfMotors(int *num)=0
Get the number of available motors.
virtual yarp::dev::ReturnValue setTemperatureLimit(int m, const double temp)=0
Set the temperature limit for a specific motor.
virtual yarp::dev::ReturnValue getTemperatures(double *vals)=0
Get temperature of all the motors.
For streams capable of holding different kinds of content, check what they actually have.
constexpr yarp::conf::vocab32_t createVocab32(char a, char b=0, char c=0, char d=0)
Create a vocab from chars.
The main, catch-all namespace for YARP.