YARP
Yet Another Robot Platform
jointData.cpp
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 // Autogenerated by Thrift Compiler (0.12.0-yarped)
10 //
11 // This is an automatically generated file.
12 // It could get re-generated if the ALLOW_IDL_GENERATION flag is on.
13 
15 
16 namespace yarp {
17 namespace dev {
18 namespace impl {
19 
20 // Default constructor
22  WirePortable(),
23  jointPosition(),
24  jointPosition_isValid(0),
25  jointVelocity(),
26  jointVelocity_isValid(0),
27  jointAcceleration(),
28  jointAcceleration_isValid(0),
29  motorPosition(),
30  motorPosition_isValid(0),
31  motorVelocity(),
32  motorVelocity_isValid(0),
33  motorAcceleration(),
34  motorAcceleration_isValid(0),
35  torque(),
36  torque_isValid(0),
37  pwmDutycycle(),
38  pwmDutycycle_isValid(0),
39  current(),
40  current_isValid(0),
41  controlMode(),
42  controlMode_isValid(0),
43  interactionMode(),
44  interactionMode_isValid(0)
45 {
46 }
47 
48 // Constructor with field values
50  const bool jointPosition_isValid,
51  const yarp::sig::VectorOf<double>& jointVelocity,
52  const bool jointVelocity_isValid,
53  const yarp::sig::VectorOf<double>& jointAcceleration,
54  const bool jointAcceleration_isValid,
55  const yarp::sig::VectorOf<double>& motorPosition,
56  const bool motorPosition_isValid,
57  const yarp::sig::VectorOf<double>& motorVelocity,
58  const bool motorVelocity_isValid,
59  const yarp::sig::VectorOf<double>& motorAcceleration,
60  const bool motorAcceleration_isValid,
61  const yarp::sig::VectorOf<double>& torque,
62  const bool torque_isValid,
63  const yarp::sig::VectorOf<double>& pwmDutycycle,
64  const bool pwmDutycycle_isValid,
65  const yarp::sig::VectorOf<double>& current,
66  const bool current_isValid,
67  const yarp::sig::VectorOf<int>& controlMode,
68  const bool controlMode_isValid,
69  const yarp::sig::VectorOf<int>& interactionMode,
70  const bool interactionMode_isValid) :
71  WirePortable(),
72  jointPosition(jointPosition),
73  jointPosition_isValid(jointPosition_isValid),
74  jointVelocity(jointVelocity),
75  jointVelocity_isValid(jointVelocity_isValid),
76  jointAcceleration(jointAcceleration),
77  jointAcceleration_isValid(jointAcceleration_isValid),
78  motorPosition(motorPosition),
79  motorPosition_isValid(motorPosition_isValid),
80  motorVelocity(motorVelocity),
81  motorVelocity_isValid(motorVelocity_isValid),
82  motorAcceleration(motorAcceleration),
83  motorAcceleration_isValid(motorAcceleration_isValid),
84  torque(torque),
85  torque_isValid(torque_isValid),
86  pwmDutycycle(pwmDutycycle),
87  pwmDutycycle_isValid(pwmDutycycle_isValid),
88  current(current),
89  current_isValid(current_isValid),
90  controlMode(controlMode),
91  controlMode_isValid(controlMode_isValid),
92  interactionMode(interactionMode),
93  interactionMode_isValid(interactionMode_isValid)
94 {
95 }
96 
97 // Read structure on a Wire
99 {
100  if (!read_jointPosition(reader)) {
101  return false;
102  }
103  if (!read_jointPosition_isValid(reader)) {
104  return false;
105  }
106  if (!read_jointVelocity(reader)) {
107  return false;
108  }
109  if (!read_jointVelocity_isValid(reader)) {
110  return false;
111  }
112  if (!read_jointAcceleration(reader)) {
113  return false;
114  }
115  if (!read_jointAcceleration_isValid(reader)) {
116  return false;
117  }
118  if (!read_motorPosition(reader)) {
119  return false;
120  }
121  if (!read_motorPosition_isValid(reader)) {
122  return false;
123  }
124  if (!read_motorVelocity(reader)) {
125  return false;
126  }
127  if (!read_motorVelocity_isValid(reader)) {
128  return false;
129  }
130  if (!read_motorAcceleration(reader)) {
131  return false;
132  }
133  if (!read_motorAcceleration_isValid(reader)) {
134  return false;
135  }
136  if (!read_torque(reader)) {
137  return false;
138  }
139  if (!read_torque_isValid(reader)) {
140  return false;
141  }
142  if (!read_pwmDutycycle(reader)) {
143  return false;
144  }
145  if (!read_pwmDutycycle_isValid(reader)) {
146  return false;
147  }
148  if (!read_current(reader)) {
149  return false;
150  }
151  if (!read_current_isValid(reader)) {
152  return false;
153  }
154  if (!read_controlMode(reader)) {
155  return false;
156  }
157  if (!read_controlMode_isValid(reader)) {
158  return false;
159  }
160  if (!read_interactionMode(reader)) {
161  return false;
162  }
163  if (!read_interactionMode_isValid(reader)) {
164  return false;
165  }
166  return !reader.isError();
167 }
168 
169 // Read structure on a Connection
171 {
172  yarp::os::idl::WireReader reader(connection);
173  if (!reader.readListHeader(22)) {
174  return false;
175  }
176  return read(reader);
177 }
178 
179 // Write structure on a Wire
181 {
182  if (!write_jointPosition(writer)) {
183  return false;
184  }
185  if (!write_jointPosition_isValid(writer)) {
186  return false;
187  }
188  if (!write_jointVelocity(writer)) {
189  return false;
190  }
191  if (!write_jointVelocity_isValid(writer)) {
192  return false;
193  }
194  if (!write_jointAcceleration(writer)) {
195  return false;
196  }
197  if (!write_jointAcceleration_isValid(writer)) {
198  return false;
199  }
200  if (!write_motorPosition(writer)) {
201  return false;
202  }
203  if (!write_motorPosition_isValid(writer)) {
204  return false;
205  }
206  if (!write_motorVelocity(writer)) {
207  return false;
208  }
209  if (!write_motorVelocity_isValid(writer)) {
210  return false;
211  }
212  if (!write_motorAcceleration(writer)) {
213  return false;
214  }
215  if (!write_motorAcceleration_isValid(writer)) {
216  return false;
217  }
218  if (!write_torque(writer)) {
219  return false;
220  }
221  if (!write_torque_isValid(writer)) {
222  return false;
223  }
224  if (!write_pwmDutycycle(writer)) {
225  return false;
226  }
227  if (!write_pwmDutycycle_isValid(writer)) {
228  return false;
229  }
230  if (!write_current(writer)) {
231  return false;
232  }
233  if (!write_current_isValid(writer)) {
234  return false;
235  }
236  if (!write_controlMode(writer)) {
237  return false;
238  }
239  if (!write_controlMode_isValid(writer)) {
240  return false;
241  }
242  if (!write_interactionMode(writer)) {
243  return false;
244  }
245  if (!write_interactionMode_isValid(writer)) {
246  return false;
247  }
248  return !writer.isError();
249 }
250 
251 // Write structure on a Connection
253 {
254  yarp::os::idl::WireWriter writer(connection);
255  if (!writer.writeListHeader(22)) {
256  return false;
257  }
258  return write(writer);
259 }
260 
261 // Convert to a printable string
262 std::string jointData::toString() const
263 {
265  b.read(*this);
266  return b.toString();
267 }
268 
269 // Editor: default constructor
271 {
272  group = 0;
273  obj_owned = true;
274  obj = new jointData;
275  dirty_flags(false);
276  yarp().setOwner(*this);
277 }
278 
279 // Editor: constructor with base class
281 {
282  group = 0;
283  obj_owned = false;
284  edit(obj, false);
285  yarp().setOwner(*this);
286 }
287 
288 // Editor: destructor
290 {
291  if (obj_owned) {
292  delete obj;
293  }
294 }
295 
296 // Editor: edit
297 bool jointData::Editor::edit(jointData& obj, bool dirty)
298 {
299  if (obj_owned) {
300  delete this->obj;
301  }
302  this->obj = &obj;
303  obj_owned = false;
304  dirty_flags(dirty);
305  return true;
306 }
307 
308 // Editor: validity check
310 {
311  return obj != nullptr;
312 }
313 
314 // Editor: state
316 {
317  return *obj;
318 }
319 
320 // Editor: grouping begin
322 {
323  group++;
324 }
325 
326 // Editor: grouping end
328 {
329  group--;
330  if (group == 0 && is_dirty) {
331  communicate();
332  }
333 }
334 // Editor: jointPosition setter
336 {
337  will_set_jointPosition();
338  obj->jointPosition = jointPosition;
339  mark_dirty_jointPosition();
340  communicate();
341  did_set_jointPosition();
342 }
343 
344 // Editor: jointPosition getter
346 {
347  return obj->jointPosition;
348 }
349 
350 // Editor: jointPosition will_set
352 {
353  return true;
354 }
355 
356 // Editor: jointPosition did_set
358 {
359  return true;
360 }
361 
362 // Editor: jointPosition_isValid setter
364 {
365  will_set_jointPosition_isValid();
366  obj->jointPosition_isValid = jointPosition_isValid;
367  mark_dirty_jointPosition_isValid();
368  communicate();
369  did_set_jointPosition_isValid();
370 }
371 
372 // Editor: jointPosition_isValid getter
374 {
375  return obj->jointPosition_isValid;
376 }
377 
378 // Editor: jointPosition_isValid will_set
380 {
381  return true;
382 }
383 
384 // Editor: jointPosition_isValid did_set
386 {
387  return true;
388 }
389 
390 // Editor: jointVelocity setter
392 {
393  will_set_jointVelocity();
394  obj->jointVelocity = jointVelocity;
395  mark_dirty_jointVelocity();
396  communicate();
397  did_set_jointVelocity();
398 }
399 
400 // Editor: jointVelocity getter
402 {
403  return obj->jointVelocity;
404 }
405 
406 // Editor: jointVelocity will_set
408 {
409  return true;
410 }
411 
412 // Editor: jointVelocity did_set
414 {
415  return true;
416 }
417 
418 // Editor: jointVelocity_isValid setter
420 {
421  will_set_jointVelocity_isValid();
422  obj->jointVelocity_isValid = jointVelocity_isValid;
423  mark_dirty_jointVelocity_isValid();
424  communicate();
425  did_set_jointVelocity_isValid();
426 }
427 
428 // Editor: jointVelocity_isValid getter
430 {
431  return obj->jointVelocity_isValid;
432 }
433 
434 // Editor: jointVelocity_isValid will_set
436 {
437  return true;
438 }
439 
440 // Editor: jointVelocity_isValid did_set
442 {
443  return true;
444 }
445 
446 // Editor: jointAcceleration setter
448 {
449  will_set_jointAcceleration();
450  obj->jointAcceleration = jointAcceleration;
451  mark_dirty_jointAcceleration();
452  communicate();
453  did_set_jointAcceleration();
454 }
455 
456 // Editor: jointAcceleration getter
458 {
459  return obj->jointAcceleration;
460 }
461 
462 // Editor: jointAcceleration will_set
464 {
465  return true;
466 }
467 
468 // Editor: jointAcceleration did_set
470 {
471  return true;
472 }
473 
474 // Editor: jointAcceleration_isValid setter
476 {
477  will_set_jointAcceleration_isValid();
478  obj->jointAcceleration_isValid = jointAcceleration_isValid;
479  mark_dirty_jointAcceleration_isValid();
480  communicate();
481  did_set_jointAcceleration_isValid();
482 }
483 
484 // Editor: jointAcceleration_isValid getter
486 {
487  return obj->jointAcceleration_isValid;
488 }
489 
490 // Editor: jointAcceleration_isValid will_set
492 {
493  return true;
494 }
495 
496 // Editor: jointAcceleration_isValid did_set
498 {
499  return true;
500 }
501 
502 // Editor: motorPosition setter
504 {
505  will_set_motorPosition();
506  obj->motorPosition = motorPosition;
507  mark_dirty_motorPosition();
508  communicate();
509  did_set_motorPosition();
510 }
511 
512 // Editor: motorPosition getter
514 {
515  return obj->motorPosition;
516 }
517 
518 // Editor: motorPosition will_set
520 {
521  return true;
522 }
523 
524 // Editor: motorPosition did_set
526 {
527  return true;
528 }
529 
530 // Editor: motorPosition_isValid setter
532 {
533  will_set_motorPosition_isValid();
534  obj->motorPosition_isValid = motorPosition_isValid;
535  mark_dirty_motorPosition_isValid();
536  communicate();
537  did_set_motorPosition_isValid();
538 }
539 
540 // Editor: motorPosition_isValid getter
542 {
543  return obj->motorPosition_isValid;
544 }
545 
546 // Editor: motorPosition_isValid will_set
548 {
549  return true;
550 }
551 
552 // Editor: motorPosition_isValid did_set
554 {
555  return true;
556 }
557 
558 // Editor: motorVelocity setter
560 {
561  will_set_motorVelocity();
562  obj->motorVelocity = motorVelocity;
563  mark_dirty_motorVelocity();
564  communicate();
565  did_set_motorVelocity();
566 }
567 
568 // Editor: motorVelocity getter
570 {
571  return obj->motorVelocity;
572 }
573 
574 // Editor: motorVelocity will_set
576 {
577  return true;
578 }
579 
580 // Editor: motorVelocity did_set
582 {
583  return true;
584 }
585 
586 // Editor: motorVelocity_isValid setter
588 {
589  will_set_motorVelocity_isValid();
590  obj->motorVelocity_isValid = motorVelocity_isValid;
591  mark_dirty_motorVelocity_isValid();
592  communicate();
593  did_set_motorVelocity_isValid();
594 }
595 
596 // Editor: motorVelocity_isValid getter
598 {
599  return obj->motorVelocity_isValid;
600 }
601 
602 // Editor: motorVelocity_isValid will_set
604 {
605  return true;
606 }
607 
608 // Editor: motorVelocity_isValid did_set
610 {
611  return true;
612 }
613 
614 // Editor: motorAcceleration setter
616 {
617  will_set_motorAcceleration();
618  obj->motorAcceleration = motorAcceleration;
619  mark_dirty_motorAcceleration();
620  communicate();
621  did_set_motorAcceleration();
622 }
623 
624 // Editor: motorAcceleration getter
626 {
627  return obj->motorAcceleration;
628 }
629 
630 // Editor: motorAcceleration will_set
632 {
633  return true;
634 }
635 
636 // Editor: motorAcceleration did_set
638 {
639  return true;
640 }
641 
642 // Editor: motorAcceleration_isValid setter
644 {
645  will_set_motorAcceleration_isValid();
646  obj->motorAcceleration_isValid = motorAcceleration_isValid;
647  mark_dirty_motorAcceleration_isValid();
648  communicate();
649  did_set_motorAcceleration_isValid();
650 }
651 
652 // Editor: motorAcceleration_isValid getter
654 {
655  return obj->motorAcceleration_isValid;
656 }
657 
658 // Editor: motorAcceleration_isValid will_set
660 {
661  return true;
662 }
663 
664 // Editor: motorAcceleration_isValid did_set
666 {
667  return true;
668 }
669 
670 // Editor: torque setter
672 {
673  will_set_torque();
674  obj->torque = torque;
675  mark_dirty_torque();
676  communicate();
677  did_set_torque();
678 }
679 
680 // Editor: torque getter
682 {
683  return obj->torque;
684 }
685 
686 // Editor: torque will_set
688 {
689  return true;
690 }
691 
692 // Editor: torque did_set
694 {
695  return true;
696 }
697 
698 // Editor: torque_isValid setter
700 {
701  will_set_torque_isValid();
702  obj->torque_isValid = torque_isValid;
703  mark_dirty_torque_isValid();
704  communicate();
705  did_set_torque_isValid();
706 }
707 
708 // Editor: torque_isValid getter
710 {
711  return obj->torque_isValid;
712 }
713 
714 // Editor: torque_isValid will_set
716 {
717  return true;
718 }
719 
720 // Editor: torque_isValid did_set
722 {
723  return true;
724 }
725 
726 // Editor: pwmDutycycle setter
728 {
729  will_set_pwmDutycycle();
730  obj->pwmDutycycle = pwmDutycycle;
731  mark_dirty_pwmDutycycle();
732  communicate();
733  did_set_pwmDutycycle();
734 }
735 
736 // Editor: pwmDutycycle getter
738 {
739  return obj->pwmDutycycle;
740 }
741 
742 // Editor: pwmDutycycle will_set
744 {
745  return true;
746 }
747 
748 // Editor: pwmDutycycle did_set
750 {
751  return true;
752 }
753 
754 // Editor: pwmDutycycle_isValid setter
756 {
757  will_set_pwmDutycycle_isValid();
758  obj->pwmDutycycle_isValid = pwmDutycycle_isValid;
759  mark_dirty_pwmDutycycle_isValid();
760  communicate();
761  did_set_pwmDutycycle_isValid();
762 }
763 
764 // Editor: pwmDutycycle_isValid getter
766 {
767  return obj->pwmDutycycle_isValid;
768 }
769 
770 // Editor: pwmDutycycle_isValid will_set
772 {
773  return true;
774 }
775 
776 // Editor: pwmDutycycle_isValid did_set
778 {
779  return true;
780 }
781 
782 // Editor: current setter
784 {
785  will_set_current();
786  obj->current = current;
787  mark_dirty_current();
788  communicate();
789  did_set_current();
790 }
791 
792 // Editor: current getter
794 {
795  return obj->current;
796 }
797 
798 // Editor: current will_set
800 {
801  return true;
802 }
803 
804 // Editor: current did_set
806 {
807  return true;
808 }
809 
810 // Editor: current_isValid setter
812 {
813  will_set_current_isValid();
814  obj->current_isValid = current_isValid;
815  mark_dirty_current_isValid();
816  communicate();
817  did_set_current_isValid();
818 }
819 
820 // Editor: current_isValid getter
822 {
823  return obj->current_isValid;
824 }
825 
826 // Editor: current_isValid will_set
828 {
829  return true;
830 }
831 
832 // Editor: current_isValid did_set
834 {
835  return true;
836 }
837 
838 // Editor: controlMode setter
840 {
841  will_set_controlMode();
842  obj->controlMode = controlMode;
843  mark_dirty_controlMode();
844  communicate();
845  did_set_controlMode();
846 }
847 
848 // Editor: controlMode getter
850 {
851  return obj->controlMode;
852 }
853 
854 // Editor: controlMode will_set
856 {
857  return true;
858 }
859 
860 // Editor: controlMode did_set
862 {
863  return true;
864 }
865 
866 // Editor: controlMode_isValid setter
868 {
869  will_set_controlMode_isValid();
870  obj->controlMode_isValid = controlMode_isValid;
871  mark_dirty_controlMode_isValid();
872  communicate();
873  did_set_controlMode_isValid();
874 }
875 
876 // Editor: controlMode_isValid getter
878 {
879  return obj->controlMode_isValid;
880 }
881 
882 // Editor: controlMode_isValid will_set
884 {
885  return true;
886 }
887 
888 // Editor: controlMode_isValid did_set
890 {
891  return true;
892 }
893 
894 // Editor: interactionMode setter
896 {
897  will_set_interactionMode();
898  obj->interactionMode = interactionMode;
899  mark_dirty_interactionMode();
900  communicate();
901  did_set_interactionMode();
902 }
903 
904 // Editor: interactionMode getter
906 {
907  return obj->interactionMode;
908 }
909 
910 // Editor: interactionMode will_set
912 {
913  return true;
914 }
915 
916 // Editor: interactionMode did_set
918 {
919  return true;
920 }
921 
922 // Editor: interactionMode_isValid setter
924 {
925  will_set_interactionMode_isValid();
926  obj->interactionMode_isValid = interactionMode_isValid;
927  mark_dirty_interactionMode_isValid();
928  communicate();
929  did_set_interactionMode_isValid();
930 }
931 
932 // Editor: interactionMode_isValid getter
934 {
935  return obj->interactionMode_isValid;
936 }
937 
938 // Editor: interactionMode_isValid will_set
940 {
941  return true;
942 }
943 
944 // Editor: interactionMode_isValid did_set
946 {
947  return true;
948 }
949 
950 // Editor: clean
952 {
953  dirty_flags(false);
954 }
955 
956 // Editor: read
958 {
959  if (!isValid()) {
960  return false;
961  }
962  yarp::os::idl::WireReader reader(connection);
963  reader.expectAccept();
964  if (!reader.readListHeader()) {
965  return false;
966  }
967  int len = reader.getLength();
968  if (len == 0) {
969  yarp::os::idl::WireWriter writer(reader);
970  if (writer.isNull()) {
971  return true;
972  }
973  if (!writer.writeListHeader(1)) {
974  return false;
975  }
976  writer.writeString("send: 'help' or 'patch (param1 val1) (param2 val2)'");
977  return true;
978  }
979  std::string tag;
980  if (!reader.readString(tag)) {
981  return false;
982  }
983  if (tag == "help") {
984  yarp::os::idl::WireWriter writer(reader);
985  if (writer.isNull()) {
986  return true;
987  }
988  if (!writer.writeListHeader(2)) {
989  return false;
990  }
991  if (!writer.writeTag("many", 1, 0)) {
992  return false;
993  }
994  if (reader.getLength() > 0) {
995  std::string field;
996  if (!reader.readString(field)) {
997  return false;
998  }
999  if (field == "jointPosition") {
1000  if (!writer.writeListHeader(1)) {
1001  return false;
1002  }
1003  if (!writer.writeString("yarp::sig::VectorOf<double> jointPosition")) {
1004  return false;
1005  }
1006  }
1007  if (field == "jointPosition_isValid") {
1008  if (!writer.writeListHeader(1)) {
1009  return false;
1010  }
1011  if (!writer.writeString("bool jointPosition_isValid")) {
1012  return false;
1013  }
1014  }
1015  if (field == "jointVelocity") {
1016  if (!writer.writeListHeader(1)) {
1017  return false;
1018  }
1019  if (!writer.writeString("yarp::sig::VectorOf<double> jointVelocity")) {
1020  return false;
1021  }
1022  }
1023  if (field == "jointVelocity_isValid") {
1024  if (!writer.writeListHeader(1)) {
1025  return false;
1026  }
1027  if (!writer.writeString("bool jointVelocity_isValid")) {
1028  return false;
1029  }
1030  }
1031  if (field == "jointAcceleration") {
1032  if (!writer.writeListHeader(1)) {
1033  return false;
1034  }
1035  if (!writer.writeString("yarp::sig::VectorOf<double> jointAcceleration")) {
1036  return false;
1037  }
1038  }
1039  if (field == "jointAcceleration_isValid") {
1040  if (!writer.writeListHeader(1)) {
1041  return false;
1042  }
1043  if (!writer.writeString("bool jointAcceleration_isValid")) {
1044  return false;
1045  }
1046  }
1047  if (field == "motorPosition") {
1048  if (!writer.writeListHeader(1)) {
1049  return false;
1050  }
1051  if (!writer.writeString("yarp::sig::VectorOf<double> motorPosition")) {
1052  return false;
1053  }
1054  }
1055  if (field == "motorPosition_isValid") {
1056  if (!writer.writeListHeader(1)) {
1057  return false;
1058  }
1059  if (!writer.writeString("bool motorPosition_isValid")) {
1060  return false;
1061  }
1062  }
1063  if (field == "motorVelocity") {
1064  if (!writer.writeListHeader(1)) {
1065  return false;
1066  }
1067  if (!writer.writeString("yarp::sig::VectorOf<double> motorVelocity")) {
1068  return false;
1069  }
1070  }
1071  if (field == "motorVelocity_isValid") {
1072  if (!writer.writeListHeader(1)) {
1073  return false;
1074  }
1075  if (!writer.writeString("bool motorVelocity_isValid")) {
1076  return false;
1077  }
1078  }
1079  if (field == "motorAcceleration") {
1080  if (!writer.writeListHeader(1)) {
1081  return false;
1082  }
1083  if (!writer.writeString("yarp::sig::VectorOf<double> motorAcceleration")) {
1084  return false;
1085  }
1086  }
1087  if (field == "motorAcceleration_isValid") {
1088  if (!writer.writeListHeader(1)) {
1089  return false;
1090  }
1091  if (!writer.writeString("bool motorAcceleration_isValid")) {
1092  return false;
1093  }
1094  }
1095  if (field == "torque") {
1096  if (!writer.writeListHeader(1)) {
1097  return false;
1098  }
1099  if (!writer.writeString("yarp::sig::VectorOf<double> torque")) {
1100  return false;
1101  }
1102  }
1103  if (field == "torque_isValid") {
1104  if (!writer.writeListHeader(1)) {
1105  return false;
1106  }
1107  if (!writer.writeString("bool torque_isValid")) {
1108  return false;
1109  }
1110  }
1111  if (field == "pwmDutycycle") {
1112  if (!writer.writeListHeader(1)) {
1113  return false;
1114  }
1115  if (!writer.writeString("yarp::sig::VectorOf<double> pwmDutycycle")) {
1116  return false;
1117  }
1118  }
1119  if (field == "pwmDutycycle_isValid") {
1120  if (!writer.writeListHeader(1)) {
1121  return false;
1122  }
1123  if (!writer.writeString("bool pwmDutycycle_isValid")) {
1124  return false;
1125  }
1126  }
1127  if (field == "current") {
1128  if (!writer.writeListHeader(1)) {
1129  return false;
1130  }
1131  if (!writer.writeString("yarp::sig::VectorOf<double> current")) {
1132  return false;
1133  }
1134  }
1135  if (field == "current_isValid") {
1136  if (!writer.writeListHeader(1)) {
1137  return false;
1138  }
1139  if (!writer.writeString("bool current_isValid")) {
1140  return false;
1141  }
1142  }
1143  if (field == "controlMode") {
1144  if (!writer.writeListHeader(1)) {
1145  return false;
1146  }
1147  if (!writer.writeString("yarp::sig::VectorOf<int> controlMode")) {
1148  return false;
1149  }
1150  }
1151  if (field == "controlMode_isValid") {
1152  if (!writer.writeListHeader(1)) {
1153  return false;
1154  }
1155  if (!writer.writeString("bool controlMode_isValid")) {
1156  return false;
1157  }
1158  }
1159  if (field == "interactionMode") {
1160  if (!writer.writeListHeader(1)) {
1161  return false;
1162  }
1163  if (!writer.writeString("yarp::sig::VectorOf<int> interactionMode")) {
1164  return false;
1165  }
1166  }
1167  if (field == "interactionMode_isValid") {
1168  if (!writer.writeListHeader(1)) {
1169  return false;
1170  }
1171  if (!writer.writeString("bool interactionMode_isValid")) {
1172  return false;
1173  }
1174  }
1175  }
1176  if (!writer.writeListHeader(23)) {
1177  return false;
1178  }
1179  writer.writeString("*** Available fields:");
1180  writer.writeString("jointPosition");
1181  writer.writeString("jointPosition_isValid");
1182  writer.writeString("jointVelocity");
1183  writer.writeString("jointVelocity_isValid");
1184  writer.writeString("jointAcceleration");
1185  writer.writeString("jointAcceleration_isValid");
1186  writer.writeString("motorPosition");
1187  writer.writeString("motorPosition_isValid");
1188  writer.writeString("motorVelocity");
1189  writer.writeString("motorVelocity_isValid");
1190  writer.writeString("motorAcceleration");
1191  writer.writeString("motorAcceleration_isValid");
1192  writer.writeString("torque");
1193  writer.writeString("torque_isValid");
1194  writer.writeString("pwmDutycycle");
1195  writer.writeString("pwmDutycycle_isValid");
1196  writer.writeString("current");
1197  writer.writeString("current_isValid");
1198  writer.writeString("controlMode");
1199  writer.writeString("controlMode_isValid");
1200  writer.writeString("interactionMode");
1201  writer.writeString("interactionMode_isValid");
1202  return true;
1203  }
1204  bool nested = true;
1205  bool have_act = false;
1206  if (tag != "patch") {
1207  if (((len - 1) % 2) != 0) {
1208  return false;
1209  }
1210  len = 1 + ((len - 1) / 2);
1211  nested = false;
1212  have_act = true;
1213  }
1214  for (int i = 1; i < len; ++i) {
1215  if (nested && !reader.readListHeader(3)) {
1216  return false;
1217  }
1218  std::string act;
1219  std::string key;
1220  if (have_act) {
1221  act = tag;
1222  } else if (!reader.readString(act)) {
1223  return false;
1224  }
1225  if (!reader.readString(key)) {
1226  return false;
1227  }
1228  if (key == "jointPosition") {
1229  will_set_jointPosition();
1230  if (!obj->nested_read_jointPosition(reader)) {
1231  return false;
1232  }
1233  did_set_jointPosition();
1234  } else if (key == "jointPosition_isValid") {
1235  will_set_jointPosition_isValid();
1236  if (!obj->nested_read_jointPosition_isValid(reader)) {
1237  return false;
1238  }
1239  did_set_jointPosition_isValid();
1240  } else if (key == "jointVelocity") {
1241  will_set_jointVelocity();
1242  if (!obj->nested_read_jointVelocity(reader)) {
1243  return false;
1244  }
1245  did_set_jointVelocity();
1246  } else if (key == "jointVelocity_isValid") {
1247  will_set_jointVelocity_isValid();
1248  if (!obj->nested_read_jointVelocity_isValid(reader)) {
1249  return false;
1250  }
1251  did_set_jointVelocity_isValid();
1252  } else if (key == "jointAcceleration") {
1253  will_set_jointAcceleration();
1254  if (!obj->nested_read_jointAcceleration(reader)) {
1255  return false;
1256  }
1257  did_set_jointAcceleration();
1258  } else if (key == "jointAcceleration_isValid") {
1259  will_set_jointAcceleration_isValid();
1260  if (!obj->nested_read_jointAcceleration_isValid(reader)) {
1261  return false;
1262  }
1263  did_set_jointAcceleration_isValid();
1264  } else if (key == "motorPosition") {
1265  will_set_motorPosition();
1266  if (!obj->nested_read_motorPosition(reader)) {
1267  return false;
1268  }
1269  did_set_motorPosition();
1270  } else if (key == "motorPosition_isValid") {
1271  will_set_motorPosition_isValid();
1272  if (!obj->nested_read_motorPosition_isValid(reader)) {
1273  return false;
1274  }
1275  did_set_motorPosition_isValid();
1276  } else if (key == "motorVelocity") {
1277  will_set_motorVelocity();
1278  if (!obj->nested_read_motorVelocity(reader)) {
1279  return false;
1280  }
1281  did_set_motorVelocity();
1282  } else if (key == "motorVelocity_isValid") {
1283  will_set_motorVelocity_isValid();
1284  if (!obj->nested_read_motorVelocity_isValid(reader)) {
1285  return false;
1286  }
1287  did_set_motorVelocity_isValid();
1288  } else if (key == "motorAcceleration") {
1289  will_set_motorAcceleration();
1290  if (!obj->nested_read_motorAcceleration(reader)) {
1291  return false;
1292  }
1293  did_set_motorAcceleration();
1294  } else if (key == "motorAcceleration_isValid") {
1295  will_set_motorAcceleration_isValid();
1296  if (!obj->nested_read_motorAcceleration_isValid(reader)) {
1297  return false;
1298  }
1299  did_set_motorAcceleration_isValid();
1300  } else if (key == "torque") {
1301  will_set_torque();
1302  if (!obj->nested_read_torque(reader)) {
1303  return false;
1304  }
1305  did_set_torque();
1306  } else if (key == "torque_isValid") {
1307  will_set_torque_isValid();
1308  if (!obj->nested_read_torque_isValid(reader)) {
1309  return false;
1310  }
1311  did_set_torque_isValid();
1312  } else if (key == "pwmDutycycle") {
1313  will_set_pwmDutycycle();
1314  if (!obj->nested_read_pwmDutycycle(reader)) {
1315  return false;
1316  }
1317  did_set_pwmDutycycle();
1318  } else if (key == "pwmDutycycle_isValid") {
1319  will_set_pwmDutycycle_isValid();
1320  if (!obj->nested_read_pwmDutycycle_isValid(reader)) {
1321  return false;
1322  }
1323  did_set_pwmDutycycle_isValid();
1324  } else if (key == "current") {
1325  will_set_current();
1326  if (!obj->nested_read_current(reader)) {
1327  return false;
1328  }
1329  did_set_current();
1330  } else if (key == "current_isValid") {
1331  will_set_current_isValid();
1332  if (!obj->nested_read_current_isValid(reader)) {
1333  return false;
1334  }
1335  did_set_current_isValid();
1336  } else if (key == "controlMode") {
1337  will_set_controlMode();
1338  if (!obj->nested_read_controlMode(reader)) {
1339  return false;
1340  }
1341  did_set_controlMode();
1342  } else if (key == "controlMode_isValid") {
1343  will_set_controlMode_isValid();
1344  if (!obj->nested_read_controlMode_isValid(reader)) {
1345  return false;
1346  }
1347  did_set_controlMode_isValid();
1348  } else if (key == "interactionMode") {
1349  will_set_interactionMode();
1350  if (!obj->nested_read_interactionMode(reader)) {
1351  return false;
1352  }
1353  did_set_interactionMode();
1354  } else if (key == "interactionMode_isValid") {
1355  will_set_interactionMode_isValid();
1356  if (!obj->nested_read_interactionMode_isValid(reader)) {
1357  return false;
1358  }
1359  did_set_interactionMode_isValid();
1360  } else {
1361  // would be useful to have a fallback here
1362  }
1363  }
1364  reader.accept();
1365  yarp::os::idl::WireWriter writer(reader);
1366  if (writer.isNull()) {
1367  return true;
1368  }
1369  writer.writeListHeader(1);
1370  writer.writeVocab(yarp::os::createVocab('o', 'k'));
1371  return true;
1372 }
1373 
1374 // Editor: write
1376 {
1377  if (!isValid()) {
1378  return false;
1379  }
1380  yarp::os::idl::WireWriter writer(connection);
1381  if (!writer.writeListHeader(dirty_count + 1)) {
1382  return false;
1383  }
1384  if (!writer.writeString("patch")) {
1385  return false;
1386  }
1387  if (is_dirty_jointPosition) {
1388  if (!writer.writeListHeader(3)) {
1389  return false;
1390  }
1391  if (!writer.writeString("set")) {
1392  return false;
1393  }
1394  if (!writer.writeString("jointPosition")) {
1395  return false;
1396  }
1397  if (!obj->nested_write_jointPosition(writer)) {
1398  return false;
1399  }
1400  }
1401  if (is_dirty_jointPosition_isValid) {
1402  if (!writer.writeListHeader(3)) {
1403  return false;
1404  }
1405  if (!writer.writeString("set")) {
1406  return false;
1407  }
1408  if (!writer.writeString("jointPosition_isValid")) {
1409  return false;
1410  }
1411  if (!obj->nested_write_jointPosition_isValid(writer)) {
1412  return false;
1413  }
1414  }
1415  if (is_dirty_jointVelocity) {
1416  if (!writer.writeListHeader(3)) {
1417  return false;
1418  }
1419  if (!writer.writeString("set")) {
1420  return false;
1421  }
1422  if (!writer.writeString("jointVelocity")) {
1423  return false;
1424  }
1425  if (!obj->nested_write_jointVelocity(writer)) {
1426  return false;
1427  }
1428  }
1429  if (is_dirty_jointVelocity_isValid) {
1430  if (!writer.writeListHeader(3)) {
1431  return false;
1432  }
1433  if (!writer.writeString("set")) {
1434  return false;
1435  }
1436  if (!writer.writeString("jointVelocity_isValid")) {
1437  return false;
1438  }
1439  if (!obj->nested_write_jointVelocity_isValid(writer)) {
1440  return false;
1441  }
1442  }
1443  if (is_dirty_jointAcceleration) {
1444  if (!writer.writeListHeader(3)) {
1445  return false;
1446  }
1447  if (!writer.writeString("set")) {
1448  return false;
1449  }
1450  if (!writer.writeString("jointAcceleration")) {
1451  return false;
1452  }
1453  if (!obj->nested_write_jointAcceleration(writer)) {
1454  return false;
1455  }
1456  }
1457  if (is_dirty_jointAcceleration_isValid) {
1458  if (!writer.writeListHeader(3)) {
1459  return false;
1460  }
1461  if (!writer.writeString("set")) {
1462  return false;
1463  }
1464  if (!writer.writeString("jointAcceleration_isValid")) {
1465  return false;
1466  }
1467  if (!obj->nested_write_jointAcceleration_isValid(writer)) {
1468  return false;
1469  }
1470  }
1471  if (is_dirty_motorPosition) {
1472  if (!writer.writeListHeader(3)) {
1473  return false;
1474  }
1475  if (!writer.writeString("set")) {
1476  return false;
1477  }
1478  if (!writer.writeString("motorPosition")) {
1479  return false;
1480  }
1481  if (!obj->nested_write_motorPosition(writer)) {
1482  return false;
1483  }
1484  }
1485  if (is_dirty_motorPosition_isValid) {
1486  if (!writer.writeListHeader(3)) {
1487  return false;
1488  }
1489  if (!writer.writeString("set")) {
1490  return false;
1491  }
1492  if (!writer.writeString("motorPosition_isValid")) {
1493  return false;
1494  }
1495  if (!obj->nested_write_motorPosition_isValid(writer)) {
1496  return false;
1497  }
1498  }
1499  if (is_dirty_motorVelocity) {
1500  if (!writer.writeListHeader(3)) {
1501  return false;
1502  }
1503  if (!writer.writeString("set")) {
1504  return false;
1505  }
1506  if (!writer.writeString("motorVelocity")) {
1507  return false;
1508  }
1509  if (!obj->nested_write_motorVelocity(writer)) {
1510  return false;
1511  }
1512  }
1513  if (is_dirty_motorVelocity_isValid) {
1514  if (!writer.writeListHeader(3)) {
1515  return false;
1516  }
1517  if (!writer.writeString("set")) {
1518  return false;
1519  }
1520  if (!writer.writeString("motorVelocity_isValid")) {
1521  return false;
1522  }
1523  if (!obj->nested_write_motorVelocity_isValid(writer)) {
1524  return false;
1525  }
1526  }
1527  if (is_dirty_motorAcceleration) {
1528  if (!writer.writeListHeader(3)) {
1529  return false;
1530  }
1531  if (!writer.writeString("set")) {
1532  return false;
1533  }
1534  if (!writer.writeString("motorAcceleration")) {
1535  return false;
1536  }
1537  if (!obj->nested_write_motorAcceleration(writer)) {
1538  return false;
1539  }
1540  }
1541  if (is_dirty_motorAcceleration_isValid) {
1542  if (!writer.writeListHeader(3)) {
1543  return false;
1544  }
1545  if (!writer.writeString("set")) {
1546  return false;
1547  }
1548  if (!writer.writeString("motorAcceleration_isValid")) {
1549  return false;
1550  }
1551  if (!obj->nested_write_motorAcceleration_isValid(writer)) {
1552  return false;
1553  }
1554  }
1555  if (is_dirty_torque) {
1556  if (!writer.writeListHeader(3)) {
1557  return false;
1558  }
1559  if (!writer.writeString("set")) {
1560  return false;
1561  }
1562  if (!writer.writeString("torque")) {
1563  return false;
1564  }
1565  if (!obj->nested_write_torque(writer)) {
1566  return false;
1567  }
1568  }
1569  if (is_dirty_torque_isValid) {
1570  if (!writer.writeListHeader(3)) {
1571  return false;
1572  }
1573  if (!writer.writeString("set")) {
1574  return false;
1575  }
1576  if (!writer.writeString("torque_isValid")) {
1577  return false;
1578  }
1579  if (!obj->nested_write_torque_isValid(writer)) {
1580  return false;
1581  }
1582  }
1583  if (is_dirty_pwmDutycycle) {
1584  if (!writer.writeListHeader(3)) {
1585  return false;
1586  }
1587  if (!writer.writeString("set")) {
1588  return false;
1589  }
1590  if (!writer.writeString("pwmDutycycle")) {
1591  return false;
1592  }
1593  if (!obj->nested_write_pwmDutycycle(writer)) {
1594  return false;
1595  }
1596  }
1597  if (is_dirty_pwmDutycycle_isValid) {
1598  if (!writer.writeListHeader(3)) {
1599  return false;
1600  }
1601  if (!writer.writeString("set")) {
1602  return false;
1603  }
1604  if (!writer.writeString("pwmDutycycle_isValid")) {
1605  return false;
1606  }
1607  if (!obj->nested_write_pwmDutycycle_isValid(writer)) {
1608  return false;
1609  }
1610  }
1611  if (is_dirty_current) {
1612  if (!writer.writeListHeader(3)) {
1613  return false;
1614  }
1615  if (!writer.writeString("set")) {
1616  return false;
1617  }
1618  if (!writer.writeString("current")) {
1619  return false;
1620  }
1621  if (!obj->nested_write_current(writer)) {
1622  return false;
1623  }
1624  }
1625  if (is_dirty_current_isValid) {
1626  if (!writer.writeListHeader(3)) {
1627  return false;
1628  }
1629  if (!writer.writeString("set")) {
1630  return false;
1631  }
1632  if (!writer.writeString("current_isValid")) {
1633  return false;
1634  }
1635  if (!obj->nested_write_current_isValid(writer)) {
1636  return false;
1637  }
1638  }
1639  if (is_dirty_controlMode) {
1640  if (!writer.writeListHeader(3)) {
1641  return false;
1642  }
1643  if (!writer.writeString("set")) {
1644  return false;
1645  }
1646  if (!writer.writeString("controlMode")) {
1647  return false;
1648  }
1649  if (!obj->nested_write_controlMode(writer)) {
1650  return false;
1651  }
1652  }
1653  if (is_dirty_controlMode_isValid) {
1654  if (!writer.writeListHeader(3)) {
1655  return false;
1656  }
1657  if (!writer.writeString("set")) {
1658  return false;
1659  }
1660  if (!writer.writeString("controlMode_isValid")) {
1661  return false;
1662  }
1663  if (!obj->nested_write_controlMode_isValid(writer)) {
1664  return false;
1665  }
1666  }
1667  if (is_dirty_interactionMode) {
1668  if (!writer.writeListHeader(3)) {
1669  return false;
1670  }
1671  if (!writer.writeString("set")) {
1672  return false;
1673  }
1674  if (!writer.writeString("interactionMode")) {
1675  return false;
1676  }
1677  if (!obj->nested_write_interactionMode(writer)) {
1678  return false;
1679  }
1680  }
1681  if (is_dirty_interactionMode_isValid) {
1682  if (!writer.writeListHeader(3)) {
1683  return false;
1684  }
1685  if (!writer.writeString("set")) {
1686  return false;
1687  }
1688  if (!writer.writeString("interactionMode_isValid")) {
1689  return false;
1690  }
1691  if (!obj->nested_write_interactionMode_isValid(writer)) {
1692  return false;
1693  }
1694  }
1695  return !writer.isError();
1696 }
1697 
1698 // Editor: send if possible
1699 void jointData::Editor::communicate()
1700 {
1701  if (group != 0) {
1702  return;
1703  }
1704  if (yarp().canWrite()) {
1705  yarp().write(*this);
1706  clean();
1707  }
1708 }
1709 
1710 // Editor: mark dirty overall
1711 void jointData::Editor::mark_dirty()
1712 {
1713  is_dirty = true;
1714 }
1715 
1716 // Editor: jointPosition mark_dirty
1717 void jointData::Editor::mark_dirty_jointPosition()
1718 {
1719  if (is_dirty_jointPosition) {
1720  return;
1721  }
1722  dirty_count++;
1723  is_dirty_jointPosition = true;
1724  mark_dirty();
1725 }
1726 
1727 // Editor: jointPosition_isValid mark_dirty
1728 void jointData::Editor::mark_dirty_jointPosition_isValid()
1729 {
1730  if (is_dirty_jointPosition_isValid) {
1731  return;
1732  }
1733  dirty_count++;
1734  is_dirty_jointPosition_isValid = true;
1735  mark_dirty();
1736 }
1737 
1738 // Editor: jointVelocity mark_dirty
1739 void jointData::Editor::mark_dirty_jointVelocity()
1740 {
1741  if (is_dirty_jointVelocity) {
1742  return;
1743  }
1744  dirty_count++;
1745  is_dirty_jointVelocity = true;
1746  mark_dirty();
1747 }
1748 
1749 // Editor: jointVelocity_isValid mark_dirty
1750 void jointData::Editor::mark_dirty_jointVelocity_isValid()
1751 {
1752  if (is_dirty_jointVelocity_isValid) {
1753  return;
1754  }
1755  dirty_count++;
1756  is_dirty_jointVelocity_isValid = true;
1757  mark_dirty();
1758 }
1759 
1760 // Editor: jointAcceleration mark_dirty
1761 void jointData::Editor::mark_dirty_jointAcceleration()
1762 {
1763  if (is_dirty_jointAcceleration) {
1764  return;
1765  }
1766  dirty_count++;
1767  is_dirty_jointAcceleration = true;
1768  mark_dirty();
1769 }
1770 
1771 // Editor: jointAcceleration_isValid mark_dirty
1772 void jointData::Editor::mark_dirty_jointAcceleration_isValid()
1773 {
1774  if (is_dirty_jointAcceleration_isValid) {
1775  return;
1776  }
1777  dirty_count++;
1778  is_dirty_jointAcceleration_isValid = true;
1779  mark_dirty();
1780 }
1781 
1782 // Editor: motorPosition mark_dirty
1783 void jointData::Editor::mark_dirty_motorPosition()
1784 {
1785  if (is_dirty_motorPosition) {
1786  return;
1787  }
1788  dirty_count++;
1789  is_dirty_motorPosition = true;
1790  mark_dirty();
1791 }
1792 
1793 // Editor: motorPosition_isValid mark_dirty
1794 void jointData::Editor::mark_dirty_motorPosition_isValid()
1795 {
1796  if (is_dirty_motorPosition_isValid) {
1797  return;
1798  }
1799  dirty_count++;
1800  is_dirty_motorPosition_isValid = true;
1801  mark_dirty();
1802 }
1803 
1804 // Editor: motorVelocity mark_dirty
1805 void jointData::Editor::mark_dirty_motorVelocity()
1806 {
1807  if (is_dirty_motorVelocity) {
1808  return;
1809  }
1810  dirty_count++;
1811  is_dirty_motorVelocity = true;
1812  mark_dirty();
1813 }
1814 
1815 // Editor: motorVelocity_isValid mark_dirty
1816 void jointData::Editor::mark_dirty_motorVelocity_isValid()
1817 {
1818  if (is_dirty_motorVelocity_isValid) {
1819  return;
1820  }
1821  dirty_count++;
1822  is_dirty_motorVelocity_isValid = true;
1823  mark_dirty();
1824 }
1825 
1826 // Editor: motorAcceleration mark_dirty
1827 void jointData::Editor::mark_dirty_motorAcceleration()
1828 {
1829  if (is_dirty_motorAcceleration) {
1830  return;
1831  }
1832  dirty_count++;
1833  is_dirty_motorAcceleration = true;
1834  mark_dirty();
1835 }
1836 
1837 // Editor: motorAcceleration_isValid mark_dirty
1838 void jointData::Editor::mark_dirty_motorAcceleration_isValid()
1839 {
1840  if (is_dirty_motorAcceleration_isValid) {
1841  return;
1842  }
1843  dirty_count++;
1844  is_dirty_motorAcceleration_isValid = true;
1845  mark_dirty();
1846 }
1847 
1848 // Editor: torque mark_dirty
1849 void jointData::Editor::mark_dirty_torque()
1850 {
1851  if (is_dirty_torque) {
1852  return;
1853  }
1854  dirty_count++;
1855  is_dirty_torque = true;
1856  mark_dirty();
1857 }
1858 
1859 // Editor: torque_isValid mark_dirty
1860 void jointData::Editor::mark_dirty_torque_isValid()
1861 {
1862  if (is_dirty_torque_isValid) {
1863  return;
1864  }
1865  dirty_count++;
1866  is_dirty_torque_isValid = true;
1867  mark_dirty();
1868 }
1869 
1870 // Editor: pwmDutycycle mark_dirty
1871 void jointData::Editor::mark_dirty_pwmDutycycle()
1872 {
1873  if (is_dirty_pwmDutycycle) {
1874  return;
1875  }
1876  dirty_count++;
1877  is_dirty_pwmDutycycle = true;
1878  mark_dirty();
1879 }
1880 
1881 // Editor: pwmDutycycle_isValid mark_dirty
1882 void jointData::Editor::mark_dirty_pwmDutycycle_isValid()
1883 {
1884  if (is_dirty_pwmDutycycle_isValid) {
1885  return;
1886  }
1887  dirty_count++;
1888  is_dirty_pwmDutycycle_isValid = true;
1889  mark_dirty();
1890 }
1891 
1892 // Editor: current mark_dirty
1893 void jointData::Editor::mark_dirty_current()
1894 {
1895  if (is_dirty_current) {
1896  return;
1897  }
1898  dirty_count++;
1899  is_dirty_current = true;
1900  mark_dirty();
1901 }
1902 
1903 // Editor: current_isValid mark_dirty
1904 void jointData::Editor::mark_dirty_current_isValid()
1905 {
1906  if (is_dirty_current_isValid) {
1907  return;
1908  }
1909  dirty_count++;
1910  is_dirty_current_isValid = true;
1911  mark_dirty();
1912 }
1913 
1914 // Editor: controlMode mark_dirty
1915 void jointData::Editor::mark_dirty_controlMode()
1916 {
1917  if (is_dirty_controlMode) {
1918  return;
1919  }
1920  dirty_count++;
1921  is_dirty_controlMode = true;
1922  mark_dirty();
1923 }
1924 
1925 // Editor: controlMode_isValid mark_dirty
1926 void jointData::Editor::mark_dirty_controlMode_isValid()
1927 {
1928  if (is_dirty_controlMode_isValid) {
1929  return;
1930  }
1931  dirty_count++;
1932  is_dirty_controlMode_isValid = true;
1933  mark_dirty();
1934 }
1935 
1936 // Editor: interactionMode mark_dirty
1937 void jointData::Editor::mark_dirty_interactionMode()
1938 {
1939  if (is_dirty_interactionMode) {
1940  return;
1941  }
1942  dirty_count++;
1943  is_dirty_interactionMode = true;
1944  mark_dirty();
1945 }
1946 
1947 // Editor: interactionMode_isValid mark_dirty
1948 void jointData::Editor::mark_dirty_interactionMode_isValid()
1949 {
1950  if (is_dirty_interactionMode_isValid) {
1951  return;
1952  }
1953  dirty_count++;
1954  is_dirty_interactionMode_isValid = true;
1955  mark_dirty();
1956 }
1957 
1958 // Editor: dirty_flags
1959 void jointData::Editor::dirty_flags(bool flag)
1960 {
1961  is_dirty = flag;
1962  is_dirty_jointPosition = flag;
1963  is_dirty_jointPosition_isValid = flag;
1964  is_dirty_jointVelocity = flag;
1965  is_dirty_jointVelocity_isValid = flag;
1966  is_dirty_jointAcceleration = flag;
1967  is_dirty_jointAcceleration_isValid = flag;
1968  is_dirty_motorPosition = flag;
1969  is_dirty_motorPosition_isValid = flag;
1970  is_dirty_motorVelocity = flag;
1971  is_dirty_motorVelocity_isValid = flag;
1972  is_dirty_motorAcceleration = flag;
1973  is_dirty_motorAcceleration_isValid = flag;
1974  is_dirty_torque = flag;
1975  is_dirty_torque_isValid = flag;
1976  is_dirty_pwmDutycycle = flag;
1977  is_dirty_pwmDutycycle_isValid = flag;
1978  is_dirty_current = flag;
1979  is_dirty_current_isValid = flag;
1980  is_dirty_controlMode = flag;
1981  is_dirty_controlMode_isValid = flag;
1982  is_dirty_interactionMode = flag;
1983  is_dirty_interactionMode_isValid = flag;
1984  dirty_count = flag ? 22 : 0;
1985 }
1986 
1987 // read jointPosition field
1988 bool jointData::read_jointPosition(yarp::os::idl::WireReader& reader)
1989 {
1990  if (!reader.read(jointPosition)) {
1991  reader.fail();
1992  return false;
1993  }
1994  return true;
1995 }
1996 
1997 // write jointPosition field
1998 bool jointData::write_jointPosition(const yarp::os::idl::WireWriter& writer) const
1999 {
2000  if (!writer.write(jointPosition)) {
2001  return false;
2002  }
2003  return true;
2004 }
2005 
2006 // read (nested) jointPosition field
2007 bool jointData::nested_read_jointPosition(yarp::os::idl::WireReader& reader)
2008 {
2009  if (!reader.readNested(jointPosition)) {
2010  reader.fail();
2011  return false;
2012  }
2013  return true;
2014 }
2015 
2016 // write (nested) jointPosition field
2017 bool jointData::nested_write_jointPosition(const yarp::os::idl::WireWriter& writer) const
2018 {
2019  if (!writer.writeNested(jointPosition)) {
2020  return false;
2021  }
2022  return true;
2023 }
2024 
2025 // read jointPosition_isValid field
2026 bool jointData::read_jointPosition_isValid(yarp::os::idl::WireReader& reader)
2027 {
2028  if (!reader.readBool(jointPosition_isValid)) {
2029  reader.fail();
2030  return false;
2031  }
2032  return true;
2033 }
2034 
2035 // write jointPosition_isValid field
2036 bool jointData::write_jointPosition_isValid(const yarp::os::idl::WireWriter& writer) const
2037 {
2038  if (!writer.writeBool(jointPosition_isValid)) {
2039  return false;
2040  }
2041  return true;
2042 }
2043 
2044 // read (nested) jointPosition_isValid field
2045 bool jointData::nested_read_jointPosition_isValid(yarp::os::idl::WireReader& reader)
2046 {
2047  if (!reader.readBool(jointPosition_isValid)) {
2048  reader.fail();
2049  return false;
2050  }
2051  return true;
2052 }
2053 
2054 // write (nested) jointPosition_isValid field
2055 bool jointData::nested_write_jointPosition_isValid(const yarp::os::idl::WireWriter& writer) const
2056 {
2057  if (!writer.writeBool(jointPosition_isValid)) {
2058  return false;
2059  }
2060  return true;
2061 }
2062 
2063 // read jointVelocity field
2064 bool jointData::read_jointVelocity(yarp::os::idl::WireReader& reader)
2065 {
2066  if (!reader.read(jointVelocity)) {
2067  reader.fail();
2068  return false;
2069  }
2070  return true;
2071 }
2072 
2073 // write jointVelocity field
2074 bool jointData::write_jointVelocity(const yarp::os::idl::WireWriter& writer) const
2075 {
2076  if (!writer.write(jointVelocity)) {
2077  return false;
2078  }
2079  return true;
2080 }
2081 
2082 // read (nested) jointVelocity field
2083 bool jointData::nested_read_jointVelocity(yarp::os::idl::WireReader& reader)
2084 {
2085  if (!reader.readNested(jointVelocity)) {
2086  reader.fail();
2087  return false;
2088  }
2089  return true;
2090 }
2091 
2092 // write (nested) jointVelocity field
2093 bool jointData::nested_write_jointVelocity(const yarp::os::idl::WireWriter& writer) const
2094 {
2095  if (!writer.writeNested(jointVelocity)) {
2096  return false;
2097  }
2098  return true;
2099 }
2100 
2101 // read jointVelocity_isValid field
2102 bool jointData::read_jointVelocity_isValid(yarp::os::idl::WireReader& reader)
2103 {
2104  if (!reader.readBool(jointVelocity_isValid)) {
2105  reader.fail();
2106  return false;
2107  }
2108  return true;
2109 }
2110 
2111 // write jointVelocity_isValid field
2112 bool jointData::write_jointVelocity_isValid(const yarp::os::idl::WireWriter& writer) const
2113 {
2114  if (!writer.writeBool(jointVelocity_isValid)) {
2115  return false;
2116  }
2117  return true;
2118 }
2119 
2120 // read (nested) jointVelocity_isValid field
2121 bool jointData::nested_read_jointVelocity_isValid(yarp::os::idl::WireReader& reader)
2122 {
2123  if (!reader.readBool(jointVelocity_isValid)) {
2124  reader.fail();
2125  return false;
2126  }
2127  return true;
2128 }
2129 
2130 // write (nested) jointVelocity_isValid field
2131 bool jointData::nested_write_jointVelocity_isValid(const yarp::os::idl::WireWriter& writer) const
2132 {
2133  if (!writer.writeBool(jointVelocity_isValid)) {
2134  return false;
2135  }
2136  return true;
2137 }
2138 
2139 // read jointAcceleration field
2140 bool jointData::read_jointAcceleration(yarp::os::idl::WireReader& reader)
2141 {
2142  if (!reader.read(jointAcceleration)) {
2143  reader.fail();
2144  return false;
2145  }
2146  return true;
2147 }
2148 
2149 // write jointAcceleration field
2150 bool jointData::write_jointAcceleration(const yarp::os::idl::WireWriter& writer) const
2151 {
2152  if (!writer.write(jointAcceleration)) {
2153  return false;
2154  }
2155  return true;
2156 }
2157 
2158 // read (nested) jointAcceleration field
2159 bool jointData::nested_read_jointAcceleration(yarp::os::idl::WireReader& reader)
2160 {
2161  if (!reader.readNested(jointAcceleration)) {
2162  reader.fail();
2163  return false;
2164  }
2165  return true;
2166 }
2167 
2168 // write (nested) jointAcceleration field
2169 bool jointData::nested_write_jointAcceleration(const yarp::os::idl::WireWriter& writer) const
2170 {
2171  if (!writer.writeNested(jointAcceleration)) {
2172  return false;
2173  }
2174  return true;
2175 }
2176 
2177 // read jointAcceleration_isValid field
2178 bool jointData::read_jointAcceleration_isValid(yarp::os::idl::WireReader& reader)
2179 {
2180  if (!reader.readBool(jointAcceleration_isValid)) {
2181  reader.fail();
2182  return false;
2183  }
2184  return true;
2185 }
2186 
2187 // write jointAcceleration_isValid field
2188 bool jointData::write_jointAcceleration_isValid(const yarp::os::idl::WireWriter& writer) const
2189 {
2190  if (!writer.writeBool(jointAcceleration_isValid)) {
2191  return false;
2192  }
2193  return true;
2194 }
2195 
2196 // read (nested) jointAcceleration_isValid field
2197 bool jointData::nested_read_jointAcceleration_isValid(yarp::os::idl::WireReader& reader)
2198 {
2199  if (!reader.readBool(jointAcceleration_isValid)) {
2200  reader.fail();
2201  return false;
2202  }
2203  return true;
2204 }
2205 
2206 // write (nested) jointAcceleration_isValid field
2207 bool jointData::nested_write_jointAcceleration_isValid(const yarp::os::idl::WireWriter& writer) const
2208 {
2209  if (!writer.writeBool(jointAcceleration_isValid)) {
2210  return false;
2211  }
2212  return true;
2213 }
2214 
2215 // read motorPosition field
2216 bool jointData::read_motorPosition(yarp::os::idl::WireReader& reader)
2217 {
2218  if (!reader.read(motorPosition)) {
2219  reader.fail();
2220  return false;
2221  }
2222  return true;
2223 }
2224 
2225 // write motorPosition field
2226 bool jointData::write_motorPosition(const yarp::os::idl::WireWriter& writer) const
2227 {
2228  if (!writer.write(motorPosition)) {
2229  return false;
2230  }
2231  return true;
2232 }
2233 
2234 // read (nested) motorPosition field
2235 bool jointData::nested_read_motorPosition(yarp::os::idl::WireReader& reader)
2236 {
2237  if (!reader.readNested(motorPosition)) {
2238  reader.fail();
2239  return false;
2240  }
2241  return true;
2242 }
2243 
2244 // write (nested) motorPosition field
2245 bool jointData::nested_write_motorPosition(const yarp::os::idl::WireWriter& writer) const
2246 {
2247  if (!writer.writeNested(motorPosition)) {
2248  return false;
2249  }
2250  return true;
2251 }
2252 
2253 // read motorPosition_isValid field
2254 bool jointData::read_motorPosition_isValid(yarp::os::idl::WireReader& reader)
2255 {
2256  if (!reader.readBool(motorPosition_isValid)) {
2257  reader.fail();
2258  return false;
2259  }
2260  return true;
2261 }
2262 
2263 // write motorPosition_isValid field
2264 bool jointData::write_motorPosition_isValid(const yarp::os::idl::WireWriter& writer) const
2265 {
2266  if (!writer.writeBool(motorPosition_isValid)) {
2267  return false;
2268  }
2269  return true;
2270 }
2271 
2272 // read (nested) motorPosition_isValid field
2273 bool jointData::nested_read_motorPosition_isValid(yarp::os::idl::WireReader& reader)
2274 {
2275  if (!reader.readBool(motorPosition_isValid)) {
2276  reader.fail();
2277  return false;
2278  }
2279  return true;
2280 }
2281 
2282 // write (nested) motorPosition_isValid field
2283 bool jointData::nested_write_motorPosition_isValid(const yarp::os::idl::WireWriter& writer) const
2284 {
2285  if (!writer.writeBool(motorPosition_isValid)) {
2286  return false;
2287  }
2288  return true;
2289 }
2290 
2291 // read motorVelocity field
2292 bool jointData::read_motorVelocity(yarp::os::idl::WireReader& reader)
2293 {
2294  if (!reader.read(motorVelocity)) {
2295  reader.fail();
2296  return false;
2297  }
2298  return true;
2299 }
2300 
2301 // write motorVelocity field
2302 bool jointData::write_motorVelocity(const yarp::os::idl::WireWriter& writer) const
2303 {
2304  if (!writer.write(motorVelocity)) {
2305  return false;
2306  }
2307  return true;
2308 }
2309 
2310 // read (nested) motorVelocity field
2311 bool jointData::nested_read_motorVelocity(yarp::os::idl::WireReader& reader)
2312 {
2313  if (!reader.readNested(motorVelocity)) {
2314  reader.fail();
2315  return false;
2316  }
2317  return true;
2318 }
2319 
2320 // write (nested) motorVelocity field
2321 bool jointData::nested_write_motorVelocity(const yarp::os::idl::WireWriter& writer) const
2322 {
2323  if (!writer.writeNested(motorVelocity)) {
2324  return false;
2325  }
2326  return true;
2327 }
2328 
2329 // read motorVelocity_isValid field
2330 bool jointData::read_motorVelocity_isValid(yarp::os::idl::WireReader& reader)
2331 {
2332  if (!reader.readBool(motorVelocity_isValid)) {
2333  reader.fail();
2334  return false;
2335  }
2336  return true;
2337 }
2338 
2339 // write motorVelocity_isValid field
2340 bool jointData::write_motorVelocity_isValid(const yarp::os::idl::WireWriter& writer) const
2341 {
2342  if (!writer.writeBool(motorVelocity_isValid)) {
2343  return false;
2344  }
2345  return true;
2346 }
2347 
2348 // read (nested) motorVelocity_isValid field
2349 bool jointData::nested_read_motorVelocity_isValid(yarp::os::idl::WireReader& reader)
2350 {
2351  if (!reader.readBool(motorVelocity_isValid)) {
2352  reader.fail();
2353  return false;
2354  }
2355  return true;
2356 }
2357 
2358 // write (nested) motorVelocity_isValid field
2359 bool jointData::nested_write_motorVelocity_isValid(const yarp::os::idl::WireWriter& writer) const
2360 {
2361  if (!writer.writeBool(motorVelocity_isValid)) {
2362  return false;
2363  }
2364  return true;
2365 }
2366 
2367 // read motorAcceleration field
2368 bool jointData::read_motorAcceleration(yarp::os::idl::WireReader& reader)
2369 {
2370  if (!reader.read(motorAcceleration)) {
2371  reader.fail();
2372  return false;
2373  }
2374  return true;
2375 }
2376 
2377 // write motorAcceleration field
2378 bool jointData::write_motorAcceleration(const yarp::os::idl::WireWriter& writer) const
2379 {
2380  if (!writer.write(motorAcceleration)) {
2381  return false;
2382  }
2383  return true;
2384 }
2385 
2386 // read (nested) motorAcceleration field
2387 bool jointData::nested_read_motorAcceleration(yarp::os::idl::WireReader& reader)
2388 {
2389  if (!reader.readNested(motorAcceleration)) {
2390  reader.fail();
2391  return false;
2392  }
2393  return true;
2394 }
2395 
2396 // write (nested) motorAcceleration field
2397 bool jointData::nested_write_motorAcceleration(const yarp::os::idl::WireWriter& writer) const
2398 {
2399  if (!writer.writeNested(motorAcceleration)) {
2400  return false;
2401  }
2402  return true;
2403 }
2404 
2405 // read motorAcceleration_isValid field
2406 bool jointData::read_motorAcceleration_isValid(yarp::os::idl::WireReader& reader)
2407 {
2408  if (!reader.readBool(motorAcceleration_isValid)) {
2409  reader.fail();
2410  return false;
2411  }
2412  return true;
2413 }
2414 
2415 // write motorAcceleration_isValid field
2416 bool jointData::write_motorAcceleration_isValid(const yarp::os::idl::WireWriter& writer) const
2417 {
2418  if (!writer.writeBool(motorAcceleration_isValid)) {
2419  return false;
2420  }
2421  return true;
2422 }
2423 
2424 // read (nested) motorAcceleration_isValid field
2425 bool jointData::nested_read_motorAcceleration_isValid(yarp::os::idl::WireReader& reader)
2426 {
2427  if (!reader.readBool(motorAcceleration_isValid)) {
2428  reader.fail();
2429  return false;
2430  }
2431  return true;
2432 }
2433 
2434 // write (nested) motorAcceleration_isValid field
2435 bool jointData::nested_write_motorAcceleration_isValid(const yarp::os::idl::WireWriter& writer) const
2436 {
2437  if (!writer.writeBool(motorAcceleration_isValid)) {
2438  return false;
2439  }
2440  return true;
2441 }
2442 
2443 // read torque field
2444 bool jointData::read_torque(yarp::os::idl::WireReader& reader)
2445 {
2446  if (!reader.read(torque)) {
2447  reader.fail();
2448  return false;
2449  }
2450  return true;
2451 }
2452 
2453 // write torque field
2454 bool jointData::write_torque(const yarp::os::idl::WireWriter& writer) const
2455 {
2456  if (!writer.write(torque)) {
2457  return false;
2458  }
2459  return true;
2460 }
2461 
2462 // read (nested) torque field
2463 bool jointData::nested_read_torque(yarp::os::idl::WireReader& reader)
2464 {
2465  if (!reader.readNested(torque)) {
2466  reader.fail();
2467  return false;
2468  }
2469  return true;
2470 }
2471 
2472 // write (nested) torque field
2473 bool jointData::nested_write_torque(const yarp::os::idl::WireWriter& writer) const
2474 {
2475  if (!writer.writeNested(torque)) {
2476  return false;
2477  }
2478  return true;
2479 }
2480 
2481 // read torque_isValid field
2482 bool jointData::read_torque_isValid(yarp::os::idl::WireReader& reader)
2483 {
2484  if (!reader.readBool(torque_isValid)) {
2485  reader.fail();
2486  return false;
2487  }
2488  return true;
2489 }
2490 
2491 // write torque_isValid field
2492 bool jointData::write_torque_isValid(const yarp::os::idl::WireWriter& writer) const
2493 {
2494  if (!writer.writeBool(torque_isValid)) {
2495  return false;
2496  }
2497  return true;
2498 }
2499 
2500 // read (nested) torque_isValid field
2501 bool jointData::nested_read_torque_isValid(yarp::os::idl::WireReader& reader)
2502 {
2503  if (!reader.readBool(torque_isValid)) {
2504  reader.fail();
2505  return false;
2506  }
2507  return true;
2508 }
2509 
2510 // write (nested) torque_isValid field
2511 bool jointData::nested_write_torque_isValid(const yarp::os::idl::WireWriter& writer) const
2512 {
2513  if (!writer.writeBool(torque_isValid)) {
2514  return false;
2515  }
2516  return true;
2517 }
2518 
2519 // read pwmDutycycle field
2520 bool jointData::read_pwmDutycycle(yarp::os::idl::WireReader& reader)
2521 {
2522  if (!reader.read(pwmDutycycle)) {
2523  reader.fail();
2524  return false;
2525  }
2526  return true;
2527 }
2528 
2529 // write pwmDutycycle field
2530 bool jointData::write_pwmDutycycle(const yarp::os::idl::WireWriter& writer) const
2531 {
2532  if (!writer.write(pwmDutycycle)) {
2533  return false;
2534  }
2535  return true;
2536 }
2537 
2538 // read (nested) pwmDutycycle field
2539 bool jointData::nested_read_pwmDutycycle(yarp::os::idl::WireReader& reader)
2540 {
2541  if (!reader.readNested(pwmDutycycle)) {
2542  reader.fail();
2543  return false;
2544  }
2545  return true;
2546 }
2547 
2548 // write (nested) pwmDutycycle field
2549 bool jointData::nested_write_pwmDutycycle(const yarp::os::idl::WireWriter& writer) const
2550 {
2551  if (!writer.writeNested(pwmDutycycle)) {
2552  return false;
2553  }
2554  return true;
2555 }
2556 
2557 // read pwmDutycycle_isValid field
2558 bool jointData::read_pwmDutycycle_isValid(yarp::os::idl::WireReader& reader)
2559 {
2560  if (!reader.readBool(pwmDutycycle_isValid)) {
2561  reader.fail();
2562  return false;
2563  }
2564  return true;
2565 }
2566 
2567 // write pwmDutycycle_isValid field
2568 bool jointData::write_pwmDutycycle_isValid(const yarp::os::idl::WireWriter& writer) const
2569 {
2570  if (!writer.writeBool(pwmDutycycle_isValid)) {
2571  return false;
2572  }
2573  return true;
2574 }
2575 
2576 // read (nested) pwmDutycycle_isValid field
2577 bool jointData::nested_read_pwmDutycycle_isValid(yarp::os::idl::WireReader& reader)
2578 {
2579  if (!reader.readBool(pwmDutycycle_isValid)) {
2580  reader.fail();
2581  return false;
2582  }
2583  return true;
2584 }
2585 
2586 // write (nested) pwmDutycycle_isValid field
2587 bool jointData::nested_write_pwmDutycycle_isValid(const yarp::os::idl::WireWriter& writer) const
2588 {
2589  if (!writer.writeBool(pwmDutycycle_isValid)) {
2590  return false;
2591  }
2592  return true;
2593 }
2594 
2595 // read current field
2596 bool jointData::read_current(yarp::os::idl::WireReader& reader)
2597 {
2598  if (!reader.read(current)) {
2599  reader.fail();
2600  return false;
2601  }
2602  return true;
2603 }
2604 
2605 // write current field
2606 bool jointData::write_current(const yarp::os::idl::WireWriter& writer) const
2607 {
2608  if (!writer.write(current)) {
2609  return false;
2610  }
2611  return true;
2612 }
2613 
2614 // read (nested) current field
2615 bool jointData::nested_read_current(yarp::os::idl::WireReader& reader)
2616 {
2617  if (!reader.readNested(current)) {
2618  reader.fail();
2619  return false;
2620  }
2621  return true;
2622 }
2623 
2624 // write (nested) current field
2625 bool jointData::nested_write_current(const yarp::os::idl::WireWriter& writer) const
2626 {
2627  if (!writer.writeNested(current)) {
2628  return false;
2629  }
2630  return true;
2631 }
2632 
2633 // read current_isValid field
2634 bool jointData::read_current_isValid(yarp::os::idl::WireReader& reader)
2635 {
2636  if (!reader.readBool(current_isValid)) {
2637  reader.fail();
2638  return false;
2639  }
2640  return true;
2641 }
2642 
2643 // write current_isValid field
2644 bool jointData::write_current_isValid(const yarp::os::idl::WireWriter& writer) const
2645 {
2646  if (!writer.writeBool(current_isValid)) {
2647  return false;
2648  }
2649  return true;
2650 }
2651 
2652 // read (nested) current_isValid field
2653 bool jointData::nested_read_current_isValid(yarp::os::idl::WireReader& reader)
2654 {
2655  if (!reader.readBool(current_isValid)) {
2656  reader.fail();
2657  return false;
2658  }
2659  return true;
2660 }
2661 
2662 // write (nested) current_isValid field
2663 bool jointData::nested_write_current_isValid(const yarp::os::idl::WireWriter& writer) const
2664 {
2665  if (!writer.writeBool(current_isValid)) {
2666  return false;
2667  }
2668  return true;
2669 }
2670 
2671 // read controlMode field
2672 bool jointData::read_controlMode(yarp::os::idl::WireReader& reader)
2673 {
2674  if (!reader.read(controlMode)) {
2675  reader.fail();
2676  return false;
2677  }
2678  return true;
2679 }
2680 
2681 // write controlMode field
2682 bool jointData::write_controlMode(const yarp::os::idl::WireWriter& writer) const
2683 {
2684  if (!writer.write(controlMode)) {
2685  return false;
2686  }
2687  return true;
2688 }
2689 
2690 // read (nested) controlMode field
2691 bool jointData::nested_read_controlMode(yarp::os::idl::WireReader& reader)
2692 {
2693  if (!reader.readNested(controlMode)) {
2694  reader.fail();
2695  return false;
2696  }
2697  return true;
2698 }
2699 
2700 // write (nested) controlMode field
2701 bool jointData::nested_write_controlMode(const yarp::os::idl::WireWriter& writer) const
2702 {
2703  if (!writer.writeNested(controlMode)) {
2704  return false;
2705  }
2706  return true;
2707 }
2708 
2709 // read controlMode_isValid field
2710 bool jointData::read_controlMode_isValid(yarp::os::idl::WireReader& reader)
2711 {
2712  if (!reader.readBool(controlMode_isValid)) {
2713  reader.fail();
2714  return false;
2715  }
2716  return true;
2717 }
2718 
2719 // write controlMode_isValid field
2720 bool jointData::write_controlMode_isValid(const yarp::os::idl::WireWriter& writer) const
2721 {
2722  if (!writer.writeBool(controlMode_isValid)) {
2723  return false;
2724  }
2725  return true;
2726 }
2727 
2728 // read (nested) controlMode_isValid field
2729 bool jointData::nested_read_controlMode_isValid(yarp::os::idl::WireReader& reader)
2730 {
2731  if (!reader.readBool(controlMode_isValid)) {
2732  reader.fail();
2733  return false;
2734  }
2735  return true;
2736 }
2737 
2738 // write (nested) controlMode_isValid field
2739 bool jointData::nested_write_controlMode_isValid(const yarp::os::idl::WireWriter& writer) const
2740 {
2741  if (!writer.writeBool(controlMode_isValid)) {
2742  return false;
2743  }
2744  return true;
2745 }
2746 
2747 // read interactionMode field
2748 bool jointData::read_interactionMode(yarp::os::idl::WireReader& reader)
2749 {
2750  if (!reader.read(interactionMode)) {
2751  reader.fail();
2752  return false;
2753  }
2754  return true;
2755 }
2756 
2757 // write interactionMode field
2758 bool jointData::write_interactionMode(const yarp::os::idl::WireWriter& writer) const
2759 {
2760  if (!writer.write(interactionMode)) {
2761  return false;
2762  }
2763  return true;
2764 }
2765 
2766 // read (nested) interactionMode field
2767 bool jointData::nested_read_interactionMode(yarp::os::idl::WireReader& reader)
2768 {
2769  if (!reader.readNested(interactionMode)) {
2770  reader.fail();
2771  return false;
2772  }
2773  return true;
2774 }
2775 
2776 // write (nested) interactionMode field
2777 bool jointData::nested_write_interactionMode(const yarp::os::idl::WireWriter& writer) const
2778 {
2779  if (!writer.writeNested(interactionMode)) {
2780  return false;
2781  }
2782  return true;
2783 }
2784 
2785 // read interactionMode_isValid field
2786 bool jointData::read_interactionMode_isValid(yarp::os::idl::WireReader& reader)
2787 {
2788  if (!reader.readBool(interactionMode_isValid)) {
2789  reader.fail();
2790  return false;
2791  }
2792  return true;
2793 }
2794 
2795 // write interactionMode_isValid field
2796 bool jointData::write_interactionMode_isValid(const yarp::os::idl::WireWriter& writer) const
2797 {
2798  if (!writer.writeBool(interactionMode_isValid)) {
2799  return false;
2800  }
2801  return true;
2802 }
2803 
2804 // read (nested) interactionMode_isValid field
2805 bool jointData::nested_read_interactionMode_isValid(yarp::os::idl::WireReader& reader)
2806 {
2807  if (!reader.readBool(interactionMode_isValid)) {
2808  reader.fail();
2809  return false;
2810  }
2811  return true;
2812 }
2813 
2814 // write (nested) interactionMode_isValid field
2815 bool jointData::nested_write_interactionMode_isValid(const yarp::os::idl::WireWriter& writer) const
2816 {
2817  if (!writer.writeBool(interactionMode_isValid)) {
2818  return false;
2819  }
2820  return true;
2821 }
2822 
2823 } // namespace yarp
2824 } // namespace dev
2825 } // namespace impl
yarp::dev::impl::jointData::Editor::get_jointVelocity_isValid
bool get_jointVelocity_isValid() const
Definition: jointData.cpp:429
yarp::dev::impl::jointData::current_isValid
bool current_isValid
Definition: jointData.h:49
yarp::dev::impl::jointData::controlMode
yarp::sig::VectorOf< int > controlMode
Definition: jointData.h:50
yarp::dev::impl::jointData::Editor::get_motorPosition
const yarp::sig::VectorOf< double > & get_motorPosition() const
Definition: jointData.cpp:513
yarp::dev::impl::jointData::torque
yarp::sig::VectorOf< double > torque
Definition: jointData.h:44
yarp::os::Bottle
A simple collection of objects that can be described and transmitted in a portable way.
Definition: Bottle.h:73
yarp::dev::impl::jointData::Editor::get_motorAcceleration_isValid
bool get_motorAcceleration_isValid() const
Definition: jointData.cpp:653
yarp::os::Bottle::toString
std::string toString() const override
Gives a human-readable textual representation of the bottle.
Definition: Bottle.cpp:214
yarp::os::idl::WireReader::readString
bool readString(std::string &str, bool *is_vocab=nullptr)
Definition: WireReader.cpp:339
yarp::os::createVocab
constexpr yarp::conf::vocab32_t createVocab(char a, char b=0, char c=0, char d=0)
Definition: Vocab.h:22
yarp::dev::impl::jointData::Editor::did_set_motorAcceleration
virtual bool did_set_motorAcceleration()
Definition: jointData.cpp:637
yarp::dev::impl::jointData::Editor::set_motorVelocity_isValid
void set_motorVelocity_isValid(const bool motorVelocity_isValid)
Definition: jointData.cpp:587
yarp::dev::impl::jointData::Editor::will_set_controlMode_isValid
virtual bool will_set_controlMode_isValid()
Definition: jointData.cpp:883
yarp::dev::impl::jointData::pwmDutycycle
yarp::sig::VectorOf< double > pwmDutycycle
Definition: jointData.h:46
yarp::dev::impl::jointData::Editor::get_interactionMode
const yarp::sig::VectorOf< int > & get_interactionMode() const
Definition: jointData.cpp:905
yarp::dev::impl::jointData::toString
std::string toString() const
Definition: jointData.cpp:262
yarp::dev::impl::jointData::Editor::get_motorPosition_isValid
bool get_motorPosition_isValid() const
Definition: jointData.cpp:541
yarp::dev::impl::jointData::Editor::will_set_motorVelocity
virtual bool will_set_motorVelocity()
Definition: jointData.cpp:575
yarp::dev::impl::jointData::Editor::did_set_motorPosition_isValid
virtual bool did_set_motorPosition_isValid()
Definition: jointData.cpp:553
yarp::dev::impl::jointData::Editor::get_torque_isValid
bool get_torque_isValid() const
Definition: jointData.cpp:709
yarp::dev::impl::jointData::Editor::Editor
Editor()
Definition: jointData.cpp:270
yarp::os::Time::isValid
bool isValid()
Check if time is valid (non-zero).
Definition: Time.cpp:317
yarp::dev::impl::jointData::Editor::start_editing
void start_editing()
Definition: jointData.cpp:321
yarp::dev::impl::jointData::Editor::did_set_pwmDutycycle
virtual bool did_set_pwmDutycycle()
Definition: jointData.cpp:749
yarp::dev::impl::jointData::motorAcceleration_isValid
bool motorAcceleration_isValid
Definition: jointData.h:43
yarp::dev::impl::jointData::Editor::did_set_torque
virtual bool did_set_torque()
Definition: jointData.cpp:693
yarp::dev::impl::jointData::Editor::get_interactionMode_isValid
bool get_interactionMode_isValid() const
Definition: jointData.cpp:933
yarp::dev::impl::jointData::Editor::did_set_jointAcceleration_isValid
virtual bool did_set_jointAcceleration_isValid()
Definition: jointData.cpp:497
yarp::dev::impl::jointData::Editor::did_set_controlMode
virtual bool did_set_controlMode()
Definition: jointData.cpp:861
yarp::dev::impl::jointData::Editor::will_set_jointVelocity
virtual bool will_set_jointVelocity()
Definition: jointData.cpp:407
yarp::dev::impl::jointData::torque_isValid
bool torque_isValid
Definition: jointData.h:45
yarp::dev::impl::jointData::Editor::did_set_torque_isValid
virtual bool did_set_torque_isValid()
Definition: jointData.cpp:721
yarp::os::idl::WireReader::readBool
bool readBool(bool &x)
Definition: WireReader.cpp:101
yarp::dev::impl::jointData::motorAcceleration
yarp::sig::VectorOf< double > motorAcceleration
Definition: jointData.h:42
yarp::os::idl::WireWriter::writeString
bool writeString(const std::string &tag) const
Definition: WireWriter.cpp:166
yarp::os::idl::WireWriter::writeBool
bool writeBool(bool x) const
Definition: WireWriter.cpp:75
yarp::dev::impl::jointData::motorVelocity_isValid
bool motorVelocity_isValid
Definition: jointData.h:41
yarp::dev::impl::jointData::write
bool write(const yarp::os::idl::WireWriter &writer) const override
Definition: jointData.cpp:180
yarp::dev::impl::jointData::read
bool read(yarp::os::idl::WireReader &reader) override
Definition: jointData.cpp:98
yarp::os::idl::WireWriter::isNull
bool isNull() const
Definition: WireWriter.cpp:50
yarp::dev::impl::jointData::Editor::set_motorPosition
void set_motorPosition(const yarp::sig::VectorOf< double > &motorPosition)
Definition: jointData.cpp:503
yarp::os::idl::WireWriter::isError
bool isError() const
Definition: WireWriter.cpp:136
yarp::dev::impl::jointData::Editor::get_controlMode
const yarp::sig::VectorOf< int > & get_controlMode() const
Definition: jointData.cpp:849
yarp::os::idl::WireWriter::writeListHeader
bool writeListHeader(int len) const
Definition: WireWriter.cpp:183
yarp::os::idl::WireWriter::writeNested
bool writeNested(const WirePortable &obj) const
Definition: WireWriter.cpp:65
yarp::dev::impl::jointData::Editor::did_set_motorAcceleration_isValid
virtual bool did_set_motorAcceleration_isValid()
Definition: jointData.cpp:665
yarp::os::idl::WireWriter
IDL-friendly connection writer.
Definition: WireWriter.h:33
yarp::dev::impl::jointData::Editor::did_set_interactionMode_isValid
virtual bool did_set_interactionMode_isValid()
Definition: jointData.cpp:945
yarp::dev::impl::jointData::Editor::did_set_pwmDutycycle_isValid
virtual bool did_set_pwmDutycycle_isValid()
Definition: jointData.cpp:777
yarp::dev::impl::jointData::Editor::get_jointAcceleration
const yarp::sig::VectorOf< double > & get_jointAcceleration() const
Definition: jointData.cpp:457
yarp::dev::impl::jointData::jointVelocity
yarp::sig::VectorOf< double > jointVelocity
Definition: jointData.h:34
yarp::dev::impl::jointData
Definition: jointData.h:29
yarp::dev::impl::jointData::Editor::set_motorPosition_isValid
void set_motorPosition_isValid(const bool motorPosition_isValid)
Definition: jointData.cpp:531
yarp::dev::impl::jointData::Editor::set_jointVelocity_isValid
void set_jointVelocity_isValid(const bool jointVelocity_isValid)
Definition: jointData.cpp:419
yarp::dev::impl::jointData::Editor::did_set_jointPosition_isValid
virtual bool did_set_jointPosition_isValid()
Definition: jointData.cpp:385
yarp::dev::impl::jointData::Editor::did_set_motorPosition
virtual bool did_set_motorPosition()
Definition: jointData.cpp:525
yarp::sig::VectorOf< double >
yarp::dev::impl::jointData::Editor::get_jointAcceleration_isValid
bool get_jointAcceleration_isValid() const
Definition: jointData.cpp:485
yarp::dev::impl::jointData::motorVelocity
yarp::sig::VectorOf< double > motorVelocity
Definition: jointData.h:40
yarp::dev::impl::jointData::Editor::write
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
Definition: jointData.cpp:1375
yarp::dev::impl::jointData::Editor::will_set_motorPosition
virtual bool will_set_motorPosition()
Definition: jointData.cpp:519
yarp::dev::impl::jointData::Editor::will_set_motorPosition_isValid
virtual bool will_set_motorPosition_isValid()
Definition: jointData.cpp:547
yarp::dev::impl::jointData::Editor::~Editor
~Editor() override
Definition: jointData.cpp:289
yarp::dev::impl::jointData::Editor::get_controlMode_isValid
bool get_controlMode_isValid() const
Definition: jointData.cpp:877
yarp::dev::impl::jointData::Editor::will_set_motorAcceleration_isValid
virtual bool will_set_motorAcceleration_isValid()
Definition: jointData.cpp:659
yarp::dev::impl::jointData::Editor::did_set_motorVelocity
virtual bool did_set_motorVelocity()
Definition: jointData.cpp:581
yarp::dev::impl::jointData::Editor::set_current
void set_current(const yarp::sig::VectorOf< double > &current)
Definition: jointData.cpp:783
yarp::dev::impl::jointData::Editor::set_torque_isValid
void set_torque_isValid(const bool torque_isValid)
Definition: jointData.cpp:699
yarp::dev::impl::jointData::Editor::edit
bool edit(jointData &obj, bool dirty=true)
Definition: jointData.cpp:297
yarp::os::ConnectionWriter
An interface for writing to a network connection.
Definition: ConnectionWriter.h:40
yarp::os::idl::WireReader::expectAccept
void expectAccept()
Definition: WireReader.cpp:43
yarp::dev::impl::jointData::jointPosition_isValid
bool jointPosition_isValid
Definition: jointData.h:33
yarp::dev::impl::jointData::pwmDutycycle_isValid
bool pwmDutycycle_isValid
Definition: jointData.h:47
yarp::dev::impl::jointData::Editor::get_motorVelocity
const yarp::sig::VectorOf< double > & get_motorVelocity() const
Definition: jointData.cpp:569
yarp::dev::impl::jointData::Editor::will_set_pwmDutycycle
virtual bool will_set_pwmDutycycle()
Definition: jointData.cpp:743
yarp::dev::impl::jointData::Editor::did_set_jointVelocity
virtual bool did_set_jointVelocity()
Definition: jointData.cpp:413
yarp::dev::impl::jointData::Editor::isValid
bool isValid() const
Definition: jointData.cpp:309
yarp::dev::impl::jointData::Editor::get_motorAcceleration
const yarp::sig::VectorOf< double > & get_motorAcceleration() const
Definition: jointData.cpp:625
yarp::dev::impl::jointData::Editor::did_set_jointPosition
virtual bool did_set_jointPosition()
Definition: jointData.cpp:357
yarp::dev::impl::jointData::Editor::will_set_controlMode
virtual bool will_set_controlMode()
Definition: jointData.cpp:855
yarp::dev::impl::jointData::Editor::will_set_current_isValid
virtual bool will_set_current_isValid()
Definition: jointData.cpp:827
yarp::dev::impl::jointData::Editor::will_set_jointAcceleration
virtual bool will_set_jointAcceleration()
Definition: jointData.cpp:463
yarp::dev::impl::jointData::Editor::will_set_jointPosition_isValid
virtual bool will_set_jointPosition_isValid()
Definition: jointData.cpp:379
yarp::dev::impl::jointData::Editor::did_set_controlMode_isValid
virtual bool did_set_controlMode_isValid()
Definition: jointData.cpp:889
yarp::dev::impl::jointData::Editor::set_controlMode
void set_controlMode(const yarp::sig::VectorOf< int > &controlMode)
Definition: jointData.cpp:839
yarp::os::idl::WireWriter::write
bool write(const WirePortable &obj) const
Definition: WireWriter.cpp:55
yarp::dev::impl::jointData::Editor::will_set_torque
virtual bool will_set_torque()
Definition: jointData.cpp:687
yarp::dev::impl::jointData::motorPosition_isValid
bool motorPosition_isValid
Definition: jointData.h:39
yarp::dev::impl::jointData::Editor::set_controlMode_isValid
void set_controlMode_isValid(const bool controlMode_isValid)
Definition: jointData.cpp:867
yarp::dev::impl::jointData::motorPosition
yarp::sig::VectorOf< double > motorPosition
Definition: jointData.h:38
yarp::dev::impl::jointData::jointAcceleration
yarp::sig::VectorOf< double > jointAcceleration
Definition: jointData.h:36
yarp::dev::impl::jointData::Editor::set_jointVelocity
void set_jointVelocity(const yarp::sig::VectorOf< double > &jointVelocity)
Definition: jointData.cpp:391
yarp::dev::impl::jointData::Editor::did_set_jointVelocity_isValid
virtual bool did_set_jointVelocity_isValid()
Definition: jointData.cpp:441
yarp::dev::impl::jointData::Editor::did_set_current_isValid
virtual bool did_set_current_isValid()
Definition: jointData.cpp:833
yarp::dev::impl::jointData::jointPosition
yarp::sig::VectorOf< double > jointPosition
Definition: jointData.h:32
yarp::os::idl::WireReader::readNested
bool readNested(WirePortable &obj)
Definition: WireReader.cpp:91
yarp::dev::impl::jointData::interactionMode
yarp::sig::VectorOf< int > interactionMode
Definition: jointData.h:52
yarp::dev::impl::jointData::Editor::set_jointAcceleration_isValid
void set_jointAcceleration_isValid(const bool jointAcceleration_isValid)
Definition: jointData.cpp:475
yarp::os::idl::WireReader::read
bool read(WirePortable &obj)
Definition: WireReader.cpp:81
yarp::dev::impl::jointData::Editor::stop_editing
void stop_editing()
Definition: jointData.cpp:327
yarp::os::idl::WireWriter::writeTag
bool writeTag(const char *tag, int split, int len) const
Definition: WireWriter.cpp:141
yarp::dev::impl::jointData::Editor::will_set_pwmDutycycle_isValid
virtual bool will_set_pwmDutycycle_isValid()
Definition: jointData.cpp:771
yarp::dev::impl::jointData::Editor::will_set_motorVelocity_isValid
virtual bool will_set_motorVelocity_isValid()
Definition: jointData.cpp:603
yarp::dev::impl::jointData::Editor::set_pwmDutycycle
void set_pwmDutycycle(const yarp::sig::VectorOf< double > &pwmDutycycle)
Definition: jointData.cpp:727
yarp::dev::impl::jointData::jointAcceleration_isValid
bool jointAcceleration_isValid
Definition: jointData.h:37
yarp::os::idl::WireReader
IDL-friendly connection reader.
Definition: WireReader.h:33
yarp::dev::impl::jointData::Editor::did_set_jointAcceleration
virtual bool did_set_jointAcceleration()
Definition: jointData.cpp:469
yarp::os::ConnectionReader
An interface for reading from a network connection.
Definition: ConnectionReader.h:40
yarp::os::idl::WireReader::fail
void fail()
Definition: WireReader.cpp:74
yarp::dev::impl::jointData::Editor::did_set_interactionMode
virtual bool did_set_interactionMode()
Definition: jointData.cpp:917
yarp::dev::impl::jointData::Editor::will_set_motorAcceleration
virtual bool will_set_motorAcceleration()
Definition: jointData.cpp:631
yarp::dev::impl::jointData::Editor::read
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
Definition: jointData.cpp:957
yarp::dev::impl::jointData::Editor::get_pwmDutycycle_isValid
bool get_pwmDutycycle_isValid() const
Definition: jointData.cpp:765
yarp::dev::impl::jointData::Editor::get_torque
const yarp::sig::VectorOf< double > & get_torque() const
Definition: jointData.cpp:681
yarp::dev::impl::jointData::Editor::set_motorVelocity
void set_motorVelocity(const yarp::sig::VectorOf< double > &motorVelocity)
Definition: jointData.cpp:559
yarp::os::Wire::yarp
yarp::os::WireLink & yarp()
Get YARP state associated with this object.
Definition: Wire.h:34
yarp::dev::impl::jointData::Editor::get_current
const yarp::sig::VectorOf< double > & get_current() const
Definition: jointData.cpp:793
yarp::dev::impl::jointData::Editor::set_interactionMode_isValid
void set_interactionMode_isValid(const bool interactionMode_isValid)
Definition: jointData.cpp:923
yarp::dev::impl::jointData::current
yarp::sig::VectorOf< double > current
Definition: jointData.h:48
jointData.h
yarp::dev::impl::jointData::Editor::get_motorVelocity_isValid
bool get_motorVelocity_isValid() const
Definition: jointData.cpp:597
yarp::os::idl::WireWriter::writeVocab
bool writeVocab(std::int32_t x) const
Definition: WireWriter.cpp:124
yarp::dev::impl::jointData::Editor::set_motorAcceleration
void set_motorAcceleration(const yarp::sig::VectorOf< double > &motorAcceleration)
Definition: jointData.cpp:615
yarp::dev::impl::jointData::Editor::get_jointPosition
const yarp::sig::VectorOf< double > & get_jointPosition() const
Definition: jointData.cpp:345
yarp::dev::impl::jointData::Editor::set_torque
void set_torque(const yarp::sig::VectorOf< double > &torque)
Definition: jointData.cpp:671
yarp::dev::impl::jointData::Editor::did_set_current
virtual bool did_set_current()
Definition: jointData.cpp:805
yarp::dev::impl::jointData::Editor::will_set_current
virtual bool will_set_current()
Definition: jointData.cpp:799
yarp::dev::impl::jointData::Editor::get_current_isValid
bool get_current_isValid() const
Definition: jointData.cpp:821
yarp::os::idl::WireReader::accept
void accept()
Definition: WireReader.cpp:49
yarp::dev::impl::jointData::Editor::get_pwmDutycycle
const yarp::sig::VectorOf< double > & get_pwmDutycycle() const
Definition: jointData.cpp:737
yarp::dev::impl::jointData::Editor::set_pwmDutycycle_isValid
void set_pwmDutycycle_isValid(const bool pwmDutycycle_isValid)
Definition: jointData.cpp:755
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
yarp::dev::impl::jointData::Editor::get_jointVelocity
const yarp::sig::VectorOf< double > & get_jointVelocity() const
Definition: jointData.cpp:401
yarp::dev::impl::jointData::Editor::set_motorAcceleration_isValid
void set_motorAcceleration_isValid(const bool motorAcceleration_isValid)
Definition: jointData.cpp:643
yarp::dev::impl::jointData::Editor::will_set_jointVelocity_isValid
virtual bool will_set_jointVelocity_isValid()
Definition: jointData.cpp:435
yarp::dev::impl::jointData::Editor::will_set_jointPosition
virtual bool will_set_jointPosition()
Definition: jointData.cpp:351
yarp::dev::impl::jointData::Editor::clean
void clean()
Definition: jointData.cpp:951
yarp::dev::impl::jointData::Editor::get_jointPosition_isValid
bool get_jointPosition_isValid() const
Definition: jointData.cpp:373
yarp::os::Bottle::read
bool read(ConnectionReader &reader) override
Set the bottle's value based on input from a network connection.
Definition: Bottle.cpp:243
yarp::dev::impl::jointData::controlMode_isValid
bool controlMode_isValid
Definition: jointData.h:51
yarp::dev::impl::jointData::Editor::state
jointData & state()
Definition: jointData.cpp:315
yarp::os::idl::WireReader::getLength
int getLength() const
Definition: WireReader.h:153
yarp::dev::impl::jointData::Editor::set_interactionMode
void set_interactionMode(const yarp::sig::VectorOf< int > &interactionMode)
Definition: jointData.cpp:895
yarp::dev::impl::jointData::Editor::set_jointAcceleration
void set_jointAcceleration(const yarp::sig::VectorOf< double > &jointAcceleration)
Definition: jointData.cpp:447
yarp::dev::impl::jointData::Editor::will_set_interactionMode_isValid
virtual bool will_set_interactionMode_isValid()
Definition: jointData.cpp:939
yarp::dev::impl::jointData::Editor::set_jointPosition
void set_jointPosition(const yarp::sig::VectorOf< double > &jointPosition)
Definition: jointData.cpp:335
yarp::dev::impl::jointData::Editor::will_set_torque_isValid
virtual bool will_set_torque_isValid()
Definition: jointData.cpp:715
yarp::dev::impl::jointData::jointData
jointData()
Definition: jointData.cpp:21
yarp::dev::impl::jointData::Editor::will_set_interactionMode
virtual bool will_set_interactionMode()
Definition: jointData.cpp:911
yarp::dev::impl::jointData::Editor::set_current_isValid
void set_current_isValid(const bool current_isValid)
Definition: jointData.cpp:811
yarp::dev::impl::jointData::Editor::set_jointPosition_isValid
void set_jointPosition_isValid(const bool jointPosition_isValid)
Definition: jointData.cpp:363
yarp::dev::impl::jointData::jointVelocity_isValid
bool jointVelocity_isValid
Definition: jointData.h:35
yarp::dev::impl::jointData::interactionMode_isValid
bool interactionMode_isValid
Definition: jointData.h:53
yarp::dev::impl::jointData::Editor::will_set_jointAcceleration_isValid
virtual bool will_set_jointAcceleration_isValid()
Definition: jointData.cpp:491
yarp::dev::impl::jointData::Editor::did_set_motorVelocity_isValid
virtual bool did_set_motorVelocity_isValid()
Definition: jointData.cpp:609
yarp::os::idl::WireReader::readListHeader
bool readListHeader()
Definition: WireReader.cpp:470
yarp::os::idl::WireReader::isError
bool isError()
Definition: WireReader.cpp:547