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 < 3014000
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 3014000 < 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 ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
73 class 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>(
112 class IGNITION_MSGS_VISIBLE Physics PROTOBUF_FINAL :
113 public ::PROTOBUF_NAMESPACE_ID::Message {
121 *
this = ::std::move(from);
129 if (GetArena() == from.GetArena()) {
130 if (
this != &from) InternalSwap(&from);
137 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
138 return GetDescriptor();
141 return GetMetadataStatic().descriptor;
144 return GetMetadataStatic().reflection;
149 return reinterpret_cast<const Physics*
>(
152 static constexpr
int kIndexInFileMessages =
155 friend void swap(Physics& a, Physics& b) {
158 inline void Swap(Physics* other) {
159 if (other ==
this)
return;
160 if (GetArena() == other->GetArena()) {
163 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
167 if (other ==
this)
return;
168 GOOGLE_DCHECK(GetArena() == other->GetArena());
174 inline Physics*
New() const final {
175 return CreateMaybeMessage<Physics>(
nullptr);
178 Physics*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
179 return CreateMaybeMessage<Physics>(arena);
181 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
182 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
185 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
186 bool IsInitialized() const final;
188 size_t ByteSizeLong() const final;
189 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
190 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
191 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
192 int GetCachedSize() const final {
return _cached_size_.Get(); }
195 inline void SharedCtor();
196 inline void SharedDtor();
197 void SetCachedSize(
int size)
const final;
198 void InternalSwap(Physics* other);
199 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
200 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
201 return "ignition.msgs.Physics";
204 explicit Physics(::PROTOBUF_NAMESPACE_ID::Arena* arena);
206 static void ArenaDtor(
void*
object);
207 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
212 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
226 static constexpr
Type SIMBODY =
233 static constexpr Type Type_MIN =
235 static constexpr Type Type_MAX =
237 static constexpr
int Type_ARRAYSIZE =
239 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
247 "Incorrect type passed to function Type_Name.");
250 static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
258 kSolverTypeFieldNumber = 3,
259 kProfileNameFieldNumber = 17,
260 kHeaderFieldNumber = 1,
261 kGravityFieldNumber = 12,
262 kMagneticFieldFieldNumber = 18,
263 kTypeFieldNumber = 2,
264 kPreconItersFieldNumber = 5,
265 kMinStepSizeFieldNumber = 4,
269 kItersFieldNumber = 6,
270 kEnablePhysicsFieldNumber = 13,
271 kContactMaxCorrectingVelFieldNumber = 10,
272 kContactSurfaceLayerFieldNumber = 11,
273 kRealTimeFactorFieldNumber = 14,
274 kRealTimeUpdateRateFieldNumber = 15,
275 kMaxStepSizeFieldNumber = 16,
289 void _internal_set_solver_type(
const std::string& value);
305 void _internal_set_profile_name(
const std::string& value);
312 bool _internal_has_header()
const;
315 const ::ignition::msgs::Header&
header()
const;
320 const ::ignition::msgs::Header& _internal_header()
const;
321 ::ignition::msgs::Header* _internal_mutable_header();
324 ::ignition::msgs::Header* header);
330 bool _internal_has_gravity()
const;
333 const ::ignition::msgs::Vector3d&
gravity()
const;
338 const ::ignition::msgs::Vector3d& _internal_gravity()
const;
339 ::ignition::msgs::Vector3d* _internal_mutable_gravity();
342 ::ignition::msgs::Vector3d* gravity);
348 bool _internal_has_magnetic_field()
const;
356 const ::ignition::msgs::Vector3d& _internal_magnetic_field()
const;
357 ::ignition::msgs::Vector3d* _internal_mutable_magnetic_field();
360 ::ignition::msgs::Vector3d* magnetic_field);
377 ::PROTOBUF_NAMESPACE_ID::int32 _internal_precon_iters()
const;
378 void _internal_set_precon_iters(::PROTOBUF_NAMESPACE_ID::int32 value);
386 double _internal_min_step_size()
const;
387 void _internal_set_min_step_size(
double value);
395 double _internal_sor()
const;
396 void _internal_set_sor(
double value);
404 double _internal_cfm()
const;
405 void _internal_set_cfm(
double value);
413 double _internal_erp()
const;
414 void _internal_set_erp(
double value);
419 ::PROTOBUF_NAMESPACE_ID::int32
iters()
const;
422 ::PROTOBUF_NAMESPACE_ID::int32 _internal_iters()
const;
423 void _internal_set_iters(::PROTOBUF_NAMESPACE_ID::int32 value);
431 bool _internal_enable_physics()
const;
432 void _internal_set_enable_physics(
bool value);
440 double _internal_contact_max_correcting_vel()
const;
441 void _internal_set_contact_max_correcting_vel(
double value);
449 double _internal_contact_surface_layer()
const;
450 void _internal_set_contact_surface_layer(
double value);
458 double _internal_real_time_factor()
const;
459 void _internal_set_real_time_factor(
double value);
467 double _internal_real_time_update_rate()
const;
468 void _internal_set_real_time_update_rate(
double value);
476 double _internal_max_step_size()
const;
477 void _internal_set_max_step_size(
double value);
484 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
485 typedef void InternalArenaConstructable_;
486 typedef void DestructorSkippable_;
487 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr solver_type_;
488 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr profile_name_;
489 ::ignition::msgs::Header* header_;
490 ::ignition::msgs::Vector3d* gravity_;
491 ::ignition::msgs::Vector3d* magnetic_field_;
493 ::PROTOBUF_NAMESPACE_ID::int32 precon_iters_;
494 double min_step_size_;
498 ::PROTOBUF_NAMESPACE_ID::int32 iters_;
499 bool enable_physics_;
500 double contact_max_correcting_vel_;
501 double contact_surface_layer_;
502 double real_time_factor_;
503 double real_time_update_rate_;
504 double max_step_size_;
505 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
506 friend struct ::TableStruct_ignition_2fmsgs_2fphysics_2eproto;
514 #pragma GCC diagnostic push
515 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
520 inline bool Physics::_internal_has_header()
const {
521 return this != internal_default_instance() && header_ !=
nullptr;
523 inline bool Physics::has_header()
const {
524 return _internal_has_header();
526 inline const ::ignition::msgs::Header& Physics::_internal_header()
const {
527 const ::ignition::msgs::Header* p = header_;
528 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Header&
>(
531 inline const ::ignition::msgs::Header& Physics::header()
const {
533 return _internal_header();
535 inline void Physics::unsafe_arena_set_allocated_header(
536 ::ignition::msgs::Header* header) {
537 if (GetArena() ==
nullptr) {
538 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
548 inline ::ignition::msgs::Header* Physics::release_header() {
550 ::ignition::msgs::Header* temp = header_;
552 if (GetArena() !=
nullptr) {
553 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
557 inline ::ignition::msgs::Header* Physics::unsafe_arena_release_header() {
560 ::ignition::msgs::Header* temp = header_;
564 inline ::ignition::msgs::Header* Physics::_internal_mutable_header() {
566 if (header_ ==
nullptr) {
567 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
572 inline ::ignition::msgs::Header* Physics::mutable_header() {
574 return _internal_mutable_header();
576 inline void Physics::set_allocated_header(::ignition::msgs::Header* header) {
577 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
578 if (message_arena ==
nullptr) {
579 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
582 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
583 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
584 if (message_arena != submessage_arena) {
585 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
586 message_arena, header, submessage_arena);
597 inline void Physics::clear_type() {
605 return _internal_type();
612 _internal_set_type(value);
617 inline void Physics::clear_solver_type() {
618 solver_type_.ClearToEmpty();
620 inline const std::string& Physics::solver_type()
const {
622 return _internal_solver_type();
624 inline void Physics::set_solver_type(
const std::string& value) {
625 _internal_set_solver_type(value);
628 inline std::string* Physics::mutable_solver_type() {
630 return _internal_mutable_solver_type();
632 inline const std::string& Physics::_internal_solver_type()
const {
633 return solver_type_.Get();
635 inline void Physics::_internal_set_solver_type(
const std::string& value) {
637 solver_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
639 inline void Physics::set_solver_type(
std::string&& value) {
642 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
645 inline void Physics::set_solver_type(
const char* value) {
646 GOOGLE_DCHECK(value !=
nullptr);
648 solver_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(value), GetArena());
651 inline void Physics::set_solver_type(
const char* value,
654 solver_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(
655 reinterpret_cast<const char*
>(value), size), GetArena());
658 inline std::string* Physics::_internal_mutable_solver_type() {
660 return solver_type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
662 inline std::string* Physics::release_solver_type() {
664 return solver_type_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
666 inline void Physics::set_allocated_solver_type(
std::string* solver_type) {
667 if (solver_type !=
nullptr) {
672 solver_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), solver_type,
678 inline void Physics::clear_min_step_size() {
681 inline double Physics::_internal_min_step_size()
const {
682 return min_step_size_;
684 inline double Physics::min_step_size()
const {
686 return _internal_min_step_size();
688 inline void Physics::_internal_set_min_step_size(
double value) {
690 min_step_size_ = value;
692 inline void Physics::set_min_step_size(
double value) {
693 _internal_set_min_step_size(value);
698 inline void Physics::clear_precon_iters() {
701 inline ::PROTOBUF_NAMESPACE_ID::int32 Physics::_internal_precon_iters()
const {
702 return precon_iters_;
704 inline ::PROTOBUF_NAMESPACE_ID::int32 Physics::precon_iters()
const {
706 return _internal_precon_iters();
708 inline void Physics::_internal_set_precon_iters(::PROTOBUF_NAMESPACE_ID::int32 value) {
710 precon_iters_ = value;
712 inline void Physics::set_precon_iters(::PROTOBUF_NAMESPACE_ID::int32 value) {
713 _internal_set_precon_iters(value);
718 inline void Physics::clear_iters() {
721 inline ::PROTOBUF_NAMESPACE_ID::int32 Physics::_internal_iters()
const {
724 inline ::PROTOBUF_NAMESPACE_ID::int32 Physics::iters()
const {
726 return _internal_iters();
728 inline void Physics::_internal_set_iters(::PROTOBUF_NAMESPACE_ID::int32 value) {
732 inline void Physics::set_iters(::PROTOBUF_NAMESPACE_ID::int32 value) {
733 _internal_set_iters(value);
738 inline void Physics::clear_sor() {
741 inline double Physics::_internal_sor()
const {
744 inline double Physics::sor()
const {
746 return _internal_sor();
748 inline void Physics::_internal_set_sor(
double value) {
752 inline void Physics::set_sor(
double value) {
753 _internal_set_sor(value);
758 inline void Physics::clear_cfm() {
761 inline double Physics::_internal_cfm()
const {
764 inline double Physics::cfm()
const {
766 return _internal_cfm();
768 inline void Physics::_internal_set_cfm(
double value) {
772 inline void Physics::set_cfm(
double value) {
773 _internal_set_cfm(value);
778 inline void Physics::clear_erp() {
781 inline double Physics::_internal_erp()
const {
784 inline double Physics::erp()
const {
786 return _internal_erp();
788 inline void Physics::_internal_set_erp(
double value) {
792 inline void Physics::set_erp(
double value) {
793 _internal_set_erp(value);
798 inline void Physics::clear_contact_max_correcting_vel() {
799 contact_max_correcting_vel_ = 0;
801 inline double Physics::_internal_contact_max_correcting_vel()
const {
802 return contact_max_correcting_vel_;
804 inline double Physics::contact_max_correcting_vel()
const {
806 return _internal_contact_max_correcting_vel();
808 inline void Physics::_internal_set_contact_max_correcting_vel(
double value) {
810 contact_max_correcting_vel_ = value;
812 inline void Physics::set_contact_max_correcting_vel(
double value) {
813 _internal_set_contact_max_correcting_vel(value);
818 inline void Physics::clear_contact_surface_layer() {
819 contact_surface_layer_ = 0;
821 inline double Physics::_internal_contact_surface_layer()
const {
822 return contact_surface_layer_;
824 inline double Physics::contact_surface_layer()
const {
826 return _internal_contact_surface_layer();
828 inline void Physics::_internal_set_contact_surface_layer(
double value) {
830 contact_surface_layer_ = value;
832 inline void Physics::set_contact_surface_layer(
double value) {
833 _internal_set_contact_surface_layer(value);
838 inline bool Physics::_internal_has_gravity()
const {
839 return this != internal_default_instance() && gravity_ !=
nullptr;
841 inline bool Physics::has_gravity()
const {
842 return _internal_has_gravity();
844 inline const ::ignition::msgs::Vector3d& Physics::_internal_gravity()
const {
845 const ::ignition::msgs::Vector3d* p = gravity_;
846 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Vector3d&
>(
849 inline const ::ignition::msgs::Vector3d& Physics::gravity()
const {
851 return _internal_gravity();
853 inline void Physics::unsafe_arena_set_allocated_gravity(
854 ::ignition::msgs::Vector3d* gravity) {
855 if (GetArena() ==
nullptr) {
856 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(gravity_);
866 inline ::ignition::msgs::Vector3d* Physics::release_gravity() {
868 ::ignition::msgs::Vector3d* temp = gravity_;
870 if (GetArena() !=
nullptr) {
871 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
875 inline ::ignition::msgs::Vector3d* Physics::unsafe_arena_release_gravity() {
878 ::ignition::msgs::Vector3d* temp = gravity_;
882 inline ::ignition::msgs::Vector3d* Physics::_internal_mutable_gravity() {
884 if (gravity_ ==
nullptr) {
885 auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArena());
890 inline ::ignition::msgs::Vector3d* Physics::mutable_gravity() {
892 return _internal_mutable_gravity();
894 inline void Physics::set_allocated_gravity(::ignition::msgs::Vector3d* gravity) {
895 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
896 if (message_arena ==
nullptr) {
897 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(gravity_);
900 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
901 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(gravity)->GetArena();
902 if (message_arena != submessage_arena) {
903 gravity = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
904 message_arena, gravity, submessage_arena);
915 inline void Physics::clear_enable_physics() {
916 enable_physics_ =
false;
918 inline bool Physics::_internal_enable_physics()
const {
919 return enable_physics_;
921 inline bool Physics::enable_physics()
const {
923 return _internal_enable_physics();
925 inline void Physics::_internal_set_enable_physics(
bool value) {
927 enable_physics_ = value;
929 inline void Physics::set_enable_physics(
bool value) {
930 _internal_set_enable_physics(value);
935 inline void Physics::clear_real_time_factor() {
936 real_time_factor_ = 0;
938 inline double Physics::_internal_real_time_factor()
const {
939 return real_time_factor_;
941 inline double Physics::real_time_factor()
const {
943 return _internal_real_time_factor();
945 inline void Physics::_internal_set_real_time_factor(
double value) {
947 real_time_factor_ = value;
949 inline void Physics::set_real_time_factor(
double value) {
950 _internal_set_real_time_factor(value);
955 inline void Physics::clear_real_time_update_rate() {
956 real_time_update_rate_ = 0;
958 inline double Physics::_internal_real_time_update_rate()
const {
959 return real_time_update_rate_;
961 inline double Physics::real_time_update_rate()
const {
963 return _internal_real_time_update_rate();
965 inline void Physics::_internal_set_real_time_update_rate(
double value) {
967 real_time_update_rate_ = value;
969 inline void Physics::set_real_time_update_rate(
double value) {
970 _internal_set_real_time_update_rate(value);
975 inline void Physics::clear_max_step_size() {
978 inline double Physics::_internal_max_step_size()
const {
979 return max_step_size_;
981 inline double Physics::max_step_size()
const {
983 return _internal_max_step_size();
985 inline void Physics::_internal_set_max_step_size(
double value) {
987 max_step_size_ = value;
989 inline void Physics::set_max_step_size(
double value) {
990 _internal_set_max_step_size(value);
995 inline void Physics::clear_profile_name() {
996 profile_name_.ClearToEmpty();
998 inline const std::string& Physics::profile_name()
const {
1000 return _internal_profile_name();
1002 inline void Physics::set_profile_name(
const std::string& value) {
1003 _internal_set_profile_name(value);
1006 inline std::string* Physics::mutable_profile_name() {
1008 return _internal_mutable_profile_name();
1010 inline const std::string& Physics::_internal_profile_name()
const {
1011 return profile_name_.Get();
1013 inline void Physics::_internal_set_profile_name(
const std::string& value) {
1015 profile_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
1017 inline void Physics::set_profile_name(
std::string&& value) {
1020 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
1023 inline void Physics::set_profile_name(
const char* value) {
1024 GOOGLE_DCHECK(value !=
nullptr);
1026 profile_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(value), GetArena());
1029 inline void Physics::set_profile_name(
const char* value,
1032 profile_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(
1033 reinterpret_cast<const char*
>(value), size), GetArena());
1036 inline std::string* Physics::_internal_mutable_profile_name() {
1038 return profile_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
1040 inline std::string* Physics::release_profile_name() {
1042 return profile_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1044 inline void Physics::set_allocated_profile_name(
std::string* profile_name) {
1045 if (profile_name !=
nullptr) {
1050 profile_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), profile_name,
1056 inline bool Physics::_internal_has_magnetic_field()
const {
1057 return this != internal_default_instance() && magnetic_field_ !=
nullptr;
1059 inline bool Physics::has_magnetic_field()
const {
1060 return _internal_has_magnetic_field();
1062 inline const ::ignition::msgs::Vector3d& Physics::_internal_magnetic_field()
const {
1063 const ::ignition::msgs::Vector3d* p = magnetic_field_;
1064 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Vector3d&
>(
1067 inline const ::ignition::msgs::Vector3d& Physics::magnetic_field()
const {
1069 return _internal_magnetic_field();
1071 inline void Physics::unsafe_arena_set_allocated_magnetic_field(
1072 ::ignition::msgs::Vector3d* magnetic_field) {
1073 if (GetArena() ==
nullptr) {
1074 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(magnetic_field_);
1076 magnetic_field_ = magnetic_field;
1077 if (magnetic_field) {
1084 inline ::ignition::msgs::Vector3d* Physics::release_magnetic_field() {
1086 ::ignition::msgs::Vector3d* temp = magnetic_field_;
1087 magnetic_field_ =
nullptr;
1088 if (GetArena() !=
nullptr) {
1089 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1093 inline ::ignition::msgs::Vector3d* Physics::unsafe_arena_release_magnetic_field() {
1096 ::ignition::msgs::Vector3d* temp = magnetic_field_;
1097 magnetic_field_ =
nullptr;
1100 inline ::ignition::msgs::Vector3d* Physics::_internal_mutable_magnetic_field() {
1102 if (magnetic_field_ ==
nullptr) {
1103 auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArena());
1104 magnetic_field_ = p;
1106 return magnetic_field_;
1108 inline ::ignition::msgs::Vector3d* Physics::mutable_magnetic_field() {
1110 return _internal_mutable_magnetic_field();
1112 inline void Physics::set_allocated_magnetic_field(::ignition::msgs::Vector3d* magnetic_field) {
1113 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
1114 if (message_arena ==
nullptr) {
1115 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(magnetic_field_);
1117 if (magnetic_field) {
1118 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1119 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(magnetic_field)->GetArena();
1120 if (message_arena != submessage_arena) {
1121 magnetic_field = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1122 message_arena, magnetic_field, submessage_arena);
1128 magnetic_field_ = magnetic_field;
1133 #pragma GCC diagnostic pop
1145 PROTOBUF_NAMESPACE_OPEN
1149 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Physics_Type>() {
1153 PROTOBUF_NAMESPACE_CLOSE
1156 #pragma warning(pop)
1160 #include <google/protobuf/port_undef.inc>
void set_real_time_update_rate(double value)
Physics()
Definition: physics.pb.h:115
void set_enable_physics(bool value)
std::string * release_profile_name()
void set_allocated_magnetic_field(::ignition::msgs::Vector3d *magnetic_field)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: physics.pb.h:143
static const std::string & Type_Name(T enum_t_value)
Definition: physics.pb.h:244
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::ignition::msgs::Header * release_header()
Physics & operator=(Physics &&from) noexcept
Definition: physics.pb.h:128
void clear_min_step_size()
const ::ignition::msgs::Vector3d & magnetic_field() const
void set_solver_type(const char *value)
void set_solver_type(std::string &&value)
::ignition::msgs::Header * mutable_header()
void set_cfm(double value)
::ignition::msgs::Vector3d * unsafe_arena_release_gravity()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: physics.pb.h:137
void set_allocated_profile_name(std::string *profile_name)
::ignition::msgs::Vector3d * mutable_gravity()
double contact_max_correcting_vel() const
double max_step_size() const
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Type_descriptor()
Definition: physics.pb.h:240
Physics * New() const final
Definition: physics.pb.h:174
double real_time_update_rate() const
Physics(const Physics &from)
void clear_contact_max_correcting_vel()
void set_precon_iters(::PROTOBUF_NAMESPACE_ID::int32 value)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Physics(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void set_erp(double value)
void set_solver_type(const char *value, size_t size)
void set_profile_name(const char *value, size_t size)
void unsafe_arena_set_allocated_magnetic_field(::ignition::msgs::Vector3d *magnetic_field)
void clear_magnetic_field()
double min_step_size() const
void set_allocated_gravity(::ignition::msgs::Vector3d *gravity)
void clear_real_time_factor()
static bool Type_IsValid(int value)
Definition: physics.pb.h:230
void set_min_step_size(double value)
Physics(Physics &&from) noexcept
Definition: physics.pb.h:119
double real_time_factor() const
Physics & operator=(const Physics &from)
Definition: physics.pb.h:124
const std::string & profile_name() const
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
static const Physics & default_instance()
::ignition::msgs::Vector3d * release_gravity()
void set_contact_surface_layer(double value)
::ignition::msgs::Vector3d * unsafe_arena_release_magnetic_field()
void clear_enable_physics()
Friction_Torsional_ODE ODE
Definition: friction.pb.h:337
void UnsafeArenaSwap(Physics *other)
Definition: physics.pb.h:166
void set_profile_name(const char *value)
::PROTOBUF_NAMESPACE_ID::int32 iters() const
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
std::string * release_solver_type()
void clear_contact_surface_layer()
bool enable_physics() const
void set_allocated_solver_type(std::string *solver_type)
void Swap(Physics *other)
Definition: physics.pb.h:158
void set_solver_type(const std::string &value)
::ignition::msgs::Physics_Type type() const
static bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Type *value)
Definition: physics.pb.h:250
::ignition::msgs::Vector3d * mutable_magnetic_field()
void set_allocated_header(::ignition::msgs::Header *header)
void set_profile_name(const std::string &value)
friend void swap(Physics &a, Physics &b)
Definition: physics.pb.h:155
bool has_magnetic_field() const
std::string * mutable_profile_name()
std::string * mutable_solver_type()
const std::string & solver_type() const
void set_type(::ignition::msgs::Physics_Type value)
void clear_profile_name()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
double contact_surface_layer() const
void set_iters(::PROTOBUF_NAMESPACE_ID::int32 value)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: physics.pb.h:140
Physics_Type Type
Definition: physics.pb.h:221
::ignition::msgs::Vector3d * release_magnetic_field()
void set_max_step_size(double value)
void clear_real_time_update_rate()
void unsafe_arena_set_allocated_gravity(::ignition::msgs::Vector3d *gravity)
void set_sor(double value)
void set_real_time_factor(double value)
void clear_precon_iters()
Physics * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: physics.pb.h:178
const ::ignition::msgs::Vector3d & gravity() const
static const Physics * internal_default_instance()
Definition: physics.pb.h:148
void CopyFrom(const Physics &from)
::PROTOBUF_NAMESPACE_ID::int32 precon_iters() const
void MergeFrom(const Physics &from)
const ::ignition::msgs::Header & header() const
void clear_max_step_size()
void set_profile_name(std::string &&value)
void set_contact_max_correcting_vel(double value)
IGNITION_MSGS_VISIBLE PhysicsDefaultTypeInternal _Physics_default_instance_
std::shared_ptr< Physics > PhysicsSharedPtr
Definition: physics.pb.h:1138
std::unique_ptr< Physics > PhysicsUniquePtr
Definition: physics.pb.h:1136
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:1137
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
Atmosphere_Type
Definition: atmosphere.pb.h:82
std::shared_ptr< const Physics > ConstPhysicsSharedPtr
Definition: physics.pb.h:1139
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)