Go to the documentation of this file.
4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fphysics_2eproto
5 #define PROTOBUF_INCLUDED_ignition_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>
37 #pragma GCC system_header
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
43 #include <sys/sysmacros.h>
48 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fphysics_2eproto IGNITION_MSGS_VISIBLE
53 static const ::google::protobuf::internal::ParseTableField entries[];
54 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
55 static const ::google::protobuf::internal::ParseTable schema[1];
56 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
57 static const ::google::protobuf::internal::SerializationTable serialization_table[];
58 static const ::google::protobuf::uint32 offsets[];
65 class PhysicsDefaultTypeInternal;
71 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Physics* Arena::CreateMaybeMessage<::ignition::msgs::Physics>(Arena*);
92 return ::google::protobuf::internal::NameOfEnum(
97 return ::google::protobuf::internal::ParseNamedEnum<Physics_Type>(
102 class IGNITION_MSGS_VISIBLE
Physics :
public ::google::protobuf::Message {
116 *
this = ::std::move(from);
119 inline Physics& operator=(Physics&& from) noexcept {
120 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
121 if (
this != &from) InternalSwap(&from);
128 static const ::google::protobuf::Descriptor* descriptor();
129 static const Physics& default_instance();
131 static void InitAsDefaultInstance();
133 return reinterpret_cast<const Physics*
>(
136 static constexpr
int kIndexInFileMessages =
147 return CreateMaybeMessage<Physics>(NULL);
151 return CreateMaybeMessage<Physics>(arena);
153 void CopyFrom(const ::google::protobuf::Message& from)
final;
154 void MergeFrom(const ::google::protobuf::Message& from)
final;
155 void CopyFrom(
const Physics& from);
156 void MergeFrom(
const Physics& from);
158 bool IsInitialized() const final;
160 size_t ByteSizeLong() const final;
161 bool MergePartialFromCodedStream(
162 ::
google::protobuf::io::CodedInputStream* input) final;
163 void SerializeWithCachedSizes(
164 ::
google::protobuf::io::CodedOutputStream* output) const final;
165 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
166 bool deterministic, ::
google::protobuf::uint8* target) const final;
167 int GetCachedSize() const final {
return _cached_size_.Get(); }
172 void SetCachedSize(
int size)
const final;
173 void InternalSwap(
Physics* other);
175 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
178 inline void* MaybeArenaPtr()
const {
183 ::google::protobuf::Metadata GetMetadata() const final;
196 static inline
bool Type_IsValid(
int value) {
203 static const int Type_ARRAYSIZE =
205 static inline const ::google::protobuf::EnumDescriptor*
220 void clear_solver_type();
221 static const int kSolverTypeFieldNumber = 3;
222 const ::std::string& solver_type()
const;
223 void set_solver_type(const ::std::string& value);
227 void set_solver_type(
const char* value);
228 void set_solver_type(
const char* value,
size_t size);
231 void set_allocated_solver_type(::
std::string* solver_type);
234 void clear_profile_name();
235 static const int kProfileNameFieldNumber = 17;
236 const ::std::string& profile_name()
const;
237 void set_profile_name(const ::std::string& value);
241 void set_profile_name(
const char* value);
242 void set_profile_name(
const char* value,
size_t size);
245 void set_allocated_profile_name(::
std::string* profile_name);
248 bool has_header()
const;
250 static const int kHeaderFieldNumber = 1;
252 const ::ignition::msgs::Header& _internal_header()
const;
254 const ::ignition::msgs::Header& header()
const;
260 bool has_gravity()
const;
261 void clear_gravity();
262 static const int kGravityFieldNumber = 12;
264 const ::ignition::msgs::Vector3d& _internal_gravity()
const;
266 const ::ignition::msgs::Vector3d& gravity()
const;
272 bool has_magnetic_field()
const;
273 void clear_magnetic_field();
274 static const int kMagneticFieldFieldNumber = 18;
276 const ::ignition::msgs::Vector3d& _internal_magnetic_field()
const;
278 const ::ignition::msgs::Vector3d& magnetic_field()
const;
285 static const int kTypeFieldNumber = 2;
290 void clear_precon_iters();
291 static const int kPreconItersFieldNumber = 5;
292 ::google::protobuf::int32 precon_iters()
const;
293 void set_precon_iters(::google::protobuf::int32 value);
296 void clear_min_step_size();
297 static const int kMinStepSizeFieldNumber = 4;
298 double min_step_size()
const;
299 void set_min_step_size(
double value);
303 static const int kSorFieldNumber = 7;
305 void set_sor(
double value);
309 static const int kCfmFieldNumber = 8;
311 void set_cfm(
double value);
315 static const int kErpFieldNumber = 9;
317 void set_erp(
double value);
321 static const int kItersFieldNumber = 6;
322 ::google::protobuf::int32 iters()
const;
323 void set_iters(::google::protobuf::int32 value);
326 void clear_enable_physics();
327 static const int kEnablePhysicsFieldNumber = 13;
328 bool enable_physics()
const;
329 void set_enable_physics(
bool value);
332 void clear_contact_max_correcting_vel();
333 static const int kContactMaxCorrectingVelFieldNumber = 10;
334 double contact_max_correcting_vel()
const;
335 void set_contact_max_correcting_vel(
double value);
338 void clear_contact_surface_layer();
339 static const int kContactSurfaceLayerFieldNumber = 11;
340 double contact_surface_layer()
const;
341 void set_contact_surface_layer(
double value);
344 void clear_real_time_factor();
345 static const int kRealTimeFactorFieldNumber = 14;
346 double real_time_factor()
const;
347 void set_real_time_factor(
double value);
350 void clear_real_time_update_rate();
351 static const int kRealTimeUpdateRateFieldNumber = 15;
352 double real_time_update_rate()
const;
353 void set_real_time_update_rate(
double value);
356 void clear_max_step_size();
357 static const int kMaxStepSizeFieldNumber = 16;
358 double max_step_size()
const;
359 void set_max_step_size(
double value);
364 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
365 ::google::protobuf::internal::ArenaStringPtr solver_type_;
366 ::google::protobuf::internal::ArenaStringPtr profile_name_;
371 ::google::protobuf::int32 precon_iters_;
372 double min_step_size_;
376 ::google::protobuf::int32 iters_;
377 bool enable_physics_;
378 double contact_max_correcting_vel_;
379 double contact_surface_layer_;
380 double real_time_factor_;
381 double real_time_update_rate_;
382 double max_step_size_;
383 mutable ::google::protobuf::internal::CachedSize _cached_size_;
384 friend struct ::protobuf_ignition_2fmsgs_2fphysics_2eproto::TableStruct;
392 #pragma GCC diagnostic push
393 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
401 inline const ::ignition::msgs::Header& Physics::_internal_header()
const {
405 const ::ignition::msgs::Header* p = header_;
419 if (header_ == NULL) {
420 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
427 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
428 if (message_arena == NULL) {
429 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
432 ::google::protobuf::Arena* submessage_arena = NULL;
433 if (message_arena != submessage_arena) {
434 header = ::google::protobuf::internal::GetOwnedMessage(
435 message_arena,
header, submessage_arena);
461 solver_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
465 return solver_type_.GetNoArena();
469 solver_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
475 solver_type_.SetNoArena(
476 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
481 GOOGLE_DCHECK(value != NULL);
483 solver_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
488 solver_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
489 ::
std::string(
reinterpret_cast<const char*
>(value), size));
495 return solver_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
500 return solver_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
508 solver_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
solver_type);
518 return min_step_size_;
522 min_step_size_ = value;
532 return precon_iters_;
536 precon_iters_ = value;
598 contact_max_correcting_vel_ = 0;
602 return contact_max_correcting_vel_;
606 contact_max_correcting_vel_ = value;
612 contact_surface_layer_ = 0;
616 return contact_surface_layer_;
620 contact_surface_layer_ = value;
628 inline const ::ignition::msgs::Vector3d& Physics::_internal_gravity()
const {
632 const ::ignition::msgs::Vector3d* p = gravity_;
646 if (gravity_ == NULL) {
647 auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaNoVirtual());
654 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
655 if (message_arena == NULL) {
656 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(gravity_);
659 ::google::protobuf::Arena* submessage_arena = NULL;
660 if (message_arena != submessage_arena) {
661 gravity = ::google::protobuf::internal::GetOwnedMessage(
662 message_arena,
gravity, submessage_arena);
674 enable_physics_ =
false;
678 return enable_physics_;
682 enable_physics_ = value;
688 real_time_factor_ = 0;
692 return real_time_factor_;
696 real_time_factor_ = value;
702 real_time_update_rate_ = 0;
706 return real_time_update_rate_;
710 real_time_update_rate_ = value;
720 return max_step_size_;
724 max_step_size_ = value;
730 profile_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
734 return profile_name_.GetNoArena();
738 profile_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
744 profile_name_.SetNoArena(
745 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
750 GOOGLE_DCHECK(value != NULL);
752 profile_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
757 profile_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
758 ::
std::string(
reinterpret_cast<const char*
>(value), size));
764 return profile_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
769 return profile_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
777 profile_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
profile_name);
785 inline const ::ignition::msgs::Vector3d& Physics::_internal_magnetic_field()
const {
786 return *magnetic_field_;
789 const ::ignition::msgs::Vector3d* p = magnetic_field_;
798 magnetic_field_ = NULL;
803 if (magnetic_field_ == NULL) {
804 auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaNoVirtual());
808 return magnetic_field_;
811 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
812 if (message_arena == NULL) {
813 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(magnetic_field_);
816 ::google::protobuf::Arena* submessage_arena = NULL;
817 if (message_arena != submessage_arena) {
830 #pragma GCC diagnostic pop
847 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Physics_Type>() {
859 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fphysics_2eproto
void set_allocated_magnetic_field(::ignition::msgs::Vector3d *magnetic_field)
Definition: physics.pb.h:810
const ::ignition::msgs::Vector3d & magnetic_field() const
Definition: physics.pb.h:788
void set_real_time_update_rate(double value)
Definition: physics.pb.h:708
void set_enable_physics(bool value)
Definition: physics.pb.h:680
Physics * New(::google::protobuf::Arena *arena) const final
Definition: physics.pb.h:150
void Swap(Physics *other)
@ Physics_Type_DART
Definition: physics.pb.h:81
const Physics_Type Physics_Type_Type_MAX
Definition: physics.pb.h:87
void set_erp(double value)
Definition: physics.pb.h:590
IGNITION_MSGS_VISIBLE PhysicsDefaultTypeInternal _Physics_default_instance_
double contact_max_correcting_vel() const
Definition: physics.pb.h:600
::ignition::msgs::Header * release_header()
Definition: physics.pb.h:410
Definition: vector3d.pb.h:77
Physics * New() const final
Definition: physics.pb.h:146
std::unique_ptr< Physics > PhysicsUniquePtr
Definition: physics.pb.h:833
void set_cfm(double value)
Definition: physics.pb.h:576
double erp() const
Definition: physics.pb.h:586
void clear_max_step_size()
Definition: physics.pb.h:715
void clear_cfm()
Definition: physics.pb.h:569
static const ::std::string & Type_Name(Type value)
Definition: physics.pb.h:209
Physics_Type
Definition: physics.pb.h:77
bool has_gravity() const
Definition: physics.pb.h:625
std::unique_ptr< const Physics > ConstPhysicsUniquePtr
Definition: physics.pb.h:834
friend void swap(Physics &a, Physics &b)
Definition: physics.pb.h:140
void set_allocated_solver_type(::std::string *solver_type)
Definition: physics.pb.h:502
void set_allocated_header(::ignition::msgs::Header *header)
Definition: physics.pb.h:426
void set_profile_name(const ::std::string &value)
Definition: physics.pb.h:736
void clear_precon_iters()
Definition: physics.pb.h:527
::google::protobuf::int32 iters() const
Definition: physics.pb.h:544
::ignition::msgs::Vector3d * mutable_magnetic_field()
Definition: physics.pb.h:801
bool enable_physics() const
Definition: physics.pb.h:676
static bool Type_Parse(const ::std::string &name, Type *value)
Definition: physics.pb.h:212
void set_max_step_size(double value)
Definition: physics.pb.h:722
void set_min_step_size(double value)
Definition: physics.pb.h:520
bool has_header() const
Definition: physics.pb.h:398
void clear_erp()
Definition: physics.pb.h:583
const IGNITION_MSGS_VISIBLE ::google::protobuf::EnumDescriptor * Physics_Type_descriptor()
void set_allocated_gravity(::ignition::msgs::Vector3d *gravity)
Definition: physics.pb.h:653
void clear_contact_surface_layer()
Definition: physics.pb.h:611
const ::std::string & solver_type() const
Definition: physics.pb.h:463
double min_step_size() const
Definition: physics.pb.h:516
@ Physics_Type_SIMBODY
Definition: physics.pb.h:80
static const Physics * internal_default_instance()
Definition: physics.pb.h:132
::std::string * release_profile_name()
Definition: physics.pb.h:766
void set_iters(::google::protobuf::int32 value)
Definition: physics.pb.h:548
void set_real_time_factor(double value)
Definition: physics.pb.h:694
void set_contact_surface_layer(double value)
Definition: physics.pb.h:618
const int Physics_Type_Type_ARRAYSIZE
Definition: physics.pb.h:88
::ignition::msgs::Vector3d * release_magnetic_field()
Definition: physics.pb.h:794
void clear_iters()
Definition: physics.pb.h:541
double sor() const
Definition: physics.pb.h:558
@ Physics_Type_Physics_Type_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: physics.pb.h:83
std::shared_ptr< const Physics > ConstPhysicsSharedPtr
Definition: physics.pb.h:836
double real_time_update_rate() const
Definition: physics.pb.h:704
double contact_surface_layer() const
Definition: physics.pb.h:614
void clear_contact_max_correcting_vel()
Definition: physics.pb.h:597
double max_step_size() const
Definition: physics.pb.h:718
void clear_real_time_update_rate()
Definition: physics.pb.h:701
::ignition::msgs::Header * mutable_header()
Definition: physics.pb.h:417
Physics & operator=(const Physics &from)
Definition: physics.pb.h:109
void clear_real_time_factor()
Definition: physics.pb.h:687
void clear_enable_physics()
Definition: physics.pb.h:673
const ::std::string & profile_name() const
Definition: physics.pb.h:732
void clear_profile_name()
Definition: physics.pb.h:729
::ignition::msgs::Vector3d * mutable_gravity()
Definition: physics.pb.h:644
void set_contact_max_correcting_vel(double value)
Definition: physics.pb.h:604
Definition: physics.pb.h:52
::google::protobuf::int32 precon_iters() const
Definition: physics.pb.h:530
IGNITION_MSGS_VISIBLE Vector3dDefaultTypeInternal _Vector3d_default_instance_
void set_type(::ignition::msgs::Physics_Type value)
Definition: physics.pb.h:453
void set_precon_iters(::google::protobuf::int32 value)
Definition: physics.pb.h:534
void clear_sor()
Definition: physics.pb.h:555
void clear_type()
Definition: physics.pb.h:446
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
@ Physics_Type_Physics_Type_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: physics.pb.h:82
void clear_min_step_size()
Definition: physics.pb.h:513
const ::std::string & Physics_Type_Name(Physics_Type value)
Definition: physics.pb.h:91
double cfm() const
Definition: physics.pb.h:572
double real_time_factor() const
Definition: physics.pb.h:690
void set_allocated_profile_name(::std::string *profile_name)
Definition: physics.pb.h:771
::ignition::msgs::Vector3d * release_gravity()
Definition: physics.pb.h:637
const ::ignition::msgs::Vector3d & gravity() const
Definition: physics.pb.h:631
IGNITION_MSGS_VISIBLE bool Physics_Type_IsValid(int value)
static const ::google::protobuf::EnumDescriptor * Type_descriptor()
Definition: physics.pb.h:206
void set_solver_type(const ::std::string &value)
Definition: physics.pb.h:467
@ Physics_Type_BULLET
Definition: physics.pb.h:79
::ignition::msgs::Physics_Type type() const
Definition: physics.pb.h:449
const Physics_Type Physics_Type_Type_MIN
Definition: physics.pb.h:86
::std::string * release_solver_type()
Definition: physics.pb.h:497
void set_sor(double value)
Definition: physics.pb.h:562
::std::string * mutable_solver_type()
Definition: physics.pb.h:492
bool has_magnetic_field() const
Definition: physics.pb.h:782
const ::ignition::msgs::Header & header() const
Definition: physics.pb.h:404
Definition: physics.pb.h:50
std::shared_ptr< Physics > PhysicsSharedPtr
Definition: physics.pb.h:835
Definition: actor.pb.h:78
bool Physics_Type_Parse(const ::std::string &name, Physics_Type *value)
Definition: physics.pb.h:95
Definition: physics.pb.h:102
@ Physics_Type_ODE
Definition: physics.pb.h:78
void IGNITION_MSGS_VISIBLE AddDescriptors()
void clear_solver_type()
Definition: physics.pb.h:460
::std::string * mutable_profile_name()
Definition: physics.pb.h:761