YARP
Yet Another Robot Platform
ImplementControlBoardInterfaces.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_IMPLEMENTCONTROLBOARDINTERFACES_H
7 #define YARP_DEV_IMPLEMENTCONTROLBOARDINTERFACES_H
8 
11 #include <yarp/dev/api.h>
12 
13 namespace yarp
14 {
15  namespace dev
16  {
17  class StubImplPositionControlRaw;
18  class StubImplEncodersRaw;
19  }
20 }
21 
37 {
38 private:
43  bool NOT_YET_IMPLEMENTED(const char *func=0);
44 
45 public:
47 
48  bool getAxes(int *ax) override
49  {return NOT_YET_IMPLEMENTED("getAxes");}
50 
51  bool resetEncoderRaw(int j) override
52  {return NOT_YET_IMPLEMENTED("resetEncoderRaw");}
53 
54  bool resetEncodersRaw() override
55  {return NOT_YET_IMPLEMENTED("resetEncodersRaw");}
56 
57  bool setEncoderRaw(int j, double val) override
58  {return NOT_YET_IMPLEMENTED("setEncoderRaw");}
59 
60  bool setEncodersRaw(const double *vals) override
61  {return NOT_YET_IMPLEMENTED("setEncodersRaw");}
62 
63  bool getEncoderRaw(int j, double *v) override
64  {return NOT_YET_IMPLEMENTED("getEncoderRaw");}
65 
66  bool getEncodersRaw(double *encs) override
67  {return NOT_YET_IMPLEMENTED("getEncodersRaw");}
68 
69  bool getEncoderSpeedRaw(int j, double *sp) override
70  {return NOT_YET_IMPLEMENTED("getEncoderSpeedRaw");}
71 
72  bool getEncoderSpeedsRaw(double *spds) override
73  {return NOT_YET_IMPLEMENTED("getEncoderSpeedsRaw");}
74 
75  bool getEncoderAccelerationRaw(int j, double *spds) override
76  {return NOT_YET_IMPLEMENTED("getEncoderAccelerationRaw");}
77 
78  bool getEncoderAccelerationsRaw(double *accs) override
79  {return NOT_YET_IMPLEMENTED("getEncoderAccelerationsRaw");}
80 };
81 
82 #endif // YARP_DEV_IMPLEMENTCONTROLBOARDINTERFACES_H
define control board standard interfaces
bool NOT_YET_IMPLEMENTED(const char *txt)
Control board, encoder interface.
Definition: IEncoders.h:25
Stub implementation of IEncodersRaw interface.
bool getEncoderSpeedsRaw(double *spds) override
Read the instantaneous acceleration of an axis.
bool resetEncodersRaw() override
Reset encoders.
bool getEncoderAccelerationsRaw(double *accs) override
Read the instantaneous acceleration of all axes.
bool setEncoderRaw(int j, double val) override
Set the value of the encoder for a given joint.
bool getEncoderRaw(int j, double *v) override
Read the value of an encoder.
bool getEncodersRaw(double *encs) override
Read the position of all axes.
bool getEncoderAccelerationRaw(int j, double *spds) override
Read the instantaneous acceleration of an axis.
bool getAxes(int *ax) override
Get the number of controlled axes.
bool setEncodersRaw(const double *vals) override
Set the value of all encoders.
bool getEncoderSpeedRaw(int j, double *sp) override
Read the instantaneous speed of an axis.
bool resetEncoderRaw(int j) override
Reset encoder, single joint.
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_dev_API
Definition: api.h:18