|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
16 #define JOINTIDCHECK if (j >= castToMapper(helper)->axes()){yError("joint id out of bound"); return false;}
virtual bool setEncoderRaw(int j, double val)=0
Set the value of the encoder for a given joint.
bool getEncoderTimed(int j, double *v, double *t) override
Read the instantaneous acceleration of all axes.
void velE2A(double enc, int j, double &ang, int &k)
bool getEncoderAccelerations(double *accs) override
Read the instantaneous acceleration of all axes.
void posE2A(double enc, int j, double &ang, int &k)
virtual bool getEncoderAccelerationRaw(int j, double *spds)=0
Read the instantaneous acceleration of an axis.
bool getEncodersTimed(double *encs, double *time) override
Read the instantaneous acceleration of all axes.
bool getAxes(int *ax) override
Get the number of controlled axes.
T * getData()
Return the data pointer.
bool setEncoder(int j, double val) override
Set the value of the encoder for a given joint.
ImplementEncodersTimed(yarp::dev::IEncodersTimedRaw *y)
Buffer< T > getBuffer()
Get a buffer and fill its information in @buffer.
bool uninitialize()
Clean up internal data and memory.
virtual bool getEncoderTimedRaw(int j, double *encs, double *stamp)=0
Read the instantaneous acceleration of all axes.
bool getEncoderSpeeds(double *spds) override
Read the instantaneous speed of all axes.
An interface for the device drivers.
bool setEncoders(const double *vals) override
Set the value of all encoders.
virtual bool getEncoderAccelerationsRaw(double *accs)=0
Read the instantaneous acceleration of all axes.
virtual bool getEncodersTimedRaw(double *encs, double *stamps)=0
Read the instantaneous acceleration of all axes.
IEncodersTimedRaw * iEncoders
virtual bool getEncoderSpeedsRaw(double *spds)=0
Read the instantaneous acceleration of an axis.
bool getEncoder(int j, double *v) override
Read the value of an encoder.
void posA2E(double ang, int j, double &enc, int &k)
bool getEncoders(double *encs) override
Read the position of all axes.
yarp::dev::impl::FixedSizeBuffersManager< double > * buffManager
virtual bool getEncodersRaw(double *encs)=0
Read the position of all axes.
virtual ~ImplementEncodersTimed()
Buffer contains info about a buffer of type T and it is used to exchange information with yarp::dev::...
bool getEncoderAcceleration(int j, double *spds) override
Read the instantaneous acceleration of an axis.
bool resetEncoder(int j) override
Reset encoder, single joint.
void releaseBuffer(Buffer< T > &buffer)
Release a buffer.
virtual bool getEncoderRaw(int j, double *v)=0
Read the value of an encoder.
Control board, extend encoder raw interface adding timestamps.
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.
An interface to the operating system, including Port based communication.
yarp::dev::ControlBoardHelper * castToMapper(void *p)
bool getEncoderSpeed(int j, double *spds) override
Read the istantaneous speed of an axis.
virtual bool resetEncoderRaw(int j)=0
Reset encoder, single joint.
void accE2A(double enc, int j, double &ang, int &k)
bool resetEncoders() override
Reset encoders.
bool initialize(int size, const int *amap, const double *enc, const double *zos)
Initialize the internal data and alloc memory.