4 #ifndef PROTOBUF_ignition_2fmsgs_2fphysics_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fphysics_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 3000000 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 3000000 < 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/arena.h> 23 #include <google/protobuf/arenastring.h> 24 #include <google/protobuf/generated_message_util.h> 25 #include <google/protobuf/metadata.h> 26 #include <google/protobuf/message.h> 27 #include <google/protobuf/repeated_field.h> 28 #include <google/protobuf/extension_set.h> 29 #include <google/protobuf/generated_enum_reflection.h> 30 #include <google/protobuf/unknown_field_set.h> 34 #pragma GCC system_header 37 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 40 #include <sys/sysmacros.h> 71 return ::google::protobuf::internal::NameOfEnum(
76 return ::google::protobuf::internal::ParseNamedEnum<Physics_Type>(
81 class IGNITION_MSGS_VISIBLE
Physics :
public ::google::protobuf::Message {
93 static const ::google::protobuf::Descriptor* descriptor();
94 static const Physics& default_instance();
102 Physics* New(::google::protobuf::Arena* arena)
const;
103 void CopyFrom(const ::google::protobuf::Message& from);
104 void MergeFrom(const ::google::protobuf::Message& from);
105 void CopyFrom(
const Physics& from);
106 void MergeFrom(
const Physics& from);
108 bool IsInitialized()
const;
110 int ByteSize()
const;
111 bool MergePartialFromCodedStream(
112 ::google::protobuf::io::CodedInputStream* input);
113 void SerializeWithCachedSizes(
114 ::google::protobuf::io::CodedOutputStream* output)
const;
115 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
116 bool deterministic, ::google::protobuf::uint8* output)
const;
118 return InternalSerializeWithCachedSizesToArray(
false, output);
124 void SetCachedSize(
int size)
const;
125 void InternalSwap(
Physics* other);
127 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
128 return _internal_metadata_.arena();
130 inline void* MaybeArenaPtr()
const {
131 return _internal_metadata_.raw_arena_ptr();
135 ::google::protobuf::Metadata GetMetadata()
const;
140 static const Type ODE =
142 static const Type BULLET =
144 static const Type SIMBODY =
146 static const Type DART =
151 static const Type Type_MIN =
153 static const Type Type_MAX =
155 static const int Type_ARRAYSIZE =
157 static inline const ::google::protobuf::EnumDescriptor*
161 static inline const ::std::string&
Type_Name(Type value) {
172 bool has_header()
const;
174 static const int kHeaderFieldNumber = 1;
175 const ::ignition::msgs::Header& header()
const;
182 static const int kTypeFieldNumber = 2;
187 void clear_solver_type();
188 static const int kSolverTypeFieldNumber = 3;
189 const ::std::string& solver_type()
const;
190 void set_solver_type(const ::std::string& value);
191 void set_solver_type(
const char* value);
192 void set_solver_type(
const char* value,
size_t size);
195 void set_allocated_solver_type(::
std::string* solver_type);
198 void clear_min_step_size();
199 static const int kMinStepSizeFieldNumber = 4;
200 double min_step_size()
const;
201 void set_min_step_size(
double value);
204 void clear_precon_iters();
205 static const int kPreconItersFieldNumber = 5;
206 ::google::protobuf::int32 precon_iters()
const;
207 void set_precon_iters(::google::protobuf::int32 value);
211 static const int kItersFieldNumber = 6;
212 ::google::protobuf::int32 iters()
const;
213 void set_iters(::google::protobuf::int32 value);
217 static const int kSorFieldNumber = 7;
219 void set_sor(
double value);
223 static const int kCfmFieldNumber = 8;
225 void set_cfm(
double value);
229 static const int kErpFieldNumber = 9;
231 void set_erp(
double value);
234 void clear_contact_max_correcting_vel();
235 static const int kContactMaxCorrectingVelFieldNumber = 10;
236 double contact_max_correcting_vel()
const;
237 void set_contact_max_correcting_vel(
double value);
240 void clear_contact_surface_layer();
241 static const int kContactSurfaceLayerFieldNumber = 11;
242 double contact_surface_layer()
const;
243 void set_contact_surface_layer(
double value);
246 bool has_gravity()
const;
247 void clear_gravity();
248 static const int kGravityFieldNumber = 12;
249 const ::ignition::msgs::Vector3d& gravity()
const;
255 void clear_enable_physics();
256 static const int kEnablePhysicsFieldNumber = 13;
257 bool enable_physics()
const;
258 void set_enable_physics(
bool value);
261 void clear_real_time_factor();
262 static const int kRealTimeFactorFieldNumber = 14;
263 double real_time_factor()
const;
264 void set_real_time_factor(
double value);
267 void clear_real_time_update_rate();
268 static const int kRealTimeUpdateRateFieldNumber = 15;
269 double real_time_update_rate()
const;
270 void set_real_time_update_rate(
double value);
273 void clear_max_step_size();
274 static const int kMaxStepSizeFieldNumber = 16;
275 double max_step_size()
const;
276 void set_max_step_size(
double value);
279 void clear_profile_name();
280 static const int kProfileNameFieldNumber = 17;
281 const ::std::string& profile_name()
const;
282 void set_profile_name(const ::std::string& value);
283 void set_profile_name(
const char* value);
284 void set_profile_name(
const char* value,
size_t size);
287 void set_allocated_profile_name(::
std::string* profile_name);
290 bool has_magnetic_field()
const;
291 void clear_magnetic_field();
292 static const int kMagneticFieldFieldNumber = 18;
293 const ::ignition::msgs::Vector3d& magnetic_field()
const;
301 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
302 bool _is_default_instance_;
304 ::google::protobuf::internal::ArenaStringPtr solver_type_;
306 ::google::protobuf::int32 precon_iters_;
307 double min_step_size_;
311 ::google::protobuf::int32 iters_;
312 bool enable_physics_;
313 double contact_max_correcting_vel_;
314 double contact_surface_layer_;
316 double real_time_factor_;
317 double real_time_update_rate_;
318 double max_step_size_;
319 ::google::protobuf::internal::ArenaStringPtr profile_name_;
321 mutable int _cached_size_;
326 void InitAsDefaultInstance();
327 static Physics* default_instance_;
334 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 339 return !_is_default_instance_ && header_ != NULL;
342 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
347 return header_ != NULL ? *header_ : *default_instance_->header_;
351 if (header_ == NULL) {
352 header_ = new ::ignition::msgs::Header;
391 solver_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
395 return solver_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
399 solver_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
404 solver_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
409 solver_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
410 ::
std::string(reinterpret_cast<const char*>(value), size));
416 return solver_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
421 return solver_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
424 if (solver_type != NULL) {
429 solver_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), solver_type);
439 return min_step_size_;
443 min_step_size_ = value;
453 return precon_iters_;
457 precon_iters_ = value;
519 contact_max_correcting_vel_ = 0;
523 return contact_max_correcting_vel_;
527 contact_max_correcting_vel_ = value;
533 contact_surface_layer_ = 0;
537 return contact_surface_layer_;
541 contact_surface_layer_ = value;
547 return !_is_default_instance_ && gravity_ != NULL;
550 if (GetArenaNoVirtual() == NULL && gravity_ != NULL)
delete gravity_;
555 return gravity_ != NULL ? *gravity_ : *default_instance_->gravity_;
559 if (gravity_ == NULL) {
560 gravity_ = new ::ignition::msgs::Vector3d;
585 enable_physics_ =
false;
589 return enable_physics_;
593 enable_physics_ = value;
599 real_time_factor_ = 0;
603 return real_time_factor_;
607 real_time_factor_ = value;
613 real_time_update_rate_ = 0;
617 return real_time_update_rate_;
621 real_time_update_rate_ = value;
631 return max_step_size_;
635 max_step_size_ = value;
641 profile_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
645 return profile_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
649 profile_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
654 profile_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
659 profile_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
660 ::
std::string(reinterpret_cast<const char*>(value), size));
666 return profile_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
671 return profile_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
674 if (profile_name != NULL) {
679 profile_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), profile_name);
685 return !_is_default_instance_ && magnetic_field_ != NULL;
688 if (GetArenaNoVirtual() == NULL && magnetic_field_ != NULL)
delete magnetic_field_;
689 magnetic_field_ = NULL;
693 return magnetic_field_ != NULL ? *magnetic_field_ : *default_instance_->magnetic_field_;
697 if (magnetic_field_ == NULL) {
698 magnetic_field_ = new ::ignition::msgs::Vector3d;
701 return magnetic_field_;
707 magnetic_field_ = NULL;
711 delete magnetic_field_;
712 magnetic_field_ = magnetic_field;
713 if (magnetic_field) {
721 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 738 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Physics_Type>() {
751 #endif // PROTOBUF_ignition_2fmsgs_2fphysics_2eproto__INCLUDED void clear_enable_physics()
Definition: physics.pb.h:584
void clear_min_step_size()
Definition: physics.pb.h:434
::ignition::msgs::Vector3d * release_magnetic_field()
Definition: physics.pb.h:703
::ignition::msgs::Vector3d * release_gravity()
Definition: physics.pb.h:565
IGNITION_MSGS_VISIBLEconst ::google::protobuf::EnumDescriptor * Physics_Type_descriptor()
void clear_header()
Definition: physics.pb.h:341
std::unique_ptr< Physics > PhysicsUniquePtr
Definition: physics.pb.h:723
void clear_contact_max_correcting_vel()
Definition: physics.pb.h:518
void clear_profile_name()
Definition: physics.pb.h:640
double contact_max_correcting_vel() const
Definition: physics.pb.h:521
static bool Type_IsValid(int value)
Definition: physics.pb.h:148
Physics_Type
Definition: physics.pb.h:56
void clear_sor()
Definition: physics.pb.h:476
Definition: physics.pb.h:57
::google::protobuf::int32 precon_iters() const
Definition: physics.pb.h:451
std::shared_ptr< const Physics > ConstPhysicsSharedPtr
Definition: physics.pb.h:726
void set_max_step_size(double value)
Definition: physics.pb.h:633
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: physics.pb.h:117
void clear_precon_iters()
Definition: physics.pb.h:448
void clear_real_time_factor()
Definition: physics.pb.h:598
void clear_type()
Definition: physics.pb.h:376
Definition: physics.pb.h:81
IGNITION_MSGS_VISIBLE bool Physics_Type_IsValid(int value)
void clear_max_step_size()
Definition: physics.pb.h:626
bool has_gravity() const
Definition: physics.pb.h:546
static bool Type_Parse(const ::std::string &name, Type *value)
Definition: physics.pb.h:164
void protobuf_AssignDesc_ignition_2fmsgs_2fphysics_2eproto()
void set_real_time_factor(double value)
Definition: physics.pb.h:605
Definition: physics.pb.h:60
void set_cfm(double value)
Definition: physics.pb.h:497
void clear_iters()
Definition: physics.pb.h:462
void set_allocated_magnetic_field(::ignition::msgs::Vector3d *magnetic_field)
Definition: physics.pb.h:710
void clear_gravity()
Definition: physics.pb.h:549
void set_real_time_update_rate(double value)
Definition: physics.pb.h:619
Definition: physics.pb.h:59
::std::string * release_profile_name()
Definition: physics.pb.h:668
Definition: physics.pb.h:62
::ignition::msgs::Vector3d * mutable_gravity()
Definition: physics.pb.h:557
void set_type(::ignition::msgs::Physics_Type value)
Definition: physics.pb.h:383
void set_precon_iters(::google::protobuf::int32 value)
Definition: physics.pb.h:455
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fphysics_2eproto()
double real_time_factor() const
Definition: physics.pb.h:601
const ::std::string & profile_name() const
Definition: physics.pb.h:643
const Physics_Type Physics_Type_Type_MAX
Definition: physics.pb.h:66
void set_erp(double value)
Definition: physics.pb.h:511
void clear_solver_type()
Definition: physics.pb.h:390
::ignition::msgs::Physics_Type type() const
Definition: physics.pb.h:379
void set_profile_name(const ::std::string &value)
Definition: physics.pb.h:647
bool enable_physics() const
Definition: physics.pb.h:587
void set_min_step_size(double value)
Definition: physics.pb.h:441
void clear_contact_surface_layer()
Definition: physics.pb.h:532
void set_allocated_header(::ignition::msgs::Header *header)
Definition: physics.pb.h:364
bool has_magnetic_field() const
Definition: physics.pb.h:684
void set_allocated_gravity(::ignition::msgs::Vector3d *gravity)
Definition: physics.pb.h:572
void protobuf_ShutdownFile_ignition_2fmsgs_2fphysics_2eproto()
Definition: physics.pb.h:58
Physics & operator=(const Physics &from)
Definition: physics.pb.h:88
bool Physics_Type_Parse(const ::std::string &name, Physics_Type *value)
Definition: physics.pb.h:74
::std::string * mutable_solver_type()
Definition: physics.pb.h:413
::std::string * release_solver_type()
Definition: physics.pb.h:418
void set_contact_surface_layer(double value)
Definition: physics.pb.h:539
void set_sor(double value)
Definition: physics.pb.h:483
Definition: vector3d.pb.h:56
const ::ignition::msgs::Vector3d & magnetic_field() const
Definition: physics.pb.h:691
void clear_real_time_update_rate()
Definition: physics.pb.h:612
static const ::google::protobuf::EnumDescriptor * Type_descriptor()
Definition: physics.pb.h:158
bool has_header() const
Definition: physics.pb.h:338
std::unique_ptr< const Physics > ConstPhysicsUniquePtr
Definition: physics.pb.h:724
::std::string * mutable_profile_name()
Definition: physics.pb.h:663
double sor() const
Definition: physics.pb.h:479
::ignition::msgs::Header * mutable_header()
Definition: physics.pb.h:349
void set_contact_max_correcting_vel(double value)
Definition: physics.pb.h:525
::google::protobuf::int32 iters() const
Definition: physics.pb.h:465
::ignition::msgs::Vector3d * mutable_magnetic_field()
Definition: physics.pb.h:695
double erp() const
Definition: physics.pb.h:507
void clear_magnetic_field()
Definition: physics.pb.h:687
double contact_surface_layer() const
Definition: physics.pb.h:535
double max_step_size() const
Definition: physics.pb.h:629
const ::ignition::msgs::Vector3d & gravity() const
Definition: physics.pb.h:553
std::shared_ptr< Physics > PhysicsSharedPtr
Definition: physics.pb.h:725
Physics_Type Type
Definition: physics.pb.h:139
int GetCachedSize() const
Definition: physics.pb.h:120
static const ::std::string & Type_Name(Type value)
Definition: physics.pb.h:161
void clear_cfm()
Definition: physics.pb.h:490
::ignition::msgs::Header * release_header()
Definition: physics.pb.h:357
double cfm() const
Definition: physics.pb.h:493
Definition: physics.pb.h:61
const ::std::string & solver_type() const
Definition: physics.pb.h:393
const Physics_Type Physics_Type_Type_MIN
Definition: physics.pb.h:65
void set_solver_type(const ::std::string &value)
Definition: physics.pb.h:397
const ::std::string & Physics_Type_Name(Physics_Type value)
Definition: physics.pb.h:70
double min_step_size() const
Definition: physics.pb.h:437
void set_iters(::google::protobuf::int32 value)
Definition: physics.pb.h:469
Physics * New() const
Definition: physics.pb.h:100
void set_allocated_solver_type(::std::string *solver_type)
Definition: physics.pb.h:423
void set_allocated_profile_name(::std::string *profile_name)
Definition: physics.pb.h:673
void set_enable_physics(bool value)
Definition: physics.pb.h:591
const ::ignition::msgs::Header & header() const
Definition: physics.pb.h:345
void clear_erp()
Definition: physics.pb.h:504
double real_time_update_rate() const
Definition: physics.pb.h:615
const int Physics_Type_Type_ARRAYSIZE
Definition: physics.pb.h:67