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 < 3012000
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 3012004 < 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/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/generated_enum_reflection.h>
35 #include <google/protobuf/unknown_field_set.h>
39 #pragma GCC system_header
42 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
45 #include <sys/sysmacros.h>
50 #include <google/protobuf/port_def.inc>
51 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fphysics_2eproto IGNITION_MSGS_VISIBLE
52 PROTOBUF_NAMESPACE_OPEN
56 PROTOBUF_NAMESPACE_CLOSE
60 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
62 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
64 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
66 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
67 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
68 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
74 class PhysicsDefaultTypeInternal;
78 PROTOBUF_NAMESPACE_OPEN
79 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Physics* Arena::CreateMaybeMessage<::ignition::msgs::Physics>(Arena*);
80 PROTOBUF_NAMESPACE_CLOSE
102 "Incorrect type passed to function Physics_Type_Name.");
103 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
108 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Physics_Type>(
113 class IGNITION_MSGS_VISIBLE Physics PROTOBUF_FINAL :
114 public ::PROTOBUF_NAMESPACE_ID::Message {
122 *
this = ::std::move(from);
130 if (GetArena() == from.GetArena()) {
131 if (
this != &from) InternalSwap(&from);
138 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
139 return GetDescriptor();
142 return GetMetadataStatic().descriptor;
145 return GetMetadataStatic().reflection;
151 return reinterpret_cast<const Physics*
>(
154 static constexpr
int kIndexInFileMessages =
157 friend void swap(Physics& a, Physics& b) {
160 inline void Swap(Physics* other) {
161 if (other ==
this)
return;
162 if (GetArena() == other->GetArena()) {
165 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
169 if (other ==
this)
return;
170 GOOGLE_DCHECK(GetArena() == other->GetArena());
176 inline Physics*
New() const final {
177 return CreateMaybeMessage<Physics>(
nullptr);
180 Physics*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
181 return CreateMaybeMessage<Physics>(arena);
183 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
184 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
187 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
188 bool IsInitialized() const final;
190 size_t ByteSizeLong() const final;
191 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
192 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
193 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
194 int GetCachedSize() const final {
return _cached_size_.Get(); }
197 inline void SharedCtor();
198 inline void SharedDtor();
199 void SetCachedSize(
int size)
const final;
200 void InternalSwap(Physics* other);
201 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
202 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
203 return "ignition.msgs.Physics";
206 explicit Physics(::PROTOBUF_NAMESPACE_ID::Arena* arena);
208 static void ArenaDtor(
void*
object);
209 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
214 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
228 static constexpr
Type SIMBODY =
235 static constexpr Type Type_MIN =
237 static constexpr Type Type_MAX =
239 static constexpr
int Type_ARRAYSIZE =
241 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
249 "Incorrect type passed to function Type_Name.");
260 kSolverTypeFieldNumber = 3,
261 kProfileNameFieldNumber = 17,
262 kHeaderFieldNumber = 1,
263 kGravityFieldNumber = 12,
264 kMagneticFieldFieldNumber = 18,
265 kTypeFieldNumber = 2,
266 kPreconItersFieldNumber = 5,
267 kMinStepSizeFieldNumber = 4,
271 kItersFieldNumber = 6,
272 kEnablePhysicsFieldNumber = 13,
273 kContactMaxCorrectingVelFieldNumber = 10,
274 kContactSurfaceLayerFieldNumber = 11,
275 kRealTimeFactorFieldNumber = 14,
276 kRealTimeUpdateRateFieldNumber = 15,
277 kMaxStepSizeFieldNumber = 16,
289 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
290 " string fields are deprecated and will be removed in a"
292 std::
string* unsafe_arena_release_solver_type();
293 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
294 "
string fields are deprecated and will be removed in a"
296 void unsafe_arena_set_allocated_solver_type(
297 std::
string* solver_type);
299 const
std::
string& _internal_solver_type() const;
300 void _internal_set_solver_type(const
std::
string& value);
301 std::
string* _internal_mutable_solver_type();
305 void clear_profile_name();
306 const
std::
string& profile_name() const;
307 void set_profile_name(const
std::
string& value);
308 void set_profile_name(
std::
string&& value);
309 void set_profile_name(const
char* value);
310 void set_profile_name(const
char* value,
size_t size);
311 std::
string* mutable_profile_name();
312 std::
string* release_profile_name();
313 void set_allocated_profile_name(
std::
string* profile_name);
314 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
315 "
string fields are deprecated and will be removed in a"
317 std::
string* unsafe_arena_release_profile_name();
318 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
319 "
string fields are deprecated and will be removed in a"
321 void unsafe_arena_set_allocated_profile_name(
322 std::
string* profile_name);
324 const
std::
string& _internal_profile_name() const;
325 void _internal_set_profile_name(const
std::
string& value);
326 std::
string* _internal_mutable_profile_name();
330 bool has_header() const;
332 bool _internal_has_header() const;
338 void set_allocated_header(::
ignition::msgs::Header* header);
340 const ::
ignition::msgs::Header& _internal_header() const;
341 ::
ignition::msgs::Header* _internal_mutable_header();
343 void unsafe_arena_set_allocated_header(
345 ::
ignition::msgs::Header* unsafe_arena_release_header();
348 bool has_gravity() const;
350 bool _internal_has_gravity() const;
352 void clear_gravity();
361 void unsafe_arena_set_allocated_gravity(
366 bool has_magnetic_field() const;
368 bool _internal_has_magnetic_field() const;
370 void clear_magnetic_field();
379 void unsafe_arena_set_allocated_magnetic_field(
393 void clear_precon_iters();
394 ::PROTOBUF_NAMESPACE_ID::int32 precon_iters() const;
395 void set_precon_iters(::PROTOBUF_NAMESPACE_ID::int32 value);
397 ::PROTOBUF_NAMESPACE_ID::int32 _internal_precon_iters() const;
398 void _internal_set_precon_iters(::PROTOBUF_NAMESPACE_ID::int32 value);
402 void clear_min_step_size();
403 double min_step_size() const;
404 void set_min_step_size(
double value);
406 double _internal_min_step_size() const;
407 void _internal_set_min_step_size(
double value);
413 void set_sor(
double value);
415 double _internal_sor() const;
416 void _internal_set_sor(
double value);
422 void set_cfm(
double value);
424 double _internal_cfm() const;
425 void _internal_set_cfm(
double value);
431 void set_erp(
double value);
433 double _internal_erp() const;
434 void _internal_set_erp(
double value);
439 ::PROTOBUF_NAMESPACE_ID::int32 iters() const;
440 void set_iters(::PROTOBUF_NAMESPACE_ID::int32 value);
442 ::PROTOBUF_NAMESPACE_ID::int32 _internal_iters() const;
443 void _internal_set_iters(::PROTOBUF_NAMESPACE_ID::int32 value);
447 void clear_enable_physics();
448 bool enable_physics() const;
449 void set_enable_physics(
bool value);
451 bool _internal_enable_physics() const;
452 void _internal_set_enable_physics(
bool value);
456 void clear_contact_max_correcting_vel();
457 double contact_max_correcting_vel() const;
458 void set_contact_max_correcting_vel(
double value);
460 double _internal_contact_max_correcting_vel() const;
461 void _internal_set_contact_max_correcting_vel(
double value);
465 void clear_contact_surface_layer();
466 double contact_surface_layer() const;
467 void set_contact_surface_layer(
double value);
469 double _internal_contact_surface_layer() const;
470 void _internal_set_contact_surface_layer(
double value);
474 void clear_real_time_factor();
475 double real_time_factor() const;
476 void set_real_time_factor(
double value);
478 double _internal_real_time_factor() const;
479 void _internal_set_real_time_factor(
double value);
483 void clear_real_time_update_rate();
484 double real_time_update_rate() const;
485 void set_real_time_update_rate(
double value);
487 double _internal_real_time_update_rate() const;
488 void _internal_set_real_time_update_rate(
double value);
492 void clear_max_step_size();
493 double max_step_size() const;
494 void set_max_step_size(
double value);
496 double _internal_max_step_size() const;
497 void _internal_set_max_step_size(
double value);
504 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
505 typedef
void InternalArenaConstructable_;
506 typedef
void DestructorSkippable_;
507 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr solver_type_;
508 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr profile_name_;
513 ::PROTOBUF_NAMESPACE_ID::int32 precon_iters_;
514 double min_step_size_;
518 ::PROTOBUF_NAMESPACE_ID::int32 iters_;
519 bool enable_physics_;
520 double contact_max_correcting_vel_;
521 double contact_surface_layer_;
522 double real_time_factor_;
523 double real_time_update_rate_;
524 double max_step_size_;
525 mutable ::PROTOBUF_NAMESPACE_ID::
internal::CachedSize _cached_size_;
534 #pragma GCC diagnostic push
535 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
540 inline bool Physics::_internal_has_header()
const {
541 return this != internal_default_instance() && header_ !=
nullptr;
543 inline bool Physics::has_header()
const {
544 return _internal_has_header();
546 inline const ::ignition::msgs::Header& Physics::_internal_header()
const {
547 const ::ignition::msgs::Header* p = header_;
548 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Header*
>(
551 inline const ::ignition::msgs::Header& Physics::header()
const {
553 return _internal_header();
555 inline void Physics::unsafe_arena_set_allocated_header(
556 ::ignition::msgs::Header* header) {
557 if (GetArena() ==
nullptr) {
558 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
568 inline ::ignition::msgs::Header* Physics::release_header() {
569 auto temp = unsafe_arena_release_header();
570 if (GetArena() !=
nullptr) {
571 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
575 inline ::ignition::msgs::Header* Physics::unsafe_arena_release_header() {
578 ::ignition::msgs::Header* temp = header_;
582 inline ::ignition::msgs::Header* Physics::_internal_mutable_header() {
584 if (header_ ==
nullptr) {
585 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
590 inline ::ignition::msgs::Header* Physics::mutable_header() {
592 return _internal_mutable_header();
594 inline void Physics::set_allocated_header(::ignition::msgs::Header* header) {
595 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
596 if (message_arena ==
nullptr) {
597 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
600 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
601 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
602 if (message_arena != submessage_arena) {
603 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
604 message_arena, header, submessage_arena);
615 inline void Physics::clear_type() {
623 return _internal_type();
630 _internal_set_type(value);
635 inline void Physics::clear_solver_type() {
636 solver_type_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
638 inline const std::string& Physics::solver_type()
const {
640 return _internal_solver_type();
642 inline void Physics::set_solver_type(
const std::string& value) {
643 _internal_set_solver_type(value);
646 inline std::string* Physics::mutable_solver_type() {
648 return _internal_mutable_solver_type();
650 inline const std::string& Physics::_internal_solver_type()
const {
651 return solver_type_.Get();
653 inline void Physics::_internal_set_solver_type(
const std::string& value) {
655 solver_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
657 inline void Physics::set_solver_type(
std::string&& value) {
660 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::move(value), GetArena());
663 inline void Physics::set_solver_type(
const char* value) {
664 GOOGLE_DCHECK(value !=
nullptr);
666 solver_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(value),
670 inline void Physics::set_solver_type(
const char* value,
673 solver_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(
674 reinterpret_cast<const char*
>(value), size), GetArena());
677 inline std::string* Physics::_internal_mutable_solver_type() {
679 return solver_type_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
681 inline std::string* Physics::release_solver_type() {
683 return solver_type_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
685 inline void Physics::set_allocated_solver_type(
std::string* solver_type) {
686 if (solver_type !=
nullptr) {
691 solver_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), solver_type,
695 inline std::string* Physics::unsafe_arena_release_solver_type() {
697 GOOGLE_DCHECK(GetArena() !=
nullptr);
699 return solver_type_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
702 inline void Physics::unsafe_arena_set_allocated_solver_type(
704 GOOGLE_DCHECK(GetArena() !=
nullptr);
705 if (solver_type !=
nullptr) {
710 solver_type_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
711 solver_type, GetArena());
716 inline void Physics::clear_min_step_size() {
719 inline double Physics::_internal_min_step_size()
const {
720 return min_step_size_;
722 inline double Physics::min_step_size()
const {
724 return _internal_min_step_size();
726 inline void Physics::_internal_set_min_step_size(
double value) {
728 min_step_size_ = value;
730 inline void Physics::set_min_step_size(
double value) {
731 _internal_set_min_step_size(value);
736 inline void Physics::clear_precon_iters() {
739 inline ::PROTOBUF_NAMESPACE_ID::int32 Physics::_internal_precon_iters()
const {
740 return precon_iters_;
742 inline ::PROTOBUF_NAMESPACE_ID::int32 Physics::precon_iters()
const {
744 return _internal_precon_iters();
746 inline void Physics::_internal_set_precon_iters(::PROTOBUF_NAMESPACE_ID::int32 value) {
748 precon_iters_ = value;
750 inline void Physics::set_precon_iters(::PROTOBUF_NAMESPACE_ID::int32 value) {
751 _internal_set_precon_iters(value);
756 inline void Physics::clear_iters() {
759 inline ::PROTOBUF_NAMESPACE_ID::int32 Physics::_internal_iters()
const {
762 inline ::PROTOBUF_NAMESPACE_ID::int32 Physics::iters()
const {
764 return _internal_iters();
766 inline void Physics::_internal_set_iters(::PROTOBUF_NAMESPACE_ID::int32 value) {
770 inline void Physics::set_iters(::PROTOBUF_NAMESPACE_ID::int32 value) {
771 _internal_set_iters(value);
776 inline void Physics::clear_sor() {
779 inline double Physics::_internal_sor()
const {
782 inline double Physics::sor()
const {
784 return _internal_sor();
786 inline void Physics::_internal_set_sor(
double value) {
790 inline void Physics::set_sor(
double value) {
791 _internal_set_sor(value);
796 inline void Physics::clear_cfm() {
799 inline double Physics::_internal_cfm()
const {
802 inline double Physics::cfm()
const {
804 return _internal_cfm();
806 inline void Physics::_internal_set_cfm(
double value) {
810 inline void Physics::set_cfm(
double value) {
811 _internal_set_cfm(value);
816 inline void Physics::clear_erp() {
819 inline double Physics::_internal_erp()
const {
822 inline double Physics::erp()
const {
824 return _internal_erp();
826 inline void Physics::_internal_set_erp(
double value) {
830 inline void Physics::set_erp(
double value) {
831 _internal_set_erp(value);
836 inline void Physics::clear_contact_max_correcting_vel() {
837 contact_max_correcting_vel_ = 0;
839 inline double Physics::_internal_contact_max_correcting_vel()
const {
840 return contact_max_correcting_vel_;
842 inline double Physics::contact_max_correcting_vel()
const {
844 return _internal_contact_max_correcting_vel();
846 inline void Physics::_internal_set_contact_max_correcting_vel(
double value) {
848 contact_max_correcting_vel_ = value;
850 inline void Physics::set_contact_max_correcting_vel(
double value) {
851 _internal_set_contact_max_correcting_vel(value);
856 inline void Physics::clear_contact_surface_layer() {
857 contact_surface_layer_ = 0;
859 inline double Physics::_internal_contact_surface_layer()
const {
860 return contact_surface_layer_;
862 inline double Physics::contact_surface_layer()
const {
864 return _internal_contact_surface_layer();
866 inline void Physics::_internal_set_contact_surface_layer(
double value) {
868 contact_surface_layer_ = value;
870 inline void Physics::set_contact_surface_layer(
double value) {
871 _internal_set_contact_surface_layer(value);
876 inline bool Physics::_internal_has_gravity()
const {
877 return this != internal_default_instance() && gravity_ !=
nullptr;
879 inline bool Physics::has_gravity()
const {
880 return _internal_has_gravity();
882 inline const ::ignition::msgs::Vector3d& Physics::_internal_gravity()
const {
883 const ::ignition::msgs::Vector3d* p = gravity_;
884 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Vector3d*
>(
887 inline const ::ignition::msgs::Vector3d& Physics::gravity()
const {
889 return _internal_gravity();
891 inline void Physics::unsafe_arena_set_allocated_gravity(
892 ::ignition::msgs::Vector3d* gravity) {
893 if (GetArena() ==
nullptr) {
894 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(gravity_);
904 inline ::ignition::msgs::Vector3d* Physics::release_gravity() {
905 auto temp = unsafe_arena_release_gravity();
906 if (GetArena() !=
nullptr) {
907 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
911 inline ::ignition::msgs::Vector3d* Physics::unsafe_arena_release_gravity() {
914 ::ignition::msgs::Vector3d* temp = gravity_;
918 inline ::ignition::msgs::Vector3d* Physics::_internal_mutable_gravity() {
920 if (gravity_ ==
nullptr) {
921 auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArena());
926 inline ::ignition::msgs::Vector3d* Physics::mutable_gravity() {
928 return _internal_mutable_gravity();
930 inline void Physics::set_allocated_gravity(::ignition::msgs::Vector3d* gravity) {
931 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
932 if (message_arena ==
nullptr) {
933 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(gravity_);
936 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
937 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(gravity)->GetArena();
938 if (message_arena != submessage_arena) {
939 gravity = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
940 message_arena, gravity, submessage_arena);
951 inline void Physics::clear_enable_physics() {
952 enable_physics_ =
false;
954 inline bool Physics::_internal_enable_physics()
const {
955 return enable_physics_;
957 inline bool Physics::enable_physics()
const {
959 return _internal_enable_physics();
961 inline void Physics::_internal_set_enable_physics(
bool value) {
963 enable_physics_ = value;
965 inline void Physics::set_enable_physics(
bool value) {
966 _internal_set_enable_physics(value);
971 inline void Physics::clear_real_time_factor() {
972 real_time_factor_ = 0;
974 inline double Physics::_internal_real_time_factor()
const {
975 return real_time_factor_;
977 inline double Physics::real_time_factor()
const {
979 return _internal_real_time_factor();
981 inline void Physics::_internal_set_real_time_factor(
double value) {
983 real_time_factor_ = value;
985 inline void Physics::set_real_time_factor(
double value) {
986 _internal_set_real_time_factor(value);
991 inline void Physics::clear_real_time_update_rate() {
992 real_time_update_rate_ = 0;
994 inline double Physics::_internal_real_time_update_rate()
const {
995 return real_time_update_rate_;
997 inline double Physics::real_time_update_rate()
const {
999 return _internal_real_time_update_rate();
1001 inline void Physics::_internal_set_real_time_update_rate(
double value) {
1003 real_time_update_rate_ = value;
1005 inline void Physics::set_real_time_update_rate(
double value) {
1006 _internal_set_real_time_update_rate(value);
1011 inline void Physics::clear_max_step_size() {
1014 inline double Physics::_internal_max_step_size()
const {
1015 return max_step_size_;
1017 inline double Physics::max_step_size()
const {
1019 return _internal_max_step_size();
1021 inline void Physics::_internal_set_max_step_size(
double value) {
1023 max_step_size_ = value;
1025 inline void Physics::set_max_step_size(
double value) {
1026 _internal_set_max_step_size(value);
1031 inline void Physics::clear_profile_name() {
1032 profile_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1034 inline const std::string& Physics::profile_name()
const {
1036 return _internal_profile_name();
1038 inline void Physics::set_profile_name(
const std::string& value) {
1039 _internal_set_profile_name(value);
1042 inline std::string* Physics::mutable_profile_name() {
1044 return _internal_mutable_profile_name();
1046 inline const std::string& Physics::_internal_profile_name()
const {
1047 return profile_name_.Get();
1049 inline void Physics::_internal_set_profile_name(
const std::string& value) {
1051 profile_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
1053 inline void Physics::set_profile_name(
std::string&& value) {
1056 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::move(value), GetArena());
1059 inline void Physics::set_profile_name(
const char* value) {
1060 GOOGLE_DCHECK(value !=
nullptr);
1062 profile_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(value),
1066 inline void Physics::set_profile_name(
const char* value,
1069 profile_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(
1070 reinterpret_cast<const char*
>(value), size), GetArena());
1073 inline std::string* Physics::_internal_mutable_profile_name() {
1075 return profile_name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1077 inline std::string* Physics::release_profile_name() {
1079 return profile_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1081 inline void Physics::set_allocated_profile_name(
std::string* profile_name) {
1082 if (profile_name !=
nullptr) {
1087 profile_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), profile_name,
1091 inline std::string* Physics::unsafe_arena_release_profile_name() {
1093 GOOGLE_DCHECK(GetArena() !=
nullptr);
1095 return profile_name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1098 inline void Physics::unsafe_arena_set_allocated_profile_name(
1100 GOOGLE_DCHECK(GetArena() !=
nullptr);
1101 if (profile_name !=
nullptr) {
1106 profile_name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1107 profile_name, GetArena());
1112 inline bool Physics::_internal_has_magnetic_field()
const {
1113 return this != internal_default_instance() && magnetic_field_ !=
nullptr;
1115 inline bool Physics::has_magnetic_field()
const {
1116 return _internal_has_magnetic_field();
1118 inline const ::ignition::msgs::Vector3d& Physics::_internal_magnetic_field()
const {
1119 const ::ignition::msgs::Vector3d* p = magnetic_field_;
1120 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Vector3d*
>(
1123 inline const ::ignition::msgs::Vector3d& Physics::magnetic_field()
const {
1125 return _internal_magnetic_field();
1127 inline void Physics::unsafe_arena_set_allocated_magnetic_field(
1128 ::ignition::msgs::Vector3d* magnetic_field) {
1129 if (GetArena() ==
nullptr) {
1130 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(magnetic_field_);
1132 magnetic_field_ = magnetic_field;
1133 if (magnetic_field) {
1140 inline ::ignition::msgs::Vector3d* Physics::release_magnetic_field() {
1141 auto temp = unsafe_arena_release_magnetic_field();
1142 if (GetArena() !=
nullptr) {
1143 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1147 inline ::ignition::msgs::Vector3d* Physics::unsafe_arena_release_magnetic_field() {
1150 ::ignition::msgs::Vector3d* temp = magnetic_field_;
1151 magnetic_field_ =
nullptr;
1154 inline ::ignition::msgs::Vector3d* Physics::_internal_mutable_magnetic_field() {
1156 if (magnetic_field_ ==
nullptr) {
1157 auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArena());
1158 magnetic_field_ = p;
1160 return magnetic_field_;
1162 inline ::ignition::msgs::Vector3d* Physics::mutable_magnetic_field() {
1164 return _internal_mutable_magnetic_field();
1166 inline void Physics::set_allocated_magnetic_field(::ignition::msgs::Vector3d* magnetic_field) {
1167 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
1168 if (message_arena ==
nullptr) {
1169 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(magnetic_field_);
1171 if (magnetic_field) {
1172 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1173 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(magnetic_field)->GetArena();
1174 if (message_arena != submessage_arena) {
1175 magnetic_field = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1176 message_arena, magnetic_field, submessage_arena);
1182 magnetic_field_ = magnetic_field;
1187 #pragma GCC diagnostic pop
1199 PROTOBUF_NAMESPACE_OPEN
1203 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Physics_Type>() {
1207 PROTOBUF_NAMESPACE_CLOSE
1210 #pragma warning(pop)
1214 #include <google/protobuf/port_undef.inc>
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fphysics_2eproto
Physics()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:116
static void InitAsDefaultInstance()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:144
static const std::string & Type_Name(T enum_t_value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:246
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
Physics & operator=(Physics &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:129
void set_solver_type(const char *value)
void set_solver_type(std::string &&value)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:138
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Type_descriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:242
Physics * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:176
Physics(const Physics &from)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Physics(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void set_solver_type(const char *value, size_t size)
static bool Type_IsValid(int value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:232
Physics(Physics &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:120
Physics & operator=(const Physics &from)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:125
static const Physics & default_instance()
static bool Type_Parse(const std::string &name, Type *value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:252
Friction_Torsional_ODE ODE
Definition: build/ignition-msgs8/include/ignition/msgs/friction.pb.h:340
void UnsafeArenaSwap(Physics *other)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:168
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
std::string * release_solver_type()
void set_allocated_solver_type(std::string *solver_type)
void Swap(Physics *other)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:160
void set_solver_type(const std::string &value)
friend void swap(Physics &a, Physics &b)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:157
std::string * mutable_solver_type()
const std::string & solver_type() const
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:141
Physics_Type Type
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:223
Physics * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:180
static const Physics * internal_default_instance()
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:150
void CopyFrom(const Physics &from)
void MergeFrom(const Physics &from)
Vector3< double > Vector3d
IGNITION_MSGS_VISIBLE PhysicsDefaultTypeInternal _Physics_default_instance_
std::shared_ptr< Physics > PhysicsSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:1192
std::unique_ptr< Physics > PhysicsUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:1190
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: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:93
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
const std::string & Physics_Type_Name(T enum_t_value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:99
constexpr int Physics_Type_Type_ARRAYSIZE
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:95
std::unique_ptr< const Physics > ConstPhysicsUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:1191
bool Physics_Type_Parse(const std::string &name, Physics_Type *value)
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:106
Physics_Type
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:84
@ Physics_Type_ODE
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:85
@ Physics_Type_BULLET
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:86
@ Physics_Type_Physics_Type_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:90
@ Physics_Type_DART
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:88
@ Physics_Type_SIMBODY
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:87
@ Physics_Type_Physics_Type_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:89
Atmosphere_Type
Definition: build/ignition-msgs8/include/ignition/msgs/atmosphere.pb.h:83
std::shared_ptr< const Physics > ConstPhysicsSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:1193
constexpr Physics_Type Physics_Type_Type_MAX
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:94
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:53
Definition: build/ignition-msgs8/include/ignition/msgs/physics.pb.h:59
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)
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)