Gazebo Msgs

API Reference

9.5.1
surface.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/surface.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fsurface_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fsurface_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/unknown_field_set.h>
33 #include "gz/msgs/header.pb.h"
34 #include "gz/msgs/friction.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fsurface_2eproto GZ_MSGS_VISIBLE
37 
39 // Internal implementation detail -- do not use these members.
40 struct GZ_MSGS_VISIBLE TableStruct {
41  static const ::google::protobuf::internal::ParseTableField entries[];
42  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43  static const ::google::protobuf::internal::ParseTable schema[1];
44  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45  static const ::google::protobuf::internal::SerializationTable serialization_table[];
46  static const ::google::protobuf::uint32 offsets[];
47 };
48 void GZ_MSGS_VISIBLE AddDescriptors();
49 } // namespace protobuf_gz_2fmsgs_2fsurface_2eproto
50 namespace gz {
51 namespace msgs {
52 class Surface;
53 class SurfaceDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern SurfaceDefaultTypeInternal _Surface_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::Surface* Arena::CreateMaybeMessage<::gz::msgs::Surface>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
65 // ===================================================================
66 
67 class GZ_MSGS_VISIBLE Surface : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Surface) */ {
68  public:
69  Surface();
70  virtual ~Surface();
71 
72  Surface(const Surface& from);
73 
74  inline Surface& operator=(const Surface& from) {
75  CopyFrom(from);
76  return *this;
77  }
78  #if LANG_CXX11
79  Surface(Surface&& from) noexcept
80  : Surface() {
81  *this = ::std::move(from);
82  }
83 
84  inline Surface& operator=(Surface&& from) noexcept {
85  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
86  if (this != &from) InternalSwap(&from);
87  } else {
88  CopyFrom(from);
89  }
90  return *this;
91  }
92  #endif
93  static const ::google::protobuf::Descriptor* descriptor();
94  static const Surface& default_instance();
95 
96  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
97  static inline const Surface* internal_default_instance() {
98  return reinterpret_cast<const Surface*>(
100  }
101  static constexpr int kIndexInFileMessages =
102  0;
103 
104  void Swap(Surface* other);
105  friend void swap(Surface& a, Surface& b) {
106  a.Swap(&b);
107  }
108 
109  // implements Message ----------------------------------------------
110 
111  inline Surface* New() const final {
112  return CreateMaybeMessage<Surface>(NULL);
113  }
114 
115  Surface* New(::google::protobuf::Arena* arena) const final {
116  return CreateMaybeMessage<Surface>(arena);
117  }
118  void CopyFrom(const ::google::protobuf::Message& from) final;
119  void MergeFrom(const ::google::protobuf::Message& from) final;
120  void CopyFrom(const Surface& from);
121  void MergeFrom(const Surface& from);
122  void Clear() final;
123  bool IsInitialized() const final;
124 
125  size_t ByteSizeLong() const final;
126  bool MergePartialFromCodedStream(
127  ::google::protobuf::io::CodedInputStream* input) final;
128  void SerializeWithCachedSizes(
129  ::google::protobuf::io::CodedOutputStream* output) const final;
130  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
131  bool deterministic, ::google::protobuf::uint8* target) const final;
132  int GetCachedSize() const final { return _cached_size_.Get(); }
133 
134  private:
135  void SharedCtor();
136  void SharedDtor();
137  void SetCachedSize(int size) const final;
138  void InternalSwap(Surface* other);
139  private:
140  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
141  return NULL;
142  }
143  inline void* MaybeArenaPtr() const {
144  return NULL;
145  }
146  public:
147 
148  ::google::protobuf::Metadata GetMetadata() const final;
149 
150  // nested types ----------------------------------------------------
151 
152  // accessors -------------------------------------------------------
153 
154  // .gz.msgs.Header header = 1;
155  bool has_header() const;
156  void clear_header();
157  static const int kHeaderFieldNumber = 1;
158  private:
159  const ::gz::msgs::Header& _internal_header() const;
160  public:
161  const ::gz::msgs::Header& header() const;
162  ::gz::msgs::Header* release_header();
163  ::gz::msgs::Header* mutable_header();
164  void set_allocated_header(::gz::msgs::Header* header);
165 
166  // .gz.msgs.Friction friction = 2;
167  bool has_friction() const;
168  void clear_friction();
169  static const int kFrictionFieldNumber = 2;
170  private:
171  const ::gz::msgs::Friction& _internal_friction() const;
172  public:
173  const ::gz::msgs::Friction& friction() const;
174  ::gz::msgs::Friction* release_friction();
175  ::gz::msgs::Friction* mutable_friction();
176  void set_allocated_friction(::gz::msgs::Friction* friction);
177 
178  // double restitution_coefficient = 3;
179  void clear_restitution_coefficient();
180  static const int kRestitutionCoefficientFieldNumber = 3;
181  double restitution_coefficient() const;
182  void set_restitution_coefficient(double value);
183 
184  // double bounce_threshold = 4;
185  void clear_bounce_threshold();
186  static const int kBounceThresholdFieldNumber = 4;
187  double bounce_threshold() const;
188  void set_bounce_threshold(double value);
189 
190  // double soft_cfm = 5;
191  void clear_soft_cfm();
192  static const int kSoftCfmFieldNumber = 5;
193  double soft_cfm() const;
194  void set_soft_cfm(double value);
195 
196  // double soft_erp = 6;
197  void clear_soft_erp();
198  static const int kSoftErpFieldNumber = 6;
199  double soft_erp() const;
200  void set_soft_erp(double value);
201 
202  // double kp = 7;
203  void clear_kp();
204  static const int kKpFieldNumber = 7;
205  double kp() const;
206  void set_kp(double value);
207 
208  // double kd = 8;
209  void clear_kd();
210  static const int kKdFieldNumber = 8;
211  double kd() const;
212  void set_kd(double value);
213 
214  // double max_vel = 9;
215  void clear_max_vel();
216  static const int kMaxVelFieldNumber = 9;
217  double max_vel() const;
218  void set_max_vel(double value);
219 
220  // double min_depth = 10;
221  void clear_min_depth();
222  static const int kMinDepthFieldNumber = 10;
223  double min_depth() const;
224  void set_min_depth(double value);
225 
226  // bool collide_without_contact = 11;
227  void clear_collide_without_contact();
228  static const int kCollideWithoutContactFieldNumber = 11;
229  bool collide_without_contact() const;
230  void set_collide_without_contact(bool value);
231 
232  // uint32 collide_without_contact_bitmask = 12;
233  void clear_collide_without_contact_bitmask();
234  static const int kCollideWithoutContactBitmaskFieldNumber = 12;
235  ::google::protobuf::uint32 collide_without_contact_bitmask() const;
236  void set_collide_without_contact_bitmask(::google::protobuf::uint32 value);
237 
238  // double elastic_modulus = 14;
239  void clear_elastic_modulus();
240  static const int kElasticModulusFieldNumber = 14;
241  double elastic_modulus() const;
242  void set_elastic_modulus(double value);
243 
244  // uint32 collide_bitmask = 13;
245  void clear_collide_bitmask();
246  static const int kCollideBitmaskFieldNumber = 13;
247  ::google::protobuf::uint32 collide_bitmask() const;
248  void set_collide_bitmask(::google::protobuf::uint32 value);
249 
250  // @@protoc_insertion_point(class_scope:gz.msgs.Surface)
251  private:
252 
253  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
254  ::gz::msgs::Header* header_;
255  ::gz::msgs::Friction* friction_;
256  double restitution_coefficient_;
257  double bounce_threshold_;
258  double soft_cfm_;
259  double soft_erp_;
260  double kp_;
261  double kd_;
262  double max_vel_;
263  double min_depth_;
264  bool collide_without_contact_;
265  ::google::protobuf::uint32 collide_without_contact_bitmask_;
266  double elastic_modulus_;
267  ::google::protobuf::uint32 collide_bitmask_;
268  mutable ::google::protobuf::internal::CachedSize _cached_size_;
269  friend struct ::protobuf_gz_2fmsgs_2fsurface_2eproto::TableStruct;
270 };
271 // ===================================================================
272 
273 
274 // ===================================================================
275 
276 #ifdef __GNUC__
277  #pragma GCC diagnostic push
278  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
279 #endif // __GNUC__
280 // Surface
281 
282 // .gz.msgs.Header header = 1;
283 inline bool Surface::has_header() const {
284  return this != internal_default_instance() && header_ != NULL;
285 }
286 inline const ::gz::msgs::Header& Surface::_internal_header() const {
287  return *header_;
288 }
289 inline const ::gz::msgs::Header& Surface::header() const {
290  const ::gz::msgs::Header* p = header_;
291  // @@protoc_insertion_point(field_get:gz.msgs.Surface.header)
292  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
294 }
295 inline ::gz::msgs::Header* Surface::release_header() {
296  // @@protoc_insertion_point(field_release:gz.msgs.Surface.header)
297 
298  ::gz::msgs::Header* temp = header_;
299  header_ = NULL;
300  return temp;
301 }
302 inline ::gz::msgs::Header* Surface::mutable_header() {
303 
304  if (header_ == NULL) {
305  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
306  header_ = p;
307  }
308  // @@protoc_insertion_point(field_mutable:gz.msgs.Surface.header)
309  return header_;
310 }
312  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
313  if (message_arena == NULL) {
314  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
315  }
316  if (header) {
317  ::google::protobuf::Arena* submessage_arena = NULL;
318  if (message_arena != submessage_arena) {
319  header = ::google::protobuf::internal::GetOwnedMessage(
320  message_arena, header, submessage_arena);
321  }
322 
323  } else {
324 
325  }
326  header_ = header;
327  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Surface.header)
328 }
329 
330 // .gz.msgs.Friction friction = 2;
331 inline bool Surface::has_friction() const {
332  return this != internal_default_instance() && friction_ != NULL;
333 }
334 inline const ::gz::msgs::Friction& Surface::_internal_friction() const {
335  return *friction_;
336 }
337 inline const ::gz::msgs::Friction& Surface::friction() const {
338  const ::gz::msgs::Friction* p = friction_;
339  // @@protoc_insertion_point(field_get:gz.msgs.Surface.friction)
340  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Friction*>(
342 }
343 inline ::gz::msgs::Friction* Surface::release_friction() {
344  // @@protoc_insertion_point(field_release:gz.msgs.Surface.friction)
345 
346  ::gz::msgs::Friction* temp = friction_;
347  friction_ = NULL;
348  return temp;
349 }
350 inline ::gz::msgs::Friction* Surface::mutable_friction() {
351 
352  if (friction_ == NULL) {
353  auto* p = CreateMaybeMessage<::gz::msgs::Friction>(GetArenaNoVirtual());
354  friction_ = p;
355  }
356  // @@protoc_insertion_point(field_mutable:gz.msgs.Surface.friction)
357  return friction_;
358 }
360  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
361  if (message_arena == NULL) {
362  delete reinterpret_cast< ::google::protobuf::MessageLite*>(friction_);
363  }
364  if (friction) {
365  ::google::protobuf::Arena* submessage_arena = NULL;
366  if (message_arena != submessage_arena) {
367  friction = ::google::protobuf::internal::GetOwnedMessage(
368  message_arena, friction, submessage_arena);
369  }
370 
371  } else {
372 
373  }
374  friction_ = friction;
375  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Surface.friction)
376 }
377 
378 // double restitution_coefficient = 3;
380  restitution_coefficient_ = 0;
381 }
382 inline double Surface::restitution_coefficient() const {
383  // @@protoc_insertion_point(field_get:gz.msgs.Surface.restitution_coefficient)
384  return restitution_coefficient_;
385 }
386 inline void Surface::set_restitution_coefficient(double value) {
387 
388  restitution_coefficient_ = value;
389  // @@protoc_insertion_point(field_set:gz.msgs.Surface.restitution_coefficient)
390 }
391 
392 // double bounce_threshold = 4;
394  bounce_threshold_ = 0;
395 }
396 inline double Surface::bounce_threshold() const {
397  // @@protoc_insertion_point(field_get:gz.msgs.Surface.bounce_threshold)
398  return bounce_threshold_;
399 }
400 inline void Surface::set_bounce_threshold(double value) {
401 
402  bounce_threshold_ = value;
403  // @@protoc_insertion_point(field_set:gz.msgs.Surface.bounce_threshold)
404 }
405 
406 // double soft_cfm = 5;
407 inline void Surface::clear_soft_cfm() {
408  soft_cfm_ = 0;
409 }
410 inline double Surface::soft_cfm() const {
411  // @@protoc_insertion_point(field_get:gz.msgs.Surface.soft_cfm)
412  return soft_cfm_;
413 }
414 inline void Surface::set_soft_cfm(double value) {
415 
416  soft_cfm_ = value;
417  // @@protoc_insertion_point(field_set:gz.msgs.Surface.soft_cfm)
418 }
419 
420 // double soft_erp = 6;
421 inline void Surface::clear_soft_erp() {
422  soft_erp_ = 0;
423 }
424 inline double Surface::soft_erp() const {
425  // @@protoc_insertion_point(field_get:gz.msgs.Surface.soft_erp)
426  return soft_erp_;
427 }
428 inline void Surface::set_soft_erp(double value) {
429 
430  soft_erp_ = value;
431  // @@protoc_insertion_point(field_set:gz.msgs.Surface.soft_erp)
432 }
433 
434 // double kp = 7;
435 inline void Surface::clear_kp() {
436  kp_ = 0;
437 }
438 inline double Surface::kp() const {
439  // @@protoc_insertion_point(field_get:gz.msgs.Surface.kp)
440  return kp_;
441 }
442 inline void Surface::set_kp(double value) {
443 
444  kp_ = value;
445  // @@protoc_insertion_point(field_set:gz.msgs.Surface.kp)
446 }
447 
448 // double kd = 8;
449 inline void Surface::clear_kd() {
450  kd_ = 0;
451 }
452 inline double Surface::kd() const {
453  // @@protoc_insertion_point(field_get:gz.msgs.Surface.kd)
454  return kd_;
455 }
456 inline void Surface::set_kd(double value) {
457 
458  kd_ = value;
459  // @@protoc_insertion_point(field_set:gz.msgs.Surface.kd)
460 }
461 
462 // double max_vel = 9;
463 inline void Surface::clear_max_vel() {
464  max_vel_ = 0;
465 }
466 inline double Surface::max_vel() const {
467  // @@protoc_insertion_point(field_get:gz.msgs.Surface.max_vel)
468  return max_vel_;
469 }
470 inline void Surface::set_max_vel(double value) {
471 
472  max_vel_ = value;
473  // @@protoc_insertion_point(field_set:gz.msgs.Surface.max_vel)
474 }
475 
476 // double min_depth = 10;
478  min_depth_ = 0;
479 }
480 inline double Surface::min_depth() const {
481  // @@protoc_insertion_point(field_get:gz.msgs.Surface.min_depth)
482  return min_depth_;
483 }
484 inline void Surface::set_min_depth(double value) {
485 
486  min_depth_ = value;
487  // @@protoc_insertion_point(field_set:gz.msgs.Surface.min_depth)
488 }
489 
490 // bool collide_without_contact = 11;
492  collide_without_contact_ = false;
493 }
494 inline bool Surface::collide_without_contact() const {
495  // @@protoc_insertion_point(field_get:gz.msgs.Surface.collide_without_contact)
496  return collide_without_contact_;
497 }
498 inline void Surface::set_collide_without_contact(bool value) {
499 
500  collide_without_contact_ = value;
501  // @@protoc_insertion_point(field_set:gz.msgs.Surface.collide_without_contact)
502 }
503 
504 // uint32 collide_without_contact_bitmask = 12;
506  collide_without_contact_bitmask_ = 0u;
507 }
508 inline ::google::protobuf::uint32 Surface::collide_without_contact_bitmask() const {
509  // @@protoc_insertion_point(field_get:gz.msgs.Surface.collide_without_contact_bitmask)
510  return collide_without_contact_bitmask_;
511 }
512 inline void Surface::set_collide_without_contact_bitmask(::google::protobuf::uint32 value) {
513 
514  collide_without_contact_bitmask_ = value;
515  // @@protoc_insertion_point(field_set:gz.msgs.Surface.collide_without_contact_bitmask)
516 }
517 
518 // uint32 collide_bitmask = 13;
520  collide_bitmask_ = 0u;
521 }
522 inline ::google::protobuf::uint32 Surface::collide_bitmask() const {
523  // @@protoc_insertion_point(field_get:gz.msgs.Surface.collide_bitmask)
524  return collide_bitmask_;
525 }
526 inline void Surface::set_collide_bitmask(::google::protobuf::uint32 value) {
527 
528  collide_bitmask_ = value;
529  // @@protoc_insertion_point(field_set:gz.msgs.Surface.collide_bitmask)
530 }
531 
532 // double elastic_modulus = 14;
534  elastic_modulus_ = 0;
535 }
536 inline double Surface::elastic_modulus() const {
537  // @@protoc_insertion_point(field_get:gz.msgs.Surface.elastic_modulus)
538  return elastic_modulus_;
539 }
540 inline void Surface::set_elastic_modulus(double value) {
541 
542  elastic_modulus_ = value;
543  // @@protoc_insertion_point(field_set:gz.msgs.Surface.elastic_modulus)
544 }
545 
546 #ifdef __GNUC__
547  #pragma GCC diagnostic pop
548 #endif // __GNUC__
549 
550 // @@protoc_insertion_point(namespace_scope)
551 
552 } // namespace msgs
553 } // namespace gz
554 
555 // @@protoc_insertion_point(global_scope)
556 
557 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fsurface_2eproto