YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FrameTransformStorageSetRPC.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6// Autogenerated by Thrift Compiler (0.14.1-yarped)
7//
8// This is an automatically generated file.
9// It could get re-generated if the ALLOW_IDL_GENERATION flag is on.
10
12
14
15#include <algorithm>
16
17// setTransformsRPC helper class declaration
20{
21public:
23 explicit FrameTransformStorageSetRPC_setTransformsRPC_helper(const std::vector<yarp::math::FrameTransform>& transforms);
24 bool write(yarp::os::ConnectionWriter& connection) const override;
25 bool read(yarp::os::ConnectionReader& connection) override;
26
27 class Command :
29 {
30 public:
31 Command() = default;
32 explicit Command(const std::vector<yarp::math::FrameTransform>& transforms);
33
34 ~Command() override = default;
35
36 bool write(yarp::os::ConnectionWriter& connection) const override;
37 bool read(yarp::os::ConnectionReader& connection) override;
38
39 bool write(const yarp::os::idl::WireWriter& writer) const override;
40 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
41 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
42
43 bool read(yarp::os::idl::WireReader& reader) override;
46
47 std::vector<yarp::math::FrameTransform> transforms{};
48 };
49
50 class Reply :
52 {
53 public:
54 Reply() = default;
55 ~Reply() override = default;
56
57 bool write(yarp::os::ConnectionWriter& connection) const override;
58 bool read(yarp::os::ConnectionReader& connection) override;
59
60 bool write(const yarp::os::idl::WireWriter& writer) const override;
61 bool read(yarp::os::idl::WireReader& reader) override;
62
64 };
65
66 using funcptr_t = yarp::dev::ReturnValue (*)(const std::vector<yarp::math::FrameTransform>&);
68
71
72 static constexpr const char* s_tag{"setTransformsRPC"};
73 static constexpr size_t s_tag_len{1};
74 static constexpr size_t s_cmd_len{2};
75 static constexpr size_t s_reply_len{1};
76 static constexpr const char* s_prototype{"yarp::dev::ReturnValue FrameTransformStorageSetRPC::setTransformsRPC(const std::vector<yarp::math::FrameTransform>& transforms)"};
77 static constexpr const char* s_help{""};
78};
79
80// setTransformRPC helper class declaration
83{
84public:
87 bool write(yarp::os::ConnectionWriter& connection) const override;
88 bool read(yarp::os::ConnectionReader& connection) override;
89
90 class Command :
92 {
93 public:
94 Command() = default;
96
97 ~Command() override = default;
98
99 bool write(yarp::os::ConnectionWriter& connection) const override;
100 bool read(yarp::os::ConnectionReader& connection) override;
101
102 bool write(const yarp::os::idl::WireWriter& writer) const override;
103 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
104 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
105
106 bool read(yarp::os::idl::WireReader& reader) override;
109
111 };
112
113 class Reply :
115 {
116 public:
117 Reply() = default;
118 ~Reply() override = default;
119
120 bool write(yarp::os::ConnectionWriter& connection) const override;
121 bool read(yarp::os::ConnectionReader& connection) override;
122
123 bool write(const yarp::os::idl::WireWriter& writer) const override;
124 bool read(yarp::os::idl::WireReader& reader) override;
125
127 };
128
131
134
135 static constexpr const char* s_tag{"setTransformRPC"};
136 static constexpr size_t s_tag_len{1};
137 static constexpr size_t s_cmd_len{2};
138 static constexpr size_t s_reply_len{1};
139 static constexpr const char* s_prototype{"yarp::dev::ReturnValue FrameTransformStorageSetRPC::setTransformRPC(const yarp::math::FrameTransform& transform)"};
140 static constexpr const char* s_help{""};
141};
142
143// deleteTransformRPC helper class declaration
145 public yarp::os::Portable
146{
147public:
149 FrameTransformStorageSetRPC_deleteTransformRPC_helper(const std::string& src, const std::string& dst);
150 bool write(yarp::os::ConnectionWriter& connection) const override;
151 bool read(yarp::os::ConnectionReader& connection) override;
152
153 class Command :
155 {
156 public:
157 Command() = default;
158 Command(const std::string& src, const std::string& dst);
159
160 ~Command() override = default;
161
162 bool write(yarp::os::ConnectionWriter& connection) const override;
163 bool read(yarp::os::ConnectionReader& connection) override;
164
165 bool write(const yarp::os::idl::WireWriter& writer) const override;
166 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
167 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
168
169 bool read(yarp::os::idl::WireReader& reader) override;
172
173 std::string src{};
174 std::string dst{};
175 };
176
177 class Reply :
179 {
180 public:
181 Reply() = default;
182 ~Reply() override = default;
183
184 bool write(yarp::os::ConnectionWriter& connection) const override;
185 bool read(yarp::os::ConnectionReader& connection) override;
186
187 bool write(const yarp::os::idl::WireWriter& writer) const override;
188 bool read(yarp::os::idl::WireReader& reader) override;
189
191 };
192
193 using funcptr_t = yarp::dev::ReturnValue (*)(const std::string&, const std::string&);
195
198
199 static constexpr const char* s_tag{"deleteTransformRPC"};
200 static constexpr size_t s_tag_len{1};
201 static constexpr size_t s_cmd_len{3};
202 static constexpr size_t s_reply_len{1};
203 static constexpr const char* s_prototype{"yarp::dev::ReturnValue FrameTransformStorageSetRPC::deleteTransformRPC(const std::string& src, const std::string& dst)"};
204 static constexpr const char* s_help{""};
205};
206
207// clearAllRPC helper class declaration
209 public yarp::os::Portable
210{
211public:
213 bool write(yarp::os::ConnectionWriter& connection) const override;
214 bool read(yarp::os::ConnectionReader& connection) override;
215
216 class Command :
218 {
219 public:
220 Command() = default;
221 ~Command() override = default;
222
223 bool write(yarp::os::ConnectionWriter& connection) const override;
224 bool read(yarp::os::ConnectionReader& connection) override;
225
226 bool write(const yarp::os::idl::WireWriter& writer) const override;
227 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
228 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
229
230 bool read(yarp::os::idl::WireReader& reader) override;
233 };
234
235 class Reply :
237 {
238 public:
239 Reply() = default;
240 ~Reply() override = default;
241
242 bool write(yarp::os::ConnectionWriter& connection) const override;
243 bool read(yarp::os::ConnectionReader& connection) override;
244
245 bool write(const yarp::os::idl::WireWriter& writer) const override;
246 bool read(yarp::os::idl::WireReader& reader) override;
247
249 };
250
253
256
257 static constexpr const char* s_tag{"clearAllRPC"};
258 static constexpr size_t s_tag_len{1};
259 static constexpr size_t s_cmd_len{1};
260 static constexpr size_t s_reply_len{1};
261 static constexpr const char* s_prototype{"yarp::dev::ReturnValue FrameTransformStorageSetRPC::clearAllRPC()"};
262 static constexpr const char* s_help{""};
263};
264
265// setTransformsRPC helper class implementation
267 cmd{transforms}
268{
269}
270
275
280
281FrameTransformStorageSetRPC_setTransformsRPC_helper::Command::Command(const std::vector<yarp::math::FrameTransform>& transforms) :
282 transforms{transforms}
283{
284}
285
287{
288 yarp::os::idl::WireWriter writer(connection);
289 if (!writer.writeListHeader(s_cmd_len)) {
290 return false;
291 }
292 return write(writer);
293}
294
296{
297 yarp::os::idl::WireReader reader(connection);
298 if (!reader.readListHeader()) {
299 reader.fail();
300 return false;
301 }
302 return read(reader);
303}
304
306{
307 if (!writeTag(writer)) {
308 return false;
309 }
310 if (!writeArgs(writer)) {
311 return false;
312 }
313 return true;
314}
315
317{
318 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
319 return false;
320 }
321 return true;
322}
323
325{
326 if (!writer.writeListBegin(BOTTLE_TAG_LIST, transforms.size())) {
327 return false;
328 }
329 for (const auto& _item : transforms) {
330 if (!writer.writeNested(_item)) {
331 return false;
332 }
333 }
334 if (!writer.writeListEnd()) {
335 return false;
336 }
337 return true;
338}
339
341{
342 if (!readTag(reader)) {
343 return false;
344 }
345 if (!readArgs(reader)) {
346 return false;
347 }
348 return true;
349}
350
352{
353 std::string tag = reader.readTag(s_tag_len);
354 if (reader.isError()) {
355 return false;
356 }
357 if (tag != s_tag) {
358 reader.fail();
359 return false;
360 }
361 return true;
362}
363
365{
366 if (reader.noMore()) {
367 reader.fail();
368 return false;
369 }
370 size_t _csize;
372 reader.readListBegin(_etype, _csize);
373 // WireReader removes BOTTLE_TAG_LIST from the tag
374 constexpr int expected_tag = ((BOTTLE_TAG_LIST) & (~BOTTLE_TAG_LIST));
375 if constexpr (expected_tag != 0) {
376 if (_csize != 0 && _etype.code != expected_tag) {
377 return false;
378 }
379 }
380 transforms.resize(_csize);
381 for (size_t _i = 0; _i < _csize; ++_i) {
382 if (reader.noMore()) {
383 reader.fail();
384 return false;
385 }
386 if (!reader.readNested(transforms[_i])) {
387 reader.fail();
388 return false;
389 }
390 }
391 reader.readListEnd();
392 if (!reader.noMore()) {
393 reader.fail();
394 return false;
395 }
396 return true;
397}
398
404
410
412{
413 if (!writer.isNull()) {
414 if (!writer.write(return_helper)) {
415 return false;
416 }
417 }
418 return true;
419}
420
422{
423 if (reader.noMore()) {
424 reader.fail();
425 return false;
426 }
427 if (!reader.read(return_helper)) {
428 reader.fail();
429 return false;
430 }
431 return true;
432}
433
438
439// setTransformRPC helper class implementation
444
449
454
459
461{
462 yarp::os::idl::WireWriter writer(connection);
463 if (!writer.writeListHeader(s_cmd_len)) {
464 return false;
465 }
466 return write(writer);
467}
468
470{
471 yarp::os::idl::WireReader reader(connection);
472 if (!reader.readListHeader()) {
473 reader.fail();
474 return false;
475 }
476 return read(reader);
477}
478
480{
481 if (!writeTag(writer)) {
482 return false;
483 }
484 if (!writeArgs(writer)) {
485 return false;
486 }
487 return true;
488}
489
491{
492 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
493 return false;
494 }
495 return true;
496}
497
499{
500 if (!writer.writeNested(transform)) {
501 return false;
502 }
503 return true;
504}
505
507{
508 if (!readTag(reader)) {
509 return false;
510 }
511 if (!readArgs(reader)) {
512 return false;
513 }
514 return true;
515}
516
518{
519 std::string tag = reader.readTag(s_tag_len);
520 if (reader.isError()) {
521 return false;
522 }
523 if (tag != s_tag) {
524 reader.fail();
525 return false;
526 }
527 return true;
528}
529
531{
532 if (reader.noMore()) {
533 reader.fail();
534 return false;
535 }
536 if (!reader.readNested(transform)) {
537 reader.fail();
538 return false;
539 }
540 if (!reader.noMore()) {
541 reader.fail();
542 return false;
543 }
544 return true;
545}
546
552
558
560{
561 if (!writer.isNull()) {
562 if (!writer.write(return_helper)) {
563 return false;
564 }
565 }
566 return true;
567}
568
570{
571 if (reader.noMore()) {
572 reader.fail();
573 return false;
574 }
575 if (!reader.read(return_helper)) {
576 reader.fail();
577 return false;
578 }
579 return true;
580}
581
586
587// deleteTransformRPC helper class implementation
592
597
602
603FrameTransformStorageSetRPC_deleteTransformRPC_helper::Command::Command(const std::string& src, const std::string& dst) :
604 src{src},
605 dst{dst}
606{
607}
608
610{
611 yarp::os::idl::WireWriter writer(connection);
612 if (!writer.writeListHeader(s_cmd_len)) {
613 return false;
614 }
615 return write(writer);
616}
617
619{
620 yarp::os::idl::WireReader reader(connection);
621 if (!reader.readListHeader()) {
622 reader.fail();
623 return false;
624 }
625 return read(reader);
626}
627
629{
630 if (!writeTag(writer)) {
631 return false;
632 }
633 if (!writeArgs(writer)) {
634 return false;
635 }
636 return true;
637}
638
640{
641 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
642 return false;
643 }
644 return true;
645}
646
648{
649 if (!writer.writeString(src)) {
650 return false;
651 }
652 if (!writer.writeString(dst)) {
653 return false;
654 }
655 return true;
656}
657
659{
660 if (!readTag(reader)) {
661 return false;
662 }
663 if (!readArgs(reader)) {
664 return false;
665 }
666 return true;
667}
668
670{
671 std::string tag = reader.readTag(s_tag_len);
672 if (reader.isError()) {
673 return false;
674 }
675 if (tag != s_tag) {
676 reader.fail();
677 return false;
678 }
679 return true;
680}
681
683{
684 if (reader.noMore()) {
685 reader.fail();
686 return false;
687 }
688 if (!reader.readString(src)) {
689 reader.fail();
690 return false;
691 }
692 if (reader.noMore()) {
693 reader.fail();
694 return false;
695 }
696 if (!reader.readString(dst)) {
697 reader.fail();
698 return false;
699 }
700 if (!reader.noMore()) {
701 reader.fail();
702 return false;
703 }
704 return true;
705}
706
712
718
720{
721 if (!writer.isNull()) {
722 if (!writer.write(return_helper)) {
723 return false;
724 }
725 }
726 return true;
727}
728
730{
731 if (reader.noMore()) {
732 reader.fail();
733 return false;
734 }
735 if (!reader.read(return_helper)) {
736 reader.fail();
737 return false;
738 }
739 return true;
740}
741
746
747// clearAllRPC helper class implementation
749{
750 return cmd.write(connection);
751}
752
757
759{
760 yarp::os::idl::WireWriter writer(connection);
761 if (!writer.writeListHeader(s_cmd_len)) {
762 return false;
763 }
764 return write(writer);
765}
766
768{
769 yarp::os::idl::WireReader reader(connection);
770 if (!reader.readListHeader()) {
771 reader.fail();
772 return false;
773 }
774 return read(reader);
775}
776
778{
779 if (!writeTag(writer)) {
780 return false;
781 }
782 if (!writeArgs(writer)) {
783 return false;
784 }
785 return true;
786}
787
789{
790 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
791 return false;
792 }
793 return true;
794}
795
797{
798 return true;
799}
800
802{
803 if (!readTag(reader)) {
804 return false;
805 }
806 if (!readArgs(reader)) {
807 return false;
808 }
809 return true;
810}
811
813{
814 std::string tag = reader.readTag(s_tag_len);
815 if (reader.isError()) {
816 return false;
817 }
818 if (tag != s_tag) {
819 reader.fail();
820 return false;
821 }
822 return true;
823}
824
826{
827 if (!reader.noMore()) {
828 reader.fail();
829 return false;
830 }
831 return true;
832}
833
835{
836 yarp::os::idl::WireWriter writer(connection);
837 return write(writer);
838}
839
845
847{
848 if (!writer.isNull()) {
849 if (!writer.write(return_helper)) {
850 return false;
851 }
852 }
853 return true;
854}
855
857{
858 if (reader.noMore()) {
859 reader.fail();
860 return false;
861 }
862 if (!reader.read(return_helper)) {
863 reader.fail();
864 return false;
865 }
866 return true;
867}
868
873
874// Constructor
879
880yarp::dev::ReturnValue FrameTransformStorageSetRPC::setTransformsRPC(const std::vector<yarp::math::FrameTransform>& transforms)
881{
882 if (!yarp().canWrite()) {
884 }
886 bool ok = yarp().write(helper, helper);
887 return ok ? helper.reply.return_helper : yarp::dev::ReturnValue{};
888}
889
891{
892 if (!yarp().canWrite()) {
894 }
896 bool ok = yarp().write(helper, helper);
897 return ok ? helper.reply.return_helper : yarp::dev::ReturnValue{};
898}
899
900yarp::dev::ReturnValue FrameTransformStorageSetRPC::deleteTransformRPC(const std::string& src, const std::string& dst)
901{
902 if (!yarp().canWrite()) {
904 }
906 bool ok = yarp().write(helper, helper);
907 return ok ? helper.reply.return_helper : yarp::dev::ReturnValue{};
908}
909
911{
912 if (!yarp().canWrite()) {
914 }
916 bool ok = yarp().write(helper, helper);
917 return ok ? helper.reply.return_helper : yarp::dev::ReturnValue{};
918}
919
920// help method
921std::vector<std::string> FrameTransformStorageSetRPC::help(const std::string& functionName)
922{
923 bool showAll = (functionName == "--all");
924 std::vector<std::string> helpString;
925 if (showAll) {
926 helpString.emplace_back("*** Available commands:");
931 helpString.emplace_back("help");
932 } else {
935 }
938 }
941 }
944 }
945 if (functionName == "help") {
946 helpString.emplace_back("std::vector<std::string> help(const std::string& functionName = \"--all\")");
947 helpString.emplace_back("Return list of available commands, or help message for a specific function");
948 helpString.emplace_back("@param functionName name of command for which to get a detailed description. If none or '--all' is provided, print list of available commands");
949 helpString.emplace_back("@return list of strings (one string per line)");
950 }
951 }
952 if (helpString.empty()) {
953 helpString.emplace_back("Command not found");
954 }
955 return helpString;
956}
957
958// read from ConnectionReader
960{
961 constexpr size_t max_tag_len = 1;
962 size_t tag_len = 1;
963
964 yarp::os::idl::WireReader reader(connection);
965 reader.expectAccept();
966 if (!reader.readListHeader()) {
967 reader.fail();
968 return false;
969 }
970
971 std::string tag = reader.readTag(1);
972 bool direct = (tag == "__direct__");
973 if (direct) {
974 tag = reader.readTag(1);
975 }
976 while (tag_len <= max_tag_len && !reader.isError()) {
979 if (!helper.cmd.readArgs(reader)) {
980 return false;
981 }
982
983 helper.call(this);
984
985 yarp::os::idl::WireWriter writer(reader);
986 if (!helper.reply.write(writer)) {
987 return false;
988 }
989 reader.accept();
990 return true;
991 }
994 if (!helper.cmd.readArgs(reader)) {
995 return false;
996 }
997
998 helper.call(this);
999
1000 yarp::os::idl::WireWriter writer(reader);
1001 if (!helper.reply.write(writer)) {
1002 return false;
1003 }
1004 reader.accept();
1005 return true;
1006 }
1009 if (!helper.cmd.readArgs(reader)) {
1010 return false;
1011 }
1012
1013 helper.call(this);
1014
1015 yarp::os::idl::WireWriter writer(reader);
1016 if (!helper.reply.write(writer)) {
1017 return false;
1018 }
1019 reader.accept();
1020 return true;
1021 }
1024 if (!helper.cmd.readArgs(reader)) {
1025 return false;
1026 }
1027
1028 helper.call(this);
1029
1030 yarp::os::idl::WireWriter writer(reader);
1031 if (!helper.reply.write(writer)) {
1032 return false;
1033 }
1034 reader.accept();
1035 return true;
1036 }
1037 if (tag == "help") {
1038 std::string functionName;
1039 if (!reader.readString(functionName)) {
1040 functionName = "--all";
1041 }
1042 auto help_strings = help(functionName);
1043 yarp::os::idl::WireWriter writer(reader);
1044 if (!writer.isNull()) {
1045 if (!writer.writeListHeader(2)) {
1046 return false;
1047 }
1048 if (!writer.writeTag("many", 1, 0)) {
1049 return false;
1050 }
1051 if (!writer.writeListBegin(0, help_strings.size())) {
1052 return false;
1053 }
1054 for (const auto& help_string : help_strings) {
1055 if (!writer.writeString(help_string)) {
1056 return false;
1057 }
1058 }
1059 if (!writer.writeListEnd()) {
1060 return false;
1061 }
1062 }
1063 reader.accept();
1064 return true;
1065 }
1066 if (reader.noMore()) {
1067 reader.fail();
1068 return false;
1069 }
1070 std::string next_tag = reader.readTag(1);
1071 if (next_tag.empty()) {
1072 break;
1073 }
1074 tag.append("_").append(next_tag);
1075 tag_len = std::count(tag.begin(), tag.end(), '_') + 1;
1076 }
1077 return false;
1078}
#define BOTTLE_TAG_LIST
Definition Bottle.h:28
#define yError(...)
Definition Log.h:361
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarp::dev::ReturnValue(*)(const std::string &, const std::string &) funcptr_t
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarp::dev::ReturnValue(*)(const yarp::math::FrameTransform &) funcptr_t
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::dev::ReturnValue(*)(const std::vector< yarp::math::FrameTransform > &) funcptr_t
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual yarp::dev::ReturnValue deleteTransformRPC(const std::string &src, const std::string &dst)
virtual yarp::dev::ReturnValue clearAllRPC()
virtual std::vector< std::string > help(const std::string &functionName="--all")
virtual yarp::dev::ReturnValue setTransformRPC(const yarp::math::FrameTransform &transform)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual yarp::dev::ReturnValue setTransformsRPC(const std::vector< yarp::math::FrameTransform > &transforms)
An interface for reading from a network connection.
An interface for writing to a network connection.
This is a base class for objects that can be both read from and be written to the YARP network.
Definition Portable.h:25
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
IDL-friendly connection reader.
Definition WireReader.h:27
bool readNested(WirePortable &obj)
bool readString(std::string &str, bool *is_vocab=nullptr)
void readListBegin(yarp::os::idl::WireState &nstate, size_t &len)
std::string readTag(size_t len=static_cast< size_t >(-1))
bool read(WirePortable &obj)
IDL-friendly state.
Definition WireState.h:17
IDL-friendly connection writer.
Definition WireWriter.h:28
bool write(const WirePortable &obj) const
bool writeListHeader(int len) const
bool writeTag(const char *tag, int split, int len) const
bool writeString(const std::string &str, bool skip_tag=false) const
bool writeNested(const WirePortable &obj) const
bool writeListBegin(int tag, size_t len) const
The main, catch-all namespace for YARP.
Definition dirs.h:16