4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fphysics_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fphysics_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "gz/msgs/vector3d.pb.h"
35 #include "gz/msgs/header.pb.h"
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fphysics_2eproto GZ_MSGS_VISIBLE
42 static const ::google::protobuf::internal::ParseTableField entries[];
43 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44 static const ::google::protobuf::internal::ParseTable schema[1];
45 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46 static const ::google::protobuf::internal::SerializationTable serialization_table[];
47 static const ::google::protobuf::uint32 offsets[];
54 class PhysicsDefaultTypeInternal;
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::Physics* Arena::CreateMaybeMessage<::gz::msgs::Physics>(Arena*);
81 return ::google::protobuf::internal::NameOfEnum(
86 return ::google::protobuf::internal::ParseNamedEnum<Physics_Type>(
91 class GZ_MSGS_VISIBLE
Physics :
public ::google::protobuf::Message {
105 *
this = ::std::move(from);
108 inline Physics& operator=(Physics&& from) noexcept {
109 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
110 if (
this != &from) InternalSwap(&from);
117 static const ::google::protobuf::Descriptor* descriptor();
118 static const Physics& default_instance();
120 static void InitAsDefaultInstance();
122 return reinterpret_cast<const Physics*
>(
125 static constexpr
int kIndexInFileMessages =
136 return CreateMaybeMessage<Physics>(NULL);
140 return CreateMaybeMessage<Physics>(arena);
142 void CopyFrom(const ::google::protobuf::Message& from)
final;
143 void MergeFrom(const ::google::protobuf::Message& from)
final;
144 void CopyFrom(
const Physics& from);
145 void MergeFrom(
const Physics& from);
147 bool IsInitialized() const final;
149 size_t ByteSizeLong() const final;
150 bool MergePartialFromCodedStream(
151 ::
google::protobuf::io::CodedInputStream* input) final;
152 void SerializeWithCachedSizes(
153 ::
google::protobuf::io::CodedOutputStream* output) const final;
154 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
155 bool deterministic, ::
google::protobuf::uint8* target) const final;
156 int GetCachedSize() const final {
return _cached_size_.Get(); }
161 void SetCachedSize(
int size)
const final;
162 void InternalSwap(
Physics* other);
164 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
167 inline void* MaybeArenaPtr()
const {
172 ::google::protobuf::Metadata GetMetadata() const final;
185 static inline
bool Type_IsValid(
int value) {
192 static const int Type_ARRAYSIZE =
194 static inline const ::google::protobuf::EnumDescriptor*
209 void clear_solver_type();
210 static const int kSolverTypeFieldNumber = 3;
211 const ::std::string& solver_type()
const;
212 void set_solver_type(const ::std::string& value);
216 void set_solver_type(
const char* value);
217 void set_solver_type(
const char* value,
size_t size);
220 void set_allocated_solver_type(::
std::string* solver_type);
223 void clear_profile_name();
224 static const int kProfileNameFieldNumber = 17;
225 const ::std::string& profile_name()
const;
226 void set_profile_name(const ::std::string& value);
230 void set_profile_name(
const char* value);
231 void set_profile_name(
const char* value,
size_t size);
234 void set_allocated_profile_name(::
std::string* profile_name);
237 bool has_header()
const;
239 static const int kHeaderFieldNumber = 1;
241 const ::gz::msgs::Header& _internal_header()
const;
243 const ::gz::msgs::Header& header()
const;
249 bool has_gravity()
const;
250 void clear_gravity();
251 static const int kGravityFieldNumber = 12;
253 const ::gz::msgs::Vector3d& _internal_gravity()
const;
255 const ::gz::msgs::Vector3d& gravity()
const;
261 bool has_magnetic_field()
const;
262 void clear_magnetic_field();
263 static const int kMagneticFieldFieldNumber = 18;
265 const ::gz::msgs::Vector3d& _internal_magnetic_field()
const;
267 const ::gz::msgs::Vector3d& magnetic_field()
const;
274 static const int kTypeFieldNumber = 2;
279 void clear_precon_iters();
280 static const int kPreconItersFieldNumber = 5;
281 ::google::protobuf::int32 precon_iters()
const;
282 void set_precon_iters(::google::protobuf::int32 value);
285 void clear_min_step_size();
286 static const int kMinStepSizeFieldNumber = 4;
287 double min_step_size()
const;
288 void set_min_step_size(
double value);
292 static const int kSorFieldNumber = 7;
294 void set_sor(
double value);
298 static const int kCfmFieldNumber = 8;
300 void set_cfm(
double value);
304 static const int kErpFieldNumber = 9;
306 void set_erp(
double value);
310 static const int kItersFieldNumber = 6;
311 ::google::protobuf::int32 iters()
const;
312 void set_iters(::google::protobuf::int32 value);
315 void clear_enable_physics();
316 static const int kEnablePhysicsFieldNumber = 13;
317 bool enable_physics()
const;
318 void set_enable_physics(
bool value);
321 void clear_contact_max_correcting_vel();
322 static const int kContactMaxCorrectingVelFieldNumber = 10;
323 double contact_max_correcting_vel()
const;
324 void set_contact_max_correcting_vel(
double value);
327 void clear_contact_surface_layer();
328 static const int kContactSurfaceLayerFieldNumber = 11;
329 double contact_surface_layer()
const;
330 void set_contact_surface_layer(
double value);
333 void clear_real_time_factor();
334 static const int kRealTimeFactorFieldNumber = 14;
335 double real_time_factor()
const;
336 void set_real_time_factor(
double value);
339 void clear_real_time_update_rate();
340 static const int kRealTimeUpdateRateFieldNumber = 15;
341 double real_time_update_rate()
const;
342 void set_real_time_update_rate(
double value);
345 void clear_max_step_size();
346 static const int kMaxStepSizeFieldNumber = 16;
347 double max_step_size()
const;
348 void set_max_step_size(
double value);
353 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
354 ::google::protobuf::internal::ArenaStringPtr solver_type_;
355 ::google::protobuf::internal::ArenaStringPtr profile_name_;
360 ::google::protobuf::int32 precon_iters_;
361 double min_step_size_;
365 ::google::protobuf::int32 iters_;
366 bool enable_physics_;
367 double contact_max_correcting_vel_;
368 double contact_surface_layer_;
369 double real_time_factor_;
370 double real_time_update_rate_;
371 double max_step_size_;
372 mutable ::google::protobuf::internal::CachedSize _cached_size_;
373 friend struct ::protobuf_gz_2fmsgs_2fphysics_2eproto::TableStruct;
381 #pragma GCC diagnostic push
382 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
390 inline const ::gz::msgs::Header& Physics::_internal_header()
const {
394 const ::gz::msgs::Header* p = header_;
408 if (header_ == NULL) {
409 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
416 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
417 if (message_arena == NULL) {
418 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
421 ::google::protobuf::Arena* submessage_arena = NULL;
422 if (message_arena != submessage_arena) {
423 header = ::google::protobuf::internal::GetOwnedMessage(
424 message_arena,
header, submessage_arena);
450 solver_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
454 return solver_type_.GetNoArena();
458 solver_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
464 solver_type_.SetNoArena(
465 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
470 GOOGLE_DCHECK(value != NULL);
472 solver_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
477 solver_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
478 ::
std::string(
reinterpret_cast<const char*
>(value), size));
484 return solver_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
489 return solver_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
497 solver_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
solver_type);
507 return min_step_size_;
511 min_step_size_ = value;
521 return precon_iters_;
525 precon_iters_ = value;
587 contact_max_correcting_vel_ = 0;
591 return contact_max_correcting_vel_;
595 contact_max_correcting_vel_ = value;
601 contact_surface_layer_ = 0;
605 return contact_surface_layer_;
609 contact_surface_layer_ = value;
617 inline const ::gz::msgs::Vector3d& Physics::_internal_gravity()
const {
621 const ::gz::msgs::Vector3d* p = gravity_;
635 if (gravity_ == NULL) {
636 auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
643 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
644 if (message_arena == NULL) {
645 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(gravity_);
648 ::google::protobuf::Arena* submessage_arena = NULL;
649 if (message_arena != submessage_arena) {
650 gravity = ::google::protobuf::internal::GetOwnedMessage(
651 message_arena,
gravity, submessage_arena);
663 enable_physics_ =
false;
667 return enable_physics_;
671 enable_physics_ = value;
677 real_time_factor_ = 0;
681 return real_time_factor_;
685 real_time_factor_ = value;
691 real_time_update_rate_ = 0;
695 return real_time_update_rate_;
699 real_time_update_rate_ = value;
709 return max_step_size_;
713 max_step_size_ = value;
719 profile_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
723 return profile_name_.GetNoArena();
727 profile_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
733 profile_name_.SetNoArena(
734 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
739 GOOGLE_DCHECK(value != NULL);
741 profile_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
746 profile_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
747 ::
std::string(
reinterpret_cast<const char*
>(value), size));
753 return profile_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
758 return profile_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
766 profile_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
profile_name);
774 inline const ::gz::msgs::Vector3d& Physics::_internal_magnetic_field()
const {
775 return *magnetic_field_;
778 const ::gz::msgs::Vector3d* p = magnetic_field_;
787 magnetic_field_ = NULL;
792 if (magnetic_field_ == NULL) {
793 auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
797 return magnetic_field_;
800 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
801 if (message_arena == NULL) {
802 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(magnetic_field_);
805 ::google::protobuf::Arena* submessage_arena = NULL;
806 if (message_arena != submessage_arena) {
819 #pragma GCC diagnostic pop
832 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Physics_Type>() {
841 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fphysics_2eproto