Gazebo Msgs

API Reference

9.5.1
inertial.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/inertial.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2finertial_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2finertial_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/pose.pb.h"
34 #include "gz/msgs/header.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2finertial_2eproto GZ_MSGS_VISIBLE
37 
39 // Internal implementation detail -- do not use these members.
40 struct GZ_MSGS_VISIBLE TableStruct {
41  static const ::google::protobuf::internal::ParseTableField entries[];
42  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43  static const ::google::protobuf::internal::ParseTable schema[1];
44  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45  static const ::google::protobuf::internal::SerializationTable serialization_table[];
46  static const ::google::protobuf::uint32 offsets[];
47 };
48 void GZ_MSGS_VISIBLE AddDescriptors();
49 } // namespace protobuf_gz_2fmsgs_2finertial_2eproto
50 namespace gz {
51 namespace msgs {
52 class Inertial;
53 class InertialDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern InertialDefaultTypeInternal _Inertial_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::Inertial* Arena::CreateMaybeMessage<::gz::msgs::Inertial>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
65 // ===================================================================
66 
67 class GZ_MSGS_VISIBLE Inertial : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Inertial) */ {
68  public:
69  Inertial();
70  virtual ~Inertial();
71 
72  Inertial(const Inertial& from);
73 
74  inline Inertial& operator=(const Inertial& from) {
75  CopyFrom(from);
76  return *this;
77  }
78  #if LANG_CXX11
79  Inertial(Inertial&& from) noexcept
80  : Inertial() {
81  *this = ::std::move(from);
82  }
83 
84  inline Inertial& operator=(Inertial&& from) noexcept {
85  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
86  if (this != &from) InternalSwap(&from);
87  } else {
88  CopyFrom(from);
89  }
90  return *this;
91  }
92  #endif
93  static const ::google::protobuf::Descriptor* descriptor();
94  static const Inertial& default_instance();
95 
96  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
97  static inline const Inertial* internal_default_instance() {
98  return reinterpret_cast<const Inertial*>(
100  }
101  static constexpr int kIndexInFileMessages =
102  0;
103 
104  void Swap(Inertial* other);
105  friend void swap(Inertial& a, Inertial& b) {
106  a.Swap(&b);
107  }
108 
109  // implements Message ----------------------------------------------
110 
111  inline Inertial* New() const final {
112  return CreateMaybeMessage<Inertial>(NULL);
113  }
114 
115  Inertial* New(::google::protobuf::Arena* arena) const final {
116  return CreateMaybeMessage<Inertial>(arena);
117  }
118  void CopyFrom(const ::google::protobuf::Message& from) final;
119  void MergeFrom(const ::google::protobuf::Message& from) final;
120  void CopyFrom(const Inertial& from);
121  void MergeFrom(const Inertial& from);
122  void Clear() final;
123  bool IsInitialized() const final;
124 
125  size_t ByteSizeLong() const final;
126  bool MergePartialFromCodedStream(
127  ::google::protobuf::io::CodedInputStream* input) final;
128  void SerializeWithCachedSizes(
129  ::google::protobuf::io::CodedOutputStream* output) const final;
130  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
131  bool deterministic, ::google::protobuf::uint8* target) const final;
132  int GetCachedSize() const final { return _cached_size_.Get(); }
133 
134  private:
135  void SharedCtor();
136  void SharedDtor();
137  void SetCachedSize(int size) const final;
138  void InternalSwap(Inertial* other);
139  private:
140  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
141  return NULL;
142  }
143  inline void* MaybeArenaPtr() const {
144  return NULL;
145  }
146  public:
147 
148  ::google::protobuf::Metadata GetMetadata() const final;
149 
150  // nested types ----------------------------------------------------
151 
152  // accessors -------------------------------------------------------
153 
154  // repeated double fluid_added_mass = 10;
155  int fluid_added_mass_size() const;
156  void clear_fluid_added_mass();
157  static const int kFluidAddedMassFieldNumber = 10;
158  double fluid_added_mass(int index) const;
159  void set_fluid_added_mass(int index, double value);
160  void add_fluid_added_mass(double value);
161  const ::google::protobuf::RepeatedField< double >&
162  fluid_added_mass() const;
163  ::google::protobuf::RepeatedField< double >*
164  mutable_fluid_added_mass();
165 
166  // .gz.msgs.Header header = 1;
167  bool has_header() const;
168  void clear_header();
169  static const int kHeaderFieldNumber = 1;
170  private:
171  const ::gz::msgs::Header& _internal_header() const;
172  public:
173  const ::gz::msgs::Header& header() const;
174  ::gz::msgs::Header* release_header();
175  ::gz::msgs::Header* mutable_header();
176  void set_allocated_header(::gz::msgs::Header* header);
177 
178  // .gz.msgs.Pose pose = 3;
179  bool has_pose() const;
180  void clear_pose();
181  static const int kPoseFieldNumber = 3;
182  private:
183  const ::gz::msgs::Pose& _internal_pose() const;
184  public:
185  const ::gz::msgs::Pose& pose() const;
186  ::gz::msgs::Pose* release_pose();
187  ::gz::msgs::Pose* mutable_pose();
188  void set_allocated_pose(::gz::msgs::Pose* pose);
189 
190  // double mass = 2;
191  void clear_mass();
192  static const int kMassFieldNumber = 2;
193  double mass() const;
194  void set_mass(double value);
195 
196  // double ixx = 4;
197  void clear_ixx();
198  static const int kIxxFieldNumber = 4;
199  double ixx() const;
200  void set_ixx(double value);
201 
202  // double ixy = 5;
203  void clear_ixy();
204  static const int kIxyFieldNumber = 5;
205  double ixy() const;
206  void set_ixy(double value);
207 
208  // double ixz = 6;
209  void clear_ixz();
210  static const int kIxzFieldNumber = 6;
211  double ixz() const;
212  void set_ixz(double value);
213 
214  // double iyy = 7;
215  void clear_iyy();
216  static const int kIyyFieldNumber = 7;
217  double iyy() const;
218  void set_iyy(double value);
219 
220  // double iyz = 8;
221  void clear_iyz();
222  static const int kIyzFieldNumber = 8;
223  double iyz() const;
224  void set_iyz(double value);
225 
226  // double izz = 9;
227  void clear_izz();
228  static const int kIzzFieldNumber = 9;
229  double izz() const;
230  void set_izz(double value);
231 
232  // @@protoc_insertion_point(class_scope:gz.msgs.Inertial)
233  private:
234 
235  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
236  ::google::protobuf::RepeatedField< double > fluid_added_mass_;
237  mutable int _fluid_added_mass_cached_byte_size_;
238  ::gz::msgs::Header* header_;
239  ::gz::msgs::Pose* pose_;
240  double mass_;
241  double ixx_;
242  double ixy_;
243  double ixz_;
244  double iyy_;
245  double iyz_;
246  double izz_;
247  mutable ::google::protobuf::internal::CachedSize _cached_size_;
248  friend struct ::protobuf_gz_2fmsgs_2finertial_2eproto::TableStruct;
249 };
250 // ===================================================================
251 
252 
253 // ===================================================================
254 
255 #ifdef __GNUC__
256  #pragma GCC diagnostic push
257  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
258 #endif // __GNUC__
259 // Inertial
260 
261 // .gz.msgs.Header header = 1;
262 inline bool Inertial::has_header() const {
263  return this != internal_default_instance() && header_ != NULL;
264 }
265 inline const ::gz::msgs::Header& Inertial::_internal_header() const {
266  return *header_;
267 }
268 inline const ::gz::msgs::Header& Inertial::header() const {
269  const ::gz::msgs::Header* p = header_;
270  // @@protoc_insertion_point(field_get:gz.msgs.Inertial.header)
271  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
273 }
274 inline ::gz::msgs::Header* Inertial::release_header() {
275  // @@protoc_insertion_point(field_release:gz.msgs.Inertial.header)
276 
277  ::gz::msgs::Header* temp = header_;
278  header_ = NULL;
279  return temp;
280 }
281 inline ::gz::msgs::Header* Inertial::mutable_header() {
282 
283  if (header_ == NULL) {
284  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
285  header_ = p;
286  }
287  // @@protoc_insertion_point(field_mutable:gz.msgs.Inertial.header)
288  return header_;
289 }
291  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
292  if (message_arena == NULL) {
293  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
294  }
295  if (header) {
296  ::google::protobuf::Arena* submessage_arena = NULL;
297  if (message_arena != submessage_arena) {
298  header = ::google::protobuf::internal::GetOwnedMessage(
299  message_arena, header, submessage_arena);
300  }
301 
302  } else {
303 
304  }
305  header_ = header;
306  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Inertial.header)
307 }
308 
309 // double mass = 2;
310 inline void Inertial::clear_mass() {
311  mass_ = 0;
312 }
313 inline double Inertial::mass() const {
314  // @@protoc_insertion_point(field_get:gz.msgs.Inertial.mass)
315  return mass_;
316 }
317 inline void Inertial::set_mass(double value) {
318 
319  mass_ = value;
320  // @@protoc_insertion_point(field_set:gz.msgs.Inertial.mass)
321 }
322 
323 // .gz.msgs.Pose pose = 3;
324 inline bool Inertial::has_pose() const {
325  return this != internal_default_instance() && pose_ != NULL;
326 }
327 inline const ::gz::msgs::Pose& Inertial::_internal_pose() const {
328  return *pose_;
329 }
330 inline const ::gz::msgs::Pose& Inertial::pose() const {
331  const ::gz::msgs::Pose* p = pose_;
332  // @@protoc_insertion_point(field_get:gz.msgs.Inertial.pose)
333  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Pose*>(
335 }
336 inline ::gz::msgs::Pose* Inertial::release_pose() {
337  // @@protoc_insertion_point(field_release:gz.msgs.Inertial.pose)
338 
339  ::gz::msgs::Pose* temp = pose_;
340  pose_ = NULL;
341  return temp;
342 }
343 inline ::gz::msgs::Pose* Inertial::mutable_pose() {
344 
345  if (pose_ == NULL) {
346  auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
347  pose_ = p;
348  }
349  // @@protoc_insertion_point(field_mutable:gz.msgs.Inertial.pose)
350  return pose_;
351 }
353  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
354  if (message_arena == NULL) {
355  delete reinterpret_cast< ::google::protobuf::MessageLite*>(pose_);
356  }
357  if (pose) {
358  ::google::protobuf::Arena* submessage_arena = NULL;
359  if (message_arena != submessage_arena) {
360  pose = ::google::protobuf::internal::GetOwnedMessage(
361  message_arena, pose, submessage_arena);
362  }
363 
364  } else {
365 
366  }
367  pose_ = pose;
368  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Inertial.pose)
369 }
370 
371 // double ixx = 4;
372 inline void Inertial::clear_ixx() {
373  ixx_ = 0;
374 }
375 inline double Inertial::ixx() const {
376  // @@protoc_insertion_point(field_get:gz.msgs.Inertial.ixx)
377  return ixx_;
378 }
379 inline void Inertial::set_ixx(double value) {
380 
381  ixx_ = value;
382  // @@protoc_insertion_point(field_set:gz.msgs.Inertial.ixx)
383 }
384 
385 // double ixy = 5;
386 inline void Inertial::clear_ixy() {
387  ixy_ = 0;
388 }
389 inline double Inertial::ixy() const {
390  // @@protoc_insertion_point(field_get:gz.msgs.Inertial.ixy)
391  return ixy_;
392 }
393 inline void Inertial::set_ixy(double value) {
394 
395  ixy_ = value;
396  // @@protoc_insertion_point(field_set:gz.msgs.Inertial.ixy)
397 }
398 
399 // double ixz = 6;
400 inline void Inertial::clear_ixz() {
401  ixz_ = 0;
402 }
403 inline double Inertial::ixz() const {
404  // @@protoc_insertion_point(field_get:gz.msgs.Inertial.ixz)
405  return ixz_;
406 }
407 inline void Inertial::set_ixz(double value) {
408 
409  ixz_ = value;
410  // @@protoc_insertion_point(field_set:gz.msgs.Inertial.ixz)
411 }
412 
413 // double iyy = 7;
414 inline void Inertial::clear_iyy() {
415  iyy_ = 0;
416 }
417 inline double Inertial::iyy() const {
418  // @@protoc_insertion_point(field_get:gz.msgs.Inertial.iyy)
419  return iyy_;
420 }
421 inline void Inertial::set_iyy(double value) {
422 
423  iyy_ = value;
424  // @@protoc_insertion_point(field_set:gz.msgs.Inertial.iyy)
425 }
426 
427 // double iyz = 8;
428 inline void Inertial::clear_iyz() {
429  iyz_ = 0;
430 }
431 inline double Inertial::iyz() const {
432  // @@protoc_insertion_point(field_get:gz.msgs.Inertial.iyz)
433  return iyz_;
434 }
435 inline void Inertial::set_iyz(double value) {
436 
437  iyz_ = value;
438  // @@protoc_insertion_point(field_set:gz.msgs.Inertial.iyz)
439 }
440 
441 // double izz = 9;
442 inline void Inertial::clear_izz() {
443  izz_ = 0;
444 }
445 inline double Inertial::izz() const {
446  // @@protoc_insertion_point(field_get:gz.msgs.Inertial.izz)
447  return izz_;
448 }
449 inline void Inertial::set_izz(double value) {
450 
451  izz_ = value;
452  // @@protoc_insertion_point(field_set:gz.msgs.Inertial.izz)
453 }
454 
455 // repeated double fluid_added_mass = 10;
457  return fluid_added_mass_.size();
458 }
460  fluid_added_mass_.Clear();
461 }
462 inline double Inertial::fluid_added_mass(int index) const {
463  // @@protoc_insertion_point(field_get:gz.msgs.Inertial.fluid_added_mass)
464  return fluid_added_mass_.Get(index);
465 }
466 inline void Inertial::set_fluid_added_mass(int index, double value) {
467  fluid_added_mass_.Set(index, value);
468  // @@protoc_insertion_point(field_set:gz.msgs.Inertial.fluid_added_mass)
469 }
470 inline void Inertial::add_fluid_added_mass(double value) {
471  fluid_added_mass_.Add(value);
472  // @@protoc_insertion_point(field_add:gz.msgs.Inertial.fluid_added_mass)
473 }
474 inline const ::google::protobuf::RepeatedField< double >&
476  // @@protoc_insertion_point(field_list:gz.msgs.Inertial.fluid_added_mass)
477  return fluid_added_mass_;
478 }
479 inline ::google::protobuf::RepeatedField< double >*
481  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Inertial.fluid_added_mass)
482  return &fluid_added_mass_;
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_2finertial_2eproto