6#ifndef YARP_DEV_IMPLEMENTMOTORENCODERS_H
7#define YARP_DEV_IMPLEMENTMOTORENCODERS_H
12class ImplementMotorEncoders;
18class FixedSizeBuffersManager;
26 void* m_helper=
nullptr;
41 bool initialize (
int size,
const int *amap,
const double *enc,
const double *zos);
Control board, encoder interface.
Control board, encoder interface.
yarp::dev::ReturnValue getMotorEncoderCountsPerRevolution(int m, double *cpr) override
Gets number of counts per revolution for motor encoder m.
yarp::dev::ReturnValue getMotorEncodersTimed(double *encs, double *time) override
Read the instantaneous position of all motor encoders.
yarp::dev::ReturnValue setMotorEncoderCountsPerRevolution(int m, const double cpr) override
Sets number of counts per revolution for motor encoder m.
yarp::dev::ReturnValue resetMotorEncoders() override
Reset motor encoders.
bool uninitialize()
Clean up internal data and memory.
std::vector< double > m_buffer_doubles
yarp::dev::ReturnValue getMotorEncoderTimed(int m, double *v, double *t) override
Read the instantaneous position of a motor encoder.
std::vector< double > m_buffer_doubles2
yarp::dev::ReturnValue getMotorEncoderSpeed(int m, double *spds) override
Read the instantaneous speed of a motor encoder.
yarp::dev::ReturnValue getMotorEncoderAccelerations(double *accs) override
Read the instantaneous acceleration of all motor encoders.
yarp::dev::ReturnValue getMotorEncoderAcceleration(int m, double *spds) override
Read the instantaneous acceleration of a motor encoder.
std::vector< int > m_buffer_ints
yarp::dev::ReturnValue resetMotorEncoder(int m) override
Reset motor encoder, single motor.
yarp::dev::ReturnValue getMotorEncoder(int m, double *v) override
Read the value of a motor encoder.
yarp::dev::ReturnValue setMotorEncoder(int m, const double val) override
Set the value of the motor encoder for a given motor.
virtual ~ImplementMotorEncoders()
yarp::dev::ReturnValue getMotorEncoders(double *encs) override
Read the position of all motor encoders.
yarp::dev::ReturnValue getMotorEncoderSpeeds(double *spds) override
Read the instantaneous speed of all motor encoders.
yarp::dev::ReturnValue setMotorEncoders(const double *vals) override
Set the value of all motor encoders.
yarp::dev::ReturnValue getNumberOfMotorEncoders(int *num) override
Get the number of available motor encoders.
bool initialize(int size, const int *amap, const double *enc, const double *zos)
Initialize the internal data and alloc memory.
For streams capable of holding different kinds of content, check what they actually have.
The main, catch-all namespace for YARP.