Ignition Msgs

API Reference

6.4.0
surface.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/surface.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fsurface_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fsurface_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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>
32 #ifndef _MSC_VER
33 #pragma GCC system_header
34 #else
35 #pragma warning(push)
36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
37 #endif
38 #ifdef __linux__
39 #include <sys/sysmacros.h>
40 #endif
41 #include <memory>
42 #include <ignition/msgs/Export.hh>
43 // @@protoc_insertion_point(includes)
44 
45 namespace ignition {
46 namespace msgs {
47 
48 // Internal implementation detail -- do not call these.
49 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fsurface_2eproto();
52 
53 class Surface;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE Surface : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Surface) */ {
58  public:
59  Surface();
60  virtual ~Surface();
61 
62  Surface(const Surface& from);
63 
64  inline Surface& operator=(const Surface& from) {
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const Surface& default_instance();
71 
72  void Swap(Surface* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline Surface* New() const { return New(NULL); }
77 
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);
83  void Clear();
84  bool IsInitialized() const;
85 
86  int ByteSize() 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;
93  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
94  return InternalSerializeWithCachedSizesToArray(false, output);
95  }
96  int GetCachedSize() const { return _cached_size_; }
97  private:
98  void SharedCtor();
99  void SharedDtor();
100  void SetCachedSize(int size) const;
101  void InternalSwap(Surface* other);
102  private:
103  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
104  return _internal_metadata_.arena();
105  }
106  inline void* MaybeArenaPtr() const {
107  return _internal_metadata_.raw_arena_ptr();
108  }
109  public:
110 
111  ::google::protobuf::Metadata GetMetadata() const;
112 
113  // nested types ----------------------------------------------------
114 
115  // accessors -------------------------------------------------------
116 
117  // optional .ignition.msgs.Header header = 1;
118  bool has_header() const;
119  void clear_header();
120  static const int kHeaderFieldNumber = 1;
121  const ::ignition::msgs::Header& header() const;
122  ::ignition::msgs::Header* mutable_header();
123  ::ignition::msgs::Header* release_header();
124  void set_allocated_header(::ignition::msgs::Header* header);
125 
126  // optional .ignition.msgs.Friction friction = 2;
127  bool has_friction() const;
128  void clear_friction();
129  static const int kFrictionFieldNumber = 2;
130  const ::ignition::msgs::Friction& friction() const;
131  ::ignition::msgs::Friction* mutable_friction();
132  ::ignition::msgs::Friction* release_friction();
133  void set_allocated_friction(::ignition::msgs::Friction* friction);
134 
135  // optional double restitution_coefficient = 3;
136  void clear_restitution_coefficient();
137  static const int kRestitutionCoefficientFieldNumber = 3;
138  double restitution_coefficient() const;
139  void set_restitution_coefficient(double value);
140 
141  // optional double bounce_threshold = 4;
142  void clear_bounce_threshold();
143  static const int kBounceThresholdFieldNumber = 4;
144  double bounce_threshold() const;
145  void set_bounce_threshold(double value);
146 
147  // optional double soft_cfm = 5;
148  void clear_soft_cfm();
149  static const int kSoftCfmFieldNumber = 5;
150  double soft_cfm() const;
151  void set_soft_cfm(double value);
152 
153  // optional double soft_erp = 6;
154  void clear_soft_erp();
155  static const int kSoftErpFieldNumber = 6;
156  double soft_erp() const;
157  void set_soft_erp(double value);
158 
159  // optional double kp = 7;
160  void clear_kp();
161  static const int kKpFieldNumber = 7;
162  double kp() const;
163  void set_kp(double value);
164 
165  // optional double kd = 8;
166  void clear_kd();
167  static const int kKdFieldNumber = 8;
168  double kd() const;
169  void set_kd(double value);
170 
171  // optional double max_vel = 9;
172  void clear_max_vel();
173  static const int kMaxVelFieldNumber = 9;
174  double max_vel() const;
175  void set_max_vel(double value);
176 
177  // optional double min_depth = 10;
178  void clear_min_depth();
179  static const int kMinDepthFieldNumber = 10;
180  double min_depth() const;
181  void set_min_depth(double value);
182 
183  // optional bool collide_without_contact = 11;
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);
188 
189  // optional uint32 collide_without_contact_bitmask = 12;
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);
194 
195  // optional uint32 collide_bitmask = 13;
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);
200 
201  // optional double elastic_modulus = 14;
202  void clear_elastic_modulus();
203  static const int kElasticModulusFieldNumber = 14;
204  double elastic_modulus() const;
205  void set_elastic_modulus(double value);
206 
207  // @@protoc_insertion_point(class_scope:ignition.msgs.Surface)
208  private:
209 
210  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
211  bool _is_default_instance_;
212  ::ignition::msgs::Header* header_;
213  ::ignition::msgs::Friction* friction_;
214  double restitution_coefficient_;
215  double bounce_threshold_;
216  double soft_cfm_;
217  double soft_erp_;
218  double kp_;
219  double kd_;
220  double max_vel_;
221  double min_depth_;
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_;
227  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fsurface_2eproto();
230 
231  void InitAsDefaultInstance();
232  static Surface* default_instance_;
233 };
234 // ===================================================================
235 
236 
237 // ===================================================================
238 
239 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
240 // Surface
241 
242 // optional .ignition.msgs.Header header = 1;
243 inline bool Surface::has_header() const {
244  return !_is_default_instance_ && header_ != NULL;
245 }
246 inline void Surface::clear_header() {
247  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
248  header_ = NULL;
249 }
250 inline const ::ignition::msgs::Header& Surface::header() const {
251  // @@protoc_insertion_point(field_get:ignition.msgs.Surface.header)
252  return header_ != NULL ? *header_ : *default_instance_->header_;
253 }
254 inline ::ignition::msgs::Header* Surface::mutable_header() {
255 
256  if (header_ == NULL) {
257  header_ = new ::ignition::msgs::Header;
258  }
259  // @@protoc_insertion_point(field_mutable:ignition.msgs.Surface.header)
260  return header_;
261 }
262 inline ::ignition::msgs::Header* Surface::release_header() {
263  // @@protoc_insertion_point(field_release:ignition.msgs.Surface.header)
264 
265  ::ignition::msgs::Header* temp = header_;
266  header_ = NULL;
267  return temp;
268 }
270  delete header_;
271  header_ = header;
272  if (header) {
273 
274  } else {
275 
276  }
277  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Surface.header)
278 }
279 
280 // optional .ignition.msgs.Friction friction = 2;
281 inline bool Surface::has_friction() const {
282  return !_is_default_instance_ && friction_ != NULL;
283 }
284 inline void Surface::clear_friction() {
285  if (GetArenaNoVirtual() == NULL && friction_ != NULL) delete friction_;
286  friction_ = NULL;
287 }
288 inline const ::ignition::msgs::Friction& Surface::friction() const {
289  // @@protoc_insertion_point(field_get:ignition.msgs.Surface.friction)
290  return friction_ != NULL ? *friction_ : *default_instance_->friction_;
291 }
292 inline ::ignition::msgs::Friction* Surface::mutable_friction() {
293 
294  if (friction_ == NULL) {
295  friction_ = new ::ignition::msgs::Friction;
296  }
297  // @@protoc_insertion_point(field_mutable:ignition.msgs.Surface.friction)
298  return friction_;
299 }
300 inline ::ignition::msgs::Friction* Surface::release_friction() {
301  // @@protoc_insertion_point(field_release:ignition.msgs.Surface.friction)
302 
303  ::ignition::msgs::Friction* temp = friction_;
304  friction_ = NULL;
305  return temp;
306 }
308  delete friction_;
309  friction_ = friction;
310  if (friction) {
311 
312  } else {
313 
314  }
315  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Surface.friction)
316 }
317 
318 // optional double restitution_coefficient = 3;
320  restitution_coefficient_ = 0;
321 }
322 inline double Surface::restitution_coefficient() const {
323  // @@protoc_insertion_point(field_get:ignition.msgs.Surface.restitution_coefficient)
324  return restitution_coefficient_;
325 }
326 inline void Surface::set_restitution_coefficient(double value) {
327 
328  restitution_coefficient_ = value;
329  // @@protoc_insertion_point(field_set:ignition.msgs.Surface.restitution_coefficient)
330 }
331 
332 // optional double bounce_threshold = 4;
334  bounce_threshold_ = 0;
335 }
336 inline double Surface::bounce_threshold() const {
337  // @@protoc_insertion_point(field_get:ignition.msgs.Surface.bounce_threshold)
338  return bounce_threshold_;
339 }
340 inline void Surface::set_bounce_threshold(double value) {
341 
342  bounce_threshold_ = value;
343  // @@protoc_insertion_point(field_set:ignition.msgs.Surface.bounce_threshold)
344 }
345 
346 // optional double soft_cfm = 5;
347 inline void Surface::clear_soft_cfm() {
348  soft_cfm_ = 0;
349 }
350 inline double Surface::soft_cfm() const {
351  // @@protoc_insertion_point(field_get:ignition.msgs.Surface.soft_cfm)
352  return soft_cfm_;
353 }
354 inline void Surface::set_soft_cfm(double value) {
355 
356  soft_cfm_ = value;
357  // @@protoc_insertion_point(field_set:ignition.msgs.Surface.soft_cfm)
358 }
359 
360 // optional double soft_erp = 6;
361 inline void Surface::clear_soft_erp() {
362  soft_erp_ = 0;
363 }
364 inline double Surface::soft_erp() const {
365  // @@protoc_insertion_point(field_get:ignition.msgs.Surface.soft_erp)
366  return soft_erp_;
367 }
368 inline void Surface::set_soft_erp(double value) {
369 
370  soft_erp_ = value;
371  // @@protoc_insertion_point(field_set:ignition.msgs.Surface.soft_erp)
372 }
373 
374 // optional double kp = 7;
375 inline void Surface::clear_kp() {
376  kp_ = 0;
377 }
378 inline double Surface::kp() const {
379  // @@protoc_insertion_point(field_get:ignition.msgs.Surface.kp)
380  return kp_;
381 }
382 inline void Surface::set_kp(double value) {
383 
384  kp_ = value;
385  // @@protoc_insertion_point(field_set:ignition.msgs.Surface.kp)
386 }
387 
388 // optional double kd = 8;
389 inline void Surface::clear_kd() {
390  kd_ = 0;
391 }
392 inline double Surface::kd() const {
393  // @@protoc_insertion_point(field_get:ignition.msgs.Surface.kd)
394  return kd_;
395 }
396 inline void Surface::set_kd(double value) {
397 
398  kd_ = value;
399  // @@protoc_insertion_point(field_set:ignition.msgs.Surface.kd)
400 }
401 
402 // optional double max_vel = 9;
403 inline void Surface::clear_max_vel() {
404  max_vel_ = 0;
405 }
406 inline double Surface::max_vel() const {
407  // @@protoc_insertion_point(field_get:ignition.msgs.Surface.max_vel)
408  return max_vel_;
409 }
410 inline void Surface::set_max_vel(double value) {
411 
412  max_vel_ = value;
413  // @@protoc_insertion_point(field_set:ignition.msgs.Surface.max_vel)
414 }
415 
416 // optional double min_depth = 10;
418  min_depth_ = 0;
419 }
420 inline double Surface::min_depth() const {
421  // @@protoc_insertion_point(field_get:ignition.msgs.Surface.min_depth)
422  return min_depth_;
423 }
424 inline void Surface::set_min_depth(double value) {
425 
426  min_depth_ = value;
427  // @@protoc_insertion_point(field_set:ignition.msgs.Surface.min_depth)
428 }
429 
430 // optional bool collide_without_contact = 11;
432  collide_without_contact_ = false;
433 }
434 inline bool Surface::collide_without_contact() const {
435  // @@protoc_insertion_point(field_get:ignition.msgs.Surface.collide_without_contact)
436  return collide_without_contact_;
437 }
438 inline void Surface::set_collide_without_contact(bool value) {
439 
440  collide_without_contact_ = value;
441  // @@protoc_insertion_point(field_set:ignition.msgs.Surface.collide_without_contact)
442 }
443 
444 // optional uint32 collide_without_contact_bitmask = 12;
446  collide_without_contact_bitmask_ = 0u;
447 }
448 inline ::google::protobuf::uint32 Surface::collide_without_contact_bitmask() const {
449  // @@protoc_insertion_point(field_get:ignition.msgs.Surface.collide_without_contact_bitmask)
450  return collide_without_contact_bitmask_;
451 }
452 inline void Surface::set_collide_without_contact_bitmask(::google::protobuf::uint32 value) {
453 
454  collide_without_contact_bitmask_ = value;
455  // @@protoc_insertion_point(field_set:ignition.msgs.Surface.collide_without_contact_bitmask)
456 }
457 
458 // optional uint32 collide_bitmask = 13;
460  collide_bitmask_ = 0u;
461 }
462 inline ::google::protobuf::uint32 Surface::collide_bitmask() const {
463  // @@protoc_insertion_point(field_get:ignition.msgs.Surface.collide_bitmask)
464  return collide_bitmask_;
465 }
466 inline void Surface::set_collide_bitmask(::google::protobuf::uint32 value) {
467 
468  collide_bitmask_ = value;
469  // @@protoc_insertion_point(field_set:ignition.msgs.Surface.collide_bitmask)
470 }
471 
472 // optional double elastic_modulus = 14;
474  elastic_modulus_ = 0;
475 }
476 inline double Surface::elastic_modulus() const {
477  // @@protoc_insertion_point(field_get:ignition.msgs.Surface.elastic_modulus)
478  return elastic_modulus_;
479 }
480 inline void Surface::set_elastic_modulus(double value) {
481 
482  elastic_modulus_ = value;
483  // @@protoc_insertion_point(field_set:ignition.msgs.Surface.elastic_modulus)
484 }
485 
486 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
487 
492 // @@protoc_insertion_point(namespace_scope)
493 
494 } // namespace msgs
495 } // namespace ignition
496 
497 #ifdef _MSC_VER
498 #pragma warning(pop)
499 #endif
500 // @@protoc_insertion_point(global_scope)
501 
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
Definition: header.pb.h:161
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
STL class.
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