JointData.hpp
Go to the documentation of this file.
1 #ifndef YOUBOT_JOINTDATA_H
2 #define YOUBOT_JOINTDATA_H
3 
4 /****************************************************************
5  *
6  * Copyright (c) 2011
7  * All rights reserved.
8  *
9  * Hochschule Bonn-Rhein-Sieg
10  * University of Applied Sciences
11  * Computer Science Department
12  *
13  * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14  *
15  * Author:
16  * Jan Paulus, Nico Hochgeschwender, Michael Reckhaus, Azamat Shakhimardanov
17  * Supervised by:
18  * Gerhard K. Kraetzschmar
19  *
20  * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21  *
22  * This sofware is published under a dual-license: GNU Lesser General Public
23  * License LGPL 2.1 and BSD license. The dual-license implies that users of this
24  * code may choose which terms they prefer.
25  *
26  * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
27  *
28  * Redistribution and use in source and binary forms, with or without
29  * modification, are permitted provided that the following conditions are met:
30  *
31  * * Redistributions of source code must retain the above copyright
32  * notice, this list of conditions and the following disclaimer.
33  * * Redistributions in binary form must reproduce the above copyright
34  * notice, this list of conditions and the following disclaimer in the
35  * documentation and/or other materials provided with the distribution.
36  * * Neither the name of the Hochschule Bonn-Rhein-Sieg nor the names of its
37  * contributors may be used to endorse or promote products derived from
38  * this software without specific prior written permission.
39  *
40  * This program is free software: you can redistribute it and/or modify
41  * it under the terms of the GNU Lesser General Public License LGPL as
42  * published by the Free Software Foundation, either version 2.1 of the
43  * License, or (at your option) any later version or the BSD license.
44  *
45  * This program is distributed in the hope that it will be useful,
46  * but WITHOUT ANY WARRANTY; without even the implied warranty of
47  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48  * GNU Lesser General Public License LGPL and the BSD license for more details.
49  *
50  * You should have received a copy of the GNU Lesser General Public
51  * License LGPL and BSD license along with this program.
52  *
53  ****************************************************************/
55 
56 namespace youbot {
57 
61 class JointData {
62 };
66 class JointSensedData : public JointData {
67 };
72 };
77  public:
78  signed int pwm;
79 
81 
82  JointSensedPWM(const signed int& value);
83 
84 };
89  public:
90  quantity<plane_angle> angle;
91 
93 
94  JointSensedAngle(const quantity<plane_angle>& value);
95 
96 };
101  public:
102  signed int encoderTicks;
103 
105 
106  JointSensedEncoderTicks(const signed int& value);
107 
108 };
113  public:
114  quantity<si::angular_velocity> angularVelocity;
115 
117 
118  JointSensedVelocity(const quantity<si::angular_velocity>& value);
119 
120 };
125  public:
126  int rpm;
127 
129 
130  JointSensedRoundsPerMinute(const int value);
131 
132 };
137  public:
138  quantity<si::current> current;
139 
141 
142  JointSensedCurrent(const quantity<si::current>& value);
143 
144 };
149  public:
150  quantity<si::torque> torque;
151 
153 
154  JointSensedTorque(const quantity<si::torque>& value);
155 
156 };
160 class JointDataSetpoint : public JointData {
161 };
166 };
171  public:
172  quantity<plane_angle> angle;
173 
175 
176  JointAngleSetpoint(const quantity<plane_angle>& value);
177 
178 };
183  public:
184  quantity<angular_velocity> angularVelocity;
185 
187 
188  JointVelocitySetpoint(const quantity<angular_velocity>& value);
189 
190 };
195  public:
196  int rpm;
197 
199 
200  JointRoundsPerMinuteSetpoint(const int value);
201 
202 };
207  public:
208  quantity<si::current> current;
209 
211 
212  JointCurrentSetpoint(const quantity<si::current>& value);
213 
214 };
219  public:
220  quantity<si::torque> torque;
221 
223 
224  JointTorqueSetpoint(const quantity<si::torque>& value);
225 
226 };
231  public:
232  int pwm;
233 
235 
236  JointPWMSetpoint(const int value);
237 
238 };
243  public:
244  signed int encoderTicks;
245 
247 
248  JointEncoderSetpoint(const signed int& value);
249 
250 };
255 };
260  public:
261  quantity<si::angular_velocity> angularVelocity;
262 
264 
265  JointRampGeneratorVelocity(const quantity<si::angular_velocity>& value);
266 
267 };
268 
269 } // namespace youbot
270 #endif
quantity< angular_velocity > angularVelocity
Definition: JointData.hpp:184
Sensed encoder ticks of the joint.
Definition: JointData.hpp:100
Set-point velocity of the joint.
Definition: JointData.hpp:182
The torque set-point of the joint will be set by setting the computed current set-point.
Definition: JointData.hpp:218
This torque of the joint is computed from the actual current.
Definition: JointData.hpp:148
Sensed velocity of the joint.
Definition: JointData.hpp:259
abstract data class for computed joint data setpoints
Definition: JointData.hpp:165
abstract data class for sensed / measured joint data
Definition: JointData.hpp:66
quantity< plane_angle > angle
Definition: JointData.hpp:90
quantity< si::torque > torque
Definition: JointData.hpp:150
abstract data class for computed joint data
Definition: JointData.hpp:71
Sensed rounds per minute (rpm) of the joint.
Definition: JointData.hpp:124
Sensed electric current of the joint.
Definition: JointData.hpp:136
encoder ticks setpoint of the joint
Definition: JointData.hpp:242
quantity< si::angular_velocity > angularVelocity
Definition: JointData.hpp:114
Pulse-width modulation set-point of the joint.
Definition: JointData.hpp:230
quantity< si::torque > torque
Definition: JointData.hpp:220
abstract data class for commanded joint data
Definition: JointData.hpp:160
Set-point current of the joint.
Definition: JointData.hpp:206
quantity< si::current > current
Definition: JointData.hpp:208
abstract data class for data which have been computed by the hardware controller
Definition: JointData.hpp:254
quantity< si::current > current
Definition: JointData.hpp:138
abstract data class for joints
Definition: JointData.hpp:61
Sensed position / angle of the joint.
Definition: JointData.hpp:88
quantity< plane_angle > angle
Definition: JointData.hpp:172
Set-point angle / position of the joint.
Definition: JointData.hpp:170
quantity< si::angular_velocity > angularVelocity
Definition: JointData.hpp:261
Rounds per minute set-point of the joint.
Definition: JointData.hpp:194
actual pwm value of the joint
Definition: JointData.hpp:76
Sensed velocity of the joint.
Definition: JointData.hpp:112


youbot_driver
Author(s): Jan Paulus
autogenerated on Mon Jun 10 2019 15:46:24