YARP
Yet Another Robot Platform
ControlBoardWrapperMotorEncoders.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 #ifndef YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERMOTORENCODERS_H
7 #define YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERMOTORENCODERS_H
8 
10 
12 
14  virtual public ControlBoardWrapperCommon,
16 {
17 public:
18  bool getNumberOfMotorEncoders(int* num) override;
19  bool resetMotorEncoder(int m) override;
20  bool resetMotorEncoders() override;
21  bool setMotorEncoderCountsPerRevolution(int m, const double cpr) override;
22  bool getMotorEncoderCountsPerRevolution(int m, double* cpr) override;
23  bool setMotorEncoder(int m, const double val) override;
24  bool setMotorEncoders(const double* vals) override;
25  bool getMotorEncoder(int m, double* v) override;
26  bool getMotorEncoders(double* encs) override;
27  bool getMotorEncodersTimed(double* encs, double* t) override;
28  bool getMotorEncoderTimed(int m, double* v, double* t) override;
29  bool getMotorEncoderSpeed(int m, double* sp) override;
30  bool getMotorEncoderSpeeds(double* spds) override;
31  bool getMotorEncoderAcceleration(int m, double* acc) override;
32  bool getMotorEncoderAccelerations(double* accs) override;
33 };
34 
35 #endif // YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERMOTORENCODERS_H
float t
bool getMotorEncoderTimed(int m, double *v, double *t) override
Read the instantaneous position of a motor encoder.
bool getMotorEncoderCountsPerRevolution(int m, double *cpr) override
Gets number of counts per revolution for motor encoder m.
bool getMotorEncoder(int m, double *v) override
Read the value of a motor encoder.
bool getMotorEncodersTimed(double *encs, double *t) override
Read the instantaneous position of all motor encoders.
bool resetMotorEncoders() override
Reset motor encoders.
bool getMotorEncoderSpeeds(double *spds) override
Read the instantaneous speed of all motor encoders.
bool setMotorEncoderCountsPerRevolution(int m, const double cpr) override
Sets number of counts per revolution for motor encoder m.
bool getMotorEncoderAcceleration(int m, double *acc) override
Read the instantaneous acceleration of a motor encoder.
bool getNumberOfMotorEncoders(int *num) override
Get the number of available motor encoders.
bool setMotorEncoders(const double *vals) override
Set the value of all motor encoders.
bool getMotorEncoders(double *encs) override
Read the position of all motor encoders.
bool getMotorEncoderSpeed(int m, double *sp) override
Read the istantaneous speed of a motor encoder.
bool getMotorEncoderAccelerations(double *accs) override
Read the instantaneous acceleration of all motor encoders.
bool resetMotorEncoder(int m) override
Reset motor encoder, single motor.
bool setMotorEncoder(int m, const double val) override
Set the value of the motor encoder for a given motor.
Control board, encoder interface.