13 size_t subIndex =
device.
lut[m].deviceEntry;
39 for (
size_t juser = p->
wbase, jdevice = p->
base; juser <= p->wtop; juser++, jdevice++) {
40 vals[juser] = temps[jdevice];
56 size_t subIndex =
device.
lut[m].deviceEntry;
73 size_t subIndex =
device.
lut[m].deviceEntry;
89 size_t subIndex =
device.
lut[m].deviceEntry;
106 size_t subIndex =
device.
lut[m].deviceEntry;
void printError(const std::string &func_name, const std::string &info, bool result)
bool getGearboxRatio(int m, double *val) override
Get the gearbox ratio for a specific motor.
bool getTemperatures(double *vals) override
Get temperature of all the motors.
bool setTemperatureLimit(int m, const double val) override
Set the temperature limit for a specific motor.
bool getTemperature(int m, double *val) override
Get temperature of a motor.
bool getTemperatureLimit(int m, double *val) override
Retreives the current temperature limit for a specific motor.
bool setGearboxRatio(int m, const double val) override
Set the gearbox ratio for a specific motor.
yarp::dev::IMotor * imotor
std::vector< DevicesLutEntry > lut
SubDevice * getSubdevice(size_t i)
size_t maxNumOfJointsInDevices
SubDeviceVector subdevices
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 getGearboxRatio(int m, double *val)
Get the gearbox ratio for a specific motor.
virtual bool setTemperatureLimit(int m, const double temp)=0
Set the temperature limit for a specific motor.
virtual bool setGearboxRatio(int m, const double val)
Set the gearbox ratio for a specific motor.