JointData.cpp
Go to the documentation of this file.
1 /****************************************************************
2  *
3  * Copyright (c) 2011
4  * All rights reserved.
5  *
6  * Hochschule Bonn-Rhein-Sieg
7  * University of Applied Sciences
8  * Computer Science Department
9  *
10  * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
11  *
12  * Author:
13  * Jan Paulus, Nico Hochgeschwender, Michael Reckhaus, Azamat Shakhimardanov
14  * Supervised by:
15  * Gerhard K. Kraetzschmar
16  *
17  * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
18  *
19  * This sofware is published under a dual-license: GNU Lesser General Public
20  * License LGPL 2.1 and BSD license. The dual-license implies that users of this
21  * code may choose which terms they prefer.
22  *
23  * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
24  *
25  * Redistribution and use in source and binary forms, with or without
26  * modification, are permitted provided that the following conditions are met:
27  *
28  * * Redistributions of source code must retain the above copyright
29  * notice, this list of conditions and the following disclaimer.
30  * * Redistributions in binary form must reproduce the above copyright
31  * notice, this list of conditions and the following disclaimer in the
32  * documentation and/or other materials provided with the distribution.
33  * * Neither the name of the Hochschule Bonn-Rhein-Sieg nor the names of its
34  * contributors may be used to endorse or promote products derived from
35  * this software without specific prior written permission.
36  *
37  * This program is free software: you can redistribute it and/or modify
38  * it under the terms of the GNU Lesser General Public License LGPL as
39  * published by the Free Software Foundation, either version 2.1 of the
40  * License, or (at your option) any later version or the BSD license.
41  *
42  * This program is distributed in the hope that it will be useful,
43  * but WITHOUT ANY WARRANTY; without even the implied warranty of
44  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45  * GNU Lesser General Public License LGPL and the BSD license for more details.
46  *
47  * You should have received a copy of the GNU Lesser General Public
48  * License LGPL and BSD license along with this program.
49  *
50  ****************************************************************/
52 
53 namespace youbot {
54 
56  // Bouml preserved body begin 000CD971
57  this->pwm = 0;
58  // Bouml preserved body end 000CD971
59 }
60 
61 JointSensedPWM::JointSensedPWM(const signed int& value) {
62  // Bouml preserved body begin 000CFDF1
63  this->pwm = value;
64  // Bouml preserved body end 000CFDF1
65 }
66 
68  // Bouml preserved body begin 000CD771
69  this->angle = 0 * radian;
70  // Bouml preserved body end 000CD771
71 }
72 
73 JointSensedAngle::JointSensedAngle(const quantity<plane_angle>& value) {
74  // Bouml preserved body begin 000CFBF1
75  this->angle = value;
76  // Bouml preserved body end 000CFBF1
77 }
78 
80  // Bouml preserved body begin 000CD7F1
81  this->encoderTicks = 0;
82  // Bouml preserved body end 000CD7F1
83 }
84 
86  // Bouml preserved body begin 000CFC71
87  this->encoderTicks = value;
88  // Bouml preserved body end 000CFC71
89 }
90 
92  // Bouml preserved body begin 000CD6F1
93  this->angularVelocity = 0 * radian_per_second;
94  // Bouml preserved body end 000CD6F1
95 }
96 
97 JointSensedVelocity::JointSensedVelocity(const quantity<si::angular_velocity>& value) {
98  // Bouml preserved body begin 000CFB71
99  this->angularVelocity = value;
100  // Bouml preserved body end 000CFB71
101 }
102 
104  // Bouml preserved body begin 000CD871
105  this->rpm = 0;
106  // Bouml preserved body end 000CD871
107 }
108 
110  // Bouml preserved body begin 000CFCF1
111  this->rpm = value;
112  // Bouml preserved body end 000CFCF1
113 }
114 
116  // Bouml preserved body begin 000CD8F1
117  this->current = 0 * ampere;
118  // Bouml preserved body end 000CD8F1
119 }
120 
121 JointSensedCurrent::JointSensedCurrent(const quantity<si::current>& value) {
122  // Bouml preserved body begin 000CFD71
123  this->current = value;
124  // Bouml preserved body end 000CFD71
125 }
126 
128  // Bouml preserved body begin 000CD671
129  this->torque = 0 * newton_meter;
130  // Bouml preserved body end 000CD671
131 }
132 
133 JointSensedTorque::JointSensedTorque(const quantity<si::torque>& value) {
134  // Bouml preserved body begin 000CFAF1
135  this->torque = value;
136  // Bouml preserved body end 000CFAF1
137 }
138 
140  // Bouml preserved body begin 000CDB71
141  this->angle = 0 * radian;
142  // Bouml preserved body end 000CDB71
143 }
144 
145 JointAngleSetpoint::JointAngleSetpoint(const quantity<plane_angle>& value) {
146  // Bouml preserved body begin 000CFF71
147  this->angle = value;
148  // Bouml preserved body end 000CFF71
149 }
150 
152  // Bouml preserved body begin 000CDAF1
153  this->angularVelocity = 0 * radian_per_second;
154  // Bouml preserved body end 000CDAF1
155 }
156 
157 JointVelocitySetpoint::JointVelocitySetpoint(const quantity<angular_velocity>& value) {
158  // Bouml preserved body begin 000CFEF1
159  this->angularVelocity = value;
160  // Bouml preserved body end 000CFEF1
161 }
162 
164  // Bouml preserved body begin 000CDCF1
165  this->rpm = 0;
166  // Bouml preserved body end 000CDCF1
167 }
168 
170  // Bouml preserved body begin 000D00F1
171  this->rpm = value;
172  // Bouml preserved body end 000D00F1
173 }
174 
176  // Bouml preserved body begin 000CDBF1
177  this->current = 0 * ampere;
178  // Bouml preserved body end 000CDBF1
179 }
180 
181 JointCurrentSetpoint::JointCurrentSetpoint(const quantity<si::current>& value) {
182  // Bouml preserved body begin 000CFFF1
183  this->current = value;
184  // Bouml preserved body end 000CFFF1
185 }
186 
188  // Bouml preserved body begin 000CDA71
189  this->torque = 0 * newton_meter;
190  // Bouml preserved body end 000CDA71
191 }
192 
193 JointTorqueSetpoint::JointTorqueSetpoint(const quantity<si::torque>& value) {
194  // Bouml preserved body begin 000CFE71
195  this->torque = value;
196  // Bouml preserved body end 000CFE71
197 }
198 
200  // Bouml preserved body begin 000CDC71
201  this->pwm = 0;
202  // Bouml preserved body end 000CDC71
203 }
204 
206  // Bouml preserved body begin 000D0071
207  this->pwm = value;
208  // Bouml preserved body end 000D0071
209 }
210 
212  // Bouml preserved body begin 000CDD71
213  this->encoderTicks = 0;
214  // Bouml preserved body end 000CDD71
215 }
216 
218  // Bouml preserved body begin 000D0171
219  this->encoderTicks = value;
220  // Bouml preserved body end 000D0171
221 }
222 
224  // Bouml preserved body begin 00103DF1
225  this->angularVelocity = 0 * radian_per_second;
226  // Bouml preserved body end 00103DF1
227 }
228 
229 JointRampGeneratorVelocity::JointRampGeneratorVelocity(const quantity<si::angular_velocity>& value) {
230  // Bouml preserved body begin 00103E71
231  this->angularVelocity = value;
232  // Bouml preserved body end 00103E71
233 }
234 
235 
236 } // namespace youbot


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