-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTelecommand.pb.h
1716 lines (1494 loc) · 58.9 KB
/
Telecommand.pb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Telecommand.proto
#ifndef PROTOBUF_Telecommand_2eproto__INCLUDED
#define PROTOBUF_Telecommand_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 2005000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
#include "SteeringModeType.pb.h"
#include "Point.pb.h"
#include "AllWheelControl.pb.h"
// @@protoc_insertion_point(includes)
namespace lunabotics {
namespace proto {
// Internal implementation detail -- do not call these.
void protobuf_AddDesc_Telecommand_2eproto();
void protobuf_AssignDesc_Telecommand_2eproto();
void protobuf_ShutdownFile_Telecommand_2eproto();
class Telecommand;
class Telecommand_Teleoperation;
class Telecommand_Autonomy;
class Telecommand_SteeringMode;
class Telecommand_DefineRoute;
class Telecommand_RequestMap;
class Telecommand_AdjustPID;
enum Telecommand_Type {
Telecommand_Type_TELEOPERATION = 1,
Telecommand_Type_SET_AUTONOMY = 2,
Telecommand_Type_STEERING_MODE = 3,
Telecommand_Type_DEFINE_ROUTE = 4,
Telecommand_Type_REQUEST_MAP = 5,
Telecommand_Type_ADJUST_PID = 6,
Telecommand_Type_ADJUST_WHEELS = 7
};
bool Telecommand_Type_IsValid(int value);
const Telecommand_Type Telecommand_Type_Type_MIN = Telecommand_Type_TELEOPERATION;
const Telecommand_Type Telecommand_Type_Type_MAX = Telecommand_Type_ADJUST_WHEELS;
const int Telecommand_Type_Type_ARRAYSIZE = Telecommand_Type_Type_MAX + 1;
const ::google::protobuf::EnumDescriptor* Telecommand_Type_descriptor();
inline const ::std::string& Telecommand_Type_Name(Telecommand_Type value) {
return ::google::protobuf::internal::NameOfEnum(
Telecommand_Type_descriptor(), value);
}
inline bool Telecommand_Type_Parse(
const ::std::string& name, Telecommand_Type* value) {
return ::google::protobuf::internal::ParseNamedEnum<Telecommand_Type>(
Telecommand_Type_descriptor(), name, value);
}
// ===================================================================
class Telecommand_Teleoperation : public ::google::protobuf::Message {
public:
Telecommand_Teleoperation();
virtual ~Telecommand_Teleoperation();
Telecommand_Teleoperation(const Telecommand_Teleoperation& from);
inline Telecommand_Teleoperation& operator=(const Telecommand_Teleoperation& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const Telecommand_Teleoperation& default_instance();
void Swap(Telecommand_Teleoperation* other);
// implements Message ----------------------------------------------
Telecommand_Teleoperation* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const Telecommand_Teleoperation& from);
void MergeFrom(const Telecommand_Teleoperation& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required bool forward = 1;
inline bool has_forward() const;
inline void clear_forward();
static const int kForwardFieldNumber = 1;
inline bool forward() const;
inline void set_forward(bool value);
// required bool backward = 2;
inline bool has_backward() const;
inline void clear_backward();
static const int kBackwardFieldNumber = 2;
inline bool backward() const;
inline void set_backward(bool value);
// required bool left = 3;
inline bool has_left() const;
inline void clear_left();
static const int kLeftFieldNumber = 3;
inline bool left() const;
inline void set_left(bool value);
// required bool right = 4;
inline bool has_right() const;
inline void clear_right();
static const int kRightFieldNumber = 4;
inline bool right() const;
inline void set_right(bool value);
// @@protoc_insertion_point(class_scope:lunabotics.proto.Telecommand.Teleoperation)
private:
inline void set_has_forward();
inline void clear_has_forward();
inline void set_has_backward();
inline void clear_has_backward();
inline void set_has_left();
inline void clear_has_left();
inline void set_has_right();
inline void clear_has_right();
::google::protobuf::UnknownFieldSet _unknown_fields_;
bool forward_;
bool backward_;
bool left_;
bool right_;
mutable int _cached_size_;
::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
friend void protobuf_AddDesc_Telecommand_2eproto();
friend void protobuf_AssignDesc_Telecommand_2eproto();
friend void protobuf_ShutdownFile_Telecommand_2eproto();
void InitAsDefaultInstance();
static Telecommand_Teleoperation* default_instance_;
};
// -------------------------------------------------------------------
class Telecommand_Autonomy : public ::google::protobuf::Message {
public:
Telecommand_Autonomy();
virtual ~Telecommand_Autonomy();
Telecommand_Autonomy(const Telecommand_Autonomy& from);
inline Telecommand_Autonomy& operator=(const Telecommand_Autonomy& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const Telecommand_Autonomy& default_instance();
void Swap(Telecommand_Autonomy* other);
// implements Message ----------------------------------------------
Telecommand_Autonomy* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const Telecommand_Autonomy& from);
void MergeFrom(const Telecommand_Autonomy& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required bool enabled = 1;
inline bool has_enabled() const;
inline void clear_enabled();
static const int kEnabledFieldNumber = 1;
inline bool enabled() const;
inline void set_enabled(bool value);
// @@protoc_insertion_point(class_scope:lunabotics.proto.Telecommand.Autonomy)
private:
inline void set_has_enabled();
inline void clear_has_enabled();
::google::protobuf::UnknownFieldSet _unknown_fields_;
bool enabled_;
mutable int _cached_size_;
::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
friend void protobuf_AddDesc_Telecommand_2eproto();
friend void protobuf_AssignDesc_Telecommand_2eproto();
friend void protobuf_ShutdownFile_Telecommand_2eproto();
void InitAsDefaultInstance();
static Telecommand_Autonomy* default_instance_;
};
// -------------------------------------------------------------------
class Telecommand_SteeringMode : public ::google::protobuf::Message {
public:
Telecommand_SteeringMode();
virtual ~Telecommand_SteeringMode();
Telecommand_SteeringMode(const Telecommand_SteeringMode& from);
inline Telecommand_SteeringMode& operator=(const Telecommand_SteeringMode& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const Telecommand_SteeringMode& default_instance();
void Swap(Telecommand_SteeringMode* other);
// implements Message ----------------------------------------------
Telecommand_SteeringMode* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const Telecommand_SteeringMode& from);
void MergeFrom(const Telecommand_SteeringMode& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required .lunabotics.proto.SteeringModeType type = 1;
inline bool has_type() const;
inline void clear_type();
static const int kTypeFieldNumber = 1;
inline ::lunabotics::proto::SteeringModeType type() const;
inline void set_type(::lunabotics::proto::SteeringModeType value);
// required float heading_accuracy = 2;
inline bool has_heading_accuracy() const;
inline void clear_heading_accuracy();
static const int kHeadingAccuracyFieldNumber = 2;
inline float heading_accuracy() const;
inline void set_heading_accuracy(float value);
// required float position_accuracy = 3;
inline bool has_position_accuracy() const;
inline void clear_position_accuracy();
static const int kPositionAccuracyFieldNumber = 3;
inline float position_accuracy() const;
inline void set_position_accuracy(float value);
// required float max_linear_velocity = 4;
inline bool has_max_linear_velocity() const;
inline void clear_max_linear_velocity();
static const int kMaxLinearVelocityFieldNumber = 4;
inline float max_linear_velocity() const;
inline void set_max_linear_velocity(float value);
// required int32 bezier_curve_segments = 5;
inline bool has_bezier_curve_segments() const;
inline void clear_bezier_curve_segments();
static const int kBezierCurveSegmentsFieldNumber = 5;
inline ::google::protobuf::int32 bezier_curve_segments() const;
inline void set_bezier_curve_segments(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:lunabotics.proto.Telecommand.SteeringMode)
private:
inline void set_has_type();
inline void clear_has_type();
inline void set_has_heading_accuracy();
inline void clear_has_heading_accuracy();
inline void set_has_position_accuracy();
inline void clear_has_position_accuracy();
inline void set_has_max_linear_velocity();
inline void clear_has_max_linear_velocity();
inline void set_has_bezier_curve_segments();
inline void clear_has_bezier_curve_segments();
::google::protobuf::UnknownFieldSet _unknown_fields_;
int type_;
float heading_accuracy_;
float position_accuracy_;
float max_linear_velocity_;
::google::protobuf::int32 bezier_curve_segments_;
mutable int _cached_size_;
::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
friend void protobuf_AddDesc_Telecommand_2eproto();
friend void protobuf_AssignDesc_Telecommand_2eproto();
friend void protobuf_ShutdownFile_Telecommand_2eproto();
void InitAsDefaultInstance();
static Telecommand_SteeringMode* default_instance_;
};
// -------------------------------------------------------------------
class Telecommand_DefineRoute : public ::google::protobuf::Message {
public:
Telecommand_DefineRoute();
virtual ~Telecommand_DefineRoute();
Telecommand_DefineRoute(const Telecommand_DefineRoute& from);
inline Telecommand_DefineRoute& operator=(const Telecommand_DefineRoute& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const Telecommand_DefineRoute& default_instance();
void Swap(Telecommand_DefineRoute* other);
// implements Message ----------------------------------------------
Telecommand_DefineRoute* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const Telecommand_DefineRoute& from);
void MergeFrom(const Telecommand_DefineRoute& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .lunabotics.proto.Point waypoints = 1;
inline int waypoints_size() const;
inline void clear_waypoints();
static const int kWaypointsFieldNumber = 1;
inline const ::lunabotics::proto::Point& waypoints(int index) const;
inline ::lunabotics::proto::Point* mutable_waypoints(int index);
inline ::lunabotics::proto::Point* add_waypoints();
inline const ::google::protobuf::RepeatedPtrField< ::lunabotics::proto::Point >&
waypoints() const;
inline ::google::protobuf::RepeatedPtrField< ::lunabotics::proto::Point >*
mutable_waypoints();
// @@protoc_insertion_point(class_scope:lunabotics.proto.Telecommand.DefineRoute)
private:
::google::protobuf::UnknownFieldSet _unknown_fields_;
::google::protobuf::RepeatedPtrField< ::lunabotics::proto::Point > waypoints_;
mutable int _cached_size_;
::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
friend void protobuf_AddDesc_Telecommand_2eproto();
friend void protobuf_AssignDesc_Telecommand_2eproto();
friend void protobuf_ShutdownFile_Telecommand_2eproto();
void InitAsDefaultInstance();
static Telecommand_DefineRoute* default_instance_;
};
// -------------------------------------------------------------------
class Telecommand_RequestMap : public ::google::protobuf::Message {
public:
Telecommand_RequestMap();
virtual ~Telecommand_RequestMap();
Telecommand_RequestMap(const Telecommand_RequestMap& from);
inline Telecommand_RequestMap& operator=(const Telecommand_RequestMap& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const Telecommand_RequestMap& default_instance();
void Swap(Telecommand_RequestMap* other);
// implements Message ----------------------------------------------
Telecommand_RequestMap* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const Telecommand_RequestMap& from);
void MergeFrom(const Telecommand_RequestMap& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// @@protoc_insertion_point(class_scope:lunabotics.proto.Telecommand.RequestMap)
private:
::google::protobuf::UnknownFieldSet _unknown_fields_;
mutable int _cached_size_;
::google::protobuf::uint32 _has_bits_[1];
friend void protobuf_AddDesc_Telecommand_2eproto();
friend void protobuf_AssignDesc_Telecommand_2eproto();
friend void protobuf_ShutdownFile_Telecommand_2eproto();
void InitAsDefaultInstance();
static Telecommand_RequestMap* default_instance_;
};
// -------------------------------------------------------------------
class Telecommand_AdjustPID : public ::google::protobuf::Message {
public:
Telecommand_AdjustPID();
virtual ~Telecommand_AdjustPID();
Telecommand_AdjustPID(const Telecommand_AdjustPID& from);
inline Telecommand_AdjustPID& operator=(const Telecommand_AdjustPID& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const Telecommand_AdjustPID& default_instance();
void Swap(Telecommand_AdjustPID* other);
// implements Message ----------------------------------------------
Telecommand_AdjustPID* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const Telecommand_AdjustPID& from);
void MergeFrom(const Telecommand_AdjustPID& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required float p = 1;
inline bool has_p() const;
inline void clear_p();
static const int kPFieldNumber = 1;
inline float p() const;
inline void set_p(float value);
// required float i = 2;
inline bool has_i() const;
inline void clear_i();
static const int kIFieldNumber = 2;
inline float i() const;
inline void set_i(float value);
// required float d = 3;
inline bool has_d() const;
inline void clear_d();
static const int kDFieldNumber = 3;
inline float d() const;
inline void set_d(float value);
// required float feedback_min_offset = 4;
inline bool has_feedback_min_offset() const;
inline void clear_feedback_min_offset();
static const int kFeedbackMinOffsetFieldNumber = 4;
inline float feedback_min_offset() const;
inline void set_feedback_min_offset(float value);
// required float feedback_multiplier = 5;
inline bool has_feedback_multiplier() const;
inline void clear_feedback_multiplier();
static const int kFeedbackMultiplierFieldNumber = 5;
inline float feedback_multiplier() const;
inline void set_feedback_multiplier(float value);
// required float feedforward_min_offset = 6;
inline bool has_feedforward_min_offset() const;
inline void clear_feedforward_min_offset();
static const int kFeedforwardMinOffsetFieldNumber = 6;
inline float feedforward_min_offset() const;
inline void set_feedforward_min_offset(float value);
// required float feedforward_fraction = 7;
inline bool has_feedforward_fraction() const;
inline void clear_feedforward_fraction();
static const int kFeedforwardFractionFieldNumber = 7;
inline float feedforward_fraction() const;
inline void set_feedforward_fraction(float value);
// @@protoc_insertion_point(class_scope:lunabotics.proto.Telecommand.AdjustPID)
private:
inline void set_has_p();
inline void clear_has_p();
inline void set_has_i();
inline void clear_has_i();
inline void set_has_d();
inline void clear_has_d();
inline void set_has_feedback_min_offset();
inline void clear_has_feedback_min_offset();
inline void set_has_feedback_multiplier();
inline void clear_has_feedback_multiplier();
inline void set_has_feedforward_min_offset();
inline void clear_has_feedforward_min_offset();
inline void set_has_feedforward_fraction();
inline void clear_has_feedforward_fraction();
::google::protobuf::UnknownFieldSet _unknown_fields_;
float p_;
float i_;
float d_;
float feedback_min_offset_;
float feedback_multiplier_;
float feedforward_min_offset_;
float feedforward_fraction_;
mutable int _cached_size_;
::google::protobuf::uint32 _has_bits_[(7 + 31) / 32];
friend void protobuf_AddDesc_Telecommand_2eproto();
friend void protobuf_AssignDesc_Telecommand_2eproto();
friend void protobuf_ShutdownFile_Telecommand_2eproto();
void InitAsDefaultInstance();
static Telecommand_AdjustPID* default_instance_;
};
// -------------------------------------------------------------------
class Telecommand : public ::google::protobuf::Message {
public:
Telecommand();
virtual ~Telecommand();
Telecommand(const Telecommand& from);
inline Telecommand& operator=(const Telecommand& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const Telecommand& default_instance();
void Swap(Telecommand* other);
// implements Message ----------------------------------------------
Telecommand* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const Telecommand& from);
void MergeFrom(const Telecommand& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
typedef Telecommand_Teleoperation Teleoperation;
typedef Telecommand_Autonomy Autonomy;
typedef Telecommand_SteeringMode SteeringMode;
typedef Telecommand_DefineRoute DefineRoute;
typedef Telecommand_RequestMap RequestMap;
typedef Telecommand_AdjustPID AdjustPID;
typedef Telecommand_Type Type;
static const Type TELEOPERATION = Telecommand_Type_TELEOPERATION;
static const Type SET_AUTONOMY = Telecommand_Type_SET_AUTONOMY;
static const Type STEERING_MODE = Telecommand_Type_STEERING_MODE;
static const Type DEFINE_ROUTE = Telecommand_Type_DEFINE_ROUTE;
static const Type REQUEST_MAP = Telecommand_Type_REQUEST_MAP;
static const Type ADJUST_PID = Telecommand_Type_ADJUST_PID;
static const Type ADJUST_WHEELS = Telecommand_Type_ADJUST_WHEELS;
static inline bool Type_IsValid(int value) {
return Telecommand_Type_IsValid(value);
}
static const Type Type_MIN =
Telecommand_Type_Type_MIN;
static const Type Type_MAX =
Telecommand_Type_Type_MAX;
static const int Type_ARRAYSIZE =
Telecommand_Type_Type_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor*
Type_descriptor() {
return Telecommand_Type_descriptor();
}
static inline const ::std::string& Type_Name(Type value) {
return Telecommand_Type_Name(value);
}
static inline bool Type_Parse(const ::std::string& name,
Type* value) {
return Telecommand_Type_Parse(name, value);
}
// accessors -------------------------------------------------------
// required string reply_port = 1;
inline bool has_reply_port() const;
inline void clear_reply_port();
static const int kReplyPortFieldNumber = 1;
inline const ::std::string& reply_port() const;
inline void set_reply_port(const ::std::string& value);
inline void set_reply_port(const char* value);
inline void set_reply_port(const char* value, size_t size);
inline ::std::string* mutable_reply_port();
inline ::std::string* release_reply_port();
inline void set_allocated_reply_port(::std::string* reply_port);
// required .lunabotics.proto.Telecommand.Type type = 2;
inline bool has_type() const;
inline void clear_type();
static const int kTypeFieldNumber = 2;
inline ::lunabotics::proto::Telecommand_Type type() const;
inline void set_type(::lunabotics::proto::Telecommand_Type value);
// optional .lunabotics.proto.Telecommand.Teleoperation teleoperation_data = 3;
inline bool has_teleoperation_data() const;
inline void clear_teleoperation_data();
static const int kTeleoperationDataFieldNumber = 3;
inline const ::lunabotics::proto::Telecommand_Teleoperation& teleoperation_data() const;
inline ::lunabotics::proto::Telecommand_Teleoperation* mutable_teleoperation_data();
inline ::lunabotics::proto::Telecommand_Teleoperation* release_teleoperation_data();
inline void set_allocated_teleoperation_data(::lunabotics::proto::Telecommand_Teleoperation* teleoperation_data);
// optional .lunabotics.proto.Telecommand.Autonomy autonomy_data = 4;
inline bool has_autonomy_data() const;
inline void clear_autonomy_data();
static const int kAutonomyDataFieldNumber = 4;
inline const ::lunabotics::proto::Telecommand_Autonomy& autonomy_data() const;
inline ::lunabotics::proto::Telecommand_Autonomy* mutable_autonomy_data();
inline ::lunabotics::proto::Telecommand_Autonomy* release_autonomy_data();
inline void set_allocated_autonomy_data(::lunabotics::proto::Telecommand_Autonomy* autonomy_data);
// optional .lunabotics.proto.Telecommand.SteeringMode steering_mode_data = 5;
inline bool has_steering_mode_data() const;
inline void clear_steering_mode_data();
static const int kSteeringModeDataFieldNumber = 5;
inline const ::lunabotics::proto::Telecommand_SteeringMode& steering_mode_data() const;
inline ::lunabotics::proto::Telecommand_SteeringMode* mutable_steering_mode_data();
inline ::lunabotics::proto::Telecommand_SteeringMode* release_steering_mode_data();
inline void set_allocated_steering_mode_data(::lunabotics::proto::Telecommand_SteeringMode* steering_mode_data);
// optional .lunabotics.proto.Telecommand.DefineRoute define_route_data = 6;
inline bool has_define_route_data() const;
inline void clear_define_route_data();
static const int kDefineRouteDataFieldNumber = 6;
inline const ::lunabotics::proto::Telecommand_DefineRoute& define_route_data() const;
inline ::lunabotics::proto::Telecommand_DefineRoute* mutable_define_route_data();
inline ::lunabotics::proto::Telecommand_DefineRoute* release_define_route_data();
inline void set_allocated_define_route_data(::lunabotics::proto::Telecommand_DefineRoute* define_route_data);
// optional .lunabotics.proto.Telecommand.RequestMap request_map_data = 7;
inline bool has_request_map_data() const;
inline void clear_request_map_data();
static const int kRequestMapDataFieldNumber = 7;
inline const ::lunabotics::proto::Telecommand_RequestMap& request_map_data() const;
inline ::lunabotics::proto::Telecommand_RequestMap* mutable_request_map_data();
inline ::lunabotics::proto::Telecommand_RequestMap* release_request_map_data();
inline void set_allocated_request_map_data(::lunabotics::proto::Telecommand_RequestMap* request_map_data);
// optional .lunabotics.proto.Telecommand.AdjustPID adjust_pid_data = 8;
inline bool has_adjust_pid_data() const;
inline void clear_adjust_pid_data();
static const int kAdjustPidDataFieldNumber = 8;
inline const ::lunabotics::proto::Telecommand_AdjustPID& adjust_pid_data() const;
inline ::lunabotics::proto::Telecommand_AdjustPID* mutable_adjust_pid_data();
inline ::lunabotics::proto::Telecommand_AdjustPID* release_adjust_pid_data();
inline void set_allocated_adjust_pid_data(::lunabotics::proto::Telecommand_AdjustPID* adjust_pid_data);
// optional .lunabotics.proto.AllWheelControl all_wheel_control_data = 9;
inline bool has_all_wheel_control_data() const;
inline void clear_all_wheel_control_data();
static const int kAllWheelControlDataFieldNumber = 9;
inline const ::lunabotics::proto::AllWheelControl& all_wheel_control_data() const;
inline ::lunabotics::proto::AllWheelControl* mutable_all_wheel_control_data();
inline ::lunabotics::proto::AllWheelControl* release_all_wheel_control_data();
inline void set_allocated_all_wheel_control_data(::lunabotics::proto::AllWheelControl* all_wheel_control_data);
// @@protoc_insertion_point(class_scope:lunabotics.proto.Telecommand)
private:
inline void set_has_reply_port();
inline void clear_has_reply_port();
inline void set_has_type();
inline void clear_has_type();
inline void set_has_teleoperation_data();
inline void clear_has_teleoperation_data();
inline void set_has_autonomy_data();
inline void clear_has_autonomy_data();
inline void set_has_steering_mode_data();
inline void clear_has_steering_mode_data();
inline void set_has_define_route_data();
inline void clear_has_define_route_data();
inline void set_has_request_map_data();
inline void clear_has_request_map_data();
inline void set_has_adjust_pid_data();
inline void clear_has_adjust_pid_data();
inline void set_has_all_wheel_control_data();
inline void clear_has_all_wheel_control_data();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::std::string* reply_port_;
::lunabotics::proto::Telecommand_Teleoperation* teleoperation_data_;
::lunabotics::proto::Telecommand_Autonomy* autonomy_data_;
::lunabotics::proto::Telecommand_SteeringMode* steering_mode_data_;
::lunabotics::proto::Telecommand_DefineRoute* define_route_data_;
::lunabotics::proto::Telecommand_RequestMap* request_map_data_;
::lunabotics::proto::Telecommand_AdjustPID* adjust_pid_data_;
::lunabotics::proto::AllWheelControl* all_wheel_control_data_;
int type_;
mutable int _cached_size_;
::google::protobuf::uint32 _has_bits_[(9 + 31) / 32];
friend void protobuf_AddDesc_Telecommand_2eproto();
friend void protobuf_AssignDesc_Telecommand_2eproto();
friend void protobuf_ShutdownFile_Telecommand_2eproto();
void InitAsDefaultInstance();
static Telecommand* default_instance_;
};
// ===================================================================
// ===================================================================
// Telecommand_Teleoperation
// required bool forward = 1;
inline bool Telecommand_Teleoperation::has_forward() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void Telecommand_Teleoperation::set_has_forward() {
_has_bits_[0] |= 0x00000001u;
}
inline void Telecommand_Teleoperation::clear_has_forward() {
_has_bits_[0] &= ~0x00000001u;
}
inline void Telecommand_Teleoperation::clear_forward() {
forward_ = false;
clear_has_forward();
}
inline bool Telecommand_Teleoperation::forward() const {
return forward_;
}
inline void Telecommand_Teleoperation::set_forward(bool value) {
set_has_forward();
forward_ = value;
}
// required bool backward = 2;
inline bool Telecommand_Teleoperation::has_backward() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void Telecommand_Teleoperation::set_has_backward() {
_has_bits_[0] |= 0x00000002u;
}
inline void Telecommand_Teleoperation::clear_has_backward() {
_has_bits_[0] &= ~0x00000002u;
}
inline void Telecommand_Teleoperation::clear_backward() {
backward_ = false;
clear_has_backward();
}
inline bool Telecommand_Teleoperation::backward() const {
return backward_;
}
inline void Telecommand_Teleoperation::set_backward(bool value) {
set_has_backward();
backward_ = value;
}
// required bool left = 3;
inline bool Telecommand_Teleoperation::has_left() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void Telecommand_Teleoperation::set_has_left() {
_has_bits_[0] |= 0x00000004u;
}
inline void Telecommand_Teleoperation::clear_has_left() {
_has_bits_[0] &= ~0x00000004u;
}
inline void Telecommand_Teleoperation::clear_left() {
left_ = false;
clear_has_left();
}
inline bool Telecommand_Teleoperation::left() const {
return left_;
}
inline void Telecommand_Teleoperation::set_left(bool value) {
set_has_left();
left_ = value;
}
// required bool right = 4;
inline bool Telecommand_Teleoperation::has_right() const {
return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void Telecommand_Teleoperation::set_has_right() {
_has_bits_[0] |= 0x00000008u;
}
inline void Telecommand_Teleoperation::clear_has_right() {
_has_bits_[0] &= ~0x00000008u;
}
inline void Telecommand_Teleoperation::clear_right() {
right_ = false;
clear_has_right();
}
inline bool Telecommand_Teleoperation::right() const {
return right_;
}
inline void Telecommand_Teleoperation::set_right(bool value) {
set_has_right();
right_ = value;
}
// -------------------------------------------------------------------