Ignition Msgs

API Reference

8.4.0
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_ignition_2fmsgs_2fphysics_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fphysics_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3000000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
22 #include <google/protobuf/arena.h>
23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/generated_enum_reflection.h>
30 #include <google/protobuf/unknown_field_set.h>
33 #ifndef _MSC_VER
34 #pragma GCC system_header
35 #else
36 #pragma warning(push)
37 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
38 #endif
39 #ifdef __linux__
40 #include <sys/sysmacros.h>
41 #endif
42 #include <memory>
43 #include <ignition/msgs/Export.hh>
44 // @@protoc_insertion_point(includes)
45 
46 namespace ignition {
47 namespace msgs {
48 
49 // Internal implementation detail -- do not call these.
50 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fphysics_2eproto();
53 
54 class Physics;
55 
63 };
64 IGNITION_MSGS_VISIBLE bool Physics_Type_IsValid(int value);
67 const int Physics_Type_Type_ARRAYSIZE = Physics_Type_Type_MAX + 1;
68 
69 IGNITION_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Physics_Type_descriptor();
70 inline const ::std::string& Physics_Type_Name(Physics_Type value) {
71  return ::google::protobuf::internal::NameOfEnum(
72  Physics_Type_descriptor(), value);
73 }
74 inline bool Physics_Type_Parse(
75  const ::std::string& name, Physics_Type* value) {
76  return ::google::protobuf::internal::ParseNamedEnum<Physics_Type>(
77  Physics_Type_descriptor(), name, value);
78 }
79 // ===================================================================
80 
81 class IGNITION_MSGS_VISIBLE Physics : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Physics) */ {
82  public:
83  Physics();
84  virtual ~Physics();
85 
86  Physics(const Physics& from);
87 
88  inline Physics& operator=(const Physics& from) {
89  CopyFrom(from);
90  return *this;
91  }
92 
93  static const ::google::protobuf::Descriptor* descriptor();
94  static const Physics& default_instance();
95 
96  void Swap(Physics* other);
97 
98  // implements Message ----------------------------------------------
99 
100  inline Physics* New() const { return New(NULL); }
101 
102  Physics* New(::google::protobuf::Arena* arena) const;
103  void CopyFrom(const ::google::protobuf::Message& from);
104  void MergeFrom(const ::google::protobuf::Message& from);
105  void CopyFrom(const Physics& from);
106  void MergeFrom(const Physics& from);
107  void Clear();
108  bool IsInitialized() const;
109 
110  int ByteSize() const;
111  bool MergePartialFromCodedStream(
112  ::google::protobuf::io::CodedInputStream* input);
113  void SerializeWithCachedSizes(
114  ::google::protobuf::io::CodedOutputStream* output) const;
115  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
116  bool deterministic, ::google::protobuf::uint8* output) const;
117  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
118  return InternalSerializeWithCachedSizesToArray(false, output);
119  }
120  int GetCachedSize() const { return _cached_size_; }
121  private:
122  void SharedCtor();
123  void SharedDtor();
124  void SetCachedSize(int size) const;
125  void InternalSwap(Physics* other);
126  private:
127  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
128  return _internal_metadata_.arena();
129  }
130  inline void* MaybeArenaPtr() const {
131  return _internal_metadata_.raw_arena_ptr();
132  }
133  public:
134 
135  ::google::protobuf::Metadata GetMetadata() const;
136 
137  // nested types ----------------------------------------------------
138 
140  static const Type ODE =
142  static const Type BULLET =
144  static const Type SIMBODY =
146  static const Type DART =
148  static inline bool Type_IsValid(int value) {
149  return Physics_Type_IsValid(value);
150  }
151  static const Type Type_MIN =
153  static const Type Type_MAX =
155  static const int Type_ARRAYSIZE =
157  static inline const ::google::protobuf::EnumDescriptor*
159  return Physics_Type_descriptor();
160  }
161  static inline const ::std::string& Type_Name(Type value) {
162  return Physics_Type_Name(value);
163  }
164  static inline bool Type_Parse(const ::std::string& name,
165  Type* value) {
166  return Physics_Type_Parse(name, value);
167  }
168 
169  // accessors -------------------------------------------------------
170 
171  // optional .ignition.msgs.Header header = 1;
172  bool has_header() const;
173  void clear_header();
174  static const int kHeaderFieldNumber = 1;
175  const ::ignition::msgs::Header& header() const;
176  ::ignition::msgs::Header* mutable_header();
177  ::ignition::msgs::Header* release_header();
178  void set_allocated_header(::ignition::msgs::Header* header);
179 
180  // optional .ignition.msgs.Physics.Type type = 2;
181  void clear_type();
182  static const int kTypeFieldNumber = 2;
183  ::ignition::msgs::Physics_Type type() const;
184  void set_type(::ignition::msgs::Physics_Type value);
185 
186  // optional string solver_type = 3;
187  void clear_solver_type();
188  static const int kSolverTypeFieldNumber = 3;
189  const ::std::string& solver_type() const;
190  void set_solver_type(const ::std::string& value);
191  void set_solver_type(const char* value);
192  void set_solver_type(const char* value, size_t size);
193  ::std::string* mutable_solver_type();
194  ::std::string* release_solver_type();
195  void set_allocated_solver_type(::std::string* solver_type);
196 
197  // optional double min_step_size = 4;
198  void clear_min_step_size();
199  static const int kMinStepSizeFieldNumber = 4;
200  double min_step_size() const;
201  void set_min_step_size(double value);
202 
203  // optional int32 precon_iters = 5;
204  void clear_precon_iters();
205  static const int kPreconItersFieldNumber = 5;
206  ::google::protobuf::int32 precon_iters() const;
207  void set_precon_iters(::google::protobuf::int32 value);
208 
209  // optional int32 iters = 6;
210  void clear_iters();
211  static const int kItersFieldNumber = 6;
212  ::google::protobuf::int32 iters() const;
213  void set_iters(::google::protobuf::int32 value);
214 
215  // optional double sor = 7;
216  void clear_sor();
217  static const int kSorFieldNumber = 7;
218  double sor() const;
219  void set_sor(double value);
220 
221  // optional double cfm = 8;
222  void clear_cfm();
223  static const int kCfmFieldNumber = 8;
224  double cfm() const;
225  void set_cfm(double value);
226 
227  // optional double erp = 9;
228  void clear_erp();
229  static const int kErpFieldNumber = 9;
230  double erp() const;
231  void set_erp(double value);
232 
233  // optional double contact_max_correcting_vel = 10;
234  void clear_contact_max_correcting_vel();
235  static const int kContactMaxCorrectingVelFieldNumber = 10;
236  double contact_max_correcting_vel() const;
237  void set_contact_max_correcting_vel(double value);
238 
239  // optional double contact_surface_layer = 11;
240  void clear_contact_surface_layer();
241  static const int kContactSurfaceLayerFieldNumber = 11;
242  double contact_surface_layer() const;
243  void set_contact_surface_layer(double value);
244 
245  // optional .ignition.msgs.Vector3d gravity = 12;
246  bool has_gravity() const;
247  void clear_gravity();
248  static const int kGravityFieldNumber = 12;
249  const ::ignition::msgs::Vector3d& gravity() const;
250  ::ignition::msgs::Vector3d* mutable_gravity();
251  ::ignition::msgs::Vector3d* release_gravity();
252  void set_allocated_gravity(::ignition::msgs::Vector3d* gravity);
253 
254  // optional bool enable_physics = 13;
255  void clear_enable_physics();
256  static const int kEnablePhysicsFieldNumber = 13;
257  bool enable_physics() const;
258  void set_enable_physics(bool value);
259 
260  // optional double real_time_factor = 14;
261  void clear_real_time_factor();
262  static const int kRealTimeFactorFieldNumber = 14;
263  double real_time_factor() const;
264  void set_real_time_factor(double value);
265 
266  // optional double real_time_update_rate = 15;
267  void clear_real_time_update_rate();
268  static const int kRealTimeUpdateRateFieldNumber = 15;
269  double real_time_update_rate() const;
270  void set_real_time_update_rate(double value);
271 
272  // optional double max_step_size = 16;
273  void clear_max_step_size();
274  static const int kMaxStepSizeFieldNumber = 16;
275  double max_step_size() const;
276  void set_max_step_size(double value);
277 
278  // optional string profile_name = 17;
279  void clear_profile_name();
280  static const int kProfileNameFieldNumber = 17;
281  const ::std::string& profile_name() const;
282  void set_profile_name(const ::std::string& value);
283  void set_profile_name(const char* value);
284  void set_profile_name(const char* value, size_t size);
285  ::std::string* mutable_profile_name();
286  ::std::string* release_profile_name();
287  void set_allocated_profile_name(::std::string* profile_name);
288 
289  // optional .ignition.msgs.Vector3d magnetic_field = 18;
290  bool has_magnetic_field() const;
291  void clear_magnetic_field();
292  static const int kMagneticFieldFieldNumber = 18;
293  const ::ignition::msgs::Vector3d& magnetic_field() const;
294  ::ignition::msgs::Vector3d* mutable_magnetic_field();
295  ::ignition::msgs::Vector3d* release_magnetic_field();
296  void set_allocated_magnetic_field(::ignition::msgs::Vector3d* magnetic_field);
297 
298  // @@protoc_insertion_point(class_scope:ignition.msgs.Physics)
299  private:
300 
301  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
302  bool _is_default_instance_;
303  ::ignition::msgs::Header* header_;
304  ::google::protobuf::internal::ArenaStringPtr solver_type_;
305  int type_;
306  ::google::protobuf::int32 precon_iters_;
307  double min_step_size_;
308  double sor_;
309  double cfm_;
310  double erp_;
311  ::google::protobuf::int32 iters_;
312  bool enable_physics_;
313  double contact_max_correcting_vel_;
314  double contact_surface_layer_;
315  ::ignition::msgs::Vector3d* gravity_;
316  double real_time_factor_;
317  double real_time_update_rate_;
318  double max_step_size_;
319  ::google::protobuf::internal::ArenaStringPtr profile_name_;
320  ::ignition::msgs::Vector3d* magnetic_field_;
321  mutable int _cached_size_;
322  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fphysics_2eproto();
325 
326  void InitAsDefaultInstance();
327  static Physics* default_instance_;
328 };
329 // ===================================================================
330 
331 
332 // ===================================================================
333 
334 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
335 // Physics
336 
337 // optional .ignition.msgs.Header header = 1;
338 inline bool Physics::has_header() const {
339  return !_is_default_instance_ && header_ != NULL;
340 }
341 inline void Physics::clear_header() {
342  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
343  header_ = NULL;
344 }
345 inline const ::ignition::msgs::Header& Physics::header() const {
346  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.header)
347  return header_ != NULL ? *header_ : *default_instance_->header_;
348 }
349 inline ::ignition::msgs::Header* Physics::mutable_header() {
350 
351  if (header_ == NULL) {
352  header_ = new ::ignition::msgs::Header;
353  }
354  // @@protoc_insertion_point(field_mutable:ignition.msgs.Physics.header)
355  return header_;
356 }
357 inline ::ignition::msgs::Header* Physics::release_header() {
358  // @@protoc_insertion_point(field_release:ignition.msgs.Physics.header)
359 
360  ::ignition::msgs::Header* temp = header_;
361  header_ = NULL;
362  return temp;
363 }
365  delete header_;
366  header_ = header;
367  if (header) {
368 
369  } else {
370 
371  }
372  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Physics.header)
373 }
374 
375 // optional .ignition.msgs.Physics.Type type = 2;
376 inline void Physics::clear_type() {
377  type_ = 0;
378 }
380  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.type)
381  return static_cast< ::ignition::msgs::Physics_Type >(type_);
382 }
384 
385  type_ = value;
386  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.type)
387 }
388 
389 // optional string solver_type = 3;
391  solver_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
392 }
393 inline const ::std::string& Physics::solver_type() const {
394  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.solver_type)
395  return solver_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
396 }
397 inline void Physics::set_solver_type(const ::std::string& value) {
398 
399  solver_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
400  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.solver_type)
401 }
402 inline void Physics::set_solver_type(const char* value) {
403 
404  solver_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
405  // @@protoc_insertion_point(field_set_char:ignition.msgs.Physics.solver_type)
406 }
407 inline void Physics::set_solver_type(const char* value, size_t size) {
408 
409  solver_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
410  ::std::string(reinterpret_cast<const char*>(value), size));
411  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Physics.solver_type)
412 }
413 inline ::std::string* Physics::mutable_solver_type() {
414 
415  // @@protoc_insertion_point(field_mutable:ignition.msgs.Physics.solver_type)
416  return solver_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
417 }
418 inline ::std::string* Physics::release_solver_type() {
419  // @@protoc_insertion_point(field_release:ignition.msgs.Physics.solver_type)
420 
421  return solver_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
422 }
423 inline void Physics::set_allocated_solver_type(::std::string* solver_type) {
424  if (solver_type != NULL) {
425 
426  } else {
427 
428  }
429  solver_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), solver_type);
430  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Physics.solver_type)
431 }
432 
433 // optional double min_step_size = 4;
435  min_step_size_ = 0;
436 }
437 inline double Physics::min_step_size() const {
438  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.min_step_size)
439  return min_step_size_;
440 }
441 inline void Physics::set_min_step_size(double value) {
442 
443  min_step_size_ = value;
444  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.min_step_size)
445 }
446 
447 // optional int32 precon_iters = 5;
449  precon_iters_ = 0;
450 }
451 inline ::google::protobuf::int32 Physics::precon_iters() const {
452  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.precon_iters)
453  return precon_iters_;
454 }
455 inline void Physics::set_precon_iters(::google::protobuf::int32 value) {
456 
457  precon_iters_ = value;
458  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.precon_iters)
459 }
460 
461 // optional int32 iters = 6;
462 inline void Physics::clear_iters() {
463  iters_ = 0;
464 }
465 inline ::google::protobuf::int32 Physics::iters() const {
466  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.iters)
467  return iters_;
468 }
469 inline void Physics::set_iters(::google::protobuf::int32 value) {
470 
471  iters_ = value;
472  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.iters)
473 }
474 
475 // optional double sor = 7;
476 inline void Physics::clear_sor() {
477  sor_ = 0;
478 }
479 inline double Physics::sor() const {
480  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.sor)
481  return sor_;
482 }
483 inline void Physics::set_sor(double value) {
484 
485  sor_ = value;
486  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.sor)
487 }
488 
489 // optional double cfm = 8;
490 inline void Physics::clear_cfm() {
491  cfm_ = 0;
492 }
493 inline double Physics::cfm() const {
494  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.cfm)
495  return cfm_;
496 }
497 inline void Physics::set_cfm(double value) {
498 
499  cfm_ = value;
500  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.cfm)
501 }
502 
503 // optional double erp = 9;
504 inline void Physics::clear_erp() {
505  erp_ = 0;
506 }
507 inline double Physics::erp() const {
508  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.erp)
509  return erp_;
510 }
511 inline void Physics::set_erp(double value) {
512 
513  erp_ = value;
514  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.erp)
515 }
516 
517 // optional double contact_max_correcting_vel = 10;
519  contact_max_correcting_vel_ = 0;
520 }
521 inline double Physics::contact_max_correcting_vel() const {
522  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.contact_max_correcting_vel)
523  return contact_max_correcting_vel_;
524 }
525 inline void Physics::set_contact_max_correcting_vel(double value) {
526 
527  contact_max_correcting_vel_ = value;
528  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.contact_max_correcting_vel)
529 }
530 
531 // optional double contact_surface_layer = 11;
533  contact_surface_layer_ = 0;
534 }
535 inline double Physics::contact_surface_layer() const {
536  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.contact_surface_layer)
537  return contact_surface_layer_;
538 }
539 inline void Physics::set_contact_surface_layer(double value) {
540 
541  contact_surface_layer_ = value;
542  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.contact_surface_layer)
543 }
544 
545 // optional .ignition.msgs.Vector3d gravity = 12;
546 inline bool Physics::has_gravity() const {
547  return !_is_default_instance_ && gravity_ != NULL;
548 }
549 inline void Physics::clear_gravity() {
550  if (GetArenaNoVirtual() == NULL && gravity_ != NULL) delete gravity_;
551  gravity_ = NULL;
552 }
553 inline const ::ignition::msgs::Vector3d& Physics::gravity() const {
554  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.gravity)
555  return gravity_ != NULL ? *gravity_ : *default_instance_->gravity_;
556 }
557 inline ::ignition::msgs::Vector3d* Physics::mutable_gravity() {
558 
559  if (gravity_ == NULL) {
560  gravity_ = new ::ignition::msgs::Vector3d;
561  }
562  // @@protoc_insertion_point(field_mutable:ignition.msgs.Physics.gravity)
563  return gravity_;
564 }
565 inline ::ignition::msgs::Vector3d* Physics::release_gravity() {
566  // @@protoc_insertion_point(field_release:ignition.msgs.Physics.gravity)
567 
568  ::ignition::msgs::Vector3d* temp = gravity_;
569  gravity_ = NULL;
570  return temp;
571 }
573  delete gravity_;
574  gravity_ = gravity;
575  if (gravity) {
576 
577  } else {
578 
579  }
580  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Physics.gravity)
581 }
582 
583 // optional bool enable_physics = 13;
585  enable_physics_ = false;
586 }
587 inline bool Physics::enable_physics() const {
588  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.enable_physics)
589  return enable_physics_;
590 }
591 inline void Physics::set_enable_physics(bool value) {
592 
593  enable_physics_ = value;
594  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.enable_physics)
595 }
596 
597 // optional double real_time_factor = 14;
599  real_time_factor_ = 0;
600 }
601 inline double Physics::real_time_factor() const {
602  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.real_time_factor)
603  return real_time_factor_;
604 }
605 inline void Physics::set_real_time_factor(double value) {
606 
607  real_time_factor_ = value;
608  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.real_time_factor)
609 }
610 
611 // optional double real_time_update_rate = 15;
613  real_time_update_rate_ = 0;
614 }
615 inline double Physics::real_time_update_rate() const {
616  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.real_time_update_rate)
617  return real_time_update_rate_;
618 }
619 inline void Physics::set_real_time_update_rate(double value) {
620 
621  real_time_update_rate_ = value;
622  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.real_time_update_rate)
623 }
624 
625 // optional double max_step_size = 16;
627  max_step_size_ = 0;
628 }
629 inline double Physics::max_step_size() const {
630  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.max_step_size)
631  return max_step_size_;
632 }
633 inline void Physics::set_max_step_size(double value) {
634 
635  max_step_size_ = value;
636  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.max_step_size)
637 }
638 
639 // optional string profile_name = 17;
641  profile_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
642 }
643 inline const ::std::string& Physics::profile_name() const {
644  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.profile_name)
645  return profile_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
646 }
647 inline void Physics::set_profile_name(const ::std::string& value) {
648 
649  profile_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
650  // @@protoc_insertion_point(field_set:ignition.msgs.Physics.profile_name)
651 }
652 inline void Physics::set_profile_name(const char* value) {
653 
654  profile_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
655  // @@protoc_insertion_point(field_set_char:ignition.msgs.Physics.profile_name)
656 }
657 inline void Physics::set_profile_name(const char* value, size_t size) {
658 
659  profile_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
660  ::std::string(reinterpret_cast<const char*>(value), size));
661  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Physics.profile_name)
662 }
663 inline ::std::string* Physics::mutable_profile_name() {
664 
665  // @@protoc_insertion_point(field_mutable:ignition.msgs.Physics.profile_name)
666  return profile_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
667 }
668 inline ::std::string* Physics::release_profile_name() {
669  // @@protoc_insertion_point(field_release:ignition.msgs.Physics.profile_name)
670 
671  return profile_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
672 }
673 inline void Physics::set_allocated_profile_name(::std::string* profile_name) {
674  if (profile_name != NULL) {
675 
676  } else {
677 
678  }
679  profile_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), profile_name);
680  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Physics.profile_name)
681 }
682 
683 // optional .ignition.msgs.Vector3d magnetic_field = 18;
684 inline bool Physics::has_magnetic_field() const {
685  return !_is_default_instance_ && magnetic_field_ != NULL;
686 }
688  if (GetArenaNoVirtual() == NULL && magnetic_field_ != NULL) delete magnetic_field_;
689  magnetic_field_ = NULL;
690 }
691 inline const ::ignition::msgs::Vector3d& Physics::magnetic_field() const {
692  // @@protoc_insertion_point(field_get:ignition.msgs.Physics.magnetic_field)
693  return magnetic_field_ != NULL ? *magnetic_field_ : *default_instance_->magnetic_field_;
694 }
695 inline ::ignition::msgs::Vector3d* Physics::mutable_magnetic_field() {
696 
697  if (magnetic_field_ == NULL) {
698  magnetic_field_ = new ::ignition::msgs::Vector3d;
699  }
700  // @@protoc_insertion_point(field_mutable:ignition.msgs.Physics.magnetic_field)
701  return magnetic_field_;
702 }
703 inline ::ignition::msgs::Vector3d* Physics::release_magnetic_field() {
704  // @@protoc_insertion_point(field_release:ignition.msgs.Physics.magnetic_field)
705 
706  ::ignition::msgs::Vector3d* temp = magnetic_field_;
707  magnetic_field_ = NULL;
708  return temp;
709 }
711  delete magnetic_field_;
712  magnetic_field_ = magnetic_field;
713  if (magnetic_field) {
714 
715  } else {
716 
717  }
718  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Physics.magnetic_field)
719 }
720 
721 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
722 
727 // @@protoc_insertion_point(namespace_scope)
728 
729 } // namespace msgs
730 } // namespace ignition
731 
732 #ifndef SWIG
733 namespace google {
734 namespace protobuf {
735 
736 template <> struct is_proto_enum< ::ignition::msgs::Physics_Type> : ::google::protobuf::internal::true_type {};
737 template <>
738 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Physics_Type>() {
740 }
741 
742 } // namespace protobuf
743 } // namespace google
744 #endif // SWIG
745 
746 #ifdef _MSC_VER
747 #pragma warning(pop)
748 #endif
749 // @@protoc_insertion_point(global_scope)
750 
751 #endif // PROTOBUF_ignition_2fmsgs_2fphysics_2eproto__INCLUDED
void clear_enable_physics()
Definition: physics.pb.h:584
void clear_min_step_size()
Definition: physics.pb.h:434
::ignition::msgs::Vector3d * release_magnetic_field()
Definition: physics.pb.h:703
::ignition::msgs::Vector3d * release_gravity()
Definition: physics.pb.h:565
IGNITION_MSGS_VISIBLEconst ::google::protobuf::EnumDescriptor * Physics_Type_descriptor()
void clear_header()
Definition: physics.pb.h:341
std::unique_ptr< Physics > PhysicsUniquePtr
Definition: physics.pb.h:723
void clear_contact_max_correcting_vel()
Definition: physics.pb.h:518
void clear_profile_name()
Definition: physics.pb.h:640
double contact_max_correcting_vel() const
Definition: physics.pb.h:521
static bool Type_IsValid(int value)
Definition: physics.pb.h:148
Physics_Type
Definition: physics.pb.h:56
void clear_sor()
Definition: physics.pb.h:476
Definition: physics.pb.h:57
::google::protobuf::int32 precon_iters() const
Definition: physics.pb.h:451
std::shared_ptr< const Physics > ConstPhysicsSharedPtr
Definition: physics.pb.h:726
void set_max_step_size(double value)
Definition: physics.pb.h:633
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: physics.pb.h:117
void clear_precon_iters()
Definition: physics.pb.h:448
void clear_real_time_factor()
Definition: physics.pb.h:598
void clear_type()
Definition: physics.pb.h:376
Definition: physics.pb.h:81
IGNITION_MSGS_VISIBLE bool Physics_Type_IsValid(int value)
void clear_max_step_size()
Definition: physics.pb.h:626
bool has_gravity() const
Definition: physics.pb.h:546
static bool Type_Parse(const ::std::string &name, Type *value)
Definition: physics.pb.h:164
void protobuf_AssignDesc_ignition_2fmsgs_2fphysics_2eproto()
void set_real_time_factor(double value)
Definition: physics.pb.h:605
Definition: physics.pb.h:60
void set_cfm(double value)
Definition: physics.pb.h:497
void clear_iters()
Definition: physics.pb.h:462
void set_allocated_magnetic_field(::ignition::msgs::Vector3d *magnetic_field)
Definition: physics.pb.h:710
void clear_gravity()
Definition: physics.pb.h:549
void set_real_time_update_rate(double value)
Definition: physics.pb.h:619
Definition: physics.pb.h:59
::std::string * release_profile_name()
Definition: physics.pb.h:668
Definition: header.pb.h:161
STL class.
::ignition::msgs::Vector3d * mutable_gravity()
Definition: physics.pb.h:557
void set_type(::ignition::msgs::Physics_Type value)
Definition: physics.pb.h:383
void set_precon_iters(::google::protobuf::int32 value)
Definition: physics.pb.h:455
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fphysics_2eproto()
double real_time_factor() const
Definition: physics.pb.h:601
const ::std::string & profile_name() const
Definition: physics.pb.h:643
const Physics_Type Physics_Type_Type_MAX
Definition: physics.pb.h:66
void set_erp(double value)
Definition: physics.pb.h:511
void clear_solver_type()
Definition: physics.pb.h:390
::ignition::msgs::Physics_Type type() const
Definition: physics.pb.h:379
void set_profile_name(const ::std::string &value)
Definition: physics.pb.h:647
bool enable_physics() const
Definition: physics.pb.h:587
void set_min_step_size(double value)
Definition: physics.pb.h:441
void clear_contact_surface_layer()
Definition: physics.pb.h:532
void set_allocated_header(::ignition::msgs::Header *header)
Definition: physics.pb.h:364
bool has_magnetic_field() const
Definition: physics.pb.h:684
void set_allocated_gravity(::ignition::msgs::Vector3d *gravity)
Definition: physics.pb.h:572
void protobuf_ShutdownFile_ignition_2fmsgs_2fphysics_2eproto()
Definition: physics.pb.h:58
Physics & operator=(const Physics &from)
Definition: physics.pb.h:88
bool Physics_Type_Parse(const ::std::string &name, Physics_Type *value)
Definition: physics.pb.h:74
::std::string * mutable_solver_type()
Definition: physics.pb.h:413
::std::string * release_solver_type()
Definition: physics.pb.h:418
void set_contact_surface_layer(double value)
Definition: physics.pb.h:539
void set_sor(double value)
Definition: physics.pb.h:483
Definition: vector3d.pb.h:56
const ::ignition::msgs::Vector3d & magnetic_field() const
Definition: physics.pb.h:691
void clear_real_time_update_rate()
Definition: physics.pb.h:612
static const ::google::protobuf::EnumDescriptor * Type_descriptor()
Definition: physics.pb.h:158
STL class.
bool has_header() const
Definition: physics.pb.h:338
std::unique_ptr< const Physics > ConstPhysicsUniquePtr
Definition: physics.pb.h:724
::std::string * mutable_profile_name()
Definition: physics.pb.h:663
double sor() const
Definition: physics.pb.h:479
::ignition::msgs::Header * mutable_header()
Definition: physics.pb.h:349
void set_contact_max_correcting_vel(double value)
Definition: physics.pb.h:525
::google::protobuf::int32 iters() const
Definition: physics.pb.h:465
::ignition::msgs::Vector3d * mutable_magnetic_field()
Definition: physics.pb.h:695
double erp() const
Definition: physics.pb.h:507
void clear_magnetic_field()
Definition: physics.pb.h:687
double contact_surface_layer() const
Definition: physics.pb.h:535
double max_step_size() const
Definition: physics.pb.h:629
const ::ignition::msgs::Vector3d & gravity() const
Definition: physics.pb.h:553
std::shared_ptr< Physics > PhysicsSharedPtr
Definition: physics.pb.h:725
Physics_Type Type
Definition: physics.pb.h:139
Definition: any.pb.h:839
int GetCachedSize() const
Definition: physics.pb.h:120
static const ::std::string & Type_Name(Type value)
Definition: physics.pb.h:161
void clear_cfm()
Definition: physics.pb.h:490
::ignition::msgs::Header * release_header()
Definition: physics.pb.h:357
double cfm() const
Definition: physics.pb.h:493
const ::std::string & solver_type() const
Definition: physics.pb.h:393
const Physics_Type Physics_Type_Type_MIN
Definition: physics.pb.h:65
void set_solver_type(const ::std::string &value)
Definition: physics.pb.h:397
const ::std::string & Physics_Type_Name(Physics_Type value)
Definition: physics.pb.h:70
double min_step_size() const
Definition: physics.pb.h:437
void set_iters(::google::protobuf::int32 value)
Definition: physics.pb.h:469
Physics * New() const
Definition: physics.pb.h:100
void set_allocated_solver_type(::std::string *solver_type)
Definition: physics.pb.h:423
void set_allocated_profile_name(::std::string *profile_name)
Definition: physics.pb.h:673
void set_enable_physics(bool value)
Definition: physics.pb.h:591
const ::ignition::msgs::Header & header() const
Definition: physics.pb.h:345
void clear_erp()
Definition: physics.pb.h:504
double real_time_update_rate() const
Definition: physics.pb.h:615
const int Physics_Type_Type_ARRAYSIZE
Definition: physics.pb.h:67