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