4 #ifndef PROTOBUF_ignition_2fmsgs_2fsurface_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fsurface_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/unknown_field_set.h> 33 #pragma GCC system_header 36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 39 #include <sys/sysmacros.h> 57 class IGNITION_MSGS_VISIBLE
Surface :
public ::google::protobuf::Message {
69 static const ::google::protobuf::Descriptor* descriptor();
70 static const Surface& default_instance();
78 Surface* New(::google::protobuf::Arena* arena)
const;
79 void CopyFrom(const ::google::protobuf::Message& from);
80 void MergeFrom(const ::google::protobuf::Message& from);
81 void CopyFrom(
const Surface& from);
82 void MergeFrom(
const Surface& from);
84 bool IsInitialized()
const;
87 bool MergePartialFromCodedStream(
88 ::google::protobuf::io::CodedInputStream* input);
89 void SerializeWithCachedSizes(
90 ::google::protobuf::io::CodedOutputStream* output)
const;
91 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
92 bool deterministic, ::google::protobuf::uint8* output)
const;
94 return InternalSerializeWithCachedSizesToArray(
false, output);
100 void SetCachedSize(
int size)
const;
101 void InternalSwap(
Surface* other);
103 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
104 return _internal_metadata_.arena();
106 inline void* MaybeArenaPtr()
const {
107 return _internal_metadata_.raw_arena_ptr();
111 ::google::protobuf::Metadata GetMetadata()
const;
118 bool has_header()
const;
120 static const int kHeaderFieldNumber = 1;
121 const ::ignition::msgs::Header& header()
const;
127 bool has_friction()
const;
128 void clear_friction();
129 static const int kFrictionFieldNumber = 2;
130 const ::ignition::msgs::Friction& friction()
const;
136 void clear_restitution_coefficient();
137 static const int kRestitutionCoefficientFieldNumber = 3;
138 double restitution_coefficient()
const;
139 void set_restitution_coefficient(
double value);
142 void clear_bounce_threshold();
143 static const int kBounceThresholdFieldNumber = 4;
144 double bounce_threshold()
const;
145 void set_bounce_threshold(
double value);
148 void clear_soft_cfm();
149 static const int kSoftCfmFieldNumber = 5;
150 double soft_cfm()
const;
151 void set_soft_cfm(
double value);
154 void clear_soft_erp();
155 static const int kSoftErpFieldNumber = 6;
156 double soft_erp()
const;
157 void set_soft_erp(
double value);
161 static const int kKpFieldNumber = 7;
163 void set_kp(
double value);
167 static const int kKdFieldNumber = 8;
169 void set_kd(
double value);
172 void clear_max_vel();
173 static const int kMaxVelFieldNumber = 9;
174 double max_vel()
const;
175 void set_max_vel(
double value);
178 void clear_min_depth();
179 static const int kMinDepthFieldNumber = 10;
180 double min_depth()
const;
181 void set_min_depth(
double value);
184 void clear_collide_without_contact();
185 static const int kCollideWithoutContactFieldNumber = 11;
186 bool collide_without_contact()
const;
187 void set_collide_without_contact(
bool value);
190 void clear_collide_without_contact_bitmask();
191 static const int kCollideWithoutContactBitmaskFieldNumber = 12;
192 ::google::protobuf::uint32 collide_without_contact_bitmask()
const;
193 void set_collide_without_contact_bitmask(::google::protobuf::uint32 value);
196 void clear_collide_bitmask();
197 static const int kCollideBitmaskFieldNumber = 13;
198 ::google::protobuf::uint32 collide_bitmask()
const;
199 void set_collide_bitmask(::google::protobuf::uint32 value);
202 void clear_elastic_modulus();
203 static const int kElasticModulusFieldNumber = 14;
204 double elastic_modulus()
const;
205 void set_elastic_modulus(
double value);
210 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
211 bool _is_default_instance_;
214 double restitution_coefficient_;
215 double bounce_threshold_;
222 bool collide_without_contact_;
223 ::google::protobuf::uint32 collide_without_contact_bitmask_;
224 double elastic_modulus_;
225 ::google::protobuf::uint32 collide_bitmask_;
226 mutable int _cached_size_;
231 void InitAsDefaultInstance();
232 static Surface* default_instance_;
239 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 244 return !_is_default_instance_ && header_ != NULL;
247 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
252 return header_ != NULL ? *header_ : *default_instance_->header_;
256 if (header_ == NULL) {
257 header_ = new ::ignition::msgs::Header;
282 return !_is_default_instance_ && friction_ != NULL;
285 if (GetArenaNoVirtual() == NULL && friction_ != NULL)
delete friction_;
290 return friction_ != NULL ? *friction_ : *default_instance_->friction_;
294 if (friction_ == NULL) {
295 friction_ = new ::ignition::msgs::Friction;
309 friction_ = friction;
320 restitution_coefficient_ = 0;
324 return restitution_coefficient_;
328 restitution_coefficient_ = value;
334 bounce_threshold_ = 0;
338 return bounce_threshold_;
342 bounce_threshold_ = value;
432 collide_without_contact_ =
false;
436 return collide_without_contact_;
440 collide_without_contact_ = value;
446 collide_without_contact_bitmask_ = 0u;
450 return collide_without_contact_bitmask_;
454 collide_without_contact_bitmask_ = value;
460 collide_bitmask_ = 0u;
464 return collide_bitmask_;
468 collide_bitmask_ = value;
474 elastic_modulus_ = 0;
478 return elastic_modulus_;
482 elastic_modulus_ = value;
486 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 502 #endif // PROTOBUF_ignition_2fmsgs_2fsurface_2eproto__INCLUDED void set_kd(double value)
Definition: surface.pb.h:396
::ignition::msgs::Friction * mutable_friction()
Definition: surface.pb.h:292
::google::protobuf::uint32 collide_without_contact_bitmask() const
Definition: surface.pb.h:448
int GetCachedSize() const
Definition: surface.pb.h:96
double elastic_modulus() const
Definition: surface.pb.h:476
void protobuf_ShutdownFile_ignition_2fmsgs_2fsurface_2eproto()
void clear_soft_cfm()
Definition: surface.pb.h:347
void set_collide_bitmask(::google::protobuf::uint32 value)
Definition: surface.pb.h:466
std::shared_ptr< const Surface > ConstSurfaceSharedPtr
Definition: surface.pb.h:491
const ::ignition::msgs::Header & header() const
Definition: surface.pb.h:250
void set_min_depth(double value)
Definition: surface.pb.h:424
void clear_kp()
Definition: surface.pb.h:375
double min_depth() const
Definition: surface.pb.h:420
bool has_header() const
Definition: surface.pb.h:243
std::unique_ptr< Surface > SurfaceUniquePtr
Definition: surface.pb.h:488
void clear_bounce_threshold()
Definition: surface.pb.h:333
void clear_header()
Definition: surface.pb.h:246
void clear_elastic_modulus()
Definition: surface.pb.h:473
::google::protobuf::uint32 collide_bitmask() const
Definition: surface.pb.h:462
void clear_collide_bitmask()
Definition: surface.pb.h:459
double soft_cfm() const
Definition: surface.pb.h:350
void clear_max_vel()
Definition: surface.pb.h:403
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: surface.pb.h:93
void clear_kd()
Definition: surface.pb.h:389
bool has_friction() const
Definition: surface.pb.h:281
Definition: friction.pb.h:256
std::unique_ptr< const Surface > ConstSurfaceUniquePtr
Definition: surface.pb.h:489
void set_bounce_threshold(double value)
Definition: surface.pb.h:340
void clear_min_depth()
Definition: surface.pb.h:417
void set_max_vel(double value)
Definition: surface.pb.h:410
double soft_erp() const
Definition: surface.pb.h:364
void clear_collide_without_contact()
Definition: surface.pb.h:431
void set_soft_erp(double value)
Definition: surface.pb.h:368
void set_collide_without_contact_bitmask(::google::protobuf::uint32 value)
Definition: surface.pb.h:452
void clear_collide_without_contact_bitmask()
Definition: surface.pb.h:445
void set_allocated_header(::ignition::msgs::Header *header)
Definition: surface.pb.h:269
const ::ignition::msgs::Friction & friction() const
Definition: surface.pb.h:288
void clear_restitution_coefficient()
Definition: surface.pb.h:319
void clear_soft_erp()
Definition: surface.pb.h:361
void set_collide_without_contact(bool value)
Definition: surface.pb.h:438
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fsurface_2eproto()
::ignition::msgs::Header * release_header()
Definition: surface.pb.h:262
void set_elastic_modulus(double value)
Definition: surface.pb.h:480
std::shared_ptr< Surface > SurfaceSharedPtr
Definition: surface.pb.h:490
Definition: surface.pb.h:57
void set_soft_cfm(double value)
Definition: surface.pb.h:354
::ignition::msgs::Friction * release_friction()
Definition: surface.pb.h:300
void protobuf_AssignDesc_ignition_2fmsgs_2fsurface_2eproto()
double kd() const
Definition: surface.pb.h:392
bool collide_without_contact() const
Definition: surface.pb.h:434
Surface * New() const
Definition: surface.pb.h:76
double kp() const
Definition: surface.pb.h:378
double max_vel() const
Definition: surface.pb.h:406
void clear_friction()
Definition: surface.pb.h:284
::ignition::msgs::Header * mutable_header()
Definition: surface.pb.h:254
double bounce_threshold() const
Definition: surface.pb.h:336
Surface & operator=(const Surface &from)
Definition: surface.pb.h:64
void set_restitution_coefficient(double value)
Definition: surface.pb.h:326
void set_allocated_friction(::ignition::msgs::Friction *friction)
Definition: surface.pb.h:307
double restitution_coefficient() const
Definition: surface.pb.h:322
void set_kp(double value)
Definition: surface.pb.h:382