Gazebo Msgs

API Reference

8.7.0
build/ignition-msgs8/include/ignition/msgs/physics.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/physics.proto
3 
4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fphysics_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fphysics_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/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
36 #ifndef _MSC_VER
37 #pragma GCC system_header
38 #else
39 #pragma warning(push)
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
41 #endif
42 #ifdef __linux__
43 #include <sys/sysmacros.h>
44 #endif
45 #include <memory>
46 #include <ignition/msgs/Export.hh>
47 // @@protoc_insertion_point(includes)
48 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fphysics_2eproto IGNITION_MSGS_VISIBLE
49 
51 // Internal implementation detail -- do not use these members.
52 struct IGNITION_MSGS_VISIBLE TableStruct {
53  static const ::google::protobuf::internal::ParseTableField entries[];
54  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
55  static const ::google::protobuf::internal::ParseTable schema[1];
56  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
57  static const ::google::protobuf::internal::SerializationTable serialization_table[];
58  static const ::google::protobuf::uint32 offsets[];
59 };
60 void IGNITION_MSGS_VISIBLE AddDescriptors();
61 } // namespace protobuf_ignition_2fmsgs_2fphysics_2eproto
62 namespace ignition {
63 namespace msgs {
64 class Physics;
65 class PhysicsDefaultTypeInternal;
66 IGNITION_MSGS_VISIBLE extern PhysicsDefaultTypeInternal _Physics_default_instance_;
67 } // namespace msgs
68 } // namespace ignition
69 namespace google {
70 namespace protobuf {
71 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Physics* Arena::CreateMaybeMessage<::ignition::msgs::Physics>(Arena*);
72 } // namespace protobuf
73 } // namespace google
74 namespace ignition {
75 namespace msgs {
76 
84 };
85 IGNITION_MSGS_VISIBLE bool Physics_Type_IsValid(int value);
89 
90 IGNITION_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Physics_Type_descriptor();
91 inline const ::std::string& Physics_Type_Name(Physics_Type value) {
92  return ::google::protobuf::internal::NameOfEnum(
93  Physics_Type_descriptor(), value);
94 }
95 inline bool Physics_Type_Parse(
96  const ::std::string& name, Physics_Type* value) {
97  return ::google::protobuf::internal::ParseNamedEnum<Physics_Type>(
98  Physics_Type_descriptor(), name, value);
99 }
100 // ===================================================================
101 
102 class IGNITION_MSGS_VISIBLE Physics : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Physics) */ {
103  public:
104  Physics();
105  virtual ~Physics();
106 
107  Physics(const Physics& from);
108 
109  inline Physics& operator=(const Physics& from) {
110  CopyFrom(from);
111  return *this;
112  }
113  #if LANG_CXX11
114  Physics(Physics&& from) noexcept
115  : Physics() {
116  *this = ::std::move(from);
117  }
118 
119  inline Physics& operator=(Physics&& from) noexcept {
120  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
121  if (this != &from) InternalSwap(&from);
122  } else {
123  CopyFrom(from);
124  }
125  return *this;
126  }
127  #endif
128  static const ::google::protobuf::Descriptor* descriptor();
129  static const Physics& default_instance();
130 
131  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
132  static inline const Physics* internal_default_instance() {
133  return reinterpret_cast<const Physics*>(
135  }
136  static constexpr int kIndexInFileMessages =
137  0;
138 
139  void Swap(Physics* other);
140  friend void swap(Physics& a, Physics& b) {
141  a.Swap(&b);
142  }
143 
144  // implements Message ----------------------------------------------
145 
146  inline Physics* New() const final {
147  return CreateMaybeMessage<Physics>(NULL);
148  }
149 
150  Physics* New(::google::protobuf::Arena* arena) const final {
151  return CreateMaybeMessage<Physics>(arena);
152  }
153  void CopyFrom(const ::google::protobuf::Message& from) final;
154  void MergeFrom(const ::google::protobuf::Message& from) final;
155  void CopyFrom(const Physics& from);
156  void MergeFrom(const Physics& from);
157  void Clear() final;
158  bool IsInitialized() const final;
159 
160  size_t ByteSizeLong() const final;
161  bool MergePartialFromCodedStream(
162  ::google::protobuf::io::CodedInputStream* input) final;
163  void SerializeWithCachedSizes(
164  ::google::protobuf::io::CodedOutputStream* output) const final;
165  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
166  bool deterministic, ::google::protobuf::uint8* target) const final;
167  int GetCachedSize() const final { return _cached_size_.Get(); }
168 
169  private:
170  void SharedCtor();
171  void SharedDtor();
172  void SetCachedSize(int size) const final;
173  void InternalSwap(Physics* other);
174  private:
175  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
176  return NULL;
177  }
178  inline void* MaybeArenaPtr() const {
179  return NULL;
180  }
181  public:
182 
183  ::google::protobuf::Metadata GetMetadata() const final;
184 
185  // nested types ----------------------------------------------------
186 
188  static const Type ODE =
190  static const Type BULLET =
192  static const Type SIMBODY =
194  static const Type DART =
196  static inline bool Type_IsValid(int value) {
197  return Physics_Type_IsValid(value);
198  }
199  static const Type Type_MIN =
201  static const Type Type_MAX =
203  static const int Type_ARRAYSIZE =
205  static inline const ::google::protobuf::EnumDescriptor*
207  return Physics_Type_descriptor();
208  }
209  static inline const ::std::string& Type_Name(Type value) {
210  return Physics_Type_Name(value);
211  }
212  static inline bool Type_Parse(const ::std::string& name,
213  Type* value) {
214  return Physics_Type_Parse(name, value);
215  }
216 
217  // accessors -------------------------------------------------------
218 
219  // string solver_type = 3;
220  void clear_solver_type();
221  static const int kSolverTypeFieldNumber = 3;
222  const ::std::string& solver_type() const;
223  void set_solver_type(const ::std::string& value);
224  #if LANG_CXX11
225  void set_solver_type(::std::string&& value);
226  #endif
227  void set_solver_type(const char* value);
228  void set_solver_type(const char* value, size_t size);
229  ::std::string* mutable_solver_type();
230  ::std::string* release_solver_type();
231  void set_allocated_solver_type(::std::string* solver_type);
232 
233  // string profile_name = 17;
234  void clear_profile_name();
235  static const int kProfileNameFieldNumber = 17;
236  const ::std::string& profile_name() const;
237  void set_profile_name(const ::std::string& value);
238  #if LANG_CXX11
239  void set_profile_name(::std::string&& value);
240  #endif
241  void set_profile_name(const char* value);
242  void set_profile_name(const char* value, size_t size);
243  ::std::string* mutable_profile_name();
244  ::std::string* release_profile_name();
245  void set_allocated_profile_name(::std::string* profile_name);
246 
247  // .ignition.msgs.Header header = 1;
248  bool has_header() const;
249  void clear_header();
250  static const int kHeaderFieldNumber = 1;
251  private:
252  const ::ignition::msgs::Header& _internal_header() const;
253  public:
254  const ::ignition::msgs::Header& header() const;
255  ::ignition::msgs::Header* release_header();
256  ::ignition::msgs::Header* mutable_header();
257  void set_allocated_header(::ignition::msgs::Header* header);
258 
259  // .ignition.msgs.Vector3d gravity = 12;
260  bool has_gravity() const;
261  void clear_gravity();
262  static const int kGravityFieldNumber = 12;
263  private:
264  const ::ignition::msgs::Vector3d& _internal_gravity() const;
265  public:
266  const ::ignition::msgs::Vector3d& gravity() const;
267  ::ignition::msgs::Vector3d* release_gravity();
268  ::ignition::msgs::Vector3d* mutable_gravity();
269  void set_allocated_gravity(::ignition::msgs::Vector3d* gravity);
270 
271  // .ignition.msgs.Vector3d magnetic_field = 18;
272  bool has_magnetic_field() const;
273  void clear_magnetic_field();
274  static const int kMagneticFieldFieldNumber = 18;
275  private:
276  const ::ignition::msgs::Vector3d& _internal_magnetic_field() const;
277  public:
278  const ::ignition::msgs::Vector3d& magnetic_field() const;
279  ::ignition::msgs::Vector3d* release_magnetic_field();
280  ::ignition::msgs::Vector3d* mutable_magnetic_field();
281  void set_allocated_magnetic_field(::ignition::msgs::Vector3d* magnetic_field);
282 
283  // .ignition.msgs.Physics.Type type = 2;
284  void clear_type();
285  static const int kTypeFieldNumber = 2;
286  ::ignition::msgs::Physics_Type type() const;
287  void set_type(::ignition::msgs::Physics_Type value);
288 
289  // int32 precon_iters = 5;
290  void clear_precon_iters();
291  static const int kPreconItersFieldNumber = 5;
292  ::google::protobuf::int32 precon_iters() const;
293  void set_precon_iters(::google::protobuf::int32 value);
294 
295  // double min_step_size = 4;
296  void clear_min_step_size();
297  static const int kMinStepSizeFieldNumber = 4;
298  double min_step_size() const;
299  void set_min_step_size(double value);
300 
301  // double sor = 7;
302  void clear_sor();
303  static const int kSorFieldNumber = 7;
304  double sor() const;
305  void set_sor(double value);
306 
307  // double cfm = 8;
308  void clear_cfm();
309  static const int kCfmFieldNumber = 8;
310  double cfm() const;
311  void set_cfm(double value);
312 
313  // double erp = 9;
314  void clear_erp();
315  static const int kErpFieldNumber = 9;
316  double erp() const;
317  void set_erp(double value);
318 
319  // int32 iters = 6;
320  void clear_iters();
321  static const int kItersFieldNumber = 6;
322  ::google::protobuf::int32 iters() const;
323  void set_iters(::google::protobuf::int32 value);
324 
325  // bool enable_physics = 13;
326  void clear_enable_physics();
327  static const int kEnablePhysicsFieldNumber = 13;
328  bool enable_physics() const;
329  void set_enable_physics(bool value);
330 
331  // double contact_max_correcting_vel = 10;
332  void clear_contact_max_correcting_vel();
333  static const int kContactMaxCorrectingVelFieldNumber = 10;
334  double contact_max_correcting_vel() const;
335  void set_contact_max_correcting_vel(double value);
336 
337  // double contact_surface_layer = 11;
338  void clear_contact_surface_layer();
339  static const int kContactSurfaceLayerFieldNumber = 11;
340  double contact_surface_layer() const;
341  void set_contact_surface_layer(double value);
342 
343  // double real_time_factor = 14;
344  void clear_real_time_factor();
345  static const int kRealTimeFactorFieldNumber = 14;
346  double real_time_factor() const;
347  void set_real_time_factor(double value);
348 
349  // double real_time_update_rate = 15;
350  void clear_real_time_update_rate();
351  static const int kRealTimeUpdateRateFieldNumber = 15;
352  double real_time_update_rate() const;
353  void set_real_time_update_rate(double value);
354 
355  // double max_step_size = 16;
356  void clear_max_step_size();
357  static const int kMaxStepSizeFieldNumber = 16;
358  double max_step_size() const;
359  void set_max_step_size(double value);
360 
361  // @@protoc_insertion_point(class_scope:ignition.msgs.Physics)
362  private:
363 
364  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
365  ::google::protobuf::internal::ArenaStringPtr solver_type_;
366  ::google::protobuf::internal::ArenaStringPtr profile_name_;
367  ::ignition::msgs::Header* header_;
368  ::ignition::msgs::Vector3d* gravity_;
369  ::ignition::msgs::Vector3d* magnetic_field_;
370  int type_;
371  ::google::protobuf::int32 precon_iters_;
372  double min_step_size_;
373  double sor_;
374  double cfm_;
375  double erp_;
376  ::google::protobuf::int32 iters_;
377  bool enable_physics_;
378  double contact_max_correcting_vel_;
379  double contact_surface_layer_;
380  double real_time_factor_;
381  double real_time_update_rate_;
382  double max_step_size_;
383  mutable ::google::protobuf::internal::CachedSize _cached_size_;
384  friend struct ::protobuf_ignition_2fmsgs_2fphysics_2eproto::TableStruct;
385 };
386 // ===================================================================
387 
388 
389 // ===================================================================
390 
391 #ifdef __GNUC__
392  #pragma GCC diagnostic push
393  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
394 #endif // __GNUC__
395 // Physics
396 
397 // .ignition.msgs.Header header = 1;
398 inline bool Physics::has_header() const {
399  return this != internal_default_instance() && header_ != NULL;
400 }
401 inline const ::ignition::msgs::Header& Physics::_internal_header() const {
402  return *header_;
403 }
404 inline const ::ignition::msgs::Header& Physics::header() const {
405  const ::ignition::msgs::Header* p = header_;
406  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.header)
407  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Header*>(
409 }
410 inline ::ignition::msgs::Header* Physics::release_header() {
411  // @@protoc_insertion_point(field_release:ignition.msgs.Physics.header)
412 
413  ::ignition::msgs::Header* temp = header_;
414  header_ = NULL;
415  return temp;
416 }
417 inline ::ignition::msgs::Header* Physics::mutable_header() {
418 
419  if (header_ == NULL) {
420  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
421  header_ = p;
422  }
423  // @@protoc_insertion_point(field_mutable:ignition.msgs.Physics.header)
424  return header_;
425 }
427  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
428  if (message_arena == NULL) {
429  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
430  }
431  if (header) {
432  ::google::protobuf::Arena* submessage_arena = NULL;
433  if (message_arena != submessage_arena) {
434  header = ::google::protobuf::internal::GetOwnedMessage(
435  message_arena, header, submessage_arena);
436  }
437 
438  } else {
439 
440  }
441  header_ = header;
442  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Physics.header)
443 }
444 
445 // .ignition.msgs.Physics.Type type = 2;
446 inline void Physics::clear_type() {
447  type_ = 0;
448 }
450  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.type)
451  return static_cast< ::ignition::msgs::Physics_Type >(type_);
452 }
454 
455  type_ = value;
456  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.type)
457 }
458 
459 // string solver_type = 3;
461  solver_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
462 }
463 inline const ::std::string& Physics::solver_type() const {
464  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.solver_type)
465  return solver_type_.GetNoArena();
466 }
467 inline void Physics::set_solver_type(const ::std::string& value) {
468 
469  solver_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
470  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.solver_type)
471 }
472 #if LANG_CXX11
473 inline void Physics::set_solver_type(::std::string&& value) {
474 
475  solver_type_.SetNoArena(
476  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
477  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.Physics.solver_type)
478 }
479 #endif
480 inline void Physics::set_solver_type(const char* value) {
481  GOOGLE_DCHECK(value != NULL);
482 
483  solver_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
484  // @@protoc_insertion_point(field_set_char:ignition.msgs.Physics.solver_type)
485 }
486 inline void Physics::set_solver_type(const char* value, size_t size) {
487 
488  solver_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
489  ::std::string(reinterpret_cast<const char*>(value), size));
490  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Physics.solver_type)
491 }
492 inline ::std::string* Physics::mutable_solver_type() {
493 
494  // @@protoc_insertion_point(field_mutable:ignition.msgs.Physics.solver_type)
495  return solver_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
496 }
497 inline ::std::string* Physics::release_solver_type() {
498  // @@protoc_insertion_point(field_release:ignition.msgs.Physics.solver_type)
499 
500  return solver_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
501 }
502 inline void Physics::set_allocated_solver_type(::std::string* solver_type) {
503  if (solver_type != NULL) {
504 
505  } else {
506 
507  }
508  solver_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), solver_type);
509  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Physics.solver_type)
510 }
511 
512 // double min_step_size = 4;
514  min_step_size_ = 0;
515 }
516 inline double Physics::min_step_size() const {
517  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.min_step_size)
518  return min_step_size_;
519 }
520 inline void Physics::set_min_step_size(double value) {
521 
522  min_step_size_ = value;
523  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.min_step_size)
524 }
525 
526 // int32 precon_iters = 5;
528  precon_iters_ = 0;
529 }
530 inline ::google::protobuf::int32 Physics::precon_iters() const {
531  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.precon_iters)
532  return precon_iters_;
533 }
534 inline void Physics::set_precon_iters(::google::protobuf::int32 value) {
535 
536  precon_iters_ = value;
537  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.precon_iters)
538 }
539 
540 // int32 iters = 6;
541 inline void Physics::clear_iters() {
542  iters_ = 0;
543 }
544 inline ::google::protobuf::int32 Physics::iters() const {
545  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.iters)
546  return iters_;
547 }
548 inline void Physics::set_iters(::google::protobuf::int32 value) {
549 
550  iters_ = value;
551  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.iters)
552 }
553 
554 // double sor = 7;
555 inline void Physics::clear_sor() {
556  sor_ = 0;
557 }
558 inline double Physics::sor() const {
559  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.sor)
560  return sor_;
561 }
562 inline void Physics::set_sor(double value) {
563 
564  sor_ = value;
565  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.sor)
566 }
567 
568 // double cfm = 8;
569 inline void Physics::clear_cfm() {
570  cfm_ = 0;
571 }
572 inline double Physics::cfm() const {
573  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.cfm)
574  return cfm_;
575 }
576 inline void Physics::set_cfm(double value) {
577 
578  cfm_ = value;
579  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.cfm)
580 }
581 
582 // double erp = 9;
583 inline void Physics::clear_erp() {
584  erp_ = 0;
585 }
586 inline double Physics::erp() const {
587  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.erp)
588  return erp_;
589 }
590 inline void Physics::set_erp(double value) {
591 
592  erp_ = value;
593  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.erp)
594 }
595 
596 // double contact_max_correcting_vel = 10;
598  contact_max_correcting_vel_ = 0;
599 }
600 inline double Physics::contact_max_correcting_vel() const {
601  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.contact_max_correcting_vel)
602  return contact_max_correcting_vel_;
603 }
604 inline void Physics::set_contact_max_correcting_vel(double value) {
605 
606  contact_max_correcting_vel_ = value;
607  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.contact_max_correcting_vel)
608 }
609 
610 // double contact_surface_layer = 11;
612  contact_surface_layer_ = 0;
613 }
614 inline double Physics::contact_surface_layer() const {
615  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.contact_surface_layer)
616  return contact_surface_layer_;
617 }
618 inline void Physics::set_contact_surface_layer(double value) {
619 
620  contact_surface_layer_ = value;
621  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.contact_surface_layer)
622 }
623 
624 // .ignition.msgs.Vector3d gravity = 12;
625 inline bool Physics::has_gravity() const {
626  return this != internal_default_instance() && gravity_ != NULL;
627 }
628 inline const ::ignition::msgs::Vector3d& Physics::_internal_gravity() const {
629  return *gravity_;
630 }
631 inline const ::ignition::msgs::Vector3d& Physics::gravity() const {
632  const ::ignition::msgs::Vector3d* p = gravity_;
633  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.gravity)
634  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Vector3d*>(
636 }
637 inline ::ignition::msgs::Vector3d* Physics::release_gravity() {
638  // @@protoc_insertion_point(field_release:ignition.msgs.Physics.gravity)
639 
640  ::ignition::msgs::Vector3d* temp = gravity_;
641  gravity_ = NULL;
642  return temp;
643 }
644 inline ::ignition::msgs::Vector3d* Physics::mutable_gravity() {
645 
646  if (gravity_ == NULL) {
647  auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaNoVirtual());
648  gravity_ = p;
649  }
650  // @@protoc_insertion_point(field_mutable:ignition.msgs.Physics.gravity)
651  return gravity_;
652 }
654  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
655  if (message_arena == NULL) {
656  delete reinterpret_cast< ::google::protobuf::MessageLite*>(gravity_);
657  }
658  if (gravity) {
659  ::google::protobuf::Arena* submessage_arena = NULL;
660  if (message_arena != submessage_arena) {
661  gravity = ::google::protobuf::internal::GetOwnedMessage(
662  message_arena, gravity, submessage_arena);
663  }
664 
665  } else {
666 
667  }
668  gravity_ = gravity;
669  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Physics.gravity)
670 }
671 
672 // bool enable_physics = 13;
674  enable_physics_ = false;
675 }
676 inline bool Physics::enable_physics() const {
677  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.enable_physics)
678  return enable_physics_;
679 }
680 inline void Physics::set_enable_physics(bool value) {
681 
682  enable_physics_ = value;
683  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.enable_physics)
684 }
685 
686 // double real_time_factor = 14;
688  real_time_factor_ = 0;
689 }
690 inline double Physics::real_time_factor() const {
691  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.real_time_factor)
692  return real_time_factor_;
693 }
694 inline void Physics::set_real_time_factor(double value) {
695 
696  real_time_factor_ = value;
697  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.real_time_factor)
698 }
699 
700 // double real_time_update_rate = 15;
702  real_time_update_rate_ = 0;
703 }
704 inline double Physics::real_time_update_rate() const {
705  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.real_time_update_rate)
706  return real_time_update_rate_;
707 }
708 inline void Physics::set_real_time_update_rate(double value) {
709 
710  real_time_update_rate_ = value;
711  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.real_time_update_rate)
712 }
713 
714 // double max_step_size = 16;
716  max_step_size_ = 0;
717 }
718 inline double Physics::max_step_size() const {
719  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.max_step_size)
720  return max_step_size_;
721 }
722 inline void Physics::set_max_step_size(double value) {
723 
724  max_step_size_ = value;
725  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.max_step_size)
726 }
727 
728 // string profile_name = 17;
730  profile_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
731 }
732 inline const ::std::string& Physics::profile_name() const {
733  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.profile_name)
734  return profile_name_.GetNoArena();
735 }
736 inline void Physics::set_profile_name(const ::std::string& value) {
737 
738  profile_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
739  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.profile_name)
740 }
741 #if LANG_CXX11
742 inline void Physics::set_profile_name(::std::string&& value) {
743 
744  profile_name_.SetNoArena(
745  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
746  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.Physics.profile_name)
747 }
748 #endif
749 inline void Physics::set_profile_name(const char* value) {
750  GOOGLE_DCHECK(value != NULL);
751 
752  profile_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
753  // @@protoc_insertion_point(field_set_char:ignition.msgs.Physics.profile_name)
754 }
755 inline void Physics::set_profile_name(const char* value, size_t size) {
756 
757  profile_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
758  ::std::string(reinterpret_cast<const char*>(value), size));
759  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Physics.profile_name)
760 }
761 inline ::std::string* Physics::mutable_profile_name() {
762 
763  // @@protoc_insertion_point(field_mutable:ignition.msgs.Physics.profile_name)
764  return profile_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
765 }
766 inline ::std::string* Physics::release_profile_name() {
767  // @@protoc_insertion_point(field_release:ignition.msgs.Physics.profile_name)
768 
769  return profile_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
770 }
771 inline void Physics::set_allocated_profile_name(::std::string* profile_name) {
772  if (profile_name != NULL) {
773 
774  } else {
775 
776  }
777  profile_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), profile_name);
778  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Physics.profile_name)
779 }
780 
781 // .ignition.msgs.Vector3d magnetic_field = 18;
782 inline bool Physics::has_magnetic_field() const {
783  return this != internal_default_instance() && magnetic_field_ != NULL;
784 }
785 inline const ::ignition::msgs::Vector3d& Physics::_internal_magnetic_field() const {
786  return *magnetic_field_;
787 }
788 inline const ::ignition::msgs::Vector3d& Physics::magnetic_field() const {
789  const ::ignition::msgs::Vector3d* p = magnetic_field_;
790  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.magnetic_field)
791  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Vector3d*>(
793 }
794 inline ::ignition::msgs::Vector3d* Physics::release_magnetic_field() {
795  // @@protoc_insertion_point(field_release:ignition.msgs.Physics.magnetic_field)
796 
797  ::ignition::msgs::Vector3d* temp = magnetic_field_;
798  magnetic_field_ = NULL;
799  return temp;
800 }
801 inline ::ignition::msgs::Vector3d* Physics::mutable_magnetic_field() {
802 
803  if (magnetic_field_ == NULL) {
804  auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaNoVirtual());
805  magnetic_field_ = p;
806  }
807  // @@protoc_insertion_point(field_mutable:ignition.msgs.Physics.magnetic_field)
808  return magnetic_field_;
809 }
811  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
812  if (message_arena == NULL) {
813  delete reinterpret_cast< ::google::protobuf::MessageLite*>(magnetic_field_);
814  }
815  if (magnetic_field) {
816  ::google::protobuf::Arena* submessage_arena = NULL;
817  if (message_arena != submessage_arena) {
818  magnetic_field = ::google::protobuf::internal::GetOwnedMessage(
819  message_arena, magnetic_field, submessage_arena);
820  }
821 
822  } else {
823 
824  }
825  magnetic_field_ = magnetic_field;
826  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Physics.magnetic_field)
827 }
828 
829 #ifdef __GNUC__
830  #pragma GCC diagnostic pop
831 #endif // __GNUC__
832 
837 // @@protoc_insertion_point(namespace_scope)
838 
839 } // namespace msgs
840 } // namespace ignition
841 
842 namespace google {
843 namespace protobuf {
844 
845 template <> struct is_proto_enum< ::ignition::msgs::Physics_Type> : ::std::true_type {};
846 template <>
847 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Physics_Type>() {
849 }
850 
851 } // namespace protobuf
852 } // namespace google
853 
854 #ifdef _MSC_VER
855 #pragma warning(pop)
856 #endif
857 // @@protoc_insertion_point(global_scope)
858 
859 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fphysics_2eproto
void set_allocated_magnetic_field(::ignition::msgs::Vector3d *magnetic_field)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:810
const ::ignition::msgs::Vector3d & magnetic_field() const
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:788
void set_real_time_update_rate(double value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:708
void set_enable_physics(bool value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:680
Physics * New(::google::protobuf::Arena *arena) const final
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:150
void Swap(Physics *other)
STL class.
STL class.
@ Physics_Type_DART
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:81
const Physics_Type Physics_Type_Type_MAX
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:87
void set_erp(double value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:590
IGNITION_MSGS_VISIBLE PhysicsDefaultTypeInternal _Physics_default_instance_
double contact_max_correcting_vel() const
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:600
T move(T... args)
::ignition::msgs::Header * release_header()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:410
Definition: build/ignition-msgs8/include/ignition/msgs/vector3d.pb.h:77
Physics * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:146
std::unique_ptr< Physics > PhysicsUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:833
void set_cfm(double value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:576
double erp() const
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:586
void clear_max_step_size()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:715
void clear_cfm()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:569
static const ::std::string & Type_Name(Type value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:209
Physics_Type
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:77
bool has_gravity() const
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:625
std::unique_ptr< const Physics > ConstPhysicsUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:834
friend void swap(Physics &a, Physics &b)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:140
void set_allocated_solver_type(::std::string *solver_type)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:502
void set_allocated_header(::ignition::msgs::Header *header)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:426
void set_profile_name(const ::std::string &value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:736
void clear_precon_iters()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:527
::google::protobuf::int32 iters() const
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:544
::ignition::msgs::Vector3d * mutable_magnetic_field()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:801
bool enable_physics() const
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:676
static bool Type_Parse(const ::std::string &name, Type *value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:212
void set_max_step_size(double value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:722
void set_min_step_size(double value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:520
bool has_header() const
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:398
void clear_erp()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:583
const IGNITION_MSGS_VISIBLE ::google::protobuf::EnumDescriptor * Physics_Type_descriptor()
void set_allocated_gravity(::ignition::msgs::Vector3d *gravity)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:653
void clear_contact_surface_layer()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:611
const ::std::string & solver_type() const
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:463
double min_step_size() const
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:516
@ Physics_Type_SIMBODY
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:80
static const Physics * internal_default_instance()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:132
::std::string * release_profile_name()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:766
void set_iters(::google::protobuf::int32 value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:548
void set_real_time_factor(double value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:694
void set_contact_surface_layer(double value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:618
const int Physics_Type_Type_ARRAYSIZE
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:88
::ignition::msgs::Vector3d * release_magnetic_field()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:794
void clear_iters()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:541
double sor() const
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:558
@ Physics_Type_Physics_Type_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:83
std::shared_ptr< const Physics > ConstPhysicsSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:836
double real_time_update_rate() const
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:704
double contact_surface_layer() const
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:614
void clear_contact_max_correcting_vel()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:597
double max_step_size() const
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:718
void clear_real_time_update_rate()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:701
::ignition::msgs::Header * mutable_header()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:417
Physics & operator=(const Physics &from)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:109
void clear_real_time_factor()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:687
void clear_enable_physics()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:673
const ::std::string & profile_name() const
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:732
void clear_profile_name()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:729
::ignition::msgs::Vector3d * mutable_gravity()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:644
void set_contact_max_correcting_vel(double value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:604
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:52
::google::protobuf::int32 precon_iters() const
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:530
IGNITION_MSGS_VISIBLE Vector3dDefaultTypeInternal _Vector3d_default_instance_
void set_type(::ignition::msgs::Physics_Type value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:453
void set_precon_iters(::google::protobuf::int32 value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:534
void clear_sor()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:555
void clear_type()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:446
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
@ Physics_Type_Physics_Type_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:82
void clear_min_step_size()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:513
Definition: build/ignition-msgs8/include/ignition/msgs/header.pb.h:215
const ::std::string & Physics_Type_Name(Physics_Type value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:91
double cfm() const
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:572
double real_time_factor() const
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:690
void set_allocated_profile_name(::std::string *profile_name)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:771
::ignition::msgs::Vector3d * release_gravity()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:637
const ::ignition::msgs::Vector3d & gravity() const
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:631
IGNITION_MSGS_VISIBLE bool Physics_Type_IsValid(int value)
static const ::google::protobuf::EnumDescriptor * Type_descriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:206
void set_solver_type(const ::std::string &value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:467
@ Physics_Type_BULLET
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:79
::ignition::msgs::Physics_Type type() const
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:449
const Physics_Type Physics_Type_Type_MIN
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:86
::std::string * release_solver_type()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:497
void set_sor(double value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:562
STL class.
::std::string * mutable_solver_type()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:492
bool has_magnetic_field() const
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:782
const ::ignition::msgs::Header & header() const
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:404
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:50
std::shared_ptr< Physics > PhysicsSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:835
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:78
bool Physics_Type_Parse(const ::std::string &name, Physics_Type *value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:95
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:102
@ Physics_Type_ODE
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:78
void IGNITION_MSGS_VISIBLE AddDescriptors()
void clear_solver_type()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:460
::std::string * mutable_profile_name()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:761