|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
18 #define JOINTIDCHECK if (j >= castToMapper(helper)->axes()){yError("joint id out of bound"); return false;}
24 doubleBuffManager(nullptr)
29 if (helper !=
nullptr)
32 helper = (
void *)(
new ControlBoardHelper(size, amap,
nullptr,
nullptr,
nullptr,
nullptr,
nullptr, dutyToPWM));
36 yAssert (doubleBuffManager !=
nullptr);
48 if (helper !=
nullptr)
56 delete doubleBuffManager;
57 doubleBuffManager=
nullptr;
virtual bool getRefDutyCyclesRaw(double *refs)=0
Gets the last reference sent using the setRefDutyCyclesRaw function.
bool initialize(int k, const int *amap, const double *dutyToPWM)
void dutycycle2PWM(double dutycycle, int j, double &pwm, int &k)
Interface for controlling an axis, by sending directly a PWM reference signal to a motor.
virtual bool getDutyCyclesRaw(double *vals)=0
Gets the current dutycycle of the output of the amplifier (i.e.
virtual bool getNumberOfMotorsRaw(int *number)=0
Retrieves the number of controlled motors from the current physical interface.
T * getData()
Return the data pointer.
bool getRefDutyCycle(int j, double *v) override
Gets the last reference sent using the setRefDutyCycle function.
bool getDutyCycle(int j, double *v) override
Gets the current dutycycle of the output of the amplifier (i.e.
Buffer< T > getBuffer()
Get a buffer and fill its information in @buffer.
An interface for the device drivers.
bool getRefDutyCycles(double *v) override
Gets the last reference sent using the setRefDutyCycles function.
bool setRefDutyCycle(int j, double v) override
Sets the reference dutycycle to a single motor.
virtual bool getRefDutyCycleRaw(int m, double *ref)=0
Gets the last reference sent using the setRefDutyCycleRaw function.
Buffer contains info about a buffer of type T and it is used to exchange information with yarp::dev::...
bool getDutyCycles(double *v) override
Gets the current dutycycle of the output of the amplifier (i.e.
virtual bool setRefDutyCycleRaw(int m, double ref)=0
Sets the reference dutycycle of a single motor.
virtual bool getDutyCycleRaw(int m, double *val)=0
Gets the current dutycycle of the output of the amplifier (i.e.
bool setRefDutyCycles(const double *v) override
Sets the reference dutycycle for all the motors.
void releaseBuffer(Buffer< T > &buffer)
Release a buffer.
ImplementPWMControl(IPWMControlRaw *v)
An interface to the operating system, including Port based communication.
yarp::dev::ControlBoardHelper * castToMapper(void *p)
virtual bool setRefDutyCyclesRaw(const double *refs)=0
Sets the reference dutycycle for all motors.
bool getNumberOfMotors(int *ax) override
Retrieves the number of controlled motors from the current physical interface.
void PWM2dutycycle(const double *pwm, double *dutycycle)