YARP
Yet Another Robot Platform
ControlBoardWrapperEncodersTimed.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #ifndef YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERENCODERSTIMED_H
10 #define YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERENCODERSTIMED_H
11 
13 
15 
17  virtual public ControlBoardWrapperCommon,
19 {
20 public:
21  inline bool getAxes(int *ax) override { return ControlBoardWrapperCommon::getAxes(ax); }
22  bool resetEncoder(int j) override;
23  bool resetEncoders() override;
24  bool setEncoder(int j, double val) override;
25  bool setEncoders(const double* vals) override;
26  bool getEncoder(int j, double* v) override;
27  bool getEncoders(double* encs) override;
28  bool getEncoderSpeed(int j, double* sp) override;
29  bool getEncoderSpeeds(double* spds) override;
30  bool getEncoderAcceleration(int j, double* acc) override;
31  bool getEncoderAccelerations(double* accs) override;
32  bool getEncodersTimed(double* encs, double* t) override;
33  bool getEncoderTimed(int j, double* v, double* t) override;
34 };
35 
36 #endif // YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERENCODERSTIMED_H
ControlBoardWrapperEncodersTimed::setEncoders
bool setEncoders(const double *vals) override
Set the value of all encoders.
Definition: ControlBoardWrapperEncodersTimed.cpp:82
ControlBoardWrapperEncodersTimed::getEncoders
bool getEncoders(double *encs) override
Read the position of all axes.
Definition: ControlBoardWrapperEncodersTimed.cpp:129
t
float t
Definition: FfmpegWriter.cpp:74
ControlBoardWrapperEncodersTimed::getEncoderAcceleration
bool getEncoderAcceleration(int j, double *acc) override
Read the instantaneous acceleration of an axis.
Definition: ControlBoardWrapperEncodersTimed.cpp:261
ControlBoardWrapperEncodersTimed::getEncoderTimed
bool getEncoderTimed(int j, double *v, double *t) override
Read the instantaneous acceleration of all axes.
Definition: ControlBoardWrapperEncodersTimed.cpp:186
ControlBoardWrapperEncodersTimed::resetEncoder
bool resetEncoder(int j) override
Reset encoder, single joint.
Definition: ControlBoardWrapperEncodersTimed.cpp:13
ControlBoardWrapperEncodersTimed::setEncoder
bool setEncoder(int j, double val) override
Set the value of the encoder for a given joint.
Definition: ControlBoardWrapperEncodersTimed.cpp:59
ControlBoardWrapperEncodersTimed::getEncoder
bool getEncoder(int j, double *v) override
Read the value of an encoder.
Definition: ControlBoardWrapperEncodersTimed.cpp:105
ControlBoardWrapperEncodersTimed::resetEncoders
bool resetEncoders() override
Reset encoders.
Definition: ControlBoardWrapperEncodersTimed.cpp:36
ControlBoardWrapperEncodersTimed::getEncoderSpeed
bool getEncoderSpeed(int j, double *sp) override
Read the istantaneous speed of an axis.
Definition: ControlBoardWrapperEncodersTimed.cpp:210
ControlBoardWrapperEncodersTimed::getEncoderSpeeds
bool getEncoderSpeeds(double *spds) override
Read the instantaneous speed of all axes.
Definition: ControlBoardWrapperEncodersTimed.cpp:234
ControlBoardWrapperCommon.h
ControlBoardWrapperEncodersTimed
Definition: ControlBoardWrapperEncodersTimed.h:19
ControlBoardWrapperCommon
Definition: ControlBoardWrapperCommon.h:19
ControlBoardWrapperEncodersTimed::getEncoderAccelerations
bool getEncoderAccelerations(double *accs) override
Read the instantaneous acceleration of all axes.
Definition: ControlBoardWrapperEncodersTimed.cpp:285
IEncodersTimed.h
yarp::dev::IEncodersTimed
Control board, extend encoder interface with timestamps.
Definition: IEncodersTimed.h:59
ControlBoardWrapperCommon::getAxes
bool getAxes(int *ax)
Definition: ControlBoardWrapperCommon.cpp:14
ControlBoardWrapperEncodersTimed::getEncodersTimed
bool getEncodersTimed(double *encs, double *t) override
Read the instantaneous acceleration of all axes.
Definition: ControlBoardWrapperEncodersTimed.cpp:156
ControlBoardWrapperEncodersTimed::getAxes
bool getAxes(int *ax) override
Get the number of controlled axes.
Definition: ControlBoardWrapperEncodersTimed.h:21