|
YARP
Yet Another Robot Platform
|
|
virtual bool setEncoderRaw(int j, double val)=0
Set the value of the encoder for a given joint.
void velE2A(double enc, int j, double &ang, int &k)
void posE2A(double enc, int j, double &ang, int &k)
bool getEncoder(int j, double *v) override
Read the value of an encoder.
virtual bool getEncoderAccelerationRaw(int j, double *spds)=0
Read the instantaneous acceleration of an axis.
bool resetEncoders() override
Reset encoders.
bool uninitialize()
Clean up internal data and memory.
bool getEncoderSpeeds(double *spds) override
Read the instantaneous speed of all axes.
An interface for the device drivers.
virtual bool getEncoderAccelerationsRaw(double *accs)=0
Read the instantaneous acceleration of all axes.
virtual bool getEncoderSpeedsRaw(double *spds)=0
Read the instantaneous acceleration of an axis.
ImplementEncoders(yarp::dev::IEncodersRaw *y)
Control board, encoder interface.
void posA2E(double ang, int j, double &enc, int &k)
bool setEncoder(int j, double val) override
Set the value of the encoder for a given joint.
bool resetEncoder(int j) override
Reset encoder, single joint.
bool getEncoders(double *encs) override
Read the position of all axes.
virtual bool getEncodersRaw(double *encs)=0
Read the position of all axes.
bool getEncoderAcceleration(int j, double *spds) override
Read the instantaneous acceleration of an axis.
bool getEncoderAccelerations(double *accs) override
Read the instantaneous acceleration of all axes.
bool setEncoders(const double *vals) override
Set the value of all encoders.
virtual bool getEncoderRaw(int j, double *v)=0
Read the value of an encoder.
void checkAndDestroy(T *&p)
virtual bool resetEncodersRaw()=0
Reset encoders.
virtual bool setEncodersRaw(const double *vals)=0
Set the value of all encoders.
virtual bool getEncoderSpeedRaw(int j, double *sp)=0
Read the instantaneous speed of an axis.
yarp::dev::ControlBoardHelper * castToMapper(void *p)
virtual bool resetEncoderRaw(int j)=0
Reset encoder, single joint.
bool getEncoderSpeed(int j, double *spds) override
Read the instantaneous speed of an axis.
void accE2A(double enc, int j, double &ang, int &k)
bool getAxes(int *ax) override
Get the number of controlled axes.
virtual ~ImplementEncoders()
Destructor.
bool initialize(int size, const int *amap, const double *enc, const double *zos)
Initialize the internal data and alloc memory.