|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
16 #define JOINTIDCHECK if (m >= castToMapper(helper)->axes()){yError("motor id out of bound"); return false;}
23 doubleBuffManager(nullptr)
132 for (
size_t i=0; i< buffValues.
getSize(); i++)
135 v[i] = buffValues[k];
bool getTemperature(int m, double *val) override
Get temperature of a motor.
bool uninitialize()
Clean up internal data and memory.
bool setGearboxRatio(int m, const double val) override
Set the gearbox ratio for a specific motor.
bool getTemperatureLimit(int m, double *val) override
Retreives the current temperature limit for a specific motor.
T * getData()
Return the data pointer.
Buffer< T > getBuffer()
Get a buffer and fill its information in @buffer.
Control board, encoder interface.
An interface for the device drivers.
bool getNumberOfMotors(int *num) override
Get the number of available motors.
virtual bool setTemperatureLimitRaw(int m, const double temp)=0
Set the temperature limit for a specific motor.
uint32_t getSize()
Return the number of element of buffer.
bool getTemperatures(double *vals) override
Get temperature of all the motors.
Buffer contains info about a buffer of type T and it is used to exchange information with yarp::dev::...
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.
ImplementMotor(yarp::dev::IMotorRaw *y)
virtual bool getTemperatureRaw(int m, double *val)=0
Get temperature of a motor.
virtual ~ImplementMotor()
yarp::dev::ControlBoardHelper * castToMapper(void *p)
virtual bool getTemperaturesRaw(double *vals)=0
Get temperature of all the motors.
bool setTemperatureLimit(int m, const double val) override
Set the temperature limit for a specific motor.
yarp::dev::impl::FixedSizeBuffersManager< double > * doubleBuffManager
bool initialize(int size, const int *amap)
Initialize the internal data and alloc memory.
bool getGearboxRatio(int m, double *val) override
Get the gearbox ratio for a specific motor.