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
yarp::dev::StubImplEncodersRaw::getEncoderRaw
bool getEncoderRaw(int j, double *v) override
Read the value of an encoder.
Definition: ImplementControlBoardInterfaces.h:66
yarp::dev::StubImplEncodersRaw
Stub implementation of IEncodersRaw interface.
Definition: ImplementControlBoardInterfaces.h:40
yarp::dev::StubImplEncodersRaw::getEncoderAccelerationsRaw
bool getEncoderAccelerationsRaw(double *accs) override
Read the instantaneous acceleration of all axes.
Definition: ImplementControlBoardInterfaces.h:81
yarp::dev::StubImplEncodersRaw::resetEncodersRaw
bool resetEncodersRaw() override
Reset encoders.
Definition: ImplementControlBoardInterfaces.h:57
yarp::dev::StubImplEncodersRaw::~StubImplEncodersRaw
virtual ~StubImplEncodersRaw()
Definition: ImplementControlBoardInterfaces.h:49
ControlBoardInterfaces.h
define control board standard interfaces
yarp::dev::StubImplEncodersRaw::getAxes
bool getAxes(int *ax) override
Get the number of controlled axes.
Definition: ImplementControlBoardInterfaces.h:51
yarp::dev::StubImplEncodersRaw::resetEncoderRaw
bool resetEncoderRaw(int j) override
Reset encoder, single joint.
Definition: ImplementControlBoardInterfaces.h:54
NOT_YET_IMPLEMENTED
bool NOT_YET_IMPLEMENTED(const char *txt)
Definition: DynamixelAX12FtdiDriver.cpp:25
yarp::dev::IEncodersRaw
Control board, encoder interface.
Definition: IEncoders.h:28
yarp::dev::StubImplEncodersRaw::getEncoderSpeedsRaw
bool getEncoderSpeedsRaw(double *spds) override
Read the instantaneous acceleration of an axis.
Definition: ImplementControlBoardInterfaces.h:75
yarp::dev::StubImplEncodersRaw::setEncoderRaw
bool setEncoderRaw(int j, double val) override
Set the value of the encoder for a given joint.
Definition: ImplementControlBoardInterfaces.h:60
yarp::dev::StubImplEncodersRaw::getEncoderAccelerationRaw
bool getEncoderAccelerationRaw(int j, double *spds) override
Read the instantaneous acceleration of an axis.
Definition: ImplementControlBoardInterfaces.h:78
YARP_dev_API
#define YARP_dev_API
Definition: api.h:19
yarp::dev::StubImplEncodersRaw::getEncoderSpeedRaw
bool getEncoderSpeedRaw(int j, double *sp) override
Read the instantaneous speed of an axis.
Definition: ImplementControlBoardInterfaces.h:72
yarp::dev::StubImplEncodersRaw::setEncodersRaw
bool setEncodersRaw(const double *vals) override
Set the value of all encoders.
Definition: ImplementControlBoardInterfaces.h:63
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
yarp::dev::StubImplEncodersRaw::getEncodersRaw
bool getEncodersRaw(double *encs) override
Read the position of all axes.
Definition: ImplementControlBoardInterfaces.h:69
ImplementControlCalibration.h
api.h