4 #ifndef PROTOBUF_ignition_2fmsgs_2fhydra_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fhydra_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 3000000 12 #error This file was generated by a newer version of protoc which is 13 #error incompatible with your Protocol Buffer headers. Please update 16 #if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 17 #error This file was generated by an older version of protoc which is 18 #error incompatible with your Protocol Buffer headers. Please 19 #error regenerate this file with a newer version of protoc. 22 #include <google/protobuf/arena.h> 23 #include <google/protobuf/arenastring.h> 24 #include <google/protobuf/generated_message_util.h> 25 #include <google/protobuf/metadata.h> 26 #include <google/protobuf/message.h> 27 #include <google/protobuf/repeated_field.h> 28 #include <google/protobuf/extension_set.h> 29 #include <google/protobuf/unknown_field_set.h> 33 #pragma GCC system_header 36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 39 #include <sys/sysmacros.h> 58 class IGNITION_MSGS_VISIBLE
Hydra_Paddle :
public ::google::protobuf::Message {
70 static const ::google::protobuf::Descriptor* descriptor();
79 Hydra_Paddle* New(::google::protobuf::Arena* arena)
const;
80 void CopyFrom(const ::google::protobuf::Message& from);
81 void MergeFrom(const ::google::protobuf::Message& from);
85 bool IsInitialized()
const;
88 bool MergePartialFromCodedStream(
89 ::google::protobuf::io::CodedInputStream* input);
90 void SerializeWithCachedSizes(
91 ::google::protobuf::io::CodedOutputStream* output)
const;
92 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
93 bool deterministic, ::google::protobuf::uint8* output)
const;
95 return InternalSerializeWithCachedSizesToArray(
false, output);
101 void SetCachedSize(
int size)
const;
104 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
105 return _internal_metadata_.arena();
107 inline void* MaybeArenaPtr()
const {
108 return _internal_metadata_.raw_arena_ptr();
112 ::google::protobuf::Metadata GetMetadata()
const;
119 bool has_pose()
const;
121 static const int kPoseFieldNumber = 1;
122 const ::ignition::msgs::Pose& pose()
const;
128 void clear_button_bumper();
129 static const int kButtonBumperFieldNumber = 2;
130 bool button_bumper()
const;
131 void set_button_bumper(
bool value);
134 void clear_button_1();
135 static const int kButton1FieldNumber = 3;
136 bool button_1()
const;
137 void set_button_1(
bool value);
140 void clear_button_2();
141 static const int kButton2FieldNumber = 4;
142 bool button_2()
const;
143 void set_button_2(
bool value);
146 void clear_button_3();
147 static const int kButton3FieldNumber = 5;
148 bool button_3()
const;
149 void set_button_3(
bool value);
152 void clear_button_4();
153 static const int kButton4FieldNumber = 6;
154 bool button_4()
const;
155 void set_button_4(
bool value);
158 void clear_button_joy();
159 static const int kButtonJoyFieldNumber = 7;
160 bool button_joy()
const;
161 void set_button_joy(
bool value);
164 void clear_button_center();
165 static const int kButtonCenterFieldNumber = 8;
166 bool button_center()
const;
167 void set_button_center(
bool value);
171 static const int kJoyXFieldNumber = 9;
172 double joy_x()
const;
173 void set_joy_x(
double value);
177 static const int kJoyYFieldNumber = 10;
178 double joy_y()
const;
179 void set_joy_y(
double value);
182 void clear_trigger();
183 static const int kTriggerFieldNumber = 11;
184 double trigger()
const;
185 void set_trigger(
double value);
190 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
191 bool _is_default_instance_;
203 mutable int _cached_size_;
208 void InitAsDefaultInstance();
213 class IGNITION_MSGS_VISIBLE
Hydra :
public ::google::protobuf::Message {
225 static const ::google::protobuf::Descriptor* descriptor();
226 static const Hydra& default_instance();
228 void Swap(
Hydra* other);
234 Hydra* New(::google::protobuf::Arena* arena)
const;
235 void CopyFrom(const ::google::protobuf::Message& from);
236 void MergeFrom(const ::google::protobuf::Message& from);
237 void CopyFrom(
const Hydra& from);
238 void MergeFrom(
const Hydra& from);
240 bool IsInitialized()
const;
242 int ByteSize()
const;
243 bool MergePartialFromCodedStream(
244 ::google::protobuf::io::CodedInputStream* input);
245 void SerializeWithCachedSizes(
246 ::google::protobuf::io::CodedOutputStream* output)
const;
247 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
248 bool deterministic, ::google::protobuf::uint8* output)
const;
250 return InternalSerializeWithCachedSizesToArray(
false, output);
256 void SetCachedSize(
int size)
const;
257 void InternalSwap(
Hydra* other);
259 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
260 return _internal_metadata_.arena();
262 inline void* MaybeArenaPtr()
const {
263 return _internal_metadata_.raw_arena_ptr();
267 ::google::protobuf::Metadata GetMetadata()
const;
276 bool has_header()
const;
278 static const int kHeaderFieldNumber = 1;
279 const ::ignition::msgs::Header& header()
const;
285 bool has_right()
const;
287 static const int kRightFieldNumber = 2;
288 const ::ignition::msgs::Hydra_Paddle& right()
const;
294 bool has_left()
const;
296 static const int kLeftFieldNumber = 3;
297 const ::ignition::msgs::Hydra_Paddle& left()
const;
305 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
306 bool _is_default_instance_;
310 mutable int _cached_size_;
315 void InitAsDefaultInstance();
316 static Hydra* default_instance_;
323 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 328 return !_is_default_instance_ && pose_ != NULL;
331 if (GetArenaNoVirtual() == NULL && pose_ != NULL)
delete pose_;
336 return pose_ != NULL ? *pose_ : *default_instance_->pose_;
341 pose_ = new ::ignition::msgs::Pose;
366 button_bumper_ =
false;
370 return button_bumper_;
374 button_bumper_ = value;
450 button_center_ =
false;
454 return button_center_;
458 button_center_ = value;
510 return !_is_default_instance_ && header_ != NULL;
513 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
518 return header_ != NULL ? *header_ : *default_instance_->header_;
522 if (header_ == NULL) {
523 header_ = new ::ignition::msgs::Header;
548 return !_is_default_instance_ && right_ != NULL;
551 if (GetArenaNoVirtual() == NULL && right_ != NULL)
delete right_;
556 return right_ != NULL ? *right_ : *default_instance_->right_;
560 if (right_ == NULL) {
561 right_ = new ::ignition::msgs::Hydra_Paddle;
586 return !_is_default_instance_ && left_ != NULL;
589 if (GetArenaNoVirtual() == NULL && left_ != NULL)
delete left_;
592 inline const ::ignition::msgs::Hydra_Paddle&
Hydra::left()
const {
594 return left_ != NULL ? *left_ : *default_instance_->left_;
599 left_ = new ::ignition::msgs::Hydra_Paddle;
622 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 640 #endif // PROTOBUF_ignition_2fmsgs_2fhydra_2eproto__INCLUDED Hydra & operator=(const Hydra &from)
Definition: hydra.pb.h:220
void protobuf_AssignDesc_ignition_2fmsgs_2fhydra_2eproto()
void clear_button_joy()
Definition: hydra.pb.h:435
double joy_y() const
Definition: hydra.pb.h:480
::ignition::msgs::Header * release_header()
Definition: hydra.pb.h:528
void clear_joy_x()
Definition: hydra.pb.h:463
bool has_pose() const
Definition: hydra.pb.h:327
void set_button_joy(bool value)
Definition: hydra.pb.h:442
::ignition::msgs::Pose * mutable_pose()
Definition: hydra.pb.h:338
bool has_left() const
Definition: hydra.pb.h:585
std::shared_ptr< const Hydra > ConstHydraSharedPtr
Definition: hydra.pb.h:629
bool has_header() const
Definition: hydra.pb.h:509
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fhydra_2eproto()
void set_button_1(bool value)
Definition: hydra.pb.h:386
const ::ignition::msgs::Pose & pose() const
Definition: hydra.pb.h:334
void set_button_bumper(bool value)
Definition: hydra.pb.h:372
void protobuf_ShutdownFile_ignition_2fmsgs_2fhydra_2eproto()
void clear_header()
Definition: hydra.pb.h:512
void clear_pose()
Definition: hydra.pb.h:330
void clear_button_bumper()
Definition: hydra.pb.h:365
int GetCachedSize() const
Definition: hydra.pb.h:252
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: hydra.pb.h:249
void clear_button_3()
Definition: hydra.pb.h:407
double joy_x() const
Definition: hydra.pb.h:466
void set_button_center(bool value)
Definition: hydra.pb.h:456
::ignition::msgs::Hydra_Paddle * release_right()
Definition: hydra.pb.h:566
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: hydra.pb.h:94
double trigger() const
Definition: hydra.pb.h:494
void clear_left()
Definition: hydra.pb.h:588
void clear_button_4()
Definition: hydra.pb.h:421
::ignition::msgs::Pose * release_pose()
Definition: hydra.pb.h:346
const ::ignition::msgs::Hydra_Paddle & right() const
Definition: hydra.pb.h:554
std::unique_ptr< const Hydra > ConstHydraUniquePtr
Definition: hydra.pb.h:627
::ignition::msgs::Header * mutable_header()
Definition: hydra.pb.h:520
Hydra_Paddle * New() const
Definition: hydra.pb.h:77
void set_allocated_left(::ignition::msgs::Hydra_Paddle *left)
Definition: hydra.pb.h:611
void set_button_4(bool value)
Definition: hydra.pb.h:428
std::shared_ptr< Hydra > HydraSharedPtr
Definition: hydra.pb.h:628
void clear_trigger()
Definition: hydra.pb.h:491
void clear_button_1()
Definition: hydra.pb.h:379
Hydra_Paddle & operator=(const Hydra_Paddle &from)
Definition: hydra.pb.h:65
bool button_4() const
Definition: hydra.pb.h:424
void clear_joy_y()
Definition: hydra.pb.h:477
Definition: hydra.pb.h:213
void clear_button_2()
Definition: hydra.pb.h:393
Hydra_Paddle Paddle
Definition: hydra.pb.h:271
bool button_bumper() const
Definition: hydra.pb.h:368
void set_joy_y(double value)
Definition: hydra.pb.h:484
bool button_joy() const
Definition: hydra.pb.h:438
std::unique_ptr< Hydra > HydraUniquePtr
Definition: hydra.pb.h:626
void set_joy_x(double value)
Definition: hydra.pb.h:470
void set_button_3(bool value)
Definition: hydra.pb.h:414
void clear_button_center()
Definition: hydra.pb.h:449
const ::ignition::msgs::Header & header() const
Definition: hydra.pb.h:516
void set_allocated_pose(::ignition::msgs::Pose *pose)
Definition: hydra.pb.h:353
::ignition::msgs::Hydra_Paddle * release_left()
Definition: hydra.pb.h:604
bool button_1() const
Definition: hydra.pb.h:382
void clear_right()
Definition: hydra.pb.h:550
bool button_2() const
Definition: hydra.pb.h:396
const ::ignition::msgs::Hydra_Paddle & left() const
Definition: hydra.pb.h:592
::ignition::msgs::Hydra_Paddle * mutable_right()
Definition: hydra.pb.h:558
Hydra * New() const
Definition: hydra.pb.h:232
Definition: hydra.pb.h:58
int GetCachedSize() const
Definition: hydra.pb.h:97
void set_trigger(double value)
Definition: hydra.pb.h:498
bool button_3() const
Definition: hydra.pb.h:410
bool button_center() const
Definition: hydra.pb.h:452
void set_allocated_right(::ignition::msgs::Hydra_Paddle *right)
Definition: hydra.pb.h:573
::ignition::msgs::Hydra_Paddle * mutable_left()
Definition: hydra.pb.h:596
void set_allocated_header(::ignition::msgs::Header *header)
Definition: hydra.pb.h:535
void set_button_2(bool value)
Definition: hydra.pb.h:400
bool has_right() const
Definition: hydra.pb.h:547