YARP
Yet Another Robot Platform
ImplementControlBoardInterfaces.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_IMPLEMENTCONTROLBOARDINTERFACES_H
10 #define YARP_DEV_IMPLEMENTCONTROLBOARDINTERFACES_H
11 
14 #include <yarp/dev/api.h>
15 
16 namespace yarp
17 {
18  namespace dev
19  {
20  class StubImplPositionControlRaw;
21  class StubImplEncodersRaw;
22  }
23 }
24 
40 {
41 private:
46  bool NOT_YET_IMPLEMENTED(const char *func=0);
47 
48 public:
50 
51  bool getAxes(int *ax) override
52  {return NOT_YET_IMPLEMENTED("getAxes");}
53 
54  bool resetEncoderRaw(int j) override
55  {return NOT_YET_IMPLEMENTED("resetEncoderRaw");}
56 
57  bool resetEncodersRaw() override
58  {return NOT_YET_IMPLEMENTED("resetEncodersRaw");}
59 
60  bool setEncoderRaw(int j, double val) override
61  {return NOT_YET_IMPLEMENTED("setEncoderRaw");}
62 
63  bool setEncodersRaw(const double *vals) override
64  {return NOT_YET_IMPLEMENTED("setEncodersRaw");}
65 
66  bool getEncoderRaw(int j, double *v) override
67  {return NOT_YET_IMPLEMENTED("getEncoderRaw");}
68 
69  bool getEncodersRaw(double *encs) override
70  {return NOT_YET_IMPLEMENTED("getEncodersRaw");}
71 
72  bool getEncoderSpeedRaw(int j, double *sp) override
73  {return NOT_YET_IMPLEMENTED("getEncoderSpeedRaw");}
74 
75  bool getEncoderSpeedsRaw(double *spds) override
76  {return NOT_YET_IMPLEMENTED("getEncoderSpeedsRaw");}
77 
78  bool getEncoderAccelerationRaw(int j, double *spds) override
79  {return NOT_YET_IMPLEMENTED("getEncoderAccelerationRaw");}
80 
81  bool getEncoderAccelerationsRaw(double *accs) override
82  {return NOT_YET_IMPLEMENTED("getEncoderAccelerationsRaw");}
83 };
84 
85 #endif // YARP_DEV_IMPLEMENTCONTROLBOARDINTERFACES_H
define control board standard interfaces
bool NOT_YET_IMPLEMENTED(const char *txt)
Control board, encoder interface.
Definition: IEncoders.h:28
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: environment.h:18
#define YARP_dev_API
Definition: api.h:19