4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fphysics_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fphysics_2eproto
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
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.
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>
32 #include <google/protobuf/extension_set.h>
33 #include <google/protobuf/generated_enum_reflection.h>
34 #include <google/protobuf/unknown_field_set.h>
38 #pragma GCC system_header
41 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
44 #include <sys/sysmacros.h>
49 #include <google/protobuf/port_def.inc>
50 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fphysics_2eproto IGNITION_MSGS_VISIBLE
51 PROTOBUF_NAMESPACE_OPEN
55 PROTOBUF_NAMESPACE_CLOSE
59 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
61 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
63 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
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[];
73 struct PhysicsDefaultTypeInternal;
77 PROTOBUF_NAMESPACE_OPEN
78 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Physics* Arena::CreateMaybeMessage<::ignition::msgs::Physics>(Arena*);
79 PROTOBUF_NAMESPACE_CLOSE
101 "Incorrect type passed to function Physics_Type_Name.");
102 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
106 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
Physics_Type* value) {
107 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Physics_Type>(
113 public ::PROTOBUF_NAMESPACE_ID::Message {
117 explicit constexpr
Physics(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
122 *
this = ::std::move(from);
130 if (
this == &from)
return *
this;
131 if (GetOwningArena() == from.GetOwningArena()
132 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
133 && GetOwningArena() !=
nullptr
143 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
144 return GetDescriptor();
147 return default_instance().GetMetadata().descriptor;
150 return default_instance().GetMetadata().reflection;
153 return *internal_default_instance();
156 return reinterpret_cast<const Physics*
>(
159 static constexpr
int kIndexInFileMessages =
166 if (other ==
this)
return;
167 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
168 if (GetOwningArena() !=
nullptr &&
169 GetOwningArena() == other->GetOwningArena()) {
171 if (GetOwningArena() == other->GetOwningArena()) {
175 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
179 if (other ==
this)
return;
180 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
186 Physics*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
187 return CreateMaybeMessage<Physics>(arena);
189 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
191 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
194 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
196 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
197 bool IsInitialized() const final;
199 size_t ByteSizeLong() const final;
200 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
201 uint8_t* _InternalSerialize(
202 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
203 int GetCachedSize() const final {
return _cached_size_.Get(); }
208 void SetCachedSize(
int size)
const final;
209 void InternalSwap(
Physics* other);
212 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
213 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
214 return "ignition.msgs.Physics";
217 explicit Physics(::PROTOBUF_NAMESPACE_ID::Arena* arena,
218 bool is_message_owned =
false);
220 static void ArenaDtor(
void*
object);
221 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
225 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
227 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
236 static constexpr
Type SIMBODY =
240 static inline
bool Type_IsValid(
int value) {
243 static constexpr
Type Type_MIN =
245 static constexpr
Type Type_MAX =
247 static constexpr
int Type_ARRAYSIZE =
249 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
257 "Incorrect type passed to function Type_Name.");
260 static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
268 kSolverTypeFieldNumber = 3,
269 kProfileNameFieldNumber = 17,
270 kHeaderFieldNumber = 1,
271 kGravityFieldNumber = 12,
272 kMagneticFieldFieldNumber = 18,
273 kTypeFieldNumber = 2,
274 kPreconItersFieldNumber = 5,
275 kMinStepSizeFieldNumber = 4,
279 kItersFieldNumber = 6,
280 kEnablePhysicsFieldNumber = 13,
281 kContactMaxCorrectingVelFieldNumber = 10,
282 kContactSurfaceLayerFieldNumber = 11,
283 kRealTimeFactorFieldNumber = 14,
284 kRealTimeUpdateRateFieldNumber = 15,
285 kMaxStepSizeFieldNumber = 16,
288 void clear_solver_type();
290 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
293 PROTOBUF_NODISCARD
std::string* release_solver_type();
294 void set_allocated_solver_type(
std::string* solver_type);
297 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_solver_type(
const std::string& value);
302 void clear_profile_name();
304 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
307 PROTOBUF_NODISCARD
std::string* release_profile_name();
308 void set_allocated_profile_name(
std::string* profile_name);
311 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_profile_name(
const std::string& value);
316 bool has_header()
const;
318 bool _internal_has_header()
const;
321 const ::ignition::msgs::Header& header()
const;
322 PROTOBUF_NODISCARD ::ignition::msgs::Header* release_header();
326 const ::ignition::msgs::Header& _internal_header()
const;
329 void unsafe_arena_set_allocated_header(
334 bool has_gravity()
const;
336 bool _internal_has_gravity()
const;
339 const ::ignition::msgs::Vector3d& gravity()
const;
340 PROTOBUF_NODISCARD ::ignition::msgs::Vector3d* release_gravity();
344 const ::ignition::msgs::Vector3d& _internal_gravity()
const;
347 void unsafe_arena_set_allocated_gravity(
352 bool has_magnetic_field()
const;
354 bool _internal_has_magnetic_field()
const;
357 const ::ignition::msgs::Vector3d& magnetic_field()
const;
358 PROTOBUF_NODISCARD ::ignition::msgs::Vector3d* release_magnetic_field();
362 const ::ignition::msgs::Vector3d& _internal_magnetic_field()
const;
365 void unsafe_arena_set_allocated_magnetic_field(
379 void clear_precon_iters();
380 int32_t precon_iters()
const;
381 void set_precon_iters(int32_t value);
383 int32_t _internal_precon_iters()
const;
384 void _internal_set_precon_iters(int32_t value);
388 void clear_min_step_size();
389 double min_step_size()
const;
390 void set_min_step_size(
double value);
392 double _internal_min_step_size()
const;
393 void _internal_set_min_step_size(
double value);
399 void set_sor(
double value);
401 double _internal_sor()
const;
402 void _internal_set_sor(
double value);
408 void set_cfm(
double value);
410 double _internal_cfm()
const;
411 void _internal_set_cfm(
double value);
417 void set_erp(
double value);
419 double _internal_erp()
const;
420 void _internal_set_erp(
double value);
425 int32_t iters()
const;
426 void set_iters(int32_t value);
428 int32_t _internal_iters()
const;
429 void _internal_set_iters(int32_t value);
433 void clear_enable_physics();
434 bool enable_physics()
const;
435 void set_enable_physics(
bool value);
437 bool _internal_enable_physics()
const;
438 void _internal_set_enable_physics(
bool value);
442 void clear_contact_max_correcting_vel();
443 double contact_max_correcting_vel()
const;
444 void set_contact_max_correcting_vel(
double value);
446 double _internal_contact_max_correcting_vel()
const;
447 void _internal_set_contact_max_correcting_vel(
double value);
451 void clear_contact_surface_layer();
452 double contact_surface_layer()
const;
453 void set_contact_surface_layer(
double value);
455 double _internal_contact_surface_layer()
const;
456 void _internal_set_contact_surface_layer(
double value);
460 void clear_real_time_factor();
461 double real_time_factor()
const;
462 void set_real_time_factor(
double value);
464 double _internal_real_time_factor()
const;
465 void _internal_set_real_time_factor(
double value);
469 void clear_real_time_update_rate();
470 double real_time_update_rate()
const;
471 void set_real_time_update_rate(
double value);
473 double _internal_real_time_update_rate()
const;
474 void _internal_set_real_time_update_rate(
double value);
478 void clear_max_step_size();
479 double max_step_size()
const;
480 void set_max_step_size(
double value);
482 double _internal_max_step_size()
const;
483 void _internal_set_max_step_size(
double value);
490 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
491 typedef void InternalArenaConstructable_;
492 typedef void DestructorSkippable_;
493 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr solver_type_;
494 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr profile_name_;
499 int32_t precon_iters_;
500 double min_step_size_;
505 bool enable_physics_;
506 double contact_max_correcting_vel_;
507 double contact_surface_layer_;
508 double real_time_factor_;
509 double real_time_update_rate_;
510 double max_step_size_;
511 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
512 friend struct ::TableStruct_ignition_2fmsgs_2fphysics_2eproto;
520 #pragma GCC diagnostic push
521 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
526 inline bool Physics::_internal_has_header()
const {
527 return this != internal_default_instance() && header_ !=
nullptr;
530 return _internal_has_header();
532 inline const ::ignition::msgs::Header& Physics::_internal_header()
const {
533 const ::ignition::msgs::Header* p = header_;
539 return _internal_header();
543 if (GetArenaForAllocation() ==
nullptr) {
544 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
558 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
559 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
560 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
561 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
563 if (GetArenaForAllocation() !=
nullptr) {
564 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
576 inline ::ignition::msgs::Header* Physics::_internal_mutable_header() {
578 if (header_ ==
nullptr) {
579 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
590 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
591 if (message_arena ==
nullptr) {
592 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
595 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
596 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
597 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
598 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header));
599 if (message_arena != submessage_arena) {
600 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
601 message_arena, header, submessage_arena);
620 return _internal_type();
627 _internal_set_type(value);
633 solver_type_.ClearToEmpty();
637 return _internal_solver_type();
639 template <
typename ArgT0,
typename... ArgT>
640 inline PROTOBUF_ALWAYS_INLINE
643 solver_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
651 inline const std::string& Physics::_internal_solver_type()
const {
652 return solver_type_.Get();
654 inline void Physics::_internal_set_solver_type(
const std::string& value) {
656 solver_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
658 inline std::string* Physics::_internal_mutable_solver_type() {
660 return solver_type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
664 return solver_type_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
667 if (solver_type !=
nullptr) {
672 solver_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), solver_type,
673 GetArenaForAllocation());
674 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
675 if (solver_type_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
676 solver_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
"", GetArenaForAllocation());
686 inline double Physics::_internal_min_step_size()
const {
687 return min_step_size_;
691 return _internal_min_step_size();
693 inline void Physics::_internal_set_min_step_size(
double value) {
695 min_step_size_ = value;
698 _internal_set_min_step_size(value);
706 inline int32_t Physics::_internal_precon_iters()
const {
707 return precon_iters_;
711 return _internal_precon_iters();
713 inline void Physics::_internal_set_precon_iters(int32_t value) {
715 precon_iters_ = value;
718 _internal_set_precon_iters(value);
726 inline int32_t Physics::_internal_iters()
const {
731 return _internal_iters();
733 inline void Physics::_internal_set_iters(int32_t value) {
738 _internal_set_iters(value);
746 inline double Physics::_internal_sor()
const {
751 return _internal_sor();
753 inline void Physics::_internal_set_sor(
double value) {
758 _internal_set_sor(value);
766 inline double Physics::_internal_cfm()
const {
771 return _internal_cfm();
773 inline void Physics::_internal_set_cfm(
double value) {
778 _internal_set_cfm(value);
786 inline double Physics::_internal_erp()
const {
791 return _internal_erp();
793 inline void Physics::_internal_set_erp(
double value) {
798 _internal_set_erp(value);
804 contact_max_correcting_vel_ = 0;
806 inline double Physics::_internal_contact_max_correcting_vel()
const {
807 return contact_max_correcting_vel_;
811 return _internal_contact_max_correcting_vel();
813 inline void Physics::_internal_set_contact_max_correcting_vel(
double value) {
815 contact_max_correcting_vel_ = value;
818 _internal_set_contact_max_correcting_vel(value);
824 contact_surface_layer_ = 0;
826 inline double Physics::_internal_contact_surface_layer()
const {
827 return contact_surface_layer_;
831 return _internal_contact_surface_layer();
833 inline void Physics::_internal_set_contact_surface_layer(
double value) {
835 contact_surface_layer_ = value;
838 _internal_set_contact_surface_layer(value);
843 inline bool Physics::_internal_has_gravity()
const {
844 return this != internal_default_instance() && gravity_ !=
nullptr;
847 return _internal_has_gravity();
849 inline const ::ignition::msgs::Vector3d& Physics::_internal_gravity()
const {
850 const ::ignition::msgs::Vector3d* p = gravity_;
856 return _internal_gravity();
860 if (GetArenaForAllocation() ==
nullptr) {
861 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(gravity_);
875 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
876 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
877 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
878 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
880 if (GetArenaForAllocation() !=
nullptr) {
881 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
893 inline ::ignition::msgs::Vector3d* Physics::_internal_mutable_gravity() {
895 if (gravity_ ==
nullptr) {
896 auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaForAllocation());
907 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
908 if (message_arena ==
nullptr) {
909 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(gravity_);
912 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
913 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
914 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
915 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(gravity));
916 if (message_arena != submessage_arena) {
917 gravity = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
918 message_arena, gravity, submessage_arena);
930 enable_physics_ =
false;
932 inline bool Physics::_internal_enable_physics()
const {
933 return enable_physics_;
937 return _internal_enable_physics();
939 inline void Physics::_internal_set_enable_physics(
bool value) {
941 enable_physics_ = value;
944 _internal_set_enable_physics(value);
950 real_time_factor_ = 0;
952 inline double Physics::_internal_real_time_factor()
const {
953 return real_time_factor_;
957 return _internal_real_time_factor();
959 inline void Physics::_internal_set_real_time_factor(
double value) {
961 real_time_factor_ = value;
964 _internal_set_real_time_factor(value);
970 real_time_update_rate_ = 0;
972 inline double Physics::_internal_real_time_update_rate()
const {
973 return real_time_update_rate_;
977 return _internal_real_time_update_rate();
979 inline void Physics::_internal_set_real_time_update_rate(
double value) {
981 real_time_update_rate_ = value;
984 _internal_set_real_time_update_rate(value);
992 inline double Physics::_internal_max_step_size()
const {
993 return max_step_size_;
997 return _internal_max_step_size();
999 inline void Physics::_internal_set_max_step_size(
double value) {
1001 max_step_size_ = value;
1004 _internal_set_max_step_size(value);
1010 profile_name_.ClearToEmpty();
1014 return _internal_profile_name();
1016 template <
typename ArgT0,
typename... ArgT>
1017 inline PROTOBUF_ALWAYS_INLINE
1020 profile_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1024 std::string* _s = _internal_mutable_profile_name();
1028 inline const std::string& Physics::_internal_profile_name()
const {
1029 return profile_name_.Get();
1031 inline void Physics::_internal_set_profile_name(
const std::string& value) {
1033 profile_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
1035 inline std::string* Physics::_internal_mutable_profile_name() {
1037 return profile_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
1041 return profile_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
1044 if (profile_name !=
nullptr) {
1049 profile_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), profile_name,
1050 GetArenaForAllocation());
1051 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1052 if (profile_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
1053 profile_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
"", GetArenaForAllocation());
1060 inline bool Physics::_internal_has_magnetic_field()
const {
1061 return this != internal_default_instance() && magnetic_field_ !=
nullptr;
1064 return _internal_has_magnetic_field();
1066 inline const ::ignition::msgs::Vector3d& Physics::_internal_magnetic_field()
const {
1067 const ::ignition::msgs::Vector3d* p = magnetic_field_;
1073 return _internal_magnetic_field();
1077 if (GetArenaForAllocation() ==
nullptr) {
1078 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(magnetic_field_);
1080 magnetic_field_ = magnetic_field;
1081 if (magnetic_field) {
1091 magnetic_field_ =
nullptr;
1092 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1093 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
1094 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1095 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
1097 if (GetArenaForAllocation() !=
nullptr) {
1098 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1107 magnetic_field_ =
nullptr;
1110 inline ::ignition::msgs::Vector3d* Physics::_internal_mutable_magnetic_field() {
1112 if (magnetic_field_ ==
nullptr) {
1113 auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaForAllocation());
1114 magnetic_field_ = p;
1116 return magnetic_field_;
1124 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1125 if (message_arena ==
nullptr) {
1126 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(magnetic_field_);
1128 if (magnetic_field) {
1129 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1130 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
1131 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
1132 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(magnetic_field));
1133 if (message_arena != submessage_arena) {
1134 magnetic_field = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1135 message_arena, magnetic_field, submessage_arena);
1141 magnetic_field_ = magnetic_field;
1146 #pragma GCC diagnostic pop
1158 PROTOBUF_NAMESPACE_OPEN
1162 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Physics_Type>() {
1166 PROTOBUF_NAMESPACE_CLOSE
1169 #pragma warning(pop)
1173 #include <google/protobuf/port_undef.inc>
Definition: physics.pb.h:113
void set_real_time_update_rate(double value)
Definition: physics.pb.h:983
void clear_solver_type()
Definition: physics.pb.h:632
Physics()
Definition: physics.pb.h:115
void set_enable_physics(bool value)
Definition: physics.pb.h:943
std::string * mutable_solver_type()
Definition: physics.pb.h:646
void set_allocated_magnetic_field(::ignition::msgs::Vector3d *magnetic_field)
Definition: physics.pb.h:1123
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: physics.pb.h:149
::ignition::msgs::Vector3d * mutable_gravity()
Definition: physics.pb.h:901
bool has_header() const
Definition: physics.pb.h:529
static const std::string & Type_Name(T enum_t_value)
Definition: physics.pb.h:254
::ignition::msgs::Header * mutable_header()
Definition: physics.pb.h:584
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
int32_t iters() const
Definition: physics.pb.h:729
Physics & operator=(Physics &&from) noexcept
Definition: physics.pb.h:129
void clear_min_step_size()
Definition: physics.pb.h:683
void set_iters(int32_t value)
Definition: physics.pb.h:737
void set_cfm(double value)
Definition: physics.pb.h:777
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: physics.pb.h:143
void clear_iters()
Definition: physics.pb.h:723
void set_allocated_profile_name(std::string *profile_name)
Definition: physics.pb.h:1043
double contact_max_correcting_vel() const
Definition: physics.pb.h:809
double max_step_size() const
Definition: physics.pb.h:995
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Type_descriptor()
Definition: physics.pb.h:250
double real_time_update_rate() const
Definition: physics.pb.h:975
Physics(const Physics &from)
void clear_contact_max_correcting_vel()
Definition: physics.pb.h:803
double sor() const
Definition: physics.pb.h:749
void set_erp(double value)
Definition: physics.pb.h:797
void unsafe_arena_set_allocated_magnetic_field(::ignition::msgs::Vector3d *magnetic_field)
Definition: physics.pb.h:1075
void clear_magnetic_field()
PROTOBUF_NODISCARD std::string * release_profile_name()
Definition: physics.pb.h:1039
double min_step_size() const
Definition: physics.pb.h:689
::ignition::msgs::Physics_Type type() const
Definition: physics.pb.h:618
PROTOBUF_NODISCARD ::ignition::msgs::Vector3d * release_gravity()
Definition: physics.pb.h:871
void set_allocated_gravity(::ignition::msgs::Vector3d *gravity)
Definition: physics.pb.h:906
void clear_real_time_factor()
Definition: physics.pb.h:949
void set_min_step_size(double value)
Definition: physics.pb.h:697
Physics(Physics &&from) noexcept
Definition: physics.pb.h:120
Physics(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
double real_time_factor() const
Definition: physics.pb.h:955
void clear_sor()
Definition: physics.pb.h:743
PROTOBUF_NODISCARD std::string * release_solver_type()
Definition: physics.pb.h:662
Physics & operator=(const Physics &from)
Definition: physics.pb.h:125
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Definition: physics.pb.h:541
static const Physics & default_instance()
Definition: physics.pb.h:152
::ignition::msgs::Vector3d * mutable_magnetic_field()
Definition: physics.pb.h:1118
void set_contact_surface_layer(double value)
Definition: physics.pb.h:837
PROTOBUF_NODISCARD ::ignition::msgs::Vector3d * release_magnetic_field()
Definition: physics.pb.h:1088
void set_precon_iters(int32_t value)
Definition: physics.pb.h:717
void clear_erp()
Definition: physics.pb.h:783
const std::string & profile_name() const
Definition: physics.pb.h:1012
void clear_enable_physics()
Definition: physics.pb.h:929
void UnsafeArenaSwap(Physics *other)
Definition: physics.pb.h:178
void clear_cfm()
Definition: physics.pb.h:763
double cfm() const
Definition: physics.pb.h:769
void set_profile_name(ArgT0 &&arg0, ArgT... args)
void clear_contact_surface_layer()
Definition: physics.pb.h:823
const ::ignition::msgs::Vector3d & gravity() const
Definition: physics.pb.h:854
bool enable_physics() const
Definition: physics.pb.h:935
void set_allocated_solver_type(std::string *solver_type)
Definition: physics.pb.h:666
void Swap(Physics *other)
Definition: physics.pb.h:165
::ignition::msgs::Vector3d * unsafe_arena_release_gravity()
Definition: physics.pb.h:886
static bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Type *value)
Definition: physics.pb.h:260
void clear_type()
Definition: physics.pb.h:612
::ignition::msgs::Vector3d * unsafe_arena_release_magnetic_field()
Definition: physics.pb.h:1103
void set_allocated_header(::ignition::msgs::Header *header)
Definition: physics.pb.h:589
friend void swap(Physics &a, Physics &b)
Definition: physics.pb.h:162
bool has_magnetic_field() const
Definition: physics.pb.h:1063
constexpr Physics(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
PROTOBUF_NODISCARD ::ignition::msgs::Header * release_header()
Definition: physics.pb.h:554
Physics * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: physics.pb.h:186
const std::string & solver_type() const
Definition: physics.pb.h:635
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void set_type(::ignition::msgs::Physics_Type value)
Definition: physics.pb.h:626
const ::ignition::msgs::Vector3d & magnetic_field() const
Definition: physics.pb.h:1071
int32_t precon_iters() const
Definition: physics.pb.h:709
void clear_profile_name()
Definition: physics.pb.h:1009
double contact_surface_layer() const
Definition: physics.pb.h:829
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: physics.pb.h:146
const ::ignition::msgs::Header & header() const
Definition: physics.pb.h:537
void set_max_step_size(double value)
Definition: physics.pb.h:1003
void clear_real_time_update_rate()
Definition: physics.pb.h:969
void set_solver_type(ArgT0 &&arg0, ArgT... args)
void unsafe_arena_set_allocated_gravity(::ignition::msgs::Vector3d *gravity)
Definition: physics.pb.h:858
void set_sor(double value)
Definition: physics.pb.h:757
double erp() const
Definition: physics.pb.h:789
std::string * mutable_profile_name()
Definition: physics.pb.h:1023
static const ClassData _class_data_
Definition: physics.pb.h:224
void set_real_time_factor(double value)
Definition: physics.pb.h:963
::ignition::msgs::Header * unsafe_arena_release_header()
Definition: physics.pb.h:569
void clear_precon_iters()
Definition: physics.pb.h:703
static const Physics * internal_default_instance()
Definition: physics.pb.h:155
void CopyFrom(const Physics &from)
void MergeFrom(const Physics &from)
void clear_max_step_size()
Definition: physics.pb.h:989
bool has_gravity() const
Definition: physics.pb.h:846
void set_contact_max_correcting_vel(double value)
Definition: physics.pb.h:817
Definition: vector3d.pb.h:84
IGNITION_MSGS_VISIBLE PhysicsDefaultTypeInternal _Physics_default_instance_
std::shared_ptr< Physics > PhysicsSharedPtr
Definition: physics.pb.h:1151
std::unique_ptr< Physics > PhysicsUniquePtr
Definition: physics.pb.h:1149
IGNITION_MSGS_VISIBLE Vector3dDefaultTypeInternal _Vector3d_default_instance_
IGNITION_MSGS_VISIBLE bool Physics_Type_IsValid(int value)
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Physics_Type_descriptor()
constexpr Physics_Type Physics_Type_Type_MIN
Definition: physics.pb.h:92
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
const std::string & Physics_Type_Name(T enum_t_value)
Definition: physics.pb.h:98
constexpr int Physics_Type_Type_ARRAYSIZE
Definition: physics.pb.h:94
std::unique_ptr< const Physics > ConstPhysicsUniquePtr
Definition: physics.pb.h:1150
bool Physics_Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Physics_Type *value)
Definition: physics.pb.h:105
Physics_Type
Definition: physics.pb.h:83
@ Physics_Type_ODE
Definition: physics.pb.h:84
@ Physics_Type_BULLET
Definition: physics.pb.h:85
@ Physics_Type_Physics_Type_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: physics.pb.h:89
@ Physics_Type_DART
Definition: physics.pb.h:87
@ Physics_Type_SIMBODY
Definition: physics.pb.h:86
@ Physics_Type_Physics_Type_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: physics.pb.h:88
std::shared_ptr< const Physics > ConstPhysicsSharedPtr
Definition: physics.pb.h:1152
constexpr Physics_Type Physics_Type_Type_MAX
Definition: physics.pb.h:93
Definition: actor.pb.h:52
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fphysics_2eproto
Definition: physics.pb.h:58
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)