Ignition Msgs

API Reference

5.8.1
imu.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/imu.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fimu_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fimu_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3019000
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 3019000 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
32 #include <google/protobuf/extension_set.h> // IWYU pragma: export
33 #include <google/protobuf/unknown_field_set.h>
37 #ifndef _MSC_VER
38 #pragma GCC system_header
39 #else
40 #pragma warning(push)
41 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
42 #endif
43 #ifdef __linux__
44 #include <sys/sysmacros.h>
45 #endif
46 #include <memory>
47 #include <ignition/msgs/Export.hh>
48 // @@protoc_insertion_point(includes)
49 #include <google/protobuf/port_def.inc>
50 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fimu_2eproto IGNITION_MSGS_VISIBLE
51 PROTOBUF_NAMESPACE_OPEN
52 namespace internal {
53 class AnyMetadata;
54 } // namespace internal
55 PROTOBUF_NAMESPACE_CLOSE
56 
57 // Internal implementation detail -- do not use these members.
58 struct IGNITION_MSGS_VISIBLE TableStruct_ignition_2fmsgs_2fimu_2eproto {
59  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
60  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
61  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
62  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
63  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
64  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
65  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
66  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
67  static const uint32_t offsets[];
68 };
69 IGNITION_MSGS_VISIBLE extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fimu_2eproto;
70 namespace ignition {
71 namespace msgs {
72 class IMU;
73 struct IMUDefaultTypeInternal;
74 IGNITION_MSGS_VISIBLE extern IMUDefaultTypeInternal _IMU_default_instance_;
75 } // namespace msgs
76 } // namespace ignition
77 PROTOBUF_NAMESPACE_OPEN
78 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::IMU* Arena::CreateMaybeMessage<::ignition::msgs::IMU>(Arena*);
79 PROTOBUF_NAMESPACE_CLOSE
80 namespace ignition {
81 namespace msgs {
82 
83 // ===================================================================
84 
85 class IGNITION_MSGS_VISIBLE IMU final :
86  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.IMU) */ {
87  public:
88  inline IMU() : IMU(nullptr) {}
89  ~IMU() override;
90  explicit constexpr IMU(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
91 
92  IMU(const IMU& from);
93  IMU(IMU&& from) noexcept
94  : IMU() {
95  *this = ::std::move(from);
96  }
97 
98  inline IMU& operator=(const IMU& from) {
99  CopyFrom(from);
100  return *this;
101  }
102  inline IMU& operator=(IMU&& from) noexcept {
103  if (this == &from) return *this;
104  if (GetOwningArena() == from.GetOwningArena()
105  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
106  && GetOwningArena() != nullptr
107  #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
108  ) {
109  InternalSwap(&from);
110  } else {
111  CopyFrom(from);
112  }
113  return *this;
114  }
115 
116  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
117  return GetDescriptor();
118  }
119  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
120  return default_instance().GetMetadata().descriptor;
121  }
122  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
123  return default_instance().GetMetadata().reflection;
124  }
125  static const IMU& default_instance() {
126  return *internal_default_instance();
127  }
128  static inline const IMU* internal_default_instance() {
129  return reinterpret_cast<const IMU*>(
131  }
132  static constexpr int kIndexInFileMessages =
133  0;
134 
135  friend void swap(IMU& a, IMU& b) {
136  a.Swap(&b);
137  }
138  inline void Swap(IMU* other) {
139  if (other == this) return;
140  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
141  if (GetOwningArena() != nullptr &&
142  GetOwningArena() == other->GetOwningArena()) {
143  #else // PROTOBUF_FORCE_COPY_IN_SWAP
144  if (GetOwningArena() == other->GetOwningArena()) {
145  #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
146  InternalSwap(other);
147  } else {
148  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
149  }
150  }
151  void UnsafeArenaSwap(IMU* other) {
152  if (other == this) return;
153  GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
154  InternalSwap(other);
155  }
156 
157  // implements Message ----------------------------------------------
158 
159  IMU* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
160  return CreateMaybeMessage<IMU>(arena);
161  }
162  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
163  void CopyFrom(const IMU& from);
164  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
165  void MergeFrom(const IMU& from);
166  private:
167  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
168  public:
169  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
170  bool IsInitialized() const final;
171 
172  size_t ByteSizeLong() const final;
173  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
174  uint8_t* _InternalSerialize(
175  uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
176  int GetCachedSize() const final { return _cached_size_.Get(); }
177 
178  private:
179  void SharedCtor();
180  void SharedDtor();
181  void SetCachedSize(int size) const final;
182  void InternalSwap(IMU* other);
183 
184  private:
185  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
186  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
187  return "ignition.msgs.IMU";
188  }
189  protected:
190  explicit IMU(::PROTOBUF_NAMESPACE_ID::Arena* arena,
191  bool is_message_owned = false);
192  private:
193  static void ArenaDtor(void* object);
194  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
195  public:
196 
197  static const ClassData _class_data_;
198  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
199 
200  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
201 
202  // nested types ----------------------------------------------------
203 
204  // accessors -------------------------------------------------------
205 
206  enum : int {
207  kEntityNameFieldNumber = 2,
208  kHeaderFieldNumber = 1,
209  kOrientationFieldNumber = 3,
210  kAngularVelocityFieldNumber = 4,
211  kLinearAccelerationFieldNumber = 5,
212  };
213  // string entity_name = 2;
214  void clear_entity_name();
215  const std::string& entity_name() const;
216  template <typename ArgT0 = const std::string&, typename... ArgT>
217  void set_entity_name(ArgT0&& arg0, ArgT... args);
218  std::string* mutable_entity_name();
219  PROTOBUF_NODISCARD std::string* release_entity_name();
220  void set_allocated_entity_name(std::string* entity_name);
221  private:
222  const std::string& _internal_entity_name() const;
223  inline PROTOBUF_ALWAYS_INLINE void _internal_set_entity_name(const std::string& value);
224  std::string* _internal_mutable_entity_name();
225  public:
226 
227  // .ignition.msgs.Header header = 1;
228  bool has_header() const;
229  private:
230  bool _internal_has_header() const;
231  public:
232  void clear_header();
233  const ::ignition::msgs::Header& header() const;
234  PROTOBUF_NODISCARD ::ignition::msgs::Header* release_header();
235  ::ignition::msgs::Header* mutable_header();
236  void set_allocated_header(::ignition::msgs::Header* header);
237  private:
238  const ::ignition::msgs::Header& _internal_header() const;
239  ::ignition::msgs::Header* _internal_mutable_header();
240  public:
241  void unsafe_arena_set_allocated_header(
242  ::ignition::msgs::Header* header);
243  ::ignition::msgs::Header* unsafe_arena_release_header();
244 
245  // .ignition.msgs.Quaternion orientation = 3;
246  bool has_orientation() const;
247  private:
248  bool _internal_has_orientation() const;
249  public:
251  const ::ignition::msgs::Quaternion& orientation() const;
252  PROTOBUF_NODISCARD ::ignition::msgs::Quaternion* release_orientation();
253  ::ignition::msgs::Quaternion* mutable_orientation();
254  void set_allocated_orientation(::ignition::msgs::Quaternion* orientation);
255  private:
256  const ::ignition::msgs::Quaternion& _internal_orientation() const;
257  ::ignition::msgs::Quaternion* _internal_mutable_orientation();
258  public:
259  void unsafe_arena_set_allocated_orientation(
260  ::ignition::msgs::Quaternion* orientation);
261  ::ignition::msgs::Quaternion* unsafe_arena_release_orientation();
262 
263  // .ignition.msgs.Vector3d angular_velocity = 4;
264  bool has_angular_velocity() const;
265  private:
266  bool _internal_has_angular_velocity() const;
267  public:
269  const ::ignition::msgs::Vector3d& angular_velocity() const;
270  PROTOBUF_NODISCARD ::ignition::msgs::Vector3d* release_angular_velocity();
271  ::ignition::msgs::Vector3d* mutable_angular_velocity();
272  void set_allocated_angular_velocity(::ignition::msgs::Vector3d* angular_velocity);
273  private:
274  const ::ignition::msgs::Vector3d& _internal_angular_velocity() const;
275  ::ignition::msgs::Vector3d* _internal_mutable_angular_velocity();
276  public:
277  void unsafe_arena_set_allocated_angular_velocity(
278  ::ignition::msgs::Vector3d* angular_velocity);
279  ::ignition::msgs::Vector3d* unsafe_arena_release_angular_velocity();
280 
281  // .ignition.msgs.Vector3d linear_acceleration = 5;
282  bool has_linear_acceleration() const;
283  private:
284  bool _internal_has_linear_acceleration() const;
285  public:
287  const ::ignition::msgs::Vector3d& linear_acceleration() const;
288  PROTOBUF_NODISCARD ::ignition::msgs::Vector3d* release_linear_acceleration();
289  ::ignition::msgs::Vector3d* mutable_linear_acceleration();
290  void set_allocated_linear_acceleration(::ignition::msgs::Vector3d* linear_acceleration);
291  private:
292  const ::ignition::msgs::Vector3d& _internal_linear_acceleration() const;
293  ::ignition::msgs::Vector3d* _internal_mutable_linear_acceleration();
294  public:
295  void unsafe_arena_set_allocated_linear_acceleration(
296  ::ignition::msgs::Vector3d* linear_acceleration);
297  ::ignition::msgs::Vector3d* unsafe_arena_release_linear_acceleration();
298 
299  // @@protoc_insertion_point(class_scope:ignition.msgs.IMU)
300  private:
301  class _Internal;
302 
303  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
304  typedef void InternalArenaConstructable_;
305  typedef void DestructorSkippable_;
306  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr entity_name_;
307  ::ignition::msgs::Header* header_;
308  ::ignition::msgs::Quaternion* orientation_;
309  ::ignition::msgs::Vector3d* angular_velocity_;
310  ::ignition::msgs::Vector3d* linear_acceleration_;
311  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
312  friend struct ::TableStruct_ignition_2fmsgs_2fimu_2eproto;
313 };
314 // ===================================================================
315 
316 
317 // ===================================================================
318 
319 #ifdef __GNUC__
320  #pragma GCC diagnostic push
321  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
322 #endif // __GNUC__
323 // IMU
324 
325 // .ignition.msgs.Header header = 1;
326 inline bool IMU::_internal_has_header() const {
327  return this != internal_default_instance() && header_ != nullptr;
328 }
329 inline bool IMU::has_header() const {
330  return _internal_has_header();
331 }
332 inline const ::ignition::msgs::Header& IMU::_internal_header() const {
333  const ::ignition::msgs::Header* p = header_;
334  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
336 }
337 inline const ::ignition::msgs::Header& IMU::header() const {
338  // @@protoc_insertion_point(field_get:ignition.msgs.IMU.header)
339  return _internal_header();
340 }
342  ::ignition::msgs::Header* header) {
343  if (GetArenaForAllocation() == nullptr) {
344  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
345  }
346  header_ = header;
347  if (header) {
348 
349  } else {
350 
351  }
352  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.IMU.header)
353 }
354 inline ::ignition::msgs::Header* IMU::release_header() {
355 
356  ::ignition::msgs::Header* temp = header_;
357  header_ = nullptr;
358 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
359  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
360  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
361  if (GetArenaForAllocation() == nullptr) { delete old; }
362 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
363  if (GetArenaForAllocation() != nullptr) {
364  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
365  }
366 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
367  return temp;
368 }
369 inline ::ignition::msgs::Header* IMU::unsafe_arena_release_header() {
370  // @@protoc_insertion_point(field_release:ignition.msgs.IMU.header)
371 
372  ::ignition::msgs::Header* temp = header_;
373  header_ = nullptr;
374  return temp;
375 }
376 inline ::ignition::msgs::Header* IMU::_internal_mutable_header() {
377 
378  if (header_ == nullptr) {
379  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
380  header_ = p;
381  }
382  return header_;
383 }
384 inline ::ignition::msgs::Header* IMU::mutable_header() {
385  ::ignition::msgs::Header* _msg = _internal_mutable_header();
386  // @@protoc_insertion_point(field_mutable:ignition.msgs.IMU.header)
387  return _msg;
388 }
390  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
391  if (message_arena == nullptr) {
392  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
393  }
394  if (header) {
395  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
396  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
397  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
398  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header));
399  if (message_arena != submessage_arena) {
400  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
401  message_arena, header, submessage_arena);
402  }
403 
404  } else {
405 
406  }
407  header_ = header;
408  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.IMU.header)
409 }
410 
411 // string entity_name = 2;
412 inline void IMU::clear_entity_name() {
413  entity_name_.ClearToEmpty();
414 }
415 inline const std::string& IMU::entity_name() const {
416  // @@protoc_insertion_point(field_get:ignition.msgs.IMU.entity_name)
417  return _internal_entity_name();
418 }
419 template <typename ArgT0, typename... ArgT>
420 inline PROTOBUF_ALWAYS_INLINE
421 void IMU::set_entity_name(ArgT0&& arg0, ArgT... args) {
422 
423  entity_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
424  // @@protoc_insertion_point(field_set:ignition.msgs.IMU.entity_name)
425 }
427  std::string* _s = _internal_mutable_entity_name();
428  // @@protoc_insertion_point(field_mutable:ignition.msgs.IMU.entity_name)
429  return _s;
430 }
431 inline const std::string& IMU::_internal_entity_name() const {
432  return entity_name_.Get();
433 }
434 inline void IMU::_internal_set_entity_name(const std::string& value) {
435 
436  entity_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
437 }
438 inline std::string* IMU::_internal_mutable_entity_name() {
439 
440  return entity_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
441 }
443  // @@protoc_insertion_point(field_release:ignition.msgs.IMU.entity_name)
444  return entity_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
445 }
446 inline void IMU::set_allocated_entity_name(std::string* entity_name) {
447  if (entity_name != nullptr) {
448 
449  } else {
450 
451  }
452  entity_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), entity_name,
453  GetArenaForAllocation());
454 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
455  if (entity_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
456  entity_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
457  }
458 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
459  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.IMU.entity_name)
460 }
461 
462 // .ignition.msgs.Quaternion orientation = 3;
463 inline bool IMU::_internal_has_orientation() const {
464  return this != internal_default_instance() && orientation_ != nullptr;
465 }
466 inline bool IMU::has_orientation() const {
467  return _internal_has_orientation();
468 }
469 inline const ::ignition::msgs::Quaternion& IMU::_internal_orientation() const {
470  const ::ignition::msgs::Quaternion* p = orientation_;
471  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Quaternion&>(
473 }
474 inline const ::ignition::msgs::Quaternion& IMU::orientation() const {
475  // @@protoc_insertion_point(field_get:ignition.msgs.IMU.orientation)
476  return _internal_orientation();
477 }
479  ::ignition::msgs::Quaternion* orientation) {
480  if (GetArenaForAllocation() == nullptr) {
481  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(orientation_);
482  }
483  orientation_ = orientation;
484  if (orientation) {
485 
486  } else {
487 
488  }
489  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.IMU.orientation)
490 }
491 inline ::ignition::msgs::Quaternion* IMU::release_orientation() {
492 
493  ::ignition::msgs::Quaternion* temp = orientation_;
494  orientation_ = nullptr;
495 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
496  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
497  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
498  if (GetArenaForAllocation() == nullptr) { delete old; }
499 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
500  if (GetArenaForAllocation() != nullptr) {
501  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
502  }
503 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
504  return temp;
505 }
506 inline ::ignition::msgs::Quaternion* IMU::unsafe_arena_release_orientation() {
507  // @@protoc_insertion_point(field_release:ignition.msgs.IMU.orientation)
508 
509  ::ignition::msgs::Quaternion* temp = orientation_;
510  orientation_ = nullptr;
511  return temp;
512 }
513 inline ::ignition::msgs::Quaternion* IMU::_internal_mutable_orientation() {
514 
515  if (orientation_ == nullptr) {
516  auto* p = CreateMaybeMessage<::ignition::msgs::Quaternion>(GetArenaForAllocation());
517  orientation_ = p;
518  }
519  return orientation_;
520 }
521 inline ::ignition::msgs::Quaternion* IMU::mutable_orientation() {
522  ::ignition::msgs::Quaternion* _msg = _internal_mutable_orientation();
523  // @@protoc_insertion_point(field_mutable:ignition.msgs.IMU.orientation)
524  return _msg;
525 }
527  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
528  if (message_arena == nullptr) {
529  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(orientation_);
530  }
531  if (orientation) {
532  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
533  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
534  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
535  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(orientation));
536  if (message_arena != submessage_arena) {
537  orientation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
538  message_arena, orientation, submessage_arena);
539  }
540 
541  } else {
542 
543  }
544  orientation_ = orientation;
545  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.IMU.orientation)
546 }
547 
548 // .ignition.msgs.Vector3d angular_velocity = 4;
549 inline bool IMU::_internal_has_angular_velocity() const {
550  return this != internal_default_instance() && angular_velocity_ != nullptr;
551 }
552 inline bool IMU::has_angular_velocity() const {
553  return _internal_has_angular_velocity();
554 }
555 inline const ::ignition::msgs::Vector3d& IMU::_internal_angular_velocity() const {
556  const ::ignition::msgs::Vector3d* p = angular_velocity_;
557  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Vector3d&>(
559 }
560 inline const ::ignition::msgs::Vector3d& IMU::angular_velocity() const {
561  // @@protoc_insertion_point(field_get:ignition.msgs.IMU.angular_velocity)
562  return _internal_angular_velocity();
563 }
565  ::ignition::msgs::Vector3d* angular_velocity) {
566  if (GetArenaForAllocation() == nullptr) {
567  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(angular_velocity_);
568  }
569  angular_velocity_ = angular_velocity;
570  if (angular_velocity) {
571 
572  } else {
573 
574  }
575  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.IMU.angular_velocity)
576 }
577 inline ::ignition::msgs::Vector3d* IMU::release_angular_velocity() {
578 
579  ::ignition::msgs::Vector3d* temp = angular_velocity_;
580  angular_velocity_ = nullptr;
581 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
582  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
583  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
584  if (GetArenaForAllocation() == nullptr) { delete old; }
585 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
586  if (GetArenaForAllocation() != nullptr) {
587  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
588  }
589 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
590  return temp;
591 }
592 inline ::ignition::msgs::Vector3d* IMU::unsafe_arena_release_angular_velocity() {
593  // @@protoc_insertion_point(field_release:ignition.msgs.IMU.angular_velocity)
594 
595  ::ignition::msgs::Vector3d* temp = angular_velocity_;
596  angular_velocity_ = nullptr;
597  return temp;
598 }
599 inline ::ignition::msgs::Vector3d* IMU::_internal_mutable_angular_velocity() {
600 
601  if (angular_velocity_ == nullptr) {
602  auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaForAllocation());
603  angular_velocity_ = p;
604  }
605  return angular_velocity_;
606 }
607 inline ::ignition::msgs::Vector3d* IMU::mutable_angular_velocity() {
608  ::ignition::msgs::Vector3d* _msg = _internal_mutable_angular_velocity();
609  // @@protoc_insertion_point(field_mutable:ignition.msgs.IMU.angular_velocity)
610  return _msg;
611 }
613  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
614  if (message_arena == nullptr) {
615  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(angular_velocity_);
616  }
617  if (angular_velocity) {
618  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
619  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
620  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
621  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(angular_velocity));
622  if (message_arena != submessage_arena) {
623  angular_velocity = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
624  message_arena, angular_velocity, submessage_arena);
625  }
626 
627  } else {
628 
629  }
630  angular_velocity_ = angular_velocity;
631  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.IMU.angular_velocity)
632 }
633 
634 // .ignition.msgs.Vector3d linear_acceleration = 5;
635 inline bool IMU::_internal_has_linear_acceleration() const {
636  return this != internal_default_instance() && linear_acceleration_ != nullptr;
637 }
638 inline bool IMU::has_linear_acceleration() const {
639  return _internal_has_linear_acceleration();
640 }
641 inline const ::ignition::msgs::Vector3d& IMU::_internal_linear_acceleration() const {
642  const ::ignition::msgs::Vector3d* p = linear_acceleration_;
643  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Vector3d&>(
645 }
646 inline const ::ignition::msgs::Vector3d& IMU::linear_acceleration() const {
647  // @@protoc_insertion_point(field_get:ignition.msgs.IMU.linear_acceleration)
648  return _internal_linear_acceleration();
649 }
651  ::ignition::msgs::Vector3d* linear_acceleration) {
652  if (GetArenaForAllocation() == nullptr) {
653  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(linear_acceleration_);
654  }
655  linear_acceleration_ = linear_acceleration;
656  if (linear_acceleration) {
657 
658  } else {
659 
660  }
661  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.IMU.linear_acceleration)
662 }
663 inline ::ignition::msgs::Vector3d* IMU::release_linear_acceleration() {
664 
665  ::ignition::msgs::Vector3d* temp = linear_acceleration_;
666  linear_acceleration_ = nullptr;
667 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
668  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
669  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
670  if (GetArenaForAllocation() == nullptr) { delete old; }
671 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
672  if (GetArenaForAllocation() != nullptr) {
673  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
674  }
675 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
676  return temp;
677 }
678 inline ::ignition::msgs::Vector3d* IMU::unsafe_arena_release_linear_acceleration() {
679  // @@protoc_insertion_point(field_release:ignition.msgs.IMU.linear_acceleration)
680 
681  ::ignition::msgs::Vector3d* temp = linear_acceleration_;
682  linear_acceleration_ = nullptr;
683  return temp;
684 }
685 inline ::ignition::msgs::Vector3d* IMU::_internal_mutable_linear_acceleration() {
686 
687  if (linear_acceleration_ == nullptr) {
688  auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaForAllocation());
689  linear_acceleration_ = p;
690  }
691  return linear_acceleration_;
692 }
693 inline ::ignition::msgs::Vector3d* IMU::mutable_linear_acceleration() {
694  ::ignition::msgs::Vector3d* _msg = _internal_mutable_linear_acceleration();
695  // @@protoc_insertion_point(field_mutable:ignition.msgs.IMU.linear_acceleration)
696  return _msg;
697 }
699  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
700  if (message_arena == nullptr) {
701  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(linear_acceleration_);
702  }
703  if (linear_acceleration) {
704  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
705  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
706  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
707  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(linear_acceleration));
708  if (message_arena != submessage_arena) {
709  linear_acceleration = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
710  message_arena, linear_acceleration, submessage_arena);
711  }
712 
713  } else {
714 
715  }
716  linear_acceleration_ = linear_acceleration;
717  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.IMU.linear_acceleration)
718 }
719 
720 #ifdef __GNUC__
721  #pragma GCC diagnostic pop
722 #endif // __GNUC__
723 
728 // @@protoc_insertion_point(namespace_scope)
729 
730 } // namespace msgs
731 } // namespace ignition
732 
733 #ifdef _MSC_VER
734 #pragma warning(pop)
735 #endif
736 // @@protoc_insertion_point(global_scope)
737 
738 #include <google/protobuf/port_undef.inc>
739 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fimu_2eproto
Definition: header.pb.h:265
Definition: imu.pb.h:86
IMU(IMU &&from) noexcept
Definition: imu.pb.h:93
PROTOBUF_NODISCARD ::ignition::msgs::Vector3d * release_angular_velocity()
Definition: imu.pb.h:577
void CopyFrom(const IMU &from)
void set_allocated_orientation(::ignition::msgs::Quaternion *orientation)
Definition: imu.pb.h:526
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: imu.pb.h:122
void unsafe_arena_set_allocated_orientation(::ignition::msgs::Quaternion *orientation)
Definition: imu.pb.h:478
bool has_angular_velocity() const
Definition: imu.pb.h:552
bool has_header() const
Definition: imu.pb.h:329
::ignition::msgs::Header * mutable_header()
Definition: imu.pb.h:384
void set_allocated_entity_name(std::string *entity_name)
Definition: imu.pb.h:446
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
PROTOBUF_NODISCARD ::ignition::msgs::Vector3d * release_linear_acceleration()
Definition: imu.pb.h:663
constexpr IMU(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: imu.pb.h:116
::ignition::msgs::Vector3d * unsafe_arena_release_linear_acceleration()
Definition: imu.pb.h:678
void MergeFrom(const IMU &from)
IMU()
Definition: imu.pb.h:88
void clear_angular_velocity()
PROTOBUF_NODISCARD ::ignition::msgs::Quaternion * release_orientation()
Definition: imu.pb.h:491
static const IMU * internal_default_instance()
Definition: imu.pb.h:128
void unsafe_arena_set_allocated_linear_acceleration(::ignition::msgs::Vector3d *linear_acceleration)
Definition: imu.pb.h:650
::ignition::msgs::Vector3d * mutable_angular_velocity()
Definition: imu.pb.h:607
static const IMU & default_instance()
Definition: imu.pb.h:125
void set_allocated_angular_velocity(::ignition::msgs::Vector3d *angular_velocity)
Definition: imu.pb.h:612
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Definition: imu.pb.h:341
std::string * mutable_entity_name()
Definition: imu.pb.h:426
::ignition::msgs::Quaternion * mutable_orientation()
Definition: imu.pb.h:521
IMU * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: imu.pb.h:159
IMU(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
const ::ignition::msgs::Vector3d & linear_acceleration() const
Definition: imu.pb.h:646
const std::string & entity_name() const
Definition: imu.pb.h:415
PROTOBUF_NODISCARD std::string * release_entity_name()
Definition: imu.pb.h:442
bool has_orientation() const
Definition: imu.pb.h:466
void clear_entity_name()
Definition: imu.pb.h:412
void clear_linear_acceleration()
::ignition::msgs::Vector3d * mutable_linear_acceleration()
Definition: imu.pb.h:693
IMU(const IMU &from)
void set_allocated_header(::ignition::msgs::Header *header)
Definition: imu.pb.h:389
void set_entity_name(ArgT0 &&arg0, ArgT... args)
::ignition::msgs::Vector3d * unsafe_arena_release_angular_velocity()
Definition: imu.pb.h:592
void UnsafeArenaSwap(IMU *other)
Definition: imu.pb.h:151
PROTOBUF_NODISCARD ::ignition::msgs::Header * release_header()
Definition: imu.pb.h:354
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
bool has_linear_acceleration() const
Definition: imu.pb.h:638
void set_allocated_linear_acceleration(::ignition::msgs::Vector3d *linear_acceleration)
Definition: imu.pb.h:698
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: imu.pb.h:119
void Swap(IMU *other)
Definition: imu.pb.h:138
const ::ignition::msgs::Vector3d & angular_velocity() const
Definition: imu.pb.h:560
const ::ignition::msgs::Header & header() const
Definition: imu.pb.h:337
static const ClassData _class_data_
Definition: imu.pb.h:197
::ignition::msgs::Header * unsafe_arena_release_header()
Definition: imu.pb.h:369
void unsafe_arena_set_allocated_angular_velocity(::ignition::msgs::Vector3d *angular_velocity)
Definition: imu.pb.h:564
IMU & operator=(IMU &&from) noexcept
Definition: imu.pb.h:102
const ::ignition::msgs::Quaternion & orientation() const
Definition: imu.pb.h:474
::ignition::msgs::Quaternion * unsafe_arena_release_orientation()
Definition: imu.pb.h:506
friend void swap(IMU &a, IMU &b)
Definition: imu.pb.h:135
IMU & operator=(const IMU &from)
Definition: imu.pb.h:98
Definition: quaternion.pb.h:84
Definition: vector3d.pb.h:84
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fimu_2eproto
IGNITION_MSGS_VISIBLE Vector3dDefaultTypeInternal _Vector3d_default_instance_
IGNITION_MSGS_VISIBLE QuaternionDefaultTypeInternal _Quaternion_default_instance_
std::unique_ptr< const IMU > ConstIMUUniquePtr
Definition: imu.pb.h:725
std::unique_ptr< IMU > IMUUniquePtr
Definition: imu.pb.h:724
std::shared_ptr< IMU > IMUSharedPtr
Definition: imu.pb.h:726
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< const IMU > ConstIMUSharedPtr
Definition: imu.pb.h:727
IGNITION_MSGS_VISIBLE IMUDefaultTypeInternal _IMU_default_instance_
Definition: actor.pb.h:52
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)