iCub-main
Loading...
Searching...
No Matches
genericControlBoardDumper.h
Go to the documentation of this file.
1// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2
3/*
4 * Copyright (C) 2010 RobotCub Consortium, European Commission FP6 Project IST-004370
5 * Author: Francesco Nori
6 * email: francesco.nori@iit.it
7 * website: www.robotcub.org
8 * Permission is granted to copy, distribute, and/or modify this program
9 * under the terms of the GNU General Public License, version 2 or any
10 * later version published by the Free Software Foundation.
11 *
12 * A copy of the license can be found at
13 * http://www.robotcub.org/icub/license/gpl.txt
14 *
15 * This program is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
18 * Public License for more details
19*/
20
21#include <yarp/dev/ControlBoardInterfaces.h>
22#include <yarp/dev/PolyDriver.h>
23#include <yarp/dev/IPreciselyTimed.h>
24
25using namespace yarp::dev;
26using namespace yarp::os;
27
29{
30private:
31 IPreciselyTimed* myIstmp;
32public:
33 GetData();
34 virtual bool getData(double *) = 0;
35 bool getStamp(Stamp &);
36 void setStamp(IPreciselyTimed*);
37
38};
39
40class GetTemps : public GetData
41{
42public:
43 void setInterface (IMotor *);
44 virtual bool getData(double *);
45
46 IMotor *imot;
47};
48
49class GetMotEncs : public GetData
50{
51public:
52 void setInterface (IMotorEncoders *);
53 virtual bool getData(double *);
54
55 IMotorEncoders *imotencs;
56};
57
58class GetMotSpeeds : public GetData
59{
60public:
61 void setInterface (IMotorEncoders *);
62 virtual bool getData(double *);
63
64 IMotorEncoders *imotencs;
65};
66
67class GetMotAccs : public GetData
68{
69public:
70 void setInterface (IMotorEncoders *);
71 virtual bool getData(double *);
72
73 IMotorEncoders *imotencs;
74};
75
76class GetEncs : public GetData
77{
78public:
79 void setInterface (IEncoders *);
80 virtual bool getData(double *);
81
82 IEncoders *iencs;
83};
84
85class GetPidRefs : public GetData
86{
87public:
88 void setInterface (IPidControl *);
89 virtual bool getData(double *);
90
91 IPidControl *ipid;
92};
93
94class GetSpeeds : public GetData
95{
96public:
97 void setInterface (IEncoders *);
98 virtual bool getData(double *);
99
100 IEncoders *iencs;
101};
102
103class GetAccs : public GetData
104{
105public:
106 void setInterface (IEncoders *);
107 virtual bool getData(double *);
108
109 IEncoders *iencs;
110};
111
112class GetPosErrs : public GetData
113{
114public:
115 void setInterface (IPidControl *);
116 virtual bool getData(double *);
117
118 IPidControl *ipid;
119};
120
121class GetOuts : public GetData
122{
123public:
124 void setInterface (IPidControl *);
125 virtual bool getData(double *);
126
127 IPidControl *ipid;
128};
129
130class GetCurrs : public GetData
131{
132public:
133 void setInterface (IAmplifierControl *);
134 virtual bool getData(double *);
135
136 IAmplifierControl *iamp;
137};
138
139class GetTrqs : public GetData
140{
141public:
142 void setInterface (ITorqueControl *);
143 virtual bool getData(double *);
144
145 ITorqueControl *itrq;
146};
147
149{
150public:
151 void setInterface (IControlMode *, int joints);
152 virtual bool getData(double *);
153
154 IControlMode *icmd;
155 int nj;
156};
157
159{
160public:
161 void setInterface (IInteractionMode *, int joints);
162 virtual bool getData(double *);
163
164 IInteractionMode *iint;
165 int nj;
166};
167
168class GetTrqErrs : public GetData
169{
170public:
171 void setInterface (IPidControl *);
172 virtual bool getData(double *);
173
174 IPidControl *ipid;
175};
176
177class GetTrqRefs : public GetData
178{
179public:
180 void setInterface (ITorqueControl *);
181 virtual bool getData(double *);
182
183 ITorqueControl *itrq;
184};
185
186class GetMotPwm : public GetData
187{
188public:
189 void setInterface (IAmplifierControl *);
190 virtual bool getData(double *);
192
193 IAmplifierControl *iamp;
194};
void setInterface(IEncoders *)
virtual bool getData(double *)
virtual bool getData(double *)
void setInterface(IControlMode *, int joints)
IAmplifierControl * iamp
virtual bool getData(double *)
void setInterface(IAmplifierControl *)
bool getStamp(Stamp &)
void setStamp(IPreciselyTimed *)
virtual bool getData(double *)=0
virtual bool getData(double *)
void setInterface(IEncoders *)
void setInterface(IInteractionMode *, int joints)
virtual bool getData(double *)
void setInterface(IMotorEncoders *)
IMotorEncoders * imotencs
virtual bool getData(double *)
IMotorEncoders * imotencs
void setInterface(IMotorEncoders *)
virtual bool getData(double *)
virtual bool getData(double *)
void setInterface(IAmplifierControl *)
IAmplifierControl * iamp
virtual bool getData(double *)
void setInterface(IMotorEncoders *)
IMotorEncoders * imotencs
void setInterface(IPidControl *)
virtual bool getData(double *)
void setInterface(IPidControl *)
virtual bool getData(double *)
void setInterface(IPidControl *)
virtual bool getData(double *)
void setInterface(IEncoders *)
virtual bool getData(double *)
void setInterface(IMotor *)
virtual bool getData(double *)
void setInterface(IPidControl *)
virtual bool getData(double *)
ITorqueControl * itrq
void setInterface(ITorqueControl *)
virtual bool getData(double *)
virtual bool getData(double *)
void setInterface(ITorqueControl *)
ITorqueControl * itrq