YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
INavigation2DMsgs.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
11#include <INavigation2DMsgs.h>
12
14
15#include <algorithm>
16
17// stop_navigation_RPC helper class declaration
20{
21public:
23 bool write(yarp::os::ConnectionWriter& connection) const override;
24 bool read(yarp::os::ConnectionReader& connection) override;
25
26 class Command :
28 {
29 public:
30 Command() = default;
31 ~Command() override = default;
32
33 bool write(yarp::os::ConnectionWriter& connection) const override;
34 bool read(yarp::os::ConnectionReader& connection) override;
35
36 bool write(const yarp::os::idl::WireWriter& writer) const override;
37 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
38 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
39
40 bool read(yarp::os::idl::WireReader& reader) override;
43 };
44
45 class Reply :
47 {
48 public:
49 Reply() = default;
50 ~Reply() override = default;
51
52 bool write(yarp::os::ConnectionWriter& connection) const override;
53 bool read(yarp::os::ConnectionReader& connection) override;
54
55 bool write(const yarp::os::idl::WireWriter& writer) const override;
56 bool read(yarp::os::idl::WireReader& reader) override;
57
58 bool return_helper{false};
59 };
60
61 using funcptr_t = bool (*)();
62 void call(INavigation2DMsgs* ptr);
63
66
67 static constexpr const char* s_tag{"stop_navigation_RPC"};
68 static constexpr size_t s_tag_len{3};
69 static constexpr size_t s_cmd_len{3};
70 static constexpr size_t s_reply_len{1};
71 static constexpr const char* s_prototype{"bool INavigation2DMsgs::stop_navigation_RPC()"};
72 static constexpr const char* s_help{""};
73};
74
75// resume_navigation_RPC helper class declaration
78{
79public:
81 bool write(yarp::os::ConnectionWriter& connection) const override;
82 bool read(yarp::os::ConnectionReader& connection) override;
83
84 class Command :
86 {
87 public:
88 Command() = default;
89 ~Command() override = default;
90
91 bool write(yarp::os::ConnectionWriter& connection) const override;
92 bool read(yarp::os::ConnectionReader& connection) override;
93
94 bool write(const yarp::os::idl::WireWriter& writer) const override;
95 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
96 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
97
98 bool read(yarp::os::idl::WireReader& reader) override;
101 };
102
103 class Reply :
105 {
106 public:
107 Reply() = default;
108 ~Reply() override = default;
109
110 bool write(yarp::os::ConnectionWriter& connection) const override;
111 bool read(yarp::os::ConnectionReader& connection) override;
112
113 bool write(const yarp::os::idl::WireWriter& writer) const override;
114 bool read(yarp::os::idl::WireReader& reader) override;
115
116 bool return_helper{false};
117 };
118
119 using funcptr_t = bool (*)();
120 void call(INavigation2DMsgs* ptr);
121
124
125 static constexpr const char* s_tag{"resume_navigation_RPC"};
126 static constexpr size_t s_tag_len{3};
127 static constexpr size_t s_cmd_len{3};
128 static constexpr size_t s_reply_len{1};
129 static constexpr const char* s_prototype{"bool INavigation2DMsgs::resume_navigation_RPC()"};
130 static constexpr const char* s_help{""};
131};
132
133// suspend_navigation_RPC helper class declaration
135 public yarp::os::Portable
136{
137public:
139 explicit INavigation2DMsgs_suspend_navigation_RPC_helper(const double time_s);
140 bool write(yarp::os::ConnectionWriter& connection) const override;
141 bool read(yarp::os::ConnectionReader& connection) override;
142
143 class Command :
145 {
146 public:
147 Command() = default;
148 explicit Command(const double time_s);
149
150 ~Command() override = default;
151
152 bool write(yarp::os::ConnectionWriter& connection) const override;
153 bool read(yarp::os::ConnectionReader& connection) override;
154
155 bool write(const yarp::os::idl::WireWriter& writer) const override;
156 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
157 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
158
159 bool read(yarp::os::idl::WireReader& reader) override;
162
163 double time_s{0.0};
164 };
165
166 class Reply :
168 {
169 public:
170 Reply() = default;
171 ~Reply() override = default;
172
173 bool write(yarp::os::ConnectionWriter& connection) const override;
174 bool read(yarp::os::ConnectionReader& connection) override;
175
176 bool write(const yarp::os::idl::WireWriter& writer) const override;
177 bool read(yarp::os::idl::WireReader& reader) override;
178
179 bool return_helper{false};
180 };
181
182 using funcptr_t = bool (*)(const double);
183 void call(INavigation2DMsgs* ptr);
184
187
188 static constexpr const char* s_tag{"suspend_navigation_RPC"};
189 static constexpr size_t s_tag_len{3};
190 static constexpr size_t s_cmd_len{4};
191 static constexpr size_t s_reply_len{1};
192 static constexpr const char* s_prototype{"bool INavigation2DMsgs::suspend_navigation_RPC(const double time_s)"};
193 static constexpr const char* s_help{""};
194};
195
196// recompute_current_navigation_path_RPC helper class declaration
198 public yarp::os::Portable
199{
200public:
202 bool write(yarp::os::ConnectionWriter& connection) const override;
203 bool read(yarp::os::ConnectionReader& connection) override;
204
205 class Command :
207 {
208 public:
209 Command() = default;
210 ~Command() override = default;
211
212 bool write(yarp::os::ConnectionWriter& connection) const override;
213 bool read(yarp::os::ConnectionReader& connection) override;
214
215 bool write(const yarp::os::idl::WireWriter& writer) const override;
216 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
217 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
218
219 bool read(yarp::os::idl::WireReader& reader) override;
222 };
223
224 class Reply :
226 {
227 public:
228 Reply() = default;
229 ~Reply() override = default;
230
231 bool write(yarp::os::ConnectionWriter& connection) const override;
232 bool read(yarp::os::ConnectionReader& connection) override;
233
234 bool write(const yarp::os::idl::WireWriter& writer) const override;
235 bool read(yarp::os::idl::WireReader& reader) override;
236
237 bool return_helper{false};
238 };
239
240 using funcptr_t = bool (*)();
241 void call(INavigation2DMsgs* ptr);
242
245
246 static constexpr const char* s_tag{"recompute_current_navigation_path_RPC"};
247 static constexpr size_t s_tag_len{5};
248 static constexpr size_t s_cmd_len{5};
249 static constexpr size_t s_reply_len{1};
250 static constexpr const char* s_prototype{"bool INavigation2DMsgs::recompute_current_navigation_path_RPC()"};
251 static constexpr const char* s_help{""};
252};
253
254// get_navigation_status_RPC helper class declaration
256 public yarp::os::Portable
257{
258public:
260 bool write(yarp::os::ConnectionWriter& connection) const override;
261 bool read(yarp::os::ConnectionReader& connection) override;
262
263 class Command :
265 {
266 public:
267 Command() = default;
268 ~Command() override = default;
269
270 bool write(yarp::os::ConnectionWriter& connection) const override;
271 bool read(yarp::os::ConnectionReader& connection) override;
272
273 bool write(const yarp::os::idl::WireWriter& writer) const override;
274 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
275 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
276
277 bool read(yarp::os::idl::WireReader& reader) override;
280 };
281
282 class Reply :
284 {
285 public:
286 Reply() = default;
287 ~Reply() override = default;
288
289 bool write(yarp::os::ConnectionWriter& connection) const override;
290 bool read(yarp::os::ConnectionReader& connection) override;
291
292 bool write(const yarp::os::idl::WireWriter& writer) const override;
293 bool read(yarp::os::idl::WireReader& reader) override;
294
296 };
297
299 void call(INavigation2DMsgs* ptr);
300
303
304 static constexpr const char* s_tag{"get_navigation_status_RPC"};
305 static constexpr size_t s_tag_len{4};
306 static constexpr size_t s_cmd_len{4};
307 static constexpr size_t s_reply_len{2};
308 static constexpr const char* s_prototype{"return_get_navigation_status INavigation2DMsgs::get_navigation_status_RPC()"};
309 static constexpr const char* s_help{""};
310};
311
312// get_current_nav_waypoint_RPC helper class declaration
314 public yarp::os::Portable
315{
316public:
318 bool write(yarp::os::ConnectionWriter& connection) const override;
319 bool read(yarp::os::ConnectionReader& connection) override;
320
321 class Command :
323 {
324 public:
325 Command() = default;
326 ~Command() override = default;
327
328 bool write(yarp::os::ConnectionWriter& connection) const override;
329 bool read(yarp::os::ConnectionReader& connection) override;
330
331 bool write(const yarp::os::idl::WireWriter& writer) const override;
332 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
333 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
334
335 bool read(yarp::os::idl::WireReader& reader) override;
338 };
339
340 class Reply :
342 {
343 public:
344 Reply() = default;
345 ~Reply() override = default;
346
347 bool write(yarp::os::ConnectionWriter& connection) const override;
348 bool read(yarp::os::ConnectionReader& connection) override;
349
350 bool write(const yarp::os::idl::WireWriter& writer) const override;
351 bool read(yarp::os::idl::WireReader& reader) override;
352
354 };
355
357 void call(INavigation2DMsgs* ptr);
358
361
362 static constexpr const char* s_tag{"get_current_nav_waypoint_RPC"};
363 static constexpr size_t s_tag_len{5};
364 static constexpr size_t s_cmd_len{5};
365 static constexpr size_t s_reply_len{2};
366 static constexpr const char* s_prototype{"return_get_current_nav_waypoint INavigation2DMsgs::get_current_nav_waypoint_RPC()"};
367 static constexpr const char* s_help{""};
368};
369
370// get_all_navigation_waypoints_RPC helper class declaration
372 public yarp::os::Portable
373{
374public:
377 bool write(yarp::os::ConnectionWriter& connection) const override;
378 bool read(yarp::os::ConnectionReader& connection) override;
379
380 class Command :
382 {
383 public:
384 Command() = default;
386
387 ~Command() override = default;
388
389 bool write(yarp::os::ConnectionWriter& connection) const override;
390 bool read(yarp::os::ConnectionReader& connection) override;
391
392 bool write(const yarp::os::idl::WireWriter& writer) const override;
393 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
394 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
395
396 bool read(yarp::os::idl::WireReader& reader) override;
399
401 };
402
403 class Reply :
405 {
406 public:
407 Reply() = default;
408 ~Reply() override = default;
409
410 bool write(yarp::os::ConnectionWriter& connection) const override;
411 bool read(yarp::os::ConnectionReader& connection) override;
412
413 bool write(const yarp::os::idl::WireWriter& writer) const override;
414 bool read(yarp::os::idl::WireReader& reader) override;
415
417 };
418
420 void call(INavigation2DMsgs* ptr);
421
424
425 static constexpr const char* s_tag{"get_all_navigation_waypoints_RPC"};
426 static constexpr size_t s_tag_len{5};
427 static constexpr size_t s_cmd_len{6};
428 static constexpr size_t s_reply_len{2};
429 static constexpr const char* s_prototype{"return_get_all_nav_waypoints INavigation2DMsgs::get_all_navigation_waypoints_RPC(const yarp::dev::Nav2D::TrajectoryTypeEnum trajectory_type)"};
430 static constexpr const char* s_help{""};
431};
432
433// get_current_navigation_map_RPC helper class declaration
435 public yarp::os::Portable
436{
437public:
440 bool write(yarp::os::ConnectionWriter& connection) const override;
441 bool read(yarp::os::ConnectionReader& connection) override;
442
443 class Command :
445 {
446 public:
447 Command() = default;
449
450 ~Command() override = default;
451
452 bool write(yarp::os::ConnectionWriter& connection) const override;
453 bool read(yarp::os::ConnectionReader& connection) override;
454
455 bool write(const yarp::os::idl::WireWriter& writer) const override;
456 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
457 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
458
459 bool read(yarp::os::idl::WireReader& reader) override;
462
464 };
465
466 class Reply :
468 {
469 public:
470 Reply() = default;
471 ~Reply() override = default;
472
473 bool write(yarp::os::ConnectionWriter& connection) const override;
474 bool read(yarp::os::ConnectionReader& connection) override;
475
476 bool write(const yarp::os::idl::WireWriter& writer) const override;
477 bool read(yarp::os::idl::WireReader& reader) override;
478
480 };
481
483 void call(INavigation2DMsgs* ptr);
484
487
488 static constexpr const char* s_tag{"get_current_navigation_map_RPC"};
489 static constexpr size_t s_tag_len{5};
490 static constexpr size_t s_cmd_len{6};
491 static constexpr size_t s_reply_len{2};
492 static constexpr const char* s_prototype{"return_get_current_nav_map INavigation2DMsgs::get_current_navigation_map_RPC(const yarp::dev::Nav2D::NavigationMapTypeEnum map_type)"};
493 static constexpr const char* s_help{""};
494};
495
496// goto_target_by_absolute_location_RPC helper class declaration
498 public yarp::os::Portable
499{
500public:
503 bool write(yarp::os::ConnectionWriter& connection) const override;
504 bool read(yarp::os::ConnectionReader& connection) override;
505
506 class Command :
508 {
509 public:
510 Command() = default;
512
513 ~Command() override = default;
514
515 bool write(yarp::os::ConnectionWriter& connection) const override;
516 bool read(yarp::os::ConnectionReader& connection) override;
517
518 bool write(const yarp::os::idl::WireWriter& writer) const override;
519 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
520 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
521
522 bool read(yarp::os::idl::WireReader& reader) override;
525
527 };
528
529 class Reply :
531 {
532 public:
533 Reply() = default;
534 ~Reply() override = default;
535
536 bool write(yarp::os::ConnectionWriter& connection) const override;
537 bool read(yarp::os::ConnectionReader& connection) override;
538
539 bool write(const yarp::os::idl::WireWriter& writer) const override;
540 bool read(yarp::os::idl::WireReader& reader) override;
541
542 bool return_helper{false};
543 };
544
546 void call(INavigation2DMsgs* ptr);
547
550
551 static constexpr const char* s_tag{"goto_target_by_absolute_location_RPC"};
552 static constexpr size_t s_tag_len{6};
553 static constexpr size_t s_cmd_len{7};
554 static constexpr size_t s_reply_len{1};
555 static constexpr const char* s_prototype{"bool INavigation2DMsgs::goto_target_by_absolute_location_RPC(const yarp::dev::Nav2D::Map2DLocation& loc)"};
556 static constexpr const char* s_help{""};
557};
558
559// follow_path_RPC helper class declaration
561 public yarp::os::Portable
562{
563public:
566 bool write(yarp::os::ConnectionWriter& connection) const override;
567 bool read(yarp::os::ConnectionReader& connection) override;
568
569 class Command :
571 {
572 public:
573 Command() = default;
575
576 ~Command() override = default;
577
578 bool write(yarp::os::ConnectionWriter& connection) const override;
579 bool read(yarp::os::ConnectionReader& connection) override;
580
581 bool write(const yarp::os::idl::WireWriter& writer) const override;
582 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
583 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
584
585 bool read(yarp::os::idl::WireReader& reader) override;
588
590 };
591
592 class Reply :
594 {
595 public:
596 Reply() = default;
597 ~Reply() override = default;
598
599 bool write(yarp::os::ConnectionWriter& connection) const override;
600 bool read(yarp::os::ConnectionReader& connection) override;
601
602 bool write(const yarp::os::idl::WireWriter& writer) const override;
603 bool read(yarp::os::idl::WireReader& reader) override;
604
605 bool return_helper{false};
606 };
607
608 using funcptr_t = bool (*)(const yarp::dev::Nav2D::Map2DPath&);
609 void call(INavigation2DMsgs* ptr);
610
613
614 static constexpr const char* s_tag{"follow_path_RPC"};
615 static constexpr size_t s_tag_len{3};
616 static constexpr size_t s_cmd_len{4};
617 static constexpr size_t s_reply_len{1};
618 static constexpr const char* s_prototype{"bool INavigation2DMsgs::follow_path_RPC(const yarp::dev::Nav2D::Map2DPath& path)"};
619 static constexpr const char* s_help{""};
620};
621
622// goto_target_by_relative_location1_RPC helper class declaration
624 public yarp::os::Portable
625{
626public:
629 bool write(yarp::os::ConnectionWriter& connection) const override;
630 bool read(yarp::os::ConnectionReader& connection) override;
631
632 class Command :
634 {
635 public:
636 Command() = default;
637 Command(const double x, const double y);
638
639 ~Command() override = default;
640
641 bool write(yarp::os::ConnectionWriter& connection) const override;
642 bool read(yarp::os::ConnectionReader& connection) override;
643
644 bool write(const yarp::os::idl::WireWriter& writer) const override;
645 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
646 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
647
648 bool read(yarp::os::idl::WireReader& reader) override;
651
652 double x{0.0};
653 double y{0.0};
654 };
655
656 class Reply :
658 {
659 public:
660 Reply() = default;
661 ~Reply() override = default;
662
663 bool write(yarp::os::ConnectionWriter& connection) const override;
664 bool read(yarp::os::ConnectionReader& connection) override;
665
666 bool write(const yarp::os::idl::WireWriter& writer) const override;
667 bool read(yarp::os::idl::WireReader& reader) override;
668
669 bool return_helper{false};
670 };
671
672 using funcptr_t = bool (*)(const double, const double);
673 void call(INavigation2DMsgs* ptr);
674
677
678 static constexpr const char* s_tag{"goto_target_by_relative_location1_RPC"};
679 static constexpr size_t s_tag_len{6};
680 static constexpr size_t s_cmd_len{8};
681 static constexpr size_t s_reply_len{1};
682 static constexpr const char* s_prototype{"bool INavigation2DMsgs::goto_target_by_relative_location1_RPC(const double x, const double y)"};
683 static constexpr const char* s_help{""};
684};
685
686// goto_target_by_relative_location2_RPC helper class declaration
688 public yarp::os::Portable
689{
690public:
692 INavigation2DMsgs_goto_target_by_relative_location2_RPC_helper(const double x, const double y, const double theta);
693 bool write(yarp::os::ConnectionWriter& connection) const override;
694 bool read(yarp::os::ConnectionReader& connection) override;
695
696 class Command :
698 {
699 public:
700 Command() = default;
701 Command(const double x, const double y, const double theta);
702
703 ~Command() override = default;
704
705 bool write(yarp::os::ConnectionWriter& connection) const override;
706 bool read(yarp::os::ConnectionReader& connection) override;
707
708 bool write(const yarp::os::idl::WireWriter& writer) const override;
709 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
710 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
711
712 bool read(yarp::os::idl::WireReader& reader) override;
715
716 double x{0.0};
717 double y{0.0};
718 double theta{0.0};
719 };
720
721 class Reply :
723 {
724 public:
725 Reply() = default;
726 ~Reply() override = default;
727
728 bool write(yarp::os::ConnectionWriter& connection) const override;
729 bool read(yarp::os::ConnectionReader& connection) override;
730
731 bool write(const yarp::os::idl::WireWriter& writer) const override;
732 bool read(yarp::os::idl::WireReader& reader) override;
733
734 bool return_helper{false};
735 };
736
737 using funcptr_t = bool (*)(const double, const double, const double);
738 void call(INavigation2DMsgs* ptr);
739
742
743 static constexpr const char* s_tag{"goto_target_by_relative_location2_RPC"};
744 static constexpr size_t s_tag_len{6};
745 static constexpr size_t s_cmd_len{9};
746 static constexpr size_t s_reply_len{1};
747 static constexpr const char* s_prototype{"bool INavigation2DMsgs::goto_target_by_relative_location2_RPC(const double x, const double y, const double theta)"};
748 static constexpr const char* s_help{""};
749};
750
751// get_absolute_location_of_current_target_RPC helper class declaration
753 public yarp::os::Portable
754{
755public:
757 bool write(yarp::os::ConnectionWriter& connection) const override;
758 bool read(yarp::os::ConnectionReader& connection) override;
759
760 class Command :
762 {
763 public:
764 Command() = default;
765 ~Command() override = default;
766
767 bool write(yarp::os::ConnectionWriter& connection) const override;
768 bool read(yarp::os::ConnectionReader& connection) override;
769
770 bool write(const yarp::os::idl::WireWriter& writer) const override;
771 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
772 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
773
774 bool read(yarp::os::idl::WireReader& reader) override;
777 };
778
779 class Reply :
781 {
782 public:
783 Reply() = default;
784 ~Reply() override = default;
785
786 bool write(yarp::os::ConnectionWriter& connection) const override;
787 bool read(yarp::os::ConnectionReader& connection) override;
788
789 bool write(const yarp::os::idl::WireWriter& writer) const override;
790 bool read(yarp::os::idl::WireReader& reader) override;
791
793 };
794
796 void call(INavigation2DMsgs* ptr);
797
800
801 static constexpr const char* s_tag{"get_absolute_location_of_current_target_RPC"};
802 static constexpr size_t s_tag_len{7};
803 static constexpr size_t s_cmd_len{7};
804 static constexpr size_t s_reply_len{2};
805 static constexpr const char* s_prototype{"return_get_abs_loc_of_curr_target INavigation2DMsgs::get_absolute_location_of_current_target_RPC()"};
806 static constexpr const char* s_help{""};
807};
808
809// get_relative_location_of_current_target_RPC helper class declaration
811 public yarp::os::Portable
812{
813public:
815 bool write(yarp::os::ConnectionWriter& connection) const override;
816 bool read(yarp::os::ConnectionReader& connection) override;
817
818 class Command :
820 {
821 public:
822 Command() = default;
823 ~Command() override = default;
824
825 bool write(yarp::os::ConnectionWriter& connection) const override;
826 bool read(yarp::os::ConnectionReader& connection) override;
827
828 bool write(const yarp::os::idl::WireWriter& writer) const override;
829 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
830 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
831
832 bool read(yarp::os::idl::WireReader& reader) override;
835 };
836
837 class Reply :
839 {
840 public:
841 Reply() = default;
842 ~Reply() override = default;
843
844 bool write(yarp::os::ConnectionWriter& connection) const override;
845 bool read(yarp::os::ConnectionReader& connection) override;
846
847 bool write(const yarp::os::idl::WireWriter& writer) const override;
848 bool read(yarp::os::idl::WireReader& reader) override;
849
851 };
852
854 void call(INavigation2DMsgs* ptr);
855
858
859 static constexpr const char* s_tag{"get_relative_location_of_current_target_RPC"};
860 static constexpr size_t s_tag_len{7};
861 static constexpr size_t s_cmd_len{7};
862 static constexpr size_t s_reply_len{4};
863 static constexpr const char* s_prototype{"return_get_rel_loc_of_curr_target INavigation2DMsgs::get_relative_location_of_current_target_RPC()"};
864 static constexpr const char* s_help{""};
865};
866
867// goto_target_by_absolute_location_and_set_name_RPC helper class declaration
869 public yarp::os::Portable
870{
871public:
874 bool write(yarp::os::ConnectionWriter& connection) const override;
875 bool read(yarp::os::ConnectionReader& connection) override;
876
877 class Command :
879 {
880 public:
881 Command() = default;
882 Command(const yarp::dev::Nav2D::Map2DLocation& loc, const std::string& name);
883
884 ~Command() override = default;
885
886 bool write(yarp::os::ConnectionWriter& connection) const override;
887 bool read(yarp::os::ConnectionReader& connection) override;
888
889 bool write(const yarp::os::idl::WireWriter& writer) const override;
890 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
891 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
892
893 bool read(yarp::os::idl::WireReader& reader) override;
896
898 std::string name{};
899 };
900
901 class Reply :
903 {
904 public:
905 Reply() = default;
906 ~Reply() override = default;
907
908 bool write(yarp::os::ConnectionWriter& connection) const override;
909 bool read(yarp::os::ConnectionReader& connection) override;
910
911 bool write(const yarp::os::idl::WireWriter& writer) const override;
912 bool read(yarp::os::idl::WireReader& reader) override;
913
914 bool return_helper{false};
915 };
916
917 using funcptr_t = bool (*)(const yarp::dev::Nav2D::Map2DLocation&, const std::string&);
918 void call(INavigation2DMsgs* ptr);
919
922
923 static constexpr const char* s_tag{"goto_target_by_absolute_location_and_set_name_RPC"};
924 static constexpr size_t s_tag_len{9};
925 static constexpr size_t s_cmd_len{11};
926 static constexpr size_t s_reply_len{1};
927 static constexpr const char* s_prototype{"bool INavigation2DMsgs::goto_target_by_absolute_location_and_set_name_RPC(const yarp::dev::Nav2D::Map2DLocation& loc, const std::string& name)"};
928 static constexpr const char* s_help{""};
929};
930
931// apply_velocity_command_RPC helper class declaration
933 public yarp::os::Portable
934{
935public:
937 INavigation2DMsgs_apply_velocity_command_RPC_helper(const double x_vel, const double y_vel, const double theta_vel, const double timeout);
938 bool write(yarp::os::ConnectionWriter& connection) const override;
939 bool read(yarp::os::ConnectionReader& connection) override;
940
941 class Command :
943 {
944 public:
945 Command() = default;
946 Command(const double x_vel, const double y_vel, const double theta_vel, const double timeout);
947
948 ~Command() override = default;
949
950 bool write(yarp::os::ConnectionWriter& connection) const override;
951 bool read(yarp::os::ConnectionReader& connection) override;
952
953 bool write(const yarp::os::idl::WireWriter& writer) const override;
954 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
955 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
956
957 bool read(yarp::os::idl::WireReader& reader) override;
960
961 double x_vel{0.0};
962 double y_vel{0.0};
963 double theta_vel{0.0};
964 double timeout{0.0};
965 };
966
967 class Reply :
969 {
970 public:
971 Reply() = default;
972 ~Reply() override = default;
973
974 bool write(yarp::os::ConnectionWriter& connection) const override;
975 bool read(yarp::os::ConnectionReader& connection) override;
976
977 bool write(const yarp::os::idl::WireWriter& writer) const override;
978 bool read(yarp::os::idl::WireReader& reader) override;
979
980 bool return_helper{false};
981 };
982
983 using funcptr_t = bool (*)(const double, const double, const double, const double);
984 void call(INavigation2DMsgs* ptr);
985
988
989 static constexpr const char* s_tag{"apply_velocity_command_RPC"};
990 static constexpr size_t s_tag_len{4};
991 static constexpr size_t s_cmd_len{8};
992 static constexpr size_t s_reply_len{1};
993 static constexpr const char* s_prototype{"bool INavigation2DMsgs::apply_velocity_command_RPC(const double x_vel, const double y_vel, const double theta_vel, const double timeout)"};
994 static constexpr const char* s_help{""};
995};
996
997// get_last_velocity_command_RPC helper class declaration
999 public yarp::os::Portable
1000{
1001public:
1003 bool write(yarp::os::ConnectionWriter& connection) const override;
1004 bool read(yarp::os::ConnectionReader& connection) override;
1005
1006 class Command :
1008 {
1009 public:
1010 Command() = default;
1011 ~Command() override = default;
1012
1013 bool write(yarp::os::ConnectionWriter& connection) const override;
1014 bool read(yarp::os::ConnectionReader& connection) override;
1015
1016 bool write(const yarp::os::idl::WireWriter& writer) const override;
1017 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
1018 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
1019
1020 bool read(yarp::os::idl::WireReader& reader) override;
1021 bool readTag(yarp::os::idl::WireReader& reader);
1022 bool readArgs(yarp::os::idl::WireReader& reader);
1023 };
1024
1025 class Reply :
1027 {
1028 public:
1029 Reply() = default;
1030 ~Reply() override = default;
1031
1032 bool write(yarp::os::ConnectionWriter& connection) const override;
1033 bool read(yarp::os::ConnectionReader& connection) override;
1034
1035 bool write(const yarp::os::idl::WireWriter& writer) const override;
1036 bool read(yarp::os::idl::WireReader& reader) override;
1037
1039 };
1040
1042 void call(INavigation2DMsgs* ptr);
1043
1046
1047 static constexpr const char* s_tag{"get_last_velocity_command_RPC"};
1048 static constexpr size_t s_tag_len{5};
1049 static constexpr size_t s_cmd_len{5};
1050 static constexpr size_t s_reply_len{4};
1051 static constexpr const char* s_prototype{"return_get_last_velocity_command INavigation2DMsgs::get_last_velocity_command_RPC()"};
1052 static constexpr const char* s_help{""};
1053};
1054
1055// get_name_of_current_target_RPC helper class declaration
1057 public yarp::os::Portable
1058{
1059public:
1061 bool write(yarp::os::ConnectionWriter& connection) const override;
1062 bool read(yarp::os::ConnectionReader& connection) override;
1063
1064 class Command :
1066 {
1067 public:
1068 Command() = default;
1069 ~Command() override = default;
1070
1071 bool write(yarp::os::ConnectionWriter& connection) const override;
1072 bool read(yarp::os::ConnectionReader& connection) override;
1073
1074 bool write(const yarp::os::idl::WireWriter& writer) const override;
1075 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
1076 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
1077
1078 bool read(yarp::os::idl::WireReader& reader) override;
1079 bool readTag(yarp::os::idl::WireReader& reader);
1080 bool readArgs(yarp::os::idl::WireReader& reader);
1081 };
1082
1083 class Reply :
1085 {
1086 public:
1087 Reply() = default;
1088 ~Reply() override = default;
1089
1090 bool write(yarp::os::ConnectionWriter& connection) const override;
1091 bool read(yarp::os::ConnectionReader& connection) override;
1092
1093 bool write(const yarp::os::idl::WireWriter& writer) const override;
1094 bool read(yarp::os::idl::WireReader& reader) override;
1095
1097 };
1098
1100 void call(INavigation2DMsgs* ptr);
1101
1104
1105 static constexpr const char* s_tag{"get_name_of_current_target_RPC"};
1106 static constexpr size_t s_tag_len{6};
1107 static constexpr size_t s_cmd_len{6};
1108 static constexpr size_t s_reply_len{2};
1109 static constexpr const char* s_prototype{"return_get_name_of_current_target INavigation2DMsgs::get_name_of_current_target_RPC()"};
1110 static constexpr const char* s_help{""};
1111};
1112
1113// stop_navigation_RPC helper class implementation
1115{
1116 return cmd.write(connection);
1117}
1118
1123
1125{
1126 yarp::os::idl::WireWriter writer(connection);
1127 if (!writer.writeListHeader(s_cmd_len)) {
1128 return false;
1129 }
1130 return write(writer);
1131}
1132
1134{
1135 yarp::os::idl::WireReader reader(connection);
1136 if (!reader.readListHeader()) {
1137 reader.fail();
1138 return false;
1139 }
1140 return read(reader);
1141}
1142
1144{
1145 if (!writeTag(writer)) {
1146 return false;
1147 }
1148 if (!writeArgs(writer)) {
1149 return false;
1150 }
1151 return true;
1152}
1153
1155{
1156 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
1157 return false;
1158 }
1159 return true;
1160}
1161
1163{
1164 return true;
1165}
1166
1168{
1169 if (!readTag(reader)) {
1170 return false;
1171 }
1172 if (!readArgs(reader)) {
1173 return false;
1174 }
1175 return true;
1176}
1177
1179{
1180 std::string tag = reader.readTag(s_tag_len);
1181 if (reader.isError()) {
1182 return false;
1183 }
1184 if (tag != s_tag) {
1185 reader.fail();
1186 return false;
1187 }
1188 return true;
1189}
1190
1192{
1193 if (!reader.noMore()) {
1194 reader.fail();
1195 return false;
1196 }
1197 return true;
1198}
1199
1201{
1202 yarp::os::idl::WireWriter writer(connection);
1203 return write(writer);
1204}
1205
1207{
1208 yarp::os::idl::WireReader reader(connection);
1209 return read(reader);
1210}
1211
1213{
1214 if (!writer.isNull()) {
1215 if (!writer.writeListHeader(s_reply_len)) {
1216 return false;
1217 }
1218 if (!writer.writeBool(return_helper)) {
1219 return false;
1220 }
1221 }
1222 return true;
1223}
1224
1226{
1227 if (!reader.readListReturn()) {
1228 return false;
1229 }
1230 if (reader.noMore()) {
1231 reader.fail();
1232 return false;
1233 }
1234 if (!reader.readBool(return_helper)) {
1235 reader.fail();
1236 return false;
1237 }
1238 return true;
1239}
1240
1245
1246// resume_navigation_RPC helper class implementation
1248{
1249 return cmd.write(connection);
1250}
1251
1256
1258{
1259 yarp::os::idl::WireWriter writer(connection);
1260 if (!writer.writeListHeader(s_cmd_len)) {
1261 return false;
1262 }
1263 return write(writer);
1264}
1265
1267{
1268 yarp::os::idl::WireReader reader(connection);
1269 if (!reader.readListHeader()) {
1270 reader.fail();
1271 return false;
1272 }
1273 return read(reader);
1274}
1275
1277{
1278 if (!writeTag(writer)) {
1279 return false;
1280 }
1281 if (!writeArgs(writer)) {
1282 return false;
1283 }
1284 return true;
1285}
1286
1288{
1289 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
1290 return false;
1291 }
1292 return true;
1293}
1294
1296{
1297 return true;
1298}
1299
1301{
1302 if (!readTag(reader)) {
1303 return false;
1304 }
1305 if (!readArgs(reader)) {
1306 return false;
1307 }
1308 return true;
1309}
1310
1312{
1313 std::string tag = reader.readTag(s_tag_len);
1314 if (reader.isError()) {
1315 return false;
1316 }
1317 if (tag != s_tag) {
1318 reader.fail();
1319 return false;
1320 }
1321 return true;
1322}
1323
1325{
1326 if (!reader.noMore()) {
1327 reader.fail();
1328 return false;
1329 }
1330 return true;
1331}
1332
1334{
1335 yarp::os::idl::WireWriter writer(connection);
1336 return write(writer);
1337}
1338
1340{
1341 yarp::os::idl::WireReader reader(connection);
1342 return read(reader);
1343}
1344
1346{
1347 if (!writer.isNull()) {
1348 if (!writer.writeListHeader(s_reply_len)) {
1349 return false;
1350 }
1351 if (!writer.writeBool(return_helper)) {
1352 return false;
1353 }
1354 }
1355 return true;
1356}
1357
1359{
1360 if (!reader.readListReturn()) {
1361 return false;
1362 }
1363 if (reader.noMore()) {
1364 reader.fail();
1365 return false;
1366 }
1367 if (!reader.readBool(return_helper)) {
1368 reader.fail();
1369 return false;
1370 }
1371 return true;
1372}
1373
1378
1379// suspend_navigation_RPC helper class implementation
1384
1386{
1387 return cmd.write(connection);
1388}
1389
1394
1396 time_s{time_s}
1397{
1398}
1399
1401{
1402 yarp::os::idl::WireWriter writer(connection);
1403 if (!writer.writeListHeader(s_cmd_len)) {
1404 return false;
1405 }
1406 return write(writer);
1407}
1408
1410{
1411 yarp::os::idl::WireReader reader(connection);
1412 if (!reader.readListHeader()) {
1413 reader.fail();
1414 return false;
1415 }
1416 return read(reader);
1417}
1418
1420{
1421 if (!writeTag(writer)) {
1422 return false;
1423 }
1424 if (!writeArgs(writer)) {
1425 return false;
1426 }
1427 return true;
1428}
1429
1431{
1432 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
1433 return false;
1434 }
1435 return true;
1436}
1437
1439{
1440 if (!writer.writeFloat64(time_s)) {
1441 return false;
1442 }
1443 return true;
1444}
1445
1447{
1448 if (!readTag(reader)) {
1449 return false;
1450 }
1451 if (!readArgs(reader)) {
1452 return false;
1453 }
1454 return true;
1455}
1456
1458{
1459 std::string tag = reader.readTag(s_tag_len);
1460 if (reader.isError()) {
1461 return false;
1462 }
1463 if (tag != s_tag) {
1464 reader.fail();
1465 return false;
1466 }
1467 return true;
1468}
1469
1471{
1472 if (reader.noMore()) {
1473 reader.fail();
1474 return false;
1475 }
1476 if (!reader.readFloat64(time_s)) {
1477 reader.fail();
1478 return false;
1479 }
1480 if (!reader.noMore()) {
1481 reader.fail();
1482 return false;
1483 }
1484 return true;
1485}
1486
1488{
1489 yarp::os::idl::WireWriter writer(connection);
1490 return write(writer);
1491}
1492
1494{
1495 yarp::os::idl::WireReader reader(connection);
1496 return read(reader);
1497}
1498
1500{
1501 if (!writer.isNull()) {
1502 if (!writer.writeListHeader(s_reply_len)) {
1503 return false;
1504 }
1505 if (!writer.writeBool(return_helper)) {
1506 return false;
1507 }
1508 }
1509 return true;
1510}
1511
1513{
1514 if (!reader.readListReturn()) {
1515 return false;
1516 }
1517 if (reader.noMore()) {
1518 reader.fail();
1519 return false;
1520 }
1521 if (!reader.readBool(return_helper)) {
1522 reader.fail();
1523 return false;
1524 }
1525 return true;
1526}
1527
1532
1533// recompute_current_navigation_path_RPC helper class implementation
1538
1543
1545{
1546 yarp::os::idl::WireWriter writer(connection);
1547 if (!writer.writeListHeader(s_cmd_len)) {
1548 return false;
1549 }
1550 return write(writer);
1551}
1552
1554{
1555 yarp::os::idl::WireReader reader(connection);
1556 if (!reader.readListHeader()) {
1557 reader.fail();
1558 return false;
1559 }
1560 return read(reader);
1561}
1562
1564{
1565 if (!writeTag(writer)) {
1566 return false;
1567 }
1568 if (!writeArgs(writer)) {
1569 return false;
1570 }
1571 return true;
1572}
1573
1575{
1576 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
1577 return false;
1578 }
1579 return true;
1580}
1581
1583{
1584 return true;
1585}
1586
1588{
1589 if (!readTag(reader)) {
1590 return false;
1591 }
1592 if (!readArgs(reader)) {
1593 return false;
1594 }
1595 return true;
1596}
1597
1599{
1600 std::string tag = reader.readTag(s_tag_len);
1601 if (reader.isError()) {
1602 return false;
1603 }
1604 if (tag != s_tag) {
1605 reader.fail();
1606 return false;
1607 }
1608 return true;
1609}
1610
1612{
1613 if (!reader.noMore()) {
1614 reader.fail();
1615 return false;
1616 }
1617 return true;
1618}
1619
1625
1631
1633{
1634 if (!writer.isNull()) {
1635 if (!writer.writeListHeader(s_reply_len)) {
1636 return false;
1637 }
1638 if (!writer.writeBool(return_helper)) {
1639 return false;
1640 }
1641 }
1642 return true;
1643}
1644
1646{
1647 if (!reader.readListReturn()) {
1648 return false;
1649 }
1650 if (reader.noMore()) {
1651 reader.fail();
1652 return false;
1653 }
1654 if (!reader.readBool(return_helper)) {
1655 reader.fail();
1656 return false;
1657 }
1658 return true;
1659}
1660
1665
1666// get_navigation_status_RPC helper class implementation
1668{
1669 return cmd.write(connection);
1670}
1671
1676
1678{
1679 yarp::os::idl::WireWriter writer(connection);
1680 if (!writer.writeListHeader(s_cmd_len)) {
1681 return false;
1682 }
1683 return write(writer);
1684}
1685
1687{
1688 yarp::os::idl::WireReader reader(connection);
1689 if (!reader.readListHeader()) {
1690 reader.fail();
1691 return false;
1692 }
1693 return read(reader);
1694}
1695
1697{
1698 if (!writeTag(writer)) {
1699 return false;
1700 }
1701 if (!writeArgs(writer)) {
1702 return false;
1703 }
1704 return true;
1705}
1706
1708{
1709 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
1710 return false;
1711 }
1712 return true;
1713}
1714
1716{
1717 return true;
1718}
1719
1721{
1722 if (!readTag(reader)) {
1723 return false;
1724 }
1725 if (!readArgs(reader)) {
1726 return false;
1727 }
1728 return true;
1729}
1730
1732{
1733 std::string tag = reader.readTag(s_tag_len);
1734 if (reader.isError()) {
1735 return false;
1736 }
1737 if (tag != s_tag) {
1738 reader.fail();
1739 return false;
1740 }
1741 return true;
1742}
1743
1745{
1746 if (!reader.noMore()) {
1747 reader.fail();
1748 return false;
1749 }
1750 return true;
1751}
1752
1754{
1755 yarp::os::idl::WireWriter writer(connection);
1756 return write(writer);
1757}
1758
1764
1766{
1767 if (!writer.isNull()) {
1768 if (!writer.writeListHeader(s_reply_len)) {
1769 return false;
1770 }
1771 if (!writer.write(return_helper)) {
1772 return false;
1773 }
1774 }
1775 return true;
1776}
1777
1779{
1780 if (!reader.readListReturn()) {
1781 return false;
1782 }
1783 if (reader.noMore()) {
1784 reader.fail();
1785 return false;
1786 }
1787 if (!reader.read(return_helper)) {
1788 reader.fail();
1789 return false;
1790 }
1791 return true;
1792}
1793
1798
1799// get_current_nav_waypoint_RPC helper class implementation
1804
1809
1811{
1812 yarp::os::idl::WireWriter writer(connection);
1813 if (!writer.writeListHeader(s_cmd_len)) {
1814 return false;
1815 }
1816 return write(writer);
1817}
1818
1820{
1821 yarp::os::idl::WireReader reader(connection);
1822 if (!reader.readListHeader()) {
1823 reader.fail();
1824 return false;
1825 }
1826 return read(reader);
1827}
1828
1830{
1831 if (!writeTag(writer)) {
1832 return false;
1833 }
1834 if (!writeArgs(writer)) {
1835 return false;
1836 }
1837 return true;
1838}
1839
1841{
1842 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
1843 return false;
1844 }
1845 return true;
1846}
1847
1849{
1850 return true;
1851}
1852
1854{
1855 if (!readTag(reader)) {
1856 return false;
1857 }
1858 if (!readArgs(reader)) {
1859 return false;
1860 }
1861 return true;
1862}
1863
1865{
1866 std::string tag = reader.readTag(s_tag_len);
1867 if (reader.isError()) {
1868 return false;
1869 }
1870 if (tag != s_tag) {
1871 reader.fail();
1872 return false;
1873 }
1874 return true;
1875}
1876
1878{
1879 if (!reader.noMore()) {
1880 reader.fail();
1881 return false;
1882 }
1883 return true;
1884}
1885
1887{
1888 yarp::os::idl::WireWriter writer(connection);
1889 return write(writer);
1890}
1891
1897
1899{
1900 if (!writer.isNull()) {
1901 if (!writer.writeListHeader(s_reply_len)) {
1902 return false;
1903 }
1904 if (!writer.write(return_helper)) {
1905 return false;
1906 }
1907 }
1908 return true;
1909}
1910
1912{
1913 if (!reader.readListReturn()) {
1914 return false;
1915 }
1916 if (reader.noMore()) {
1917 reader.fail();
1918 return false;
1919 }
1920 if (!reader.read(return_helper)) {
1921 reader.fail();
1922 return false;
1923 }
1924 return true;
1925}
1926
1931
1932// get_all_navigation_waypoints_RPC helper class implementation
1937
1942
1947
1952
1954{
1955 yarp::os::idl::WireWriter writer(connection);
1956 if (!writer.writeListHeader(s_cmd_len)) {
1957 return false;
1958 }
1959 return write(writer);
1960}
1961
1963{
1964 yarp::os::idl::WireReader reader(connection);
1965 if (!reader.readListHeader()) {
1966 reader.fail();
1967 return false;
1968 }
1969 return read(reader);
1970}
1971
1973{
1974 if (!writeTag(writer)) {
1975 return false;
1976 }
1977 if (!writeArgs(writer)) {
1978 return false;
1979 }
1980 return true;
1981}
1982
1984{
1985 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
1986 return false;
1987 }
1988 return true;
1989}
1990
1992{
1993 if (!writer.writeVocab32(static_cast<yarp::conf::vocab32_t>(trajectory_type))) {
1994 return false;
1995 }
1996 return true;
1997}
1998
2000{
2001 if (!readTag(reader)) {
2002 return false;
2003 }
2004 if (!readArgs(reader)) {
2005 return false;
2006 }
2007 return true;
2008}
2009
2011{
2012 std::string tag = reader.readTag(s_tag_len);
2013 if (reader.isError()) {
2014 return false;
2015 }
2016 if (tag != s_tag) {
2017 reader.fail();
2018 return false;
2019 }
2020 return true;
2021}
2022
2024{
2025 if (reader.noMore()) {
2026 reader.fail();
2027 return false;
2028 }
2029 yarp::conf::vocab32_t _ecast;
2030 if (!reader.readVocab32(_ecast)) {
2031 reader.fail();
2032 return false;
2033 }
2034 trajectory_type = static_cast<yarp::dev::Nav2D::TrajectoryTypeEnum>(_ecast);
2035 if (!reader.noMore()) {
2036 reader.fail();
2037 return false;
2038 }
2039 return true;
2040}
2041
2047
2053
2055{
2056 if (!writer.isNull()) {
2057 if (!writer.writeListHeader(s_reply_len)) {
2058 return false;
2059 }
2060 if (!writer.write(return_helper)) {
2061 return false;
2062 }
2063 }
2064 return true;
2065}
2066
2068{
2069 if (!reader.readListReturn()) {
2070 return false;
2071 }
2072 if (reader.noMore()) {
2073 reader.fail();
2074 return false;
2075 }
2076 if (!reader.read(return_helper)) {
2077 reader.fail();
2078 return false;
2079 }
2080 return true;
2081}
2082
2087
2088// get_current_navigation_map_RPC helper class implementation
2093
2098
2103
2108
2110{
2111 yarp::os::idl::WireWriter writer(connection);
2112 if (!writer.writeListHeader(s_cmd_len)) {
2113 return false;
2114 }
2115 return write(writer);
2116}
2117
2119{
2120 yarp::os::idl::WireReader reader(connection);
2121 if (!reader.readListHeader()) {
2122 reader.fail();
2123 return false;
2124 }
2125 return read(reader);
2126}
2127
2129{
2130 if (!writeTag(writer)) {
2131 return false;
2132 }
2133 if (!writeArgs(writer)) {
2134 return false;
2135 }
2136 return true;
2137}
2138
2140{
2141 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
2142 return false;
2143 }
2144 return true;
2145}
2146
2148{
2149 if (!writer.writeVocab32(static_cast<yarp::conf::vocab32_t>(map_type))) {
2150 return false;
2151 }
2152 return true;
2153}
2154
2156{
2157 if (!readTag(reader)) {
2158 return false;
2159 }
2160 if (!readArgs(reader)) {
2161 return false;
2162 }
2163 return true;
2164}
2165
2167{
2168 std::string tag = reader.readTag(s_tag_len);
2169 if (reader.isError()) {
2170 return false;
2171 }
2172 if (tag != s_tag) {
2173 reader.fail();
2174 return false;
2175 }
2176 return true;
2177}
2178
2180{
2181 if (reader.noMore()) {
2182 reader.fail();
2183 return false;
2184 }
2185 yarp::conf::vocab32_t _ecast;
2186 if (!reader.readVocab32(_ecast)) {
2187 reader.fail();
2188 return false;
2189 }
2190 map_type = static_cast<yarp::dev::Nav2D::NavigationMapTypeEnum>(_ecast);
2191 if (!reader.noMore()) {
2192 reader.fail();
2193 return false;
2194 }
2195 return true;
2196}
2197
2203
2209
2211{
2212 if (!writer.isNull()) {
2213 if (!writer.writeListHeader(s_reply_len)) {
2214 return false;
2215 }
2216 if (!writer.write(return_helper)) {
2217 return false;
2218 }
2219 }
2220 return true;
2221}
2222
2224{
2225 if (!reader.readListReturn()) {
2226 return false;
2227 }
2228 if (reader.noMore()) {
2229 reader.fail();
2230 return false;
2231 }
2232 if (!reader.read(return_helper)) {
2233 reader.fail();
2234 return false;
2235 }
2236 return true;
2237}
2238
2243
2244// goto_target_by_absolute_location_RPC helper class implementation
2249
2254
2259
2264
2266{
2267 yarp::os::idl::WireWriter writer(connection);
2268 if (!writer.writeListHeader(s_cmd_len)) {
2269 return false;
2270 }
2271 return write(writer);
2272}
2273
2275{
2276 yarp::os::idl::WireReader reader(connection);
2277 if (!reader.readListHeader()) {
2278 reader.fail();
2279 return false;
2280 }
2281 return read(reader);
2282}
2283
2285{
2286 if (!writeTag(writer)) {
2287 return false;
2288 }
2289 if (!writeArgs(writer)) {
2290 return false;
2291 }
2292 return true;
2293}
2294
2296{
2297 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
2298 return false;
2299 }
2300 return true;
2301}
2302
2304{
2305 if (!writer.writeNested(loc)) {
2306 return false;
2307 }
2308 return true;
2309}
2310
2312{
2313 if (!readTag(reader)) {
2314 return false;
2315 }
2316 if (!readArgs(reader)) {
2317 return false;
2318 }
2319 return true;
2320}
2321
2323{
2324 std::string tag = reader.readTag(s_tag_len);
2325 if (reader.isError()) {
2326 return false;
2327 }
2328 if (tag != s_tag) {
2329 reader.fail();
2330 return false;
2331 }
2332 return true;
2333}
2334
2336{
2337 if (reader.noMore()) {
2338 reader.fail();
2339 return false;
2340 }
2341 if (!reader.readNested(loc)) {
2342 reader.fail();
2343 return false;
2344 }
2345 if (!reader.noMore()) {
2346 reader.fail();
2347 return false;
2348 }
2349 return true;
2350}
2351
2357
2363
2365{
2366 if (!writer.isNull()) {
2367 if (!writer.writeListHeader(s_reply_len)) {
2368 return false;
2369 }
2370 if (!writer.writeBool(return_helper)) {
2371 return false;
2372 }
2373 }
2374 return true;
2375}
2376
2378{
2379 if (!reader.readListReturn()) {
2380 return false;
2381 }
2382 if (reader.noMore()) {
2383 reader.fail();
2384 return false;
2385 }
2386 if (!reader.readBool(return_helper)) {
2387 reader.fail();
2388 return false;
2389 }
2390 return true;
2391}
2392
2397
2398// follow_path_RPC helper class implementation
2403
2405{
2406 return cmd.write(connection);
2407}
2408
2410{
2411 return reply.read(connection);
2412}
2413
2418
2420{
2421 yarp::os::idl::WireWriter writer(connection);
2422 if (!writer.writeListHeader(s_cmd_len)) {
2423 return false;
2424 }
2425 return write(writer);
2426}
2427
2429{
2430 yarp::os::idl::WireReader reader(connection);
2431 if (!reader.readListHeader()) {
2432 reader.fail();
2433 return false;
2434 }
2435 return read(reader);
2436}
2437
2439{
2440 if (!writeTag(writer)) {
2441 return false;
2442 }
2443 if (!writeArgs(writer)) {
2444 return false;
2445 }
2446 return true;
2447}
2448
2450{
2451 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
2452 return false;
2453 }
2454 return true;
2455}
2456
2458{
2459 if (!writer.writeNested(path)) {
2460 return false;
2461 }
2462 return true;
2463}
2464
2466{
2467 if (!readTag(reader)) {
2468 return false;
2469 }
2470 if (!readArgs(reader)) {
2471 return false;
2472 }
2473 return true;
2474}
2475
2477{
2478 std::string tag = reader.readTag(s_tag_len);
2479 if (reader.isError()) {
2480 return false;
2481 }
2482 if (tag != s_tag) {
2483 reader.fail();
2484 return false;
2485 }
2486 return true;
2487}
2488
2490{
2491 if (reader.noMore()) {
2492 reader.fail();
2493 return false;
2494 }
2495 if (!reader.readNested(path)) {
2496 reader.fail();
2497 return false;
2498 }
2499 if (!reader.noMore()) {
2500 reader.fail();
2501 return false;
2502 }
2503 return true;
2504}
2505
2507{
2508 yarp::os::idl::WireWriter writer(connection);
2509 return write(writer);
2510}
2511
2513{
2514 yarp::os::idl::WireReader reader(connection);
2515 return read(reader);
2516}
2517
2519{
2520 if (!writer.isNull()) {
2521 if (!writer.writeListHeader(s_reply_len)) {
2522 return false;
2523 }
2524 if (!writer.writeBool(return_helper)) {
2525 return false;
2526 }
2527 }
2528 return true;
2529}
2530
2532{
2533 if (!reader.readListReturn()) {
2534 return false;
2535 }
2536 if (reader.noMore()) {
2537 reader.fail();
2538 return false;
2539 }
2540 if (!reader.readBool(return_helper)) {
2541 reader.fail();
2542 return false;
2543 }
2544 return true;
2545}
2546
2551
2552// goto_target_by_relative_location1_RPC helper class implementation
2557
2562
2567
2569 x{x},
2570 y{y}
2571{
2572}
2573
2575{
2576 yarp::os::idl::WireWriter writer(connection);
2577 if (!writer.writeListHeader(s_cmd_len)) {
2578 return false;
2579 }
2580 return write(writer);
2581}
2582
2584{
2585 yarp::os::idl::WireReader reader(connection);
2586 if (!reader.readListHeader()) {
2587 reader.fail();
2588 return false;
2589 }
2590 return read(reader);
2591}
2592
2594{
2595 if (!writeTag(writer)) {
2596 return false;
2597 }
2598 if (!writeArgs(writer)) {
2599 return false;
2600 }
2601 return true;
2602}
2603
2605{
2606 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
2607 return false;
2608 }
2609 return true;
2610}
2611
2613{
2614 if (!writer.writeFloat64(x)) {
2615 return false;
2616 }
2617 if (!writer.writeFloat64(y)) {
2618 return false;
2619 }
2620 return true;
2621}
2622
2624{
2625 if (!readTag(reader)) {
2626 return false;
2627 }
2628 if (!readArgs(reader)) {
2629 return false;
2630 }
2631 return true;
2632}
2633
2635{
2636 std::string tag = reader.readTag(s_tag_len);
2637 if (reader.isError()) {
2638 return false;
2639 }
2640 if (tag != s_tag) {
2641 reader.fail();
2642 return false;
2643 }
2644 return true;
2645}
2646
2648{
2649 if (reader.noMore()) {
2650 reader.fail();
2651 return false;
2652 }
2653 if (!reader.readFloat64(x)) {
2654 reader.fail();
2655 return false;
2656 }
2657 if (reader.noMore()) {
2658 reader.fail();
2659 return false;
2660 }
2661 if (!reader.readFloat64(y)) {
2662 reader.fail();
2663 return false;
2664 }
2665 if (!reader.noMore()) {
2666 reader.fail();
2667 return false;
2668 }
2669 return true;
2670}
2671
2677
2683
2685{
2686 if (!writer.isNull()) {
2687 if (!writer.writeListHeader(s_reply_len)) {
2688 return false;
2689 }
2690 if (!writer.writeBool(return_helper)) {
2691 return false;
2692 }
2693 }
2694 return true;
2695}
2696
2698{
2699 if (!reader.readListReturn()) {
2700 return false;
2701 }
2702 if (reader.noMore()) {
2703 reader.fail();
2704 return false;
2705 }
2706 if (!reader.readBool(return_helper)) {
2707 reader.fail();
2708 return false;
2709 }
2710 return true;
2711}
2712
2717
2718// goto_target_by_relative_location2_RPC helper class implementation
2723
2728
2733
2735 x{x},
2736 y{y},
2737 theta{theta}
2738{
2739}
2740
2742{
2743 yarp::os::idl::WireWriter writer(connection);
2744 if (!writer.writeListHeader(s_cmd_len)) {
2745 return false;
2746 }
2747 return write(writer);
2748}
2749
2751{
2752 yarp::os::idl::WireReader reader(connection);
2753 if (!reader.readListHeader()) {
2754 reader.fail();
2755 return false;
2756 }
2757 return read(reader);
2758}
2759
2761{
2762 if (!writeTag(writer)) {
2763 return false;
2764 }
2765 if (!writeArgs(writer)) {
2766 return false;
2767 }
2768 return true;
2769}
2770
2772{
2773 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
2774 return false;
2775 }
2776 return true;
2777}
2778
2780{
2781 if (!writer.writeFloat64(x)) {
2782 return false;
2783 }
2784 if (!writer.writeFloat64(y)) {
2785 return false;
2786 }
2787 if (!writer.writeFloat64(theta)) {
2788 return false;
2789 }
2790 return true;
2791}
2792
2794{
2795 if (!readTag(reader)) {
2796 return false;
2797 }
2798 if (!readArgs(reader)) {
2799 return false;
2800 }
2801 return true;
2802}
2803
2805{
2806 std::string tag = reader.readTag(s_tag_len);
2807 if (reader.isError()) {
2808 return false;
2809 }
2810 if (tag != s_tag) {
2811 reader.fail();
2812 return false;
2813 }
2814 return true;
2815}
2816
2818{
2819 if (reader.noMore()) {
2820 reader.fail();
2821 return false;
2822 }
2823 if (!reader.readFloat64(x)) {
2824 reader.fail();
2825 return false;
2826 }
2827 if (reader.noMore()) {
2828 reader.fail();
2829 return false;
2830 }
2831 if (!reader.readFloat64(y)) {
2832 reader.fail();
2833 return false;
2834 }
2835 if (reader.noMore()) {
2836 reader.fail();
2837 return false;
2838 }
2839 if (!reader.readFloat64(theta)) {
2840 reader.fail();
2841 return false;
2842 }
2843 if (!reader.noMore()) {
2844 reader.fail();
2845 return false;
2846 }
2847 return true;
2848}
2849
2855
2861
2863{
2864 if (!writer.isNull()) {
2865 if (!writer.writeListHeader(s_reply_len)) {
2866 return false;
2867 }
2868 if (!writer.writeBool(return_helper)) {
2869 return false;
2870 }
2871 }
2872 return true;
2873}
2874
2876{
2877 if (!reader.readListReturn()) {
2878 return false;
2879 }
2880 if (reader.noMore()) {
2881 reader.fail();
2882 return false;
2883 }
2884 if (!reader.readBool(return_helper)) {
2885 reader.fail();
2886 return false;
2887 }
2888 return true;
2889}
2890
2895
2896// get_absolute_location_of_current_target_RPC helper class implementation
2901
2906
2908{
2909 yarp::os::idl::WireWriter writer(connection);
2910 if (!writer.writeListHeader(s_cmd_len)) {
2911 return false;
2912 }
2913 return write(writer);
2914}
2915
2917{
2918 yarp::os::idl::WireReader reader(connection);
2919 if (!reader.readListHeader()) {
2920 reader.fail();
2921 return false;
2922 }
2923 return read(reader);
2924}
2925
2927{
2928 if (!writeTag(writer)) {
2929 return false;
2930 }
2931 if (!writeArgs(writer)) {
2932 return false;
2933 }
2934 return true;
2935}
2936
2938{
2939 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
2940 return false;
2941 }
2942 return true;
2943}
2944
2949
2951{
2952 if (!readTag(reader)) {
2953 return false;
2954 }
2955 if (!readArgs(reader)) {
2956 return false;
2957 }
2958 return true;
2959}
2960
2962{
2963 std::string tag = reader.readTag(s_tag_len);
2964 if (reader.isError()) {
2965 return false;
2966 }
2967 if (tag != s_tag) {
2968 reader.fail();
2969 return false;
2970 }
2971 return true;
2972}
2973
2975{
2976 if (!reader.noMore()) {
2977 reader.fail();
2978 return false;
2979 }
2980 return true;
2981}
2982
2988
2994
2996{
2997 if (!writer.isNull()) {
2998 if (!writer.writeListHeader(s_reply_len)) {
2999 return false;
3000 }
3001 if (!writer.write(return_helper)) {
3002 return false;
3003 }
3004 }
3005 return true;
3006}
3007
3009{
3010 if (!reader.readListReturn()) {
3011 return false;
3012 }
3013 if (reader.noMore()) {
3014 reader.fail();
3015 return false;
3016 }
3017 if (!reader.read(return_helper)) {
3018 reader.fail();
3019 return false;
3020 }
3021 return true;
3022}
3023
3028
3029// get_relative_location_of_current_target_RPC helper class implementation
3034
3039
3041{
3042 yarp::os::idl::WireWriter writer(connection);
3043 if (!writer.writeListHeader(s_cmd_len)) {
3044 return false;
3045 }
3046 return write(writer);
3047}
3048
3050{
3051 yarp::os::idl::WireReader reader(connection);
3052 if (!reader.readListHeader()) {
3053 reader.fail();
3054 return false;
3055 }
3056 return read(reader);
3057}
3058
3060{
3061 if (!writeTag(writer)) {
3062 return false;
3063 }
3064 if (!writeArgs(writer)) {
3065 return false;
3066 }
3067 return true;
3068}
3069
3071{
3072 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
3073 return false;
3074 }
3075 return true;
3076}
3077
3082
3084{
3085 if (!readTag(reader)) {
3086 return false;
3087 }
3088 if (!readArgs(reader)) {
3089 return false;
3090 }
3091 return true;
3092}
3093
3095{
3096 std::string tag = reader.readTag(s_tag_len);
3097 if (reader.isError()) {
3098 return false;
3099 }
3100 if (tag != s_tag) {
3101 reader.fail();
3102 return false;
3103 }
3104 return true;
3105}
3106
3108{
3109 if (!reader.noMore()) {
3110 reader.fail();
3111 return false;
3112 }
3113 return true;
3114}
3115
3121
3127
3129{
3130 if (!writer.isNull()) {
3131 if (!writer.writeListHeader(s_reply_len)) {
3132 return false;
3133 }
3134 if (!writer.write(return_helper)) {
3135 return false;
3136 }
3137 }
3138 return true;
3139}
3140
3142{
3143 if (!reader.readListReturn()) {
3144 return false;
3145 }
3146 if (reader.noMore()) {
3147 reader.fail();
3148 return false;
3149 }
3150 if (!reader.read(return_helper)) {
3151 reader.fail();
3152 return false;
3153 }
3154 return true;
3155}
3156
3161
3162// goto_target_by_absolute_location_and_set_name_RPC helper class implementation
3167
3172
3177
3183
3185{
3186 yarp::os::idl::WireWriter writer(connection);
3187 if (!writer.writeListHeader(s_cmd_len)) {
3188 return false;
3189 }
3190 return write(writer);
3191}
3192
3194{
3195 yarp::os::idl::WireReader reader(connection);
3196 if (!reader.readListHeader()) {
3197 reader.fail();
3198 return false;
3199 }
3200 return read(reader);
3201}
3202
3204{
3205 if (!writeTag(writer)) {
3206 return false;
3207 }
3208 if (!writeArgs(writer)) {
3209 return false;
3210 }
3211 return true;
3212}
3213
3215{
3216 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
3217 return false;
3218 }
3219 return true;
3220}
3221
3223{
3224 if (!writer.writeNested(loc)) {
3225 return false;
3226 }
3227 if (!writer.writeString(name)) {
3228 return false;
3229 }
3230 return true;
3231}
3232
3234{
3235 if (!readTag(reader)) {
3236 return false;
3237 }
3238 if (!readArgs(reader)) {
3239 return false;
3240 }
3241 return true;
3242}
3243
3245{
3246 std::string tag = reader.readTag(s_tag_len);
3247 if (reader.isError()) {
3248 return false;
3249 }
3250 if (tag != s_tag) {
3251 reader.fail();
3252 return false;
3253 }
3254 return true;
3255}
3256
3258{
3259 if (reader.noMore()) {
3260 reader.fail();
3261 return false;
3262 }
3263 if (!reader.readNested(loc)) {
3264 reader.fail();
3265 return false;
3266 }
3267 if (reader.noMore()) {
3268 reader.fail();
3269 return false;
3270 }
3271 if (!reader.readString(name)) {
3272 reader.fail();
3273 return false;
3274 }
3275 if (!reader.noMore()) {
3276 reader.fail();
3277 return false;
3278 }
3279 return true;
3280}
3281
3287
3293
3295{
3296 if (!writer.isNull()) {
3297 if (!writer.writeListHeader(s_reply_len)) {
3298 return false;
3299 }
3300 if (!writer.writeBool(return_helper)) {
3301 return false;
3302 }
3303 }
3304 return true;
3305}
3306
3308{
3309 if (!reader.readListReturn()) {
3310 return false;
3311 }
3312 if (reader.noMore()) {
3313 reader.fail();
3314 return false;
3315 }
3316 if (!reader.readBool(return_helper)) {
3317 reader.fail();
3318 return false;
3319 }
3320 return true;
3321}
3322
3327
3328// apply_velocity_command_RPC helper class implementation
3329INavigation2DMsgs_apply_velocity_command_RPC_helper::INavigation2DMsgs_apply_velocity_command_RPC_helper(const double x_vel, const double y_vel, const double theta_vel, const double timeout) :
3330 cmd{x_vel, y_vel, theta_vel, timeout}
3331{
3332}
3333
3335{
3336 return cmd.write(connection);
3337}
3338
3343
3344INavigation2DMsgs_apply_velocity_command_RPC_helper::Command::Command(const double x_vel, const double y_vel, const double theta_vel, const double timeout) :
3345 x_vel{x_vel},
3346 y_vel{y_vel},
3347 theta_vel{theta_vel},
3348 timeout{timeout}
3349{
3350}
3351
3353{
3354 yarp::os::idl::WireWriter writer(connection);
3355 if (!writer.writeListHeader(s_cmd_len)) {
3356 return false;
3357 }
3358 return write(writer);
3359}
3360
3362{
3363 yarp::os::idl::WireReader reader(connection);
3364 if (!reader.readListHeader()) {
3365 reader.fail();
3366 return false;
3367 }
3368 return read(reader);
3369}
3370
3372{
3373 if (!writeTag(writer)) {
3374 return false;
3375 }
3376 if (!writeArgs(writer)) {
3377 return false;
3378 }
3379 return true;
3380}
3381
3383{
3384 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
3385 return false;
3386 }
3387 return true;
3388}
3389
3391{
3392 if (!writer.writeFloat64(x_vel)) {
3393 return false;
3394 }
3395 if (!writer.writeFloat64(y_vel)) {
3396 return false;
3397 }
3398 if (!writer.writeFloat64(theta_vel)) {
3399 return false;
3400 }
3401 if (!writer.writeFloat64(timeout)) {
3402 return false;
3403 }
3404 return true;
3405}
3406
3408{
3409 if (!readTag(reader)) {
3410 return false;
3411 }
3412 if (!readArgs(reader)) {
3413 return false;
3414 }
3415 return true;
3416}
3417
3419{
3420 std::string tag = reader.readTag(s_tag_len);
3421 if (reader.isError()) {
3422 return false;
3423 }
3424 if (tag != s_tag) {
3425 reader.fail();
3426 return false;
3427 }
3428 return true;
3429}
3430
3432{
3433 if (reader.noMore()) {
3434 reader.fail();
3435 return false;
3436 }
3437 if (!reader.readFloat64(x_vel)) {
3438 reader.fail();
3439 return false;
3440 }
3441 if (reader.noMore()) {
3442 reader.fail();
3443 return false;
3444 }
3445 if (!reader.readFloat64(y_vel)) {
3446 reader.fail();
3447 return false;
3448 }
3449 if (reader.noMore()) {
3450 reader.fail();
3451 return false;
3452 }
3453 if (!reader.readFloat64(theta_vel)) {
3454 reader.fail();
3455 return false;
3456 }
3457 if (reader.noMore()) {
3458 reader.fail();
3459 return false;
3460 }
3461 if (!reader.readFloat64(timeout)) {
3462 reader.fail();
3463 return false;
3464 }
3465 if (!reader.noMore()) {
3466 reader.fail();
3467 return false;
3468 }
3469 return true;
3470}
3471
3473{
3474 yarp::os::idl::WireWriter writer(connection);
3475 return write(writer);
3476}
3477
3483
3485{
3486 if (!writer.isNull()) {
3487 if (!writer.writeListHeader(s_reply_len)) {
3488 return false;
3489 }
3490 if (!writer.writeBool(return_helper)) {
3491 return false;
3492 }
3493 }
3494 return true;
3495}
3496
3498{
3499 if (!reader.readListReturn()) {
3500 return false;
3501 }
3502 if (reader.noMore()) {
3503 reader.fail();
3504 return false;
3505 }
3506 if (!reader.readBool(return_helper)) {
3507 reader.fail();
3508 return false;
3509 }
3510 return true;
3511}
3512
3517
3518// get_last_velocity_command_RPC helper class implementation
3523
3528
3530{
3531 yarp::os::idl::WireWriter writer(connection);
3532 if (!writer.writeListHeader(s_cmd_len)) {
3533 return false;
3534 }
3535 return write(writer);
3536}
3537
3539{
3540 yarp::os::idl::WireReader reader(connection);
3541 if (!reader.readListHeader()) {
3542 reader.fail();
3543 return false;
3544 }
3545 return read(reader);
3546}
3547
3549{
3550 if (!writeTag(writer)) {
3551 return false;
3552 }
3553 if (!writeArgs(writer)) {
3554 return false;
3555 }
3556 return true;
3557}
3558
3560{
3561 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
3562 return false;
3563 }
3564 return true;
3565}
3566
3568{
3569 return true;
3570}
3571
3573{
3574 if (!readTag(reader)) {
3575 return false;
3576 }
3577 if (!readArgs(reader)) {
3578 return false;
3579 }
3580 return true;
3581}
3582
3584{
3585 std::string tag = reader.readTag(s_tag_len);
3586 if (reader.isError()) {
3587 return false;
3588 }
3589 if (tag != s_tag) {
3590 reader.fail();
3591 return false;
3592 }
3593 return true;
3594}
3595
3597{
3598 if (!reader.noMore()) {
3599 reader.fail();
3600 return false;
3601 }
3602 return true;
3603}
3604
3606{
3607 yarp::os::idl::WireWriter writer(connection);
3608 return write(writer);
3609}
3610
3616
3618{
3619 if (!writer.isNull()) {
3620 if (!writer.writeListHeader(s_reply_len)) {
3621 return false;
3622 }
3623 if (!writer.write(return_helper)) {
3624 return false;
3625 }
3626 }
3627 return true;
3628}
3629
3631{
3632 if (!reader.readListReturn()) {
3633 return false;
3634 }
3635 if (reader.noMore()) {
3636 reader.fail();
3637 return false;
3638 }
3639 if (!reader.read(return_helper)) {
3640 reader.fail();
3641 return false;
3642 }
3643 return true;
3644}
3645
3650
3651// get_name_of_current_target_RPC helper class implementation
3656
3661
3663{
3664 yarp::os::idl::WireWriter writer(connection);
3665 if (!writer.writeListHeader(s_cmd_len)) {
3666 return false;
3667 }
3668 return write(writer);
3669}
3670
3672{
3673 yarp::os::idl::WireReader reader(connection);
3674 if (!reader.readListHeader()) {
3675 reader.fail();
3676 return false;
3677 }
3678 return read(reader);
3679}
3680
3682{
3683 if (!writeTag(writer)) {
3684 return false;
3685 }
3686 if (!writeArgs(writer)) {
3687 return false;
3688 }
3689 return true;
3690}
3691
3693{
3694 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
3695 return false;
3696 }
3697 return true;
3698}
3699
3701{
3702 return true;
3703}
3704
3706{
3707 if (!readTag(reader)) {
3708 return false;
3709 }
3710 if (!readArgs(reader)) {
3711 return false;
3712 }
3713 return true;
3714}
3715
3717{
3718 std::string tag = reader.readTag(s_tag_len);
3719 if (reader.isError()) {
3720 return false;
3721 }
3722 if (tag != s_tag) {
3723 reader.fail();
3724 return false;
3725 }
3726 return true;
3727}
3728
3730{
3731 if (!reader.noMore()) {
3732 reader.fail();
3733 return false;
3734 }
3735 return true;
3736}
3737
3743
3749
3751{
3752 if (!writer.isNull()) {
3753 if (!writer.writeListHeader(s_reply_len)) {
3754 return false;
3755 }
3756 if (!writer.write(return_helper)) {
3757 return false;
3758 }
3759 }
3760 return true;
3761}
3762
3764{
3765 if (!reader.readListReturn()) {
3766 return false;
3767 }
3768 if (reader.noMore()) {
3769 reader.fail();
3770 return false;
3771 }
3772 if (!reader.read(return_helper)) {
3773 reader.fail();
3774 return false;
3775 }
3776 return true;
3777}
3778
3783
3784// Constructor
3786{
3787 yarp().setOwner(*this);
3788}
3789
3791{
3792 if (!yarp().canWrite()) {
3794 }
3796 bool ok = yarp().write(helper, helper);
3797 return ok ? helper.reply.return_helper : bool{};
3798}
3799
3801{
3802 if (!yarp().canWrite()) {
3804 }
3806 bool ok = yarp().write(helper, helper);
3807 return ok ? helper.reply.return_helper : bool{};
3808}
3809
3811{
3812 if (!yarp().canWrite()) {
3814 }
3816 bool ok = yarp().write(helper, helper);
3817 return ok ? helper.reply.return_helper : bool{};
3818}
3819
3821{
3822 if (!yarp().canWrite()) {
3824 }
3826 bool ok = yarp().write(helper, helper);
3827 return ok ? helper.reply.return_helper : bool{};
3828}
3829
3831{
3832 if (!yarp().canWrite()) {
3834 }
3836 bool ok = yarp().write(helper, helper);
3837 return ok ? helper.reply.return_helper : return_get_navigation_status{};
3838}
3839
3841{
3842 if (!yarp().canWrite()) {
3844 }
3846 bool ok = yarp().write(helper, helper);
3847 return ok ? helper.reply.return_helper : return_get_current_nav_waypoint{};
3848}
3849
3851{
3852 if (!yarp().canWrite()) {
3854 }
3856 bool ok = yarp().write(helper, helper);
3857 return ok ? helper.reply.return_helper : return_get_all_nav_waypoints{};
3858}
3859
3861{
3862 if (!yarp().canWrite()) {
3864 }
3866 bool ok = yarp().write(helper, helper);
3867 return ok ? helper.reply.return_helper : return_get_current_nav_map{};
3868}
3869
3871{
3872 if (!yarp().canWrite()) {
3874 }
3876 bool ok = yarp().write(helper, helper);
3877 return ok ? helper.reply.return_helper : bool{};
3878}
3879
3881{
3882 if (!yarp().canWrite()) {
3883 yError("Missing server method '%s'?", INavigation2DMsgs_follow_path_RPC_helper::s_prototype);
3884 }
3886 bool ok = yarp().write(helper, helper);
3887 return ok ? helper.reply.return_helper : bool{};
3888}
3889
3891{
3892 if (!yarp().canWrite()) {
3894 }
3896 bool ok = yarp().write(helper, helper);
3897 return ok ? helper.reply.return_helper : bool{};
3898}
3899
3900bool INavigation2DMsgs::goto_target_by_relative_location2_RPC(const double x, const double y, const double theta)
3901{
3902 if (!yarp().canWrite()) {
3904 }
3906 bool ok = yarp().write(helper, helper);
3907 return ok ? helper.reply.return_helper : bool{};
3908}
3909
3919
3929
3931{
3932 if (!yarp().canWrite()) {
3934 }
3936 bool ok = yarp().write(helper, helper);
3937 return ok ? helper.reply.return_helper : bool{};
3938}
3939
3940bool INavigation2DMsgs::apply_velocity_command_RPC(const double x_vel, const double y_vel, const double theta_vel, const double timeout)
3941{
3942 if (!yarp().canWrite()) {
3944 }
3945 INavigation2DMsgs_apply_velocity_command_RPC_helper helper{x_vel, y_vel, theta_vel, timeout};
3946 bool ok = yarp().write(helper, helper);
3947 return ok ? helper.reply.return_helper : bool{};
3948}
3949
3951{
3952 if (!yarp().canWrite()) {
3954 }
3956 bool ok = yarp().write(helper, helper);
3957 return ok ? helper.reply.return_helper : return_get_last_velocity_command{};
3958}
3959
3961{
3962 if (!yarp().canWrite()) {
3964 }
3966 bool ok = yarp().write(helper, helper);
3967 return ok ? helper.reply.return_helper : return_get_name_of_current_target{};
3968}
3969
3970// help method
3971std::vector<std::string> INavigation2DMsgs::help(const std::string& functionName)
3972{
3973 bool showAll = (functionName == "--all");
3974 std::vector<std::string> helpString;
3975 if (showAll) {
3976 helpString.emplace_back("*** Available commands:");
3986 helpString.emplace_back(INavigation2DMsgs_follow_path_RPC_helper::s_tag);
3995 helpString.emplace_back("help");
3996 } else {
3999 }
4002 }
4005 }
4008 }
4011 }
4014 }
4017 }
4020 }
4023 }
4026 }
4029 }
4032 }
4035 }
4038 }
4041 }
4044 }
4047 }
4050 }
4051 if (functionName == "help") {
4052 helpString.emplace_back("std::vector<std::string> help(const std::string& functionName = \"--all\")");
4053 helpString.emplace_back("Return list of available commands, or help message for a specific function");
4054 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");
4055 helpString.emplace_back("@return list of strings (one string per line)");
4056 }
4057 }
4058 if (helpString.empty()) {
4059 helpString.emplace_back("Command not found");
4060 }
4061 return helpString;
4062}
4063
4064// read from ConnectionReader
4066{
4067 constexpr size_t max_tag_len = 9;
4068 size_t tag_len = 1;