Gazebo Msgs

API Reference

9.5.1
imu.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/imu.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fimu_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fimu_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3006001 < 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.
20 #endif
21 
22 #include <google/protobuf/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/unknown_field_set.h>
33 #include "gz/msgs/header.pb.h"
34 #include "gz/msgs/vector3d.pb.h"
35 #include "gz/msgs/quaternion.pb.h"
36 // @@protoc_insertion_point(includes)
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fimu_2eproto GZ_MSGS_VISIBLE
38 
40 // Internal implementation detail -- do not use these members.
41 struct GZ_MSGS_VISIBLE TableStruct {
42  static const ::google::protobuf::internal::ParseTableField entries[];
43  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44  static const ::google::protobuf::internal::ParseTable schema[1];
45  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46  static const ::google::protobuf::internal::SerializationTable serialization_table[];
47  static const ::google::protobuf::uint32 offsets[];
48 };
49 void GZ_MSGS_VISIBLE AddDescriptors();
50 } // namespace protobuf_gz_2fmsgs_2fimu_2eproto
51 namespace gz {
52 namespace msgs {
53 class IMU;
54 class IMUDefaultTypeInternal;
55 GZ_MSGS_VISIBLE extern IMUDefaultTypeInternal _IMU_default_instance_;
56 } // namespace msgs
57 } // namespace gz
58 namespace google {
59 namespace protobuf {
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::IMU* Arena::CreateMaybeMessage<::gz::msgs::IMU>(Arena*);
61 } // namespace protobuf
62 } // namespace google
63 namespace gz {
64 namespace msgs {
65 
66 // ===================================================================
67 
68 class GZ_MSGS_VISIBLE IMU : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.IMU) */ {
69  public:
70  IMU();
71  virtual ~IMU();
72 
73  IMU(const IMU& from);
74 
75  inline IMU& operator=(const IMU& from) {
76  CopyFrom(from);
77  return *this;
78  }
79  #if LANG_CXX11
80  IMU(IMU&& from) noexcept
81  : IMU() {
82  *this = ::std::move(from);
83  }
84 
85  inline IMU& operator=(IMU&& from) noexcept {
86  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
87  if (this != &from) InternalSwap(&from);
88  } else {
89  CopyFrom(from);
90  }
91  return *this;
92  }
93  #endif
94  static const ::google::protobuf::Descriptor* descriptor();
95  static const IMU& default_instance();
96 
97  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
98  static inline const IMU* internal_default_instance() {
99  return reinterpret_cast<const IMU*>(
101  }
102  static constexpr int kIndexInFileMessages =
103  0;
104 
105  void Swap(IMU* other);
106  friend void swap(IMU& a, IMU& b) {
107  a.Swap(&b);
108  }
109 
110  // implements Message ----------------------------------------------
111 
112  inline IMU* New() const final {
113  return CreateMaybeMessage<IMU>(NULL);
114  }
115 
116  IMU* New(::google::protobuf::Arena* arena) const final {
117  return CreateMaybeMessage<IMU>(arena);
118  }
119  void CopyFrom(const ::google::protobuf::Message& from) final;
120  void MergeFrom(const ::google::protobuf::Message& from) final;
121  void CopyFrom(const IMU& from);
122  void MergeFrom(const IMU& from);
123  void Clear() final;
124  bool IsInitialized() const final;
125 
126  size_t ByteSizeLong() const final;
127  bool MergePartialFromCodedStream(
128  ::google::protobuf::io::CodedInputStream* input) final;
129  void SerializeWithCachedSizes(
130  ::google::protobuf::io::CodedOutputStream* output) const final;
131  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
132  bool deterministic, ::google::protobuf::uint8* target) const final;
133  int GetCachedSize() const final { return _cached_size_.Get(); }
134 
135  private:
136  void SharedCtor();
137  void SharedDtor();
138  void SetCachedSize(int size) const final;
139  void InternalSwap(IMU* other);
140  private:
141  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
142  return NULL;
143  }
144  inline void* MaybeArenaPtr() const {
145  return NULL;
146  }
147  public:
148 
149  ::google::protobuf::Metadata GetMetadata() const final;
150 
151  // nested types ----------------------------------------------------
152 
153  // accessors -------------------------------------------------------
154 
155  // string entity_name = 2;
156  void clear_entity_name();
157  static const int kEntityNameFieldNumber = 2;
158  const ::std::string& entity_name() const;
159  void set_entity_name(const ::std::string& value);
160  #if LANG_CXX11
161  void set_entity_name(::std::string&& value);
162  #endif
163  void set_entity_name(const char* value);
164  void set_entity_name(const char* value, size_t size);
165  ::std::string* mutable_entity_name();
166  ::std::string* release_entity_name();
167  void set_allocated_entity_name(::std::string* entity_name);
168 
169  // .gz.msgs.Header header = 1;
170  bool has_header() const;
171  void clear_header();
172  static const int kHeaderFieldNumber = 1;
173  private:
174  const ::gz::msgs::Header& _internal_header() const;
175  public:
176  const ::gz::msgs::Header& header() const;
177  ::gz::msgs::Header* release_header();
178  ::gz::msgs::Header* mutable_header();
179  void set_allocated_header(::gz::msgs::Header* header);
180 
181  // .gz.msgs.Quaternion orientation = 3;
182  bool has_orientation() const;
183  void clear_orientation();
184  static const int kOrientationFieldNumber = 3;
185  private:
186  const ::gz::msgs::Quaternion& _internal_orientation() const;
187  public:
188  const ::gz::msgs::Quaternion& orientation() const;
189  ::gz::msgs::Quaternion* release_orientation();
190  ::gz::msgs::Quaternion* mutable_orientation();
191  void set_allocated_orientation(::gz::msgs::Quaternion* orientation);
192 
193  // .gz.msgs.Vector3d angular_velocity = 4;
194  bool has_angular_velocity() const;
195  void clear_angular_velocity();
196  static const int kAngularVelocityFieldNumber = 4;
197  private:
198  const ::gz::msgs::Vector3d& _internal_angular_velocity() const;
199  public:
200  const ::gz::msgs::Vector3d& angular_velocity() const;
201  ::gz::msgs::Vector3d* release_angular_velocity();
202  ::gz::msgs::Vector3d* mutable_angular_velocity();
203  void set_allocated_angular_velocity(::gz::msgs::Vector3d* angular_velocity);
204 
205  // .gz.msgs.Vector3d linear_acceleration = 5;
206  bool has_linear_acceleration() const;
207  void clear_linear_acceleration();
208  static const int kLinearAccelerationFieldNumber = 5;
209  private:
210  const ::gz::msgs::Vector3d& _internal_linear_acceleration() const;
211  public:
212  const ::gz::msgs::Vector3d& linear_acceleration() const;
213  ::gz::msgs::Vector3d* release_linear_acceleration();
214  ::gz::msgs::Vector3d* mutable_linear_acceleration();
215  void set_allocated_linear_acceleration(::gz::msgs::Vector3d* linear_acceleration);
216 
217  // @@protoc_insertion_point(class_scope:gz.msgs.IMU)
218  private:
219 
220  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
221  ::google::protobuf::internal::ArenaStringPtr entity_name_;
222  ::gz::msgs::Header* header_;
223  ::gz::msgs::Quaternion* orientation_;
224  ::gz::msgs::Vector3d* angular_velocity_;
225  ::gz::msgs::Vector3d* linear_acceleration_;
226  mutable ::google::protobuf::internal::CachedSize _cached_size_;
227  friend struct ::protobuf_gz_2fmsgs_2fimu_2eproto::TableStruct;
228 };
229 // ===================================================================
230 
231 
232 // ===================================================================
233 
234 #ifdef __GNUC__
235  #pragma GCC diagnostic push
236  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
237 #endif // __GNUC__
238 // IMU
239 
240 // .gz.msgs.Header header = 1;
241 inline bool IMU::has_header() const {
242  return this != internal_default_instance() && header_ != NULL;
243 }
244 inline const ::gz::msgs::Header& IMU::_internal_header() const {
245  return *header_;
246 }
247 inline const ::gz::msgs::Header& IMU::header() const {
248  const ::gz::msgs::Header* p = header_;
249  // @@protoc_insertion_point(field_get:gz.msgs.IMU.header)
250  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
252 }
253 inline ::gz::msgs::Header* IMU::release_header() {
254  // @@protoc_insertion_point(field_release:gz.msgs.IMU.header)
255 
256  ::gz::msgs::Header* temp = header_;
257  header_ = NULL;
258  return temp;
259 }
260 inline ::gz::msgs::Header* IMU::mutable_header() {
261 
262  if (header_ == NULL) {
263  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
264  header_ = p;
265  }
266  // @@protoc_insertion_point(field_mutable:gz.msgs.IMU.header)
267  return header_;
268 }
270  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
271  if (message_arena == NULL) {
272  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
273  }
274  if (header) {
275  ::google::protobuf::Arena* submessage_arena = NULL;
276  if (message_arena != submessage_arena) {
277  header = ::google::protobuf::internal::GetOwnedMessage(
278  message_arena, header, submessage_arena);
279  }
280 
281  } else {
282 
283  }
284  header_ = header;
285  // @@protoc_insertion_point(field_set_allocated:gz.msgs.IMU.header)
286 }
287 
288 // string entity_name = 2;
289 inline void IMU::clear_entity_name() {
290  entity_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
291 }
292 inline const ::std::string& IMU::entity_name() const {
293  // @@protoc_insertion_point(field_get:gz.msgs.IMU.entity_name)
294  return entity_name_.GetNoArena();
295 }
296 inline void IMU::set_entity_name(const ::std::string& value) {
297 
298  entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
299  // @@protoc_insertion_point(field_set:gz.msgs.IMU.entity_name)
300 }
301 #if LANG_CXX11
302 inline void IMU::set_entity_name(::std::string&& value) {
303 
304  entity_name_.SetNoArena(
305  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
306  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.IMU.entity_name)
307 }
308 #endif
309 inline void IMU::set_entity_name(const char* value) {
310  GOOGLE_DCHECK(value != NULL);
311 
312  entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
313  // @@protoc_insertion_point(field_set_char:gz.msgs.IMU.entity_name)
314 }
315 inline void IMU::set_entity_name(const char* value, size_t size) {
316 
317  entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
318  ::std::string(reinterpret_cast<const char*>(value), size));
319  // @@protoc_insertion_point(field_set_pointer:gz.msgs.IMU.entity_name)
320 }
321 inline ::std::string* IMU::mutable_entity_name() {
322 
323  // @@protoc_insertion_point(field_mutable:gz.msgs.IMU.entity_name)
324  return entity_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
325 }
326 inline ::std::string* IMU::release_entity_name() {
327  // @@protoc_insertion_point(field_release:gz.msgs.IMU.entity_name)
328 
329  return entity_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
330 }
331 inline void IMU::set_allocated_entity_name(::std::string* entity_name) {
332  if (entity_name != NULL) {
333 
334  } else {
335 
336  }
337  entity_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), entity_name);
338  // @@protoc_insertion_point(field_set_allocated:gz.msgs.IMU.entity_name)
339 }
340 
341 // .gz.msgs.Quaternion orientation = 3;
342 inline bool IMU::has_orientation() const {
343  return this != internal_default_instance() && orientation_ != NULL;
344 }
345 inline const ::gz::msgs::Quaternion& IMU::_internal_orientation() const {
346  return *orientation_;
347 }
348 inline const ::gz::msgs::Quaternion& IMU::orientation() const {
349  const ::gz::msgs::Quaternion* p = orientation_;
350  // @@protoc_insertion_point(field_get:gz.msgs.IMU.orientation)
351  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Quaternion*>(
353 }
354 inline ::gz::msgs::Quaternion* IMU::release_orientation() {
355  // @@protoc_insertion_point(field_release:gz.msgs.IMU.orientation)
356 
357  ::gz::msgs::Quaternion* temp = orientation_;
358  orientation_ = NULL;
359  return temp;
360 }
361 inline ::gz::msgs::Quaternion* IMU::mutable_orientation() {
362 
363  if (orientation_ == NULL) {
364  auto* p = CreateMaybeMessage<::gz::msgs::Quaternion>(GetArenaNoVirtual());
365  orientation_ = p;
366  }
367  // @@protoc_insertion_point(field_mutable:gz.msgs.IMU.orientation)
368  return orientation_;
369 }
371  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
372  if (message_arena == NULL) {
373  delete reinterpret_cast< ::google::protobuf::MessageLite*>(orientation_);
374  }
375  if (orientation) {
376  ::google::protobuf::Arena* submessage_arena = NULL;
377  if (message_arena != submessage_arena) {
378  orientation = ::google::protobuf::internal::GetOwnedMessage(
379  message_arena, orientation, submessage_arena);
380  }
381 
382  } else {
383 
384  }
385  orientation_ = orientation;
386  // @@protoc_insertion_point(field_set_allocated:gz.msgs.IMU.orientation)
387 }
388 
389 // .gz.msgs.Vector3d angular_velocity = 4;
390 inline bool IMU::has_angular_velocity() const {
391  return this != internal_default_instance() && angular_velocity_ != NULL;
392 }
393 inline const ::gz::msgs::Vector3d& IMU::_internal_angular_velocity() const {
394  return *angular_velocity_;
395 }
396 inline const ::gz::msgs::Vector3d& IMU::angular_velocity() const {
397  const ::gz::msgs::Vector3d* p = angular_velocity_;
398  // @@protoc_insertion_point(field_get:gz.msgs.IMU.angular_velocity)
399  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector3d*>(
401 }
402 inline ::gz::msgs::Vector3d* IMU::release_angular_velocity() {
403  // @@protoc_insertion_point(field_release:gz.msgs.IMU.angular_velocity)
404 
405  ::gz::msgs::Vector3d* temp = angular_velocity_;
406  angular_velocity_ = NULL;
407  return temp;
408 }
409 inline ::gz::msgs::Vector3d* IMU::mutable_angular_velocity() {
410 
411  if (angular_velocity_ == NULL) {
412  auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
413  angular_velocity_ = p;
414  }
415  // @@protoc_insertion_point(field_mutable:gz.msgs.IMU.angular_velocity)
416  return angular_velocity_;
417 }
418 inline void IMU::set_allocated_angular_velocity(::gz::msgs::Vector3d* angular_velocity) {
419  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
420  if (message_arena == NULL) {
421  delete reinterpret_cast< ::google::protobuf::MessageLite*>(angular_velocity_);
422  }
423  if (angular_velocity) {
424  ::google::protobuf::Arena* submessage_arena = NULL;
425  if (message_arena != submessage_arena) {
426  angular_velocity = ::google::protobuf::internal::GetOwnedMessage(
427  message_arena, angular_velocity, submessage_arena);
428  }
429 
430  } else {
431 
432  }
433  angular_velocity_ = angular_velocity;
434  // @@protoc_insertion_point(field_set_allocated:gz.msgs.IMU.angular_velocity)
435 }
436 
437 // .gz.msgs.Vector3d linear_acceleration = 5;
438 inline bool IMU::has_linear_acceleration() const {
439  return this != internal_default_instance() && linear_acceleration_ != NULL;
440 }
441 inline const ::gz::msgs::Vector3d& IMU::_internal_linear_acceleration() const {
442  return *linear_acceleration_;
443 }
444 inline const ::gz::msgs::Vector3d& IMU::linear_acceleration() const {
445  const ::gz::msgs::Vector3d* p = linear_acceleration_;
446  // @@protoc_insertion_point(field_get:gz.msgs.IMU.linear_acceleration)
447  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Vector3d*>(
449 }
450 inline ::gz::msgs::Vector3d* IMU::release_linear_acceleration() {
451  // @@protoc_insertion_point(field_release:gz.msgs.IMU.linear_acceleration)
452 
453  ::gz::msgs::Vector3d* temp = linear_acceleration_;
454  linear_acceleration_ = NULL;
455  return temp;
456 }
457 inline ::gz::msgs::Vector3d* IMU::mutable_linear_acceleration() {
458 
459  if (linear_acceleration_ == NULL) {
460  auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
461  linear_acceleration_ = p;
462  }
463  // @@protoc_insertion_point(field_mutable:gz.msgs.IMU.linear_acceleration)
464  return linear_acceleration_;
465 }
466 inline void IMU::set_allocated_linear_acceleration(::gz::msgs::Vector3d* linear_acceleration) {
467  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
468  if (message_arena == NULL) {
469  delete reinterpret_cast< ::google::protobuf::MessageLite*>(linear_acceleration_);
470  }
471  if (linear_acceleration) {
472  ::google::protobuf::Arena* submessage_arena = NULL;
473  if (message_arena != submessage_arena) {
474  linear_acceleration = ::google::protobuf::internal::GetOwnedMessage(
475  message_arena, linear_acceleration, submessage_arena);
476  }
477 
478  } else {
479 
480  }
481  linear_acceleration_ = linear_acceleration;
482  // @@protoc_insertion_point(field_set_allocated:gz.msgs.IMU.linear_acceleration)
483 }
484 
485 #ifdef __GNUC__
486  #pragma GCC diagnostic pop
487 #endif // __GNUC__
488 
489 // @@protoc_insertion_point(namespace_scope)
490 
491 } // namespace msgs
492 } // namespace gz
493 
494 // @@protoc_insertion_point(global_scope)
495 
496 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fimu_2eproto