YARP
Yet Another Robot Platform
SensorStreamingData.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 
14 #include <SensorStreamingData.h>
15 
16 // Default constructor
18  WirePortable(),
26  EncoderArrays(),
27  SkinPatches(),
29 {
30 }
31 
32 // Constructor with field values
43  WirePortable(),
54 {
55 }
56 
57 // Read structure on a Wire
59 {
60  if (!read_ThreeAxisGyroscopes(reader)) {
61  return false;
62  }
63  if (!read_ThreeAxisLinearAccelerometers(reader)) {
64  return false;
65  }
66  if (!read_ThreeAxisMagnetometers(reader)) {
67  return false;
68  }
69  if (!read_OrientationSensors(reader)) {
70  return false;
71  }
72  if (!read_TemperatureSensors(reader)) {
73  return false;
74  }
75  if (!read_SixAxisForceTorqueSensors(reader)) {
76  return false;
77  }
78  if (!read_ContactLoadCellArrays(reader)) {
79  return false;
80  }
81  if (!read_EncoderArrays(reader)) {
82  return false;
83  }
84  if (!read_SkinPatches(reader)) {
85  return false;
86  }
87  if (!read_PositionSensors(reader)) {
88  return false;
89  }
90  return !reader.isError();
91 }
92 
93 // Read structure on a Connection
95 {
96  yarp::os::idl::WireReader reader(connection);
97  if (!reader.readListHeader(10)) {
98  return false;
99  }
100  return read(reader);
101 }
102 
103 // Write structure on a Wire
105 {
106  if (!write_ThreeAxisGyroscopes(writer)) {
107  return false;
108  }
109  if (!write_ThreeAxisLinearAccelerometers(writer)) {
110  return false;
111  }
112  if (!write_ThreeAxisMagnetometers(writer)) {
113  return false;
114  }
115  if (!write_OrientationSensors(writer)) {
116  return false;
117  }
118  if (!write_TemperatureSensors(writer)) {
119  return false;
120  }
121  if (!write_SixAxisForceTorqueSensors(writer)) {
122  return false;
123  }
124  if (!write_ContactLoadCellArrays(writer)) {
125  return false;
126  }
127  if (!write_EncoderArrays(writer)) {
128  return false;
129  }
130  if (!write_SkinPatches(writer)) {
131  return false;
132  }
133  if (!write_PositionSensors(writer)) {
134  return false;
135  }
136  return !writer.isError();
137 }
138 
139 // Write structure on a Connection
141 {
142  yarp::os::idl::WireWriter writer(connection);
143  if (!writer.writeListHeader(10)) {
144  return false;
145  }
146  return write(writer);
147 }
148 
149 // Convert to a printable string
150 std::string SensorStreamingData::toString() const
151 {
153  b.read(*this);
154  return b.toString();
155 }
156 
157 // Editor: default constructor
159 {
160  group = 0;
161  obj_owned = true;
162  obj = new SensorStreamingData;
163  dirty_flags(false);
164  yarp().setOwner(*this);
165 }
166 
167 // Editor: constructor with base class
169 {
170  group = 0;
171  obj_owned = false;
172  edit(obj, false);
173  yarp().setOwner(*this);
174 }
175 
176 // Editor: destructor
178 {
179  if (obj_owned) {
180  delete obj;
181  }
182 }
183 
184 // Editor: edit
186 {
187  if (obj_owned) {
188  delete this->obj;
189  }
190  this->obj = &obj;
191  obj_owned = false;
192  dirty_flags(dirty);
193  return true;
194 }
195 
196 // Editor: validity check
198 {
199  return obj != nullptr;
200 }
201 
202 // Editor: state
204 {
205  return *obj;
206 }
207 
208 // Editor: grouping begin
210 {
211  group++;
212 }
213 
214 // Editor: grouping end
216 {
217  group--;
218  if (group == 0 && is_dirty) {
219  communicate();
220  }
221 }
222 // Editor: ThreeAxisGyroscopes setter
224 {
225  will_set_ThreeAxisGyroscopes();
226  obj->ThreeAxisGyroscopes = ThreeAxisGyroscopes;
227  mark_dirty_ThreeAxisGyroscopes();
228  communicate();
229  did_set_ThreeAxisGyroscopes();
230 }
231 
232 // Editor: ThreeAxisGyroscopes getter
234 {
235  return obj->ThreeAxisGyroscopes;
236 }
237 
238 // Editor: ThreeAxisGyroscopes will_set
240 {
241  return true;
242 }
243 
244 // Editor: ThreeAxisGyroscopes did_set
246 {
247  return true;
248 }
249 
250 // Editor: ThreeAxisLinearAccelerometers setter
252 {
253  will_set_ThreeAxisLinearAccelerometers();
254  obj->ThreeAxisLinearAccelerometers = ThreeAxisLinearAccelerometers;
255  mark_dirty_ThreeAxisLinearAccelerometers();
256  communicate();
257  did_set_ThreeAxisLinearAccelerometers();
258 }
259 
260 // Editor: ThreeAxisLinearAccelerometers getter
262 {
263  return obj->ThreeAxisLinearAccelerometers;
264 }
265 
266 // Editor: ThreeAxisLinearAccelerometers will_set
268 {
269  return true;
270 }
271 
272 // Editor: ThreeAxisLinearAccelerometers did_set
274 {
275  return true;
276 }
277 
278 // Editor: ThreeAxisMagnetometers setter
280 {
281  will_set_ThreeAxisMagnetometers();
282  obj->ThreeAxisMagnetometers = ThreeAxisMagnetometers;
283  mark_dirty_ThreeAxisMagnetometers();
284  communicate();
285  did_set_ThreeAxisMagnetometers();
286 }
287 
288 // Editor: ThreeAxisMagnetometers getter
290 {
291  return obj->ThreeAxisMagnetometers;
292 }
293 
294 // Editor: ThreeAxisMagnetometers will_set
296 {
297  return true;
298 }
299 
300 // Editor: ThreeAxisMagnetometers did_set
302 {
303  return true;
304 }
305 
306 // Editor: OrientationSensors setter
308 {
309  will_set_OrientationSensors();
310  obj->OrientationSensors = OrientationSensors;
311  mark_dirty_OrientationSensors();
312  communicate();
313  did_set_OrientationSensors();
314 }
315 
316 // Editor: OrientationSensors getter
318 {
319  return obj->OrientationSensors;
320 }
321 
322 // Editor: OrientationSensors will_set
324 {
325  return true;
326 }
327 
328 // Editor: OrientationSensors did_set
330 {
331  return true;
332 }
333 
334 // Editor: TemperatureSensors setter
336 {
337  will_set_TemperatureSensors();
338  obj->TemperatureSensors = TemperatureSensors;
339  mark_dirty_TemperatureSensors();
340  communicate();
341  did_set_TemperatureSensors();
342 }
343 
344 // Editor: TemperatureSensors getter
346 {
347  return obj->TemperatureSensors;
348 }
349 
350 // Editor: TemperatureSensors will_set
352 {
353  return true;
354 }
355 
356 // Editor: TemperatureSensors did_set
358 {
359  return true;
360 }
361 
362 // Editor: SixAxisForceTorqueSensors setter
364 {
365  will_set_SixAxisForceTorqueSensors();
366  obj->SixAxisForceTorqueSensors = SixAxisForceTorqueSensors;
367  mark_dirty_SixAxisForceTorqueSensors();
368  communicate();
369  did_set_SixAxisForceTorqueSensors();
370 }
371 
372 // Editor: SixAxisForceTorqueSensors getter
374 {
375  return obj->SixAxisForceTorqueSensors;
376 }
377 
378 // Editor: SixAxisForceTorqueSensors will_set
380 {
381  return true;
382 }
383 
384 // Editor: SixAxisForceTorqueSensors did_set
386 {
387  return true;
388 }
389 
390 // Editor: ContactLoadCellArrays setter
392 {
393  will_set_ContactLoadCellArrays();
394  obj->ContactLoadCellArrays = ContactLoadCellArrays;
395  mark_dirty_ContactLoadCellArrays();
396  communicate();
397  did_set_ContactLoadCellArrays();
398 }
399 
400 // Editor: ContactLoadCellArrays getter
402 {
403  return obj->ContactLoadCellArrays;
404 }
405 
406 // Editor: ContactLoadCellArrays will_set
408 {
409  return true;
410 }
411 
412 // Editor: ContactLoadCellArrays did_set
414 {
415  return true;
416 }
417 
418 // Editor: EncoderArrays setter
420 {
421  will_set_EncoderArrays();
422  obj->EncoderArrays = EncoderArrays;
423  mark_dirty_EncoderArrays();
424  communicate();
425  did_set_EncoderArrays();
426 }
427 
428 // Editor: EncoderArrays getter
430 {
431  return obj->EncoderArrays;
432 }
433 
434 // Editor: EncoderArrays will_set
436 {
437  return true;
438 }
439 
440 // Editor: EncoderArrays did_set
442 {
443  return true;
444 }
445 
446 // Editor: SkinPatches setter
448 {
449  will_set_SkinPatches();
450  obj->SkinPatches = SkinPatches;
451  mark_dirty_SkinPatches();
452  communicate();
453  did_set_SkinPatches();
454 }
455 
456 // Editor: SkinPatches getter
458 {
459  return obj->SkinPatches;
460 }
461 
462 // Editor: SkinPatches will_set
464 {
465  return true;
466 }
467 
468 // Editor: SkinPatches did_set
470 {
471  return true;
472 }
473 
474 // Editor: PositionSensors setter
476 {
477  will_set_PositionSensors();
478  obj->PositionSensors = PositionSensors;
479  mark_dirty_PositionSensors();
480  communicate();
481  did_set_PositionSensors();
482 }
483 
484 // Editor: PositionSensors getter
486 {
487  return obj->PositionSensors;
488 }
489 
490 // Editor: PositionSensors will_set
492 {
493  return true;
494 }
495 
496 // Editor: PositionSensors did_set
498 {
499  return true;
500 }
501 
502 // Editor: clean
504 {
505  dirty_flags(false);
506 }
507 
508 // Editor: read
510 {
511  if (!isValid()) {
512  return false;
513  }
514  yarp::os::idl::WireReader reader(connection);
515  reader.expectAccept();
516  if (!reader.readListHeader()) {
517  return false;
518  }
519  int len = reader.getLength();
520  if (len == 0) {
521  yarp::os::idl::WireWriter writer(reader);
522  if (writer.isNull()) {
523  return true;
524  }
525  if (!writer.writeListHeader(1)) {
526  return false;
527  }
528  writer.writeString("send: 'help' or 'patch (param1 val1) (param2 val2)'");
529  return true;
530  }
531  std::string tag;
532  if (!reader.readString(tag)) {
533  return false;
534  }
535  if (tag == "help") {
536  yarp::os::idl::WireWriter writer(reader);
537  if (writer.isNull()) {
538  return true;
539  }
540  if (!writer.writeListHeader(2)) {
541  return false;
542  }
543  if (!writer.writeTag("many", 1, 0)) {
544  return false;
545  }
546  if (reader.getLength() > 0) {
547  std::string field;
548  if (!reader.readString(field)) {
549  return false;
550  }
551  if (field == "ThreeAxisGyroscopes") {
552  if (!writer.writeListHeader(1)) {
553  return false;
554  }
555  if (!writer.writeString("SensorMeasurements ThreeAxisGyroscopes")) {
556  return false;
557  }
558  }
559  if (field == "ThreeAxisLinearAccelerometers") {
560  if (!writer.writeListHeader(1)) {
561  return false;
562  }
563  if (!writer.writeString("SensorMeasurements ThreeAxisLinearAccelerometers")) {
564  return false;
565  }
566  }
567  if (field == "ThreeAxisMagnetometers") {
568  if (!writer.writeListHeader(1)) {
569  return false;
570  }
571  if (!writer.writeString("SensorMeasurements ThreeAxisMagnetometers")) {
572  return false;
573  }
574  }
575  if (field == "OrientationSensors") {
576  if (!writer.writeListHeader(1)) {
577  return false;
578  }
579  if (!writer.writeString("SensorMeasurements OrientationSensors")) {
580  return false;
581  }
582  }
583  if (field == "TemperatureSensors") {
584  if (!writer.writeListHeader(1)) {
585  return false;
586  }
587  if (!writer.writeString("SensorMeasurements TemperatureSensors")) {
588  return false;
589  }
590  }
591  if (field == "SixAxisForceTorqueSensors") {
592  if (!writer.writeListHeader(1)) {
593  return false;
594  }
595  if (!writer.writeString("SensorMeasurements SixAxisForceTorqueSensors")) {
596  return false;
597  }
598  }
599  if (field == "ContactLoadCellArrays") {
600  if (!writer.writeListHeader(1)) {
601  return false;
602  }
603  if (!writer.writeString("SensorMeasurements ContactLoadCellArrays")) {
604  return false;
605  }
606  }
607  if (field == "EncoderArrays") {
608  if (!writer.writeListHeader(1)) {
609  return false;
610  }
611  if (!writer.writeString("SensorMeasurements EncoderArrays")) {
612  return false;
613  }
614  }
615  if (field == "SkinPatches") {
616  if (!writer.writeListHeader(1)) {
617  return false;
618  }
619  if (!writer.writeString("SensorMeasurements SkinPatches")) {
620  return false;
621  }
622  }
623  if (field == "PositionSensors") {
624  if (!writer.writeListHeader(1)) {
625  return false;
626  }
627  if (!writer.writeString("SensorMeasurements PositionSensors")) {
628  return false;
629  }
630  }
631  }
632  if (!writer.writeListHeader(11)) {
633  return false;
634  }
635  writer.writeString("*** Available fields:");
636  writer.writeString("ThreeAxisGyroscopes");
637  writer.writeString("ThreeAxisLinearAccelerometers");
638  writer.writeString("ThreeAxisMagnetometers");
639  writer.writeString("OrientationSensors");
640  writer.writeString("TemperatureSensors");
641  writer.writeString("SixAxisForceTorqueSensors");
642  writer.writeString("ContactLoadCellArrays");
643  writer.writeString("EncoderArrays");
644  writer.writeString("SkinPatches");
645  writer.writeString("PositionSensors");
646  return true;
647  }
648  bool nested = true;
649  bool have_act = false;
650  if (tag != "patch") {
651  if (((len - 1) % 2) != 0) {
652  return false;
653  }
654  len = 1 + ((len - 1) / 2);
655  nested = false;
656  have_act = true;
657  }
658  for (int i = 1; i < len; ++i) {
659  if (nested && !reader.readListHeader(3)) {
660  return false;
661  }
662  std::string act;
663  std::string key;
664  if (have_act) {
665  act = tag;
666  } else if (!reader.readString(act)) {
667  return false;
668  }
669  if (!reader.readString(key)) {
670  return false;
671  }
672  if (key == "ThreeAxisGyroscopes") {
673  will_set_ThreeAxisGyroscopes();
674  if (!obj->nested_read_ThreeAxisGyroscopes(reader)) {
675  return false;
676  }
677  did_set_ThreeAxisGyroscopes();
678  } else if (key == "ThreeAxisLinearAccelerometers") {
679  will_set_ThreeAxisLinearAccelerometers();
680  if (!obj->nested_read_ThreeAxisLinearAccelerometers(reader)) {
681  return false;
682  }
683  did_set_ThreeAxisLinearAccelerometers();
684  } else if (key == "ThreeAxisMagnetometers") {
685  will_set_ThreeAxisMagnetometers();
686  if (!obj->nested_read_ThreeAxisMagnetometers(reader)) {
687  return false;
688  }
689  did_set_ThreeAxisMagnetometers();
690  } else if (key == "OrientationSensors") {
691  will_set_OrientationSensors();
692  if (!obj->nested_read_OrientationSensors(reader)) {
693  return false;
694  }
695  did_set_OrientationSensors();
696  } else if (key == "TemperatureSensors") {
697  will_set_TemperatureSensors();
698  if (!obj->nested_read_TemperatureSensors(reader)) {
699  return false;
700  }
701  did_set_TemperatureSensors();
702  } else if (key == "SixAxisForceTorqueSensors") {
703  will_set_SixAxisForceTorqueSensors();
704  if (!obj->nested_read_SixAxisForceTorqueSensors(reader)) {
705  return false;
706  }
707  did_set_SixAxisForceTorqueSensors();
708  } else if (key == "ContactLoadCellArrays") {
709  will_set_ContactLoadCellArrays();
710  if (!obj->nested_read_ContactLoadCellArrays(reader)) {
711  return false;
712  }
713  did_set_ContactLoadCellArrays();
714  } else if (key == "EncoderArrays") {
715  will_set_EncoderArrays();
716  if (!obj->nested_read_EncoderArrays(reader)) {
717  return false;
718  }
719  did_set_EncoderArrays();
720  } else if (key == "SkinPatches") {
721  will_set_SkinPatches();
722  if (!obj->nested_read_SkinPatches(reader)) {
723  return false;
724  }
725  did_set_SkinPatches();
726  } else if (key == "PositionSensors") {
727  will_set_PositionSensors();
728  if (!obj->nested_read_PositionSensors(reader)) {
729  return false;
730  }
731  did_set_PositionSensors();
732  } else {
733  // would be useful to have a fallback here
734  }
735  }
736  reader.accept();
737  yarp::os::idl::WireWriter writer(reader);
738  if (writer.isNull()) {
739  return true;
740  }
741  writer.writeListHeader(1);
742  writer.writeVocab(yarp::os::createVocab('o', 'k'));
743  return true;
744 }
745 
746 // Editor: write
748 {
749  if (!isValid()) {
750  return false;
751  }
752  yarp::os::idl::WireWriter writer(connection);
753  if (!writer.writeListHeader(dirty_count + 1)) {
754  return false;
755  }
756  if (!writer.writeString("patch")) {
757  return false;
758  }
759  if (is_dirty_ThreeAxisGyroscopes) {
760  if (!writer.writeListHeader(3)) {
761  return false;
762  }
763  if (!writer.writeString("set")) {
764  return false;
765  }
766  if (!writer.writeString("ThreeAxisGyroscopes")) {
767  return false;
768  }
769  if (!obj->nested_write_ThreeAxisGyroscopes(writer)) {
770  return false;
771  }
772  }
773  if (is_dirty_ThreeAxisLinearAccelerometers) {
774  if (!writer.writeListHeader(3)) {
775  return false;
776  }
777  if (!writer.writeString("set")) {
778  return false;
779  }
780  if (!writer.writeString("ThreeAxisLinearAccelerometers")) {
781  return false;
782  }
783  if (!obj->nested_write_ThreeAxisLinearAccelerometers(writer)) {
784  return false;
785  }
786  }
787  if (is_dirty_ThreeAxisMagnetometers) {
788  if (!writer.writeListHeader(3)) {
789  return false;
790  }
791  if (!writer.writeString("set")) {
792  return false;
793  }
794  if (!writer.writeString("ThreeAxisMagnetometers")) {
795  return false;
796  }
797  if (!obj->nested_write_ThreeAxisMagnetometers(writer)) {
798  return false;
799  }
800  }
801  if (is_dirty_OrientationSensors) {
802  if (!writer.writeListHeader(3)) {
803  return false;
804  }
805  if (!writer.writeString("set")) {
806  return false;
807  }
808  if (!writer.writeString("OrientationSensors")) {
809  return false;
810  }
811  if (!obj->nested_write_OrientationSensors(writer)) {
812  return false;
813  }
814  }
815  if (is_dirty_TemperatureSensors) {
816  if (!writer.writeListHeader(3)) {
817  return false;
818  }
819  if (!writer.writeString("set")) {
820  return false;
821  }
822  if (!writer.writeString("TemperatureSensors")) {
823  return false;
824  }
825  if (!obj->nested_write_TemperatureSensors(writer)) {
826  return false;
827  }
828  }
829  if (is_dirty_SixAxisForceTorqueSensors) {
830  if (!writer.writeListHeader(3)) {
831  return false;
832  }
833  if (!writer.writeString("set")) {
834  return false;
835  }
836  if (!writer.writeString("SixAxisForceTorqueSensors")) {
837  return false;
838  }
839  if (!obj->nested_write_SixAxisForceTorqueSensors(writer)) {
840  return false;
841  }
842  }
843  if (is_dirty_ContactLoadCellArrays) {
844  if (!writer.writeListHeader(3)) {
845  return false;
846  }
847  if (!writer.writeString("set")) {
848  return false;
849  }
850  if (!writer.writeString("ContactLoadCellArrays")) {
851  return false;
852  }
853  if (!obj->nested_write_ContactLoadCellArrays(writer)) {
854  return false;
855  }
856  }
857  if (is_dirty_EncoderArrays) {
858  if (!writer.writeListHeader(3)) {
859  return false;
860  }
861  if (!writer.writeString("set")) {
862  return false;
863  }
864  if (!writer.writeString("EncoderArrays")) {
865  return false;
866  }
867  if (!obj->nested_write_EncoderArrays(writer)) {
868  return false;
869  }
870  }
871  if (is_dirty_SkinPatches) {
872  if (!writer.writeListHeader(3)) {
873  return false;
874  }
875  if (!writer.writeString("set")) {
876  return false;
877  }
878  if (!writer.writeString("SkinPatches")) {
879  return false;
880  }
881  if (!obj->nested_write_SkinPatches(writer)) {
882  return false;
883  }
884  }
885  if (is_dirty_PositionSensors) {
886  if (!writer.writeListHeader(3)) {
887  return false;
888  }
889  if (!writer.writeString("set")) {
890  return false;
891  }
892  if (!writer.writeString("PositionSensors")) {
893  return false;
894  }
895  if (!obj->nested_write_PositionSensors(writer)) {
896  return false;
897  }
898  }
899  return !writer.isError();
900 }
901 
902 // Editor: send if possible
903 void SensorStreamingData::Editor::communicate()
904 {
905  if (group != 0) {
906  return;
907  }
908  if (yarp().canWrite()) {
909  yarp().write(*this);
910  clean();
911  }
912 }
913 
914 // Editor: mark dirty overall
915 void SensorStreamingData::Editor::mark_dirty()
916 {
917  is_dirty = true;
918 }
919 
920 // Editor: ThreeAxisGyroscopes mark_dirty
921 void SensorStreamingData::Editor::mark_dirty_ThreeAxisGyroscopes()
922 {
923  if (is_dirty_ThreeAxisGyroscopes) {
924  return;
925  }
926  dirty_count++;
927  is_dirty_ThreeAxisGyroscopes = true;
928  mark_dirty();
929 }
930 
931 // Editor: ThreeAxisLinearAccelerometers mark_dirty
932 void SensorStreamingData::Editor::mark_dirty_ThreeAxisLinearAccelerometers()
933 {
934  if (is_dirty_ThreeAxisLinearAccelerometers) {
935  return;
936  }
937  dirty_count++;
938  is_dirty_ThreeAxisLinearAccelerometers = true;
939  mark_dirty();
940 }
941 
942 // Editor: ThreeAxisMagnetometers mark_dirty
943 void SensorStreamingData::Editor::mark_dirty_ThreeAxisMagnetometers()
944 {
945  if (is_dirty_ThreeAxisMagnetometers) {
946  return;
947  }
948  dirty_count++;
949  is_dirty_ThreeAxisMagnetometers = true;
950  mark_dirty();
951 }
952 
953 // Editor: OrientationSensors mark_dirty
954 void SensorStreamingData::Editor::mark_dirty_OrientationSensors()
955 {
956  if (is_dirty_OrientationSensors) {
957  return;
958  }
959  dirty_count++;
960  is_dirty_OrientationSensors = true;
961  mark_dirty();
962 }
963 
964 // Editor: TemperatureSensors mark_dirty
965 void SensorStreamingData::Editor::mark_dirty_TemperatureSensors()
966 {
967  if (is_dirty_TemperatureSensors) {
968  return;
969  }
970  dirty_count++;
971  is_dirty_TemperatureSensors = true;
972  mark_dirty();
973 }
974 
975 // Editor: SixAxisForceTorqueSensors mark_dirty
976 void SensorStreamingData::Editor::mark_dirty_SixAxisForceTorqueSensors()
977 {
978  if (is_dirty_SixAxisForceTorqueSensors) {
979  return;
980  }
981  dirty_count++;
982  is_dirty_SixAxisForceTorqueSensors = true;
983  mark_dirty();
984 }
985 
986 // Editor: ContactLoadCellArrays mark_dirty
987 void SensorStreamingData::Editor::mark_dirty_ContactLoadCellArrays()
988 {
989  if (is_dirty_ContactLoadCellArrays) {
990  return;
991  }
992  dirty_count++;
993  is_dirty_ContactLoadCellArrays = true;
994  mark_dirty();
995 }
996 
997 // Editor: EncoderArrays mark_dirty
998 void SensorStreamingData::Editor::mark_dirty_EncoderArrays()
999 {
1000  if (is_dirty_EncoderArrays) {
1001  return;
1002  }
1003  dirty_count++;
1004  is_dirty_EncoderArrays = true;
1005  mark_dirty();
1006 }
1007 
1008 // Editor: SkinPatches mark_dirty
1009 void SensorStreamingData::Editor::mark_dirty_SkinPatches()
1010 {
1011  if (is_dirty_SkinPatches) {
1012  return;
1013  }
1014  dirty_count++;
1015  is_dirty_SkinPatches = true;
1016  mark_dirty();
1017 }
1018 
1019 // Editor: PositionSensors mark_dirty
1020 void SensorStreamingData::Editor::mark_dirty_PositionSensors()
1021 {
1022  if (is_dirty_PositionSensors) {
1023  return;
1024  }
1025  dirty_count++;
1026  is_dirty_PositionSensors = true;
1027  mark_dirty();
1028 }
1029 
1030 // Editor: dirty_flags
1031 void SensorStreamingData::Editor::dirty_flags(bool flag)
1032 {
1033  is_dirty = flag;
1034  is_dirty_ThreeAxisGyroscopes = flag;
1035  is_dirty_ThreeAxisLinearAccelerometers = flag;
1036  is_dirty_ThreeAxisMagnetometers = flag;
1037  is_dirty_OrientationSensors = flag;
1038  is_dirty_TemperatureSensors = flag;
1039  is_dirty_SixAxisForceTorqueSensors = flag;
1040  is_dirty_ContactLoadCellArrays = flag;
1041  is_dirty_EncoderArrays = flag;
1042  is_dirty_SkinPatches = flag;
1043  is_dirty_PositionSensors = flag;
1044  dirty_count = flag ? 10 : 0;
1045 }
1046 
1047 // read ThreeAxisGyroscopes field
1048 bool SensorStreamingData::read_ThreeAxisGyroscopes(yarp::os::idl::WireReader& reader)
1049 {
1050  if (!reader.read(ThreeAxisGyroscopes)) {
1051  reader.fail();
1052  return false;
1053  }
1054  return true;
1055 }
1056 
1057 // write ThreeAxisGyroscopes field
1058 bool SensorStreamingData::write_ThreeAxisGyroscopes(const yarp::os::idl::WireWriter& writer) const
1059 {
1060  if (!writer.write(ThreeAxisGyroscopes)) {
1061  return false;
1062  }
1063  return true;
1064 }
1065 
1066 // read (nested) ThreeAxisGyroscopes field
1067 bool SensorStreamingData::nested_read_ThreeAxisGyroscopes(yarp::os::idl::WireReader& reader)
1068 {
1069  if (!reader.readNested(ThreeAxisGyroscopes)) {
1070  reader.fail();
1071  return false;
1072  }
1073  return true;
1074 }
1075 
1076 // write (nested) ThreeAxisGyroscopes field
1077 bool SensorStreamingData::nested_write_ThreeAxisGyroscopes(const yarp::os::idl::WireWriter& writer) const
1078 {
1079  if (!writer.writeNested(ThreeAxisGyroscopes)) {
1080  return false;
1081  }
1082  return true;
1083 }
1084 
1085 // read ThreeAxisLinearAccelerometers field
1086 bool SensorStreamingData::read_ThreeAxisLinearAccelerometers(yarp::os::idl::WireReader& reader)
1087 {
1088  if (!reader.read(ThreeAxisLinearAccelerometers)) {
1089  reader.fail();
1090  return false;
1091  }
1092  return true;
1093 }
1094 
1095 // write ThreeAxisLinearAccelerometers field
1096 bool SensorStreamingData::write_ThreeAxisLinearAccelerometers(const yarp::os::idl::WireWriter& writer) const
1097 {
1098  if (!writer.write(ThreeAxisLinearAccelerometers)) {
1099  return false;
1100  }
1101  return true;
1102 }
1103 
1104 // read (nested) ThreeAxisLinearAccelerometers field
1105 bool SensorStreamingData::nested_read_ThreeAxisLinearAccelerometers(yarp::os::idl::WireReader& reader)
1106 {
1108  reader.fail();
1109  return false;
1110  }
1111  return true;
1112 }
1113 
1114 // write (nested) ThreeAxisLinearAccelerometers field
1115 bool SensorStreamingData::nested_write_ThreeAxisLinearAccelerometers(const yarp::os::idl::WireWriter& writer) const
1116 {
1118  return false;
1119  }
1120  return true;
1121 }
1122 
1123 // read ThreeAxisMagnetometers field
1124 bool SensorStreamingData::read_ThreeAxisMagnetometers(yarp::os::idl::WireReader& reader)
1125 {
1126  if (!reader.read(ThreeAxisMagnetometers)) {
1127  reader.fail();
1128  return false;
1129  }
1130  return true;
1131 }
1132 
1133 // write ThreeAxisMagnetometers field
1134 bool SensorStreamingData::write_ThreeAxisMagnetometers(const yarp::os::idl::WireWriter& writer) const
1135 {
1136  if (!writer.write(ThreeAxisMagnetometers)) {
1137  return false;
1138  }
1139  return true;
1140 }
1141 
1142 // read (nested) ThreeAxisMagnetometers field
1143 bool SensorStreamingData::nested_read_ThreeAxisMagnetometers(yarp::os::idl::WireReader& reader)
1144 {
1145  if (!reader.readNested(ThreeAxisMagnetometers)) {
1146  reader.fail();
1147  return false;
1148  }
1149  return true;
1150 }
1151 
1152 // write (nested) ThreeAxisMagnetometers field
1153 bool SensorStreamingData::nested_write_ThreeAxisMagnetometers(const yarp::os::idl::WireWriter& writer) const
1154 {
1155  if (!writer.writeNested(ThreeAxisMagnetometers)) {
1156  return false;
1157  }
1158  return true;
1159 }
1160 
1161 // read OrientationSensors field
1162 bool SensorStreamingData::read_OrientationSensors(yarp::os::idl::WireReader& reader)
1163 {
1164  if (!reader.read(OrientationSensors)) {
1165  reader.fail();
1166  return false;
1167  }
1168  return true;
1169 }
1170 
1171 // write OrientationSensors field
1172 bool SensorStreamingData::write_OrientationSensors(const yarp::os::idl::WireWriter& writer) const
1173 {
1174  if (!writer.write(OrientationSensors)) {
1175  return false;
1176  }
1177  return true;
1178 }
1179 
1180 // read (nested) OrientationSensors field
1181 bool SensorStreamingData::nested_read_OrientationSensors(yarp::os::idl::WireReader& reader)
1182 {
1183  if (!reader.readNested(OrientationSensors)) {
1184  reader.fail();
1185  return false;
1186  }
1187  return true;
1188 }
1189 
1190 // write (nested) OrientationSensors field
1191 bool SensorStreamingData::nested_write_OrientationSensors(const yarp::os::idl::WireWriter& writer) const
1192 {
1193  if (!writer.writeNested(OrientationSensors)) {
1194  return false;
1195  }
1196  return true;
1197 }
1198 
1199 // read TemperatureSensors field
1200 bool SensorStreamingData::read_TemperatureSensors(yarp::os::idl::WireReader& reader)
1201 {
1202  if (!reader.read(TemperatureSensors)) {
1203  reader.fail();
1204  return false;
1205  }
1206  return true;
1207 }
1208 
1209 // write TemperatureSensors field
1210 bool SensorStreamingData::write_TemperatureSensors(const yarp::os::idl::WireWriter& writer) const
1211 {
1212  if (!writer.write(TemperatureSensors)) {
1213  return false;
1214  }
1215  return true;
1216 }
1217 
1218 // read (nested) TemperatureSensors field
1219 bool SensorStreamingData::nested_read_TemperatureSensors(yarp::os::idl::WireReader& reader)
1220 {
1221  if (!reader.readNested(TemperatureSensors)) {
1222  reader.fail();
1223  return false;
1224  }
1225  return true;
1226 }
1227 
1228 // write (nested) TemperatureSensors field
1229 bool SensorStreamingData::nested_write_TemperatureSensors(const yarp::os::idl::WireWriter& writer) const
1230 {
1231  if (!writer.writeNested(TemperatureSensors)) {
1232  return false;
1233  }
1234  return true;
1235 }
1236 
1237 // read SixAxisForceTorqueSensors field
1238 bool SensorStreamingData::read_SixAxisForceTorqueSensors(yarp::os::idl::WireReader& reader)
1239 {
1240  if (!reader.read(SixAxisForceTorqueSensors)) {
1241  reader.fail();
1242  return false;
1243  }
1244  return true;
1245 }
1246 
1247 // write SixAxisForceTorqueSensors field
1248 bool SensorStreamingData::write_SixAxisForceTorqueSensors(const yarp::os::idl::WireWriter& writer) const
1249 {
1250  if (!writer.write(SixAxisForceTorqueSensors)) {
1251  return false;
1252  }
1253  return true;
1254 }
1255 
1256 // read (nested) SixAxisForceTorqueSensors field
1257 bool SensorStreamingData::nested_read_SixAxisForceTorqueSensors(yarp::os::idl::WireReader& reader)
1258 {
1259  if (!reader.readNested(SixAxisForceTorqueSensors)) {
1260  reader.fail();
1261  return false;
1262  }
1263  return true;
1264 }
1265 
1266 // write (nested) SixAxisForceTorqueSensors field
1267 bool SensorStreamingData::nested_write_SixAxisForceTorqueSensors(const yarp::os::idl::WireWriter& writer) const
1268 {
1269  if (!writer.writeNested(SixAxisForceTorqueSensors)) {
1270  return false;
1271  }
1272  return true;
1273 }
1274 
1275 // read ContactLoadCellArrays field
1276 bool SensorStreamingData::read_ContactLoadCellArrays(yarp::os::idl::WireReader& reader)
1277 {
1278  if (!reader.read(ContactLoadCellArrays)) {
1279  reader.fail();
1280  return false;
1281  }
1282  return true;
1283 }
1284 
1285 // write ContactLoadCellArrays field
1286 bool SensorStreamingData::write_ContactLoadCellArrays(const yarp::os::idl::WireWriter& writer) const
1287 {
1288  if (!writer.write(ContactLoadCellArrays)) {
1289  return false;
1290  }
1291  return true;
1292 }
1293 
1294 // read (nested) ContactLoadCellArrays field
1295 bool SensorStreamingData::nested_read_ContactLoadCellArrays(yarp::os::idl::WireReader& reader)
1296 {
1297  if (!reader.readNested(ContactLoadCellArrays)) {
1298  reader.fail();
1299  return false;
1300  }
1301  return true;
1302 }
1303 
1304 // write (nested) ContactLoadCellArrays field
1305 bool SensorStreamingData::nested_write_ContactLoadCellArrays(const yarp::os::idl::WireWriter& writer) const
1306 {
1307  if (!writer.writeNested(ContactLoadCellArrays)) {
1308  return false;
1309  }
1310  return true;
1311 }
1312 
1313 // read EncoderArrays field
1314 bool SensorStreamingData::read_EncoderArrays(yarp::os::idl::WireReader& reader)
1315 {
1316  if (!reader.read(EncoderArrays)) {
1317  reader.fail();
1318  return false;
1319  }
1320  return true;
1321 }
1322 
1323 // write EncoderArrays field
1324 bool SensorStreamingData::write_EncoderArrays(const yarp::os::idl::WireWriter& writer) const
1325 {
1326  if (!writer.write(EncoderArrays)) {
1327  return false;
1328  }
1329  return true;
1330 }
1331 
1332 // read (nested) EncoderArrays field
1333 bool SensorStreamingData::nested_read_EncoderArrays(yarp::os::idl::WireReader& reader)
1334 {
1335  if (!reader.readNested(EncoderArrays)) {
1336  reader.fail();
1337  return false;
1338  }
1339  return true;
1340 }
1341 
1342 // write (nested) EncoderArrays field
1343 bool SensorStreamingData::nested_write_EncoderArrays(const yarp::os::idl::WireWriter& writer) const
1344 {
1345  if (!writer.writeNested(EncoderArrays)) {
1346  return false;
1347  }
1348  return true;
1349 }
1350 
1351 // read SkinPatches field
1352 bool SensorStreamingData::read_SkinPatches(yarp::os::idl::WireReader& reader)
1353 {
1354  if (!reader.read(SkinPatches)) {
1355  reader.fail();
1356  return false;
1357  }
1358  return true;
1359 }
1360 
1361 // write SkinPatches field
1362 bool SensorStreamingData::write_SkinPatches(const yarp::os::idl::WireWriter& writer) const
1363 {
1364  if (!writer.write(SkinPatches)) {
1365  return false;
1366  }
1367  return true;
1368 }
1369 
1370 // read (nested) SkinPatches field
1371 bool SensorStreamingData::nested_read_SkinPatches(yarp::os::idl::WireReader& reader)
1372 {
1373  if (!reader.readNested(SkinPatches)) {
1374  reader.fail();
1375  return false;
1376  }
1377  return true;
1378 }
1379 
1380 // write (nested) SkinPatches field
1381 bool SensorStreamingData::nested_write_SkinPatches(const yarp::os::idl::WireWriter& writer) const
1382 {
1383  if (!writer.writeNested(SkinPatches)) {
1384  return false;
1385  }
1386  return true;
1387 }
1388 
1389 // read PositionSensors field
1390 bool SensorStreamingData::read_PositionSensors(yarp::os::idl::WireReader& reader)
1391 {
1392  if (!reader.read(PositionSensors)) {
1393  reader.fail();
1394  return false;
1395  }
1396  return true;
1397 }
1398 
1399 // write PositionSensors field
1400 bool SensorStreamingData::write_PositionSensors(const yarp::os::idl::WireWriter& writer) const
1401 {
1402  if (!writer.write(PositionSensors)) {
1403  return false;
1404  }
1405  return true;
1406 }
1407 
1408 // read (nested) PositionSensors field
1409 bool SensorStreamingData::nested_read_PositionSensors(yarp::os::idl::WireReader& reader)
1410 {
1411  if (!reader.readNested(PositionSensors)) {
1412  reader.fail();
1413  return false;
1414  }
1415  return true;
1416 }
1417 
1418 // write (nested) PositionSensors field
1419 bool SensorStreamingData::nested_write_PositionSensors(const yarp::os::idl::WireWriter& writer) const
1420 {
1421  if (!writer.writeNested(PositionSensors)) {
1422  return false;
1423  }
1424  return true;
1425 }
PositionSensors
@ PositionSensors
Definition: MultipleAnalogSensorsRemapper.h:34
yarp::os::Bottle
A simple collection of objects that can be described and transmitted in a portable way.
Definition: Bottle.h:73
SensorStreamingData::Editor::will_set_PositionSensors
virtual bool will_set_PositionSensors()
Definition: SensorStreamingData.cpp:491
SensorStreamingData::Editor::set_SixAxisForceTorqueSensors
void set_SixAxisForceTorqueSensors(const SensorMeasurements &SixAxisForceTorqueSensors)
Definition: SensorStreamingData.cpp:363
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
SixAxisForceTorqueSensors
@ SixAxisForceTorqueSensors
Definition: MultipleAnalogSensorsRemapper.h:30
SensorStreamingData::Editor::did_set_EncoderArrays
virtual bool did_set_EncoderArrays()
Definition: SensorStreamingData.cpp:441
SensorStreamingData::Editor::get_ContactLoadCellArrays
const SensorMeasurements & get_ContactLoadCellArrays() const
Definition: SensorStreamingData.cpp:401
SensorStreamingData::Editor::will_set_OrientationSensors
virtual bool will_set_OrientationSensors()
Definition: SensorStreamingData.cpp:323
SensorStreamingData::TemperatureSensors
SensorMeasurements TemperatureSensors
Definition: SensorStreamingData.h:30
SensorStreamingData::Editor::will_set_ThreeAxisGyroscopes
virtual bool will_set_ThreeAxisGyroscopes()
Definition: SensorStreamingData.cpp:239
SensorStreamingData::SixAxisForceTorqueSensors
SensorMeasurements SixAxisForceTorqueSensors
Definition: SensorStreamingData.h:31
SensorStreamingData::read
bool read(yarp::os::idl::WireReader &reader) override
Definition: SensorStreamingData.cpp:58
yarp::os::Time::isValid
bool isValid()
Check if time is valid (non-zero).
Definition: Time.cpp:317
SensorStreamingData::Editor::read
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
Definition: SensorStreamingData.cpp:509
SkinPatches
@ SkinPatches
Definition: MultipleAnalogSensorsRemapper.h:33
yarp::os::idl::WireWriter::writeString
bool writeString(const std::string &tag) const
Definition: WireWriter.cpp:166
SensorStreamingData::Editor::set_PositionSensors
void set_PositionSensors(const SensorMeasurements &PositionSensors)
Definition: SensorStreamingData.cpp:475
SensorStreamingData::SensorStreamingData
SensorStreamingData()
Definition: SensorStreamingData.cpp:17
yarp::os::idl::WireWriter::isNull
bool isNull() const
Definition: WireWriter.cpp:50
yarp::os::idl::WireWriter::isError
bool isError() const
Definition: WireWriter.cpp:136
yarp::os::idl::WireWriter::writeListHeader
bool writeListHeader(int len) const
Definition: WireWriter.cpp:183
OrientationSensors
@ OrientationSensors
Definition: MultipleAnalogSensorsRemapper.h:28
SensorStreamingData::Editor::did_set_OrientationSensors
virtual bool did_set_OrientationSensors()
Definition: SensorStreamingData.cpp:329
yarp::os::idl::WireWriter::writeNested
bool writeNested(const WirePortable &obj) const
Definition: WireWriter.cpp:65
yarp::os::idl::WireWriter
IDL-friendly connection writer.
Definition: WireWriter.h:33
SensorStreamingData::Editor::Editor
Editor()
Definition: SensorStreamingData.cpp:158
SensorStreamingData::Editor::did_set_PositionSensors
virtual bool did_set_PositionSensors()
Definition: SensorStreamingData.cpp:497
SensorStreamingData::Editor::get_TemperatureSensors
const SensorMeasurements & get_TemperatureSensors() const
Definition: SensorStreamingData.cpp:345
SensorStreamingData::ThreeAxisGyroscopes
SensorMeasurements ThreeAxisGyroscopes
Definition: SensorStreamingData.h:26
SensorStreamingData::Editor::~Editor
~Editor() override
Definition: SensorStreamingData.cpp:177
SensorStreamingData::Editor::did_set_ThreeAxisLinearAccelerometers
virtual bool did_set_ThreeAxisLinearAccelerometers()
Definition: SensorStreamingData.cpp:273
SensorStreamingData::Editor::will_set_ThreeAxisMagnetometers
virtual bool will_set_ThreeAxisMagnetometers()
Definition: SensorStreamingData.cpp:295
ThreeAxisLinearAccelerometers
@ ThreeAxisLinearAccelerometers
Definition: MultipleAnalogSensorsRemapper.h:26
SensorStreamingData::Editor::will_set_ThreeAxisLinearAccelerometers
virtual bool will_set_ThreeAxisLinearAccelerometers()
Definition: SensorStreamingData.cpp:267
SensorMeasurements
Definition: SensorMeasurements.h:23
SensorStreamingData::Editor::will_set_EncoderArrays
virtual bool will_set_EncoderArrays()
Definition: SensorStreamingData.cpp:435
SensorStreamingData::Editor::get_ThreeAxisLinearAccelerometers
const SensorMeasurements & get_ThreeAxisLinearAccelerometers() const
Definition: SensorStreamingData.cpp:261
SensorStreamingData::Editor::did_set_SkinPatches
virtual bool did_set_SkinPatches()
Definition: SensorStreamingData.cpp:469
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
TemperatureSensors
@ TemperatureSensors
Definition: MultipleAnalogSensorsRemapper.h:29
SensorStreamingData::EncoderArrays
SensorMeasurements EncoderArrays
Definition: SensorStreamingData.h:33
SensorStreamingData::Editor::set_ThreeAxisGyroscopes
void set_ThreeAxisGyroscopes(const SensorMeasurements &ThreeAxisGyroscopes)
Definition: SensorStreamingData.cpp:223
SensorStreamingData::Editor::will_set_ContactLoadCellArrays
virtual bool will_set_ContactLoadCellArrays()
Definition: SensorStreamingData.cpp:407
SensorStreamingData::Editor::get_SkinPatches
const SensorMeasurements & get_SkinPatches() const
Definition: SensorStreamingData.cpp:457
SensorStreamingData::Editor::start_editing
void start_editing()
Definition: SensorStreamingData.cpp:209
SensorStreamingData::ThreeAxisLinearAccelerometers
SensorMeasurements ThreeAxisLinearAccelerometers
Definition: SensorStreamingData.h:27
SensorStreamingData::ContactLoadCellArrays
SensorMeasurements ContactLoadCellArrays
Definition: SensorStreamingData.h:32
SensorStreamingData::Editor::get_PositionSensors
const SensorMeasurements & get_PositionSensors() const
Definition: SensorStreamingData.cpp:485
SensorStreamingData::Editor::did_set_SixAxisForceTorqueSensors
virtual bool did_set_SixAxisForceTorqueSensors()
Definition: SensorStreamingData.cpp:385
SensorStreamingData::Editor::set_TemperatureSensors
void set_TemperatureSensors(const SensorMeasurements &TemperatureSensors)
Definition: SensorStreamingData.cpp:335
SensorStreamingData::Editor::did_set_ContactLoadCellArrays
virtual bool did_set_ContactLoadCellArrays()
Definition: SensorStreamingData.cpp:413
SensorStreamingData::Editor::get_EncoderArrays
const SensorMeasurements & get_EncoderArrays() const
Definition: SensorStreamingData.cpp:429
SensorStreamingData::write
bool write(const yarp::os::idl::WireWriter &writer) const override
Definition: SensorStreamingData.cpp:104
yarp::os::idl::WireWriter::write
bool write(const WirePortable &obj) const
Definition: WireWriter.cpp:55
ContactLoadCellArrays
@ ContactLoadCellArrays
Definition: MultipleAnalogSensorsRemapper.h:31
SensorStreamingData::Editor::stop_editing
void stop_editing()
Definition: SensorStreamingData.cpp:215
yarp::os::idl::WireReader::readNested
bool readNested(WirePortable &obj)
Definition: WireReader.cpp:91
SensorStreamingData::OrientationSensors
SensorMeasurements OrientationSensors
Definition: SensorStreamingData.h:29
SensorStreamingData.h
SensorStreamingData::Editor::did_set_ThreeAxisMagnetometers
virtual bool did_set_ThreeAxisMagnetometers()
Definition: SensorStreamingData.cpp:301
yarp::os::idl::WireReader::read
bool read(WirePortable &obj)
Definition: WireReader.cpp:81
yarp::os::idl::WireWriter::writeTag
bool writeTag(const char *tag, int split, int len) const
Definition: WireWriter.cpp:141
ThreeAxisMagnetometers
@ ThreeAxisMagnetometers
Definition: MultipleAnalogSensorsRemapper.h:27
yarp::os::idl::WireReader
IDL-friendly connection reader.
Definition: WireReader.h:33
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
SensorStreamingData::Editor::set_ContactLoadCellArrays
void set_ContactLoadCellArrays(const SensorMeasurements &ContactLoadCellArrays)
Definition: SensorStreamingData.cpp:391
SensorStreamingData::Editor::isValid
bool isValid() const
Definition: SensorStreamingData.cpp:197
yarp::os::Wire::yarp
yarp::os::WireLink & yarp()
Get YARP state associated with this object.
Definition: Wire.h:34
SensorStreamingData::Editor::state
SensorStreamingData & state()
Definition: SensorStreamingData.cpp:203
yarp::os::idl::WireWriter::writeVocab
bool writeVocab(std::int32_t x) const
Definition: WireWriter.cpp:124
SensorStreamingData::PositionSensors
SensorMeasurements PositionSensors
Definition: SensorStreamingData.h:35
SensorStreamingData::ThreeAxisMagnetometers
SensorMeasurements ThreeAxisMagnetometers
Definition: SensorStreamingData.h:28
SensorStreamingData::Editor::did_set_ThreeAxisGyroscopes
virtual bool did_set_ThreeAxisGyroscopes()
Definition: SensorStreamingData.cpp:245
yarp::os::idl::WireReader::accept
void accept()
Definition: WireReader.cpp:49
SensorStreamingData::Editor::get_SixAxisForceTorqueSensors
const SensorMeasurements & get_SixAxisForceTorqueSensors() const
Definition: SensorStreamingData.cpp:373
SensorStreamingData::Editor::set_SkinPatches
void set_SkinPatches(const SensorMeasurements &SkinPatches)
Definition: SensorStreamingData.cpp:447
SensorStreamingData::toString
std::string toString() const
Definition: SensorStreamingData.cpp:150
SensorStreamingData
Definition: SensorStreamingData.h:23
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
SensorStreamingData::Editor::set_ThreeAxisLinearAccelerometers
void set_ThreeAxisLinearAccelerometers(const SensorMeasurements &ThreeAxisLinearAccelerometers)
Definition: SensorStreamingData.cpp:251
SensorStreamingData::Editor::set_ThreeAxisMagnetometers
void set_ThreeAxisMagnetometers(const SensorMeasurements &ThreeAxisMagnetometers)
Definition: SensorStreamingData.cpp:279
SensorStreamingData::Editor::will_set_SixAxisForceTorqueSensors
virtual bool will_set_SixAxisForceTorqueSensors()
Definition: SensorStreamingData.cpp:379
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
SensorStreamingData::Editor::will_set_SkinPatches
virtual bool will_set_SkinPatches()
Definition: SensorStreamingData.cpp:463
SensorStreamingData::Editor::get_OrientationSensors
const SensorMeasurements & get_OrientationSensors() const
Definition: SensorStreamingData.cpp:317
yarp::os::idl::WireReader::getLength
int getLength() const
Definition: WireReader.h:153
SensorStreamingData::Editor::did_set_TemperatureSensors
virtual bool did_set_TemperatureSensors()
Definition: SensorStreamingData.cpp:357
SensorStreamingData::Editor::edit
bool edit(SensorStreamingData &obj, bool dirty=true)
Definition: SensorStreamingData.cpp:185
SensorStreamingData::Editor::write
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
Definition: SensorStreamingData.cpp:747
EncoderArrays
@ EncoderArrays
Definition: MultipleAnalogSensorsRemapper.h:32
SensorStreamingData::Editor::set_EncoderArrays
void set_EncoderArrays(const SensorMeasurements &EncoderArrays)
Definition: SensorStreamingData.cpp:419
ThreeAxisGyroscopes
@ ThreeAxisGyroscopes
Definition: MultipleAnalogSensorsRemapper.h:25
SensorStreamingData::Editor::get_ThreeAxisGyroscopes
const SensorMeasurements & get_ThreeAxisGyroscopes() const
Definition: SensorStreamingData.cpp:233
SensorStreamingData::Editor::clean
void clean()
Definition: SensorStreamingData.cpp:503
SensorStreamingData::Editor::will_set_TemperatureSensors
virtual bool will_set_TemperatureSensors()
Definition: SensorStreamingData.cpp:351
yarp::os::idl::WireReader::readListHeader
bool readListHeader()
Definition: WireReader.cpp:470
SensorStreamingData::Editor::set_OrientationSensors
void set_OrientationSensors(const SensorMeasurements &OrientationSensors)
Definition: SensorStreamingData.cpp:307
SensorStreamingData::Editor::get_ThreeAxisMagnetometers
const SensorMeasurements & get_ThreeAxisMagnetometers() const
Definition: SensorStreamingData.cpp:289
SensorStreamingData::SkinPatches
SensorMeasurements SkinPatches
Definition: SensorStreamingData.h:34
yarp::os::idl::WireReader::isError
bool isError()
Definition: WireReader.cpp:547