6#ifndef YARP_DEV_IMPLEMENTENCODERSTIMED_H
7#define YARP_DEV_IMPLEMENTENCODERSTIMED_H
12class ImplementEncodersTimed;
18class FixedSizeBuffersManager;
26 void* m_helper=
nullptr;
41 bool initialize (
int size,
const int *amap,
const double *enc,
const double *zos);
Control board, extend encoder raw interface adding timestamps.
Control board, extend encoder interface with timestamps.
std::vector< int > m_buffer_ints
yarp::dev::ReturnValue getEncoders(double *encs) override
Read the position of all axes.
std::vector< double > m_buffer_doubles
bool initialize(int size, const int *amap, const double *enc, const double *zos)
Initialize the internal data and alloc memory.
yarp::dev::ReturnValue getEncoderSpeeds(double *spds) override
Read the instantaneous speed of all axes.
yarp::dev::ReturnValue resetEncoder(int j) override
Reset encoder, single joint.
bool uninitialize()
Clean up internal data and memory.
yarp::dev::ReturnValue getEncoderAcceleration(int j, double *spds) override
Read the instantaneous acceleration of an axis.
yarp::dev::ReturnValue getEncoderAccelerations(double *accs) override
Read the instantaneous acceleration of all axes.
yarp::dev::ReturnValue getEncoderSpeed(int j, double *spds) override
Read the istantaneous speed of an axis.
yarp::dev::ReturnValue setEncoders(const double *vals) override
Set the value of all encoders.
virtual ~ImplementEncodersTimed()
yarp::dev::ReturnValue getEncoderTimed(int j, double *v, double *t) override
Read the instantaneous acceleration of all axes.
yarp::dev::ReturnValue getEncoder(int j, double *v) override
Read the value of an encoder.
std::vector< double > m_buffer_doubles2
yarp::dev::ReturnValue resetEncoders() override
Reset encoders.
yarp::dev::ReturnValue setEncoder(int j, double val) override
Set the value of the encoder for a given joint.
yarp::dev::ReturnValue getEncodersTimed(double *encs, double *time) override
Read the instantaneous acceleration of all axes.
yarp::dev::ReturnValue getAxes(size_t &ax) override
Get the number of controlled axes.
For streams capable of holding different kinds of content, check what they actually have.
The main, catch-all namespace for YARP.