YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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
13namespace yarp::dev {
14class StubImplPositionControlRaw;
15class StubImplEncodersRaw;
16}
17
33{
34private:
39 bool NOT_YET_IMPLEMENTED(const char *func=0);
40
41public:
43
44 bool getAxes(int *ax) override
45 {return NOT_YET_IMPLEMENTED("getAxes");}
46
47 bool resetEncoderRaw(int j) override
48 {return NOT_YET_IMPLEMENTED("resetEncoderRaw");}
49
50 bool resetEncodersRaw() override
51 {return NOT_YET_IMPLEMENTED("resetEncodersRaw");}
52
53 bool setEncoderRaw(int j, double val) override
54 {return NOT_YET_IMPLEMENTED("setEncoderRaw");}
55
56 bool setEncodersRaw(const double *vals) override
57 {return NOT_YET_IMPLEMENTED("setEncodersRaw");}
58
59 bool getEncoderRaw(int j, double *v) override
60 {return NOT_YET_IMPLEMENTED("getEncoderRaw");}
61
62 bool getEncodersRaw(double *encs) override
63 {return NOT_YET_IMPLEMENTED("getEncodersRaw");}
64
65 bool getEncoderSpeedRaw(int j, double *sp) override
66 {return NOT_YET_IMPLEMENTED("getEncoderSpeedRaw");}
67
68 bool getEncoderSpeedsRaw(double *spds) override
69 {return NOT_YET_IMPLEMENTED("getEncoderSpeedsRaw");}
70
71 bool getEncoderAccelerationRaw(int j, double *spds) override
72 {return NOT_YET_IMPLEMENTED("getEncoderAccelerationRaw");}
73
74 bool getEncoderAccelerationsRaw(double *accs) override
75 {return NOT_YET_IMPLEMENTED("getEncoderAccelerationsRaw");}
76};
77
78#endif // YARP_DEV_IMPLEMENTCONTROLBOARDINTERFACES_H
define control board standard interfaces
bool NOT_YET_IMPLEMENTED(const char *txt)
Control board, encoder interface.
Definition IEncoders.h:23
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.
For streams capable of holding different kinds of content, check what they actually have.
The main, catch-all namespace for YARP.
Definition dirs.h:16
#define YARP_dev_API
Definition api.h:18