14 #ifndef YARP_THRIFT_GENERATOR_STRUCT_JOINTDATA_H
15 #define YARP_THRIFT_GENERATOR_STRUCT_JOINTDATA_H
60 const bool jointPosition_isValid,
62 const bool jointVelocity_isValid,
64 const bool jointAcceleration_isValid,
66 const bool motorPosition_isValid,
68 const bool motorVelocity_isValid,
70 const bool motorAcceleration_isValid,
72 const bool torque_isValid,
74 const bool pwmDutycycle_isValid,
76 const bool current_isValid,
78 const bool controlMode_isValid,
80 const bool interactionMode_isValid);
121 bool edit(
jointData& obj,
bool dirty =
true);
130 void start_editing();
132 #ifndef YARP_NO_DEPRECATED // Since YARP 3.2
138 #endif // YARP_NO_DEPRECATED
143 #ifndef YARP_NO_DEPRECATED // Since YARP 3.2
149 #endif // YARP_NO_DEPRECATED
154 virtual bool will_set_jointPosition();
155 virtual bool did_set_jointPosition();
158 void set_jointPosition_isValid(
const bool jointPosition_isValid);
159 bool get_jointPosition_isValid()
const;
160 virtual bool will_set_jointPosition_isValid();
161 virtual bool did_set_jointPosition_isValid();
166 virtual bool will_set_jointVelocity();
167 virtual bool did_set_jointVelocity();
170 void set_jointVelocity_isValid(
const bool jointVelocity_isValid);
171 bool get_jointVelocity_isValid()
const;
172 virtual bool will_set_jointVelocity_isValid();
173 virtual bool did_set_jointVelocity_isValid();
178 virtual bool will_set_jointAcceleration();
179 virtual bool did_set_jointAcceleration();
182 void set_jointAcceleration_isValid(
const bool jointAcceleration_isValid);
183 bool get_jointAcceleration_isValid()
const;
184 virtual bool will_set_jointAcceleration_isValid();
185 virtual bool did_set_jointAcceleration_isValid();
190 virtual bool will_set_motorPosition();
191 virtual bool did_set_motorPosition();
194 void set_motorPosition_isValid(
const bool motorPosition_isValid);
195 bool get_motorPosition_isValid()
const;
196 virtual bool will_set_motorPosition_isValid();
197 virtual bool did_set_motorPosition_isValid();
202 virtual bool will_set_motorVelocity();
203 virtual bool did_set_motorVelocity();
206 void set_motorVelocity_isValid(
const bool motorVelocity_isValid);
207 bool get_motorVelocity_isValid()
const;
208 virtual bool will_set_motorVelocity_isValid();
209 virtual bool did_set_motorVelocity_isValid();
214 virtual bool will_set_motorAcceleration();
215 virtual bool did_set_motorAcceleration();
218 void set_motorAcceleration_isValid(
const bool motorAcceleration_isValid);
219 bool get_motorAcceleration_isValid()
const;
220 virtual bool will_set_motorAcceleration_isValid();
221 virtual bool did_set_motorAcceleration_isValid();
226 virtual bool will_set_torque();
227 virtual bool did_set_torque();
230 void set_torque_isValid(
const bool torque_isValid);
231 bool get_torque_isValid()
const;
232 virtual bool will_set_torque_isValid();
233 virtual bool did_set_torque_isValid();
238 virtual bool will_set_pwmDutycycle();
239 virtual bool did_set_pwmDutycycle();
242 void set_pwmDutycycle_isValid(
const bool pwmDutycycle_isValid);
243 bool get_pwmDutycycle_isValid()
const;
244 virtual bool will_set_pwmDutycycle_isValid();
245 virtual bool did_set_pwmDutycycle_isValid();
250 virtual bool will_set_current();
251 virtual bool did_set_current();
254 void set_current_isValid(
const bool current_isValid);
255 bool get_current_isValid()
const;
256 virtual bool will_set_current_isValid();
257 virtual bool did_set_current_isValid();
262 virtual bool will_set_controlMode();
263 virtual bool did_set_controlMode();
266 void set_controlMode_isValid(
const bool controlMode_isValid);
267 bool get_controlMode_isValid()
const;
268 virtual bool will_set_controlMode_isValid();
269 virtual bool did_set_controlMode_isValid();
274 virtual bool will_set_interactionMode();
275 virtual bool did_set_interactionMode();
278 void set_interactionMode_isValid(
const bool interactionMode_isValid);
279 bool get_interactionMode_isValid()
const;
280 virtual bool will_set_interactionMode_isValid();
281 virtual bool did_set_interactionMode_isValid();
300 bool is_dirty_jointPosition;
301 bool is_dirty_jointPosition_isValid;
302 bool is_dirty_jointVelocity;
303 bool is_dirty_jointVelocity_isValid;
304 bool is_dirty_jointAcceleration;
305 bool is_dirty_jointAcceleration_isValid;
306 bool is_dirty_motorPosition;
307 bool is_dirty_motorPosition_isValid;
308 bool is_dirty_motorVelocity;
309 bool is_dirty_motorVelocity_isValid;
310 bool is_dirty_motorAcceleration;
311 bool is_dirty_motorAcceleration_isValid;
312 bool is_dirty_torque;
313 bool is_dirty_torque_isValid;
314 bool is_dirty_pwmDutycycle;
315 bool is_dirty_pwmDutycycle_isValid;
316 bool is_dirty_current;
317 bool is_dirty_current_isValid;
318 bool is_dirty_controlMode;
319 bool is_dirty_controlMode_isValid;
320 bool is_dirty_interactionMode;
321 bool is_dirty_interactionMode_isValid;
331 void mark_dirty_jointPosition();
332 void mark_dirty_jointPosition_isValid();
333 void mark_dirty_jointVelocity();
334 void mark_dirty_jointVelocity_isValid();
335 void mark_dirty_jointAcceleration();
336 void mark_dirty_jointAcceleration_isValid();
337 void mark_dirty_motorPosition();
338 void mark_dirty_motorPosition_isValid();
339 void mark_dirty_motorVelocity();
340 void mark_dirty_motorVelocity_isValid();
341 void mark_dirty_motorAcceleration();
342 void mark_dirty_motorAcceleration_isValid();
343 void mark_dirty_torque();
344 void mark_dirty_torque_isValid();
345 void mark_dirty_pwmDutycycle();
346 void mark_dirty_pwmDutycycle_isValid();
347 void mark_dirty_current();
348 void mark_dirty_current_isValid();
349 void mark_dirty_controlMode();
350 void mark_dirty_controlMode_isValid();
351 void mark_dirty_interactionMode();
352 void mark_dirty_interactionMode_isValid();
355 void dirty_flags(
bool flag);
496 #endif // YARP_THRIFT_GENERATOR_STRUCT_JOINTDATA_H