Gazebo Msgs

API Reference

9.5.1
contact.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/contact.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fcontact_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fcontact_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/entity.pb.h"
34 #include "gz/msgs/vector3d.pb.h"
35 #include "gz/msgs/joint_wrench.pb.h"
36 #include "gz/msgs/header.pb.h"
37 // @@protoc_insertion_point(includes)
38 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fcontact_2eproto GZ_MSGS_VISIBLE
39 
41 // Internal implementation detail -- do not use these members.
42 struct GZ_MSGS_VISIBLE TableStruct {
43  static const ::google::protobuf::internal::ParseTableField entries[];
44  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
45  static const ::google::protobuf::internal::ParseTable schema[1];
46  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
47  static const ::google::protobuf::internal::SerializationTable serialization_table[];
48  static const ::google::protobuf::uint32 offsets[];
49 };
50 void GZ_MSGS_VISIBLE AddDescriptors();
51 } // namespace protobuf_gz_2fmsgs_2fcontact_2eproto
52 namespace gz {
53 namespace msgs {
54 class Contact;
55 class ContactDefaultTypeInternal;
56 GZ_MSGS_VISIBLE extern ContactDefaultTypeInternal _Contact_default_instance_;
57 } // namespace msgs
58 } // namespace gz
59 namespace google {
60 namespace protobuf {
61 template<> GZ_MSGS_VISIBLE ::gz::msgs::Contact* Arena::CreateMaybeMessage<::gz::msgs::Contact>(Arena*);
62 } // namespace protobuf
63 } // namespace google
64 namespace gz {
65 namespace msgs {
66 
67 // ===================================================================
68 
69 class GZ_MSGS_VISIBLE Contact : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Contact) */ {
70  public:
71  Contact();
72  virtual ~Contact();
73 
74  Contact(const Contact& from);
75 
76  inline Contact& operator=(const Contact& from) {
77  CopyFrom(from);
78  return *this;
79  }
80  #if LANG_CXX11
81  Contact(Contact&& from) noexcept
82  : Contact() {
83  *this = ::std::move(from);
84  }
85 
86  inline Contact& operator=(Contact&& from) noexcept {
87  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
88  if (this != &from) InternalSwap(&from);
89  } else {
90  CopyFrom(from);
91  }
92  return *this;
93  }
94  #endif
95  static const ::google::protobuf::Descriptor* descriptor();
96  static const Contact& default_instance();
97 
98  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
99  static inline const Contact* internal_default_instance() {
100  return reinterpret_cast<const Contact*>(
102  }
103  static constexpr int kIndexInFileMessages =
104  0;
105 
106  void Swap(Contact* other);
107  friend void swap(Contact& a, Contact& b) {
108  a.Swap(&b);
109  }
110 
111  // implements Message ----------------------------------------------
112 
113  inline Contact* New() const final {
114  return CreateMaybeMessage<Contact>(NULL);
115  }
116 
117  Contact* New(::google::protobuf::Arena* arena) const final {
118  return CreateMaybeMessage<Contact>(arena);
119  }
120  void CopyFrom(const ::google::protobuf::Message& from) final;
121  void MergeFrom(const ::google::protobuf::Message& from) final;
122  void CopyFrom(const Contact& from);
123  void MergeFrom(const Contact& from);
124  void Clear() final;
125  bool IsInitialized() const final;
126 
127  size_t ByteSizeLong() const final;
128  bool MergePartialFromCodedStream(
129  ::google::protobuf::io::CodedInputStream* input) final;
130  void SerializeWithCachedSizes(
131  ::google::protobuf::io::CodedOutputStream* output) const final;
132  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
133  bool deterministic, ::google::protobuf::uint8* target) const final;
134  int GetCachedSize() const final { return _cached_size_.Get(); }
135 
136  private:
137  void SharedCtor();
138  void SharedDtor();
139  void SetCachedSize(int size) const final;
140  void InternalSwap(Contact* other);
141  private:
142  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
143  return NULL;
144  }
145  inline void* MaybeArenaPtr() const {
146  return NULL;
147  }
148  public:
149 
150  ::google::protobuf::Metadata GetMetadata() const final;
151 
152  // nested types ----------------------------------------------------
153 
154  // accessors -------------------------------------------------------
155 
156  // repeated .gz.msgs.Vector3d position = 4;
157  int position_size() const;
158  void clear_position();
159  static const int kPositionFieldNumber = 4;
160  ::gz::msgs::Vector3d* mutable_position(int index);
161  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >*
162  mutable_position();
163  const ::gz::msgs::Vector3d& position(int index) const;
164  ::gz::msgs::Vector3d* add_position();
165  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >&
166  position() const;
167 
168  // repeated .gz.msgs.Vector3d normal = 5;
169  int normal_size() const;
170  void clear_normal();
171  static const int kNormalFieldNumber = 5;
172  ::gz::msgs::Vector3d* mutable_normal(int index);
173  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >*
174  mutable_normal();
175  const ::gz::msgs::Vector3d& normal(int index) const;
176  ::gz::msgs::Vector3d* add_normal();
177  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >&
178  normal() const;
179 
180  // repeated double depth = 6;
181  int depth_size() const;
182  void clear_depth();
183  static const int kDepthFieldNumber = 6;
184  double depth(int index) const;
185  void set_depth(int index, double value);
186  void add_depth(double value);
187  const ::google::protobuf::RepeatedField< double >&
188  depth() const;
189  ::google::protobuf::RepeatedField< double >*
190  mutable_depth();
191 
192  // repeated .gz.msgs.JointWrench wrench = 7;
193  int wrench_size() const;
194  void clear_wrench();
195  static const int kWrenchFieldNumber = 7;
196  ::gz::msgs::JointWrench* mutable_wrench(int index);
197  ::google::protobuf::RepeatedPtrField< ::gz::msgs::JointWrench >*
198  mutable_wrench();
199  const ::gz::msgs::JointWrench& wrench(int index) const;
200  ::gz::msgs::JointWrench* add_wrench();
201  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::JointWrench >&
202  wrench() const;
203 
204  // .gz.msgs.Header header = 1;
205  bool has_header() const;
206  void clear_header();
207  static const int kHeaderFieldNumber = 1;
208  private:
209  const ::gz::msgs::Header& _internal_header() const;
210  public:
211  const ::gz::msgs::Header& header() const;
212  ::gz::msgs::Header* release_header();
213  ::gz::msgs::Header* mutable_header();
214  void set_allocated_header(::gz::msgs::Header* header);
215 
216  // .gz.msgs.Entity collision1 = 2;
217  bool has_collision1() const;
218  void clear_collision1();
219  static const int kCollision1FieldNumber = 2;
220  private:
221  const ::gz::msgs::Entity& _internal_collision1() const;
222  public:
223  const ::gz::msgs::Entity& collision1() const;
224  ::gz::msgs::Entity* release_collision1();
225  ::gz::msgs::Entity* mutable_collision1();
226  void set_allocated_collision1(::gz::msgs::Entity* collision1);
227 
228  // .gz.msgs.Entity collision2 = 3;
229  bool has_collision2() const;
230  void clear_collision2();
231  static const int kCollision2FieldNumber = 3;
232  private:
233  const ::gz::msgs::Entity& _internal_collision2() const;
234  public:
235  const ::gz::msgs::Entity& collision2() const;
236  ::gz::msgs::Entity* release_collision2();
237  ::gz::msgs::Entity* mutable_collision2();
238  void set_allocated_collision2(::gz::msgs::Entity* collision2);
239 
240  // .gz.msgs.Entity world = 8;
241  bool has_world() const;
242  void clear_world();
243  static const int kWorldFieldNumber = 8;
244  private:
245  const ::gz::msgs::Entity& _internal_world() const;
246  public:
247  const ::gz::msgs::Entity& world() const;
248  ::gz::msgs::Entity* release_world();
249  ::gz::msgs::Entity* mutable_world();
250  void set_allocated_world(::gz::msgs::Entity* world);
251 
252  // @@protoc_insertion_point(class_scope:gz.msgs.Contact)
253  private:
254 
255  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
256  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d > position_;
257  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d > normal_;
258  ::google::protobuf::RepeatedField< double > depth_;
259  mutable int _depth_cached_byte_size_;
260  ::google::protobuf::RepeatedPtrField< ::gz::msgs::JointWrench > wrench_;
261  ::gz::msgs::Header* header_;
262  ::gz::msgs::Entity* collision1_;
263  ::gz::msgs::Entity* collision2_;
264  ::gz::msgs::Entity* world_;
265  mutable ::google::protobuf::internal::CachedSize _cached_size_;
266  friend struct ::protobuf_gz_2fmsgs_2fcontact_2eproto::TableStruct;
267 };
268 // ===================================================================
269 
270 
271 // ===================================================================
272 
273 #ifdef __GNUC__
274  #pragma GCC diagnostic push
275  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
276 #endif // __GNUC__
277 // Contact
278 
279 // .gz.msgs.Header header = 1;
280 inline bool Contact::has_header() const {
281  return this != internal_default_instance() && header_ != NULL;
282 }
283 inline const ::gz::msgs::Header& Contact::_internal_header() const {
284  return *header_;
285 }
286 inline const ::gz::msgs::Header& Contact::header() const {
287  const ::gz::msgs::Header* p = header_;
288  // @@protoc_insertion_point(field_get:gz.msgs.Contact.header)
289  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
291 }
292 inline ::gz::msgs::Header* Contact::release_header() {
293  // @@protoc_insertion_point(field_release:gz.msgs.Contact.header)
294 
295  ::gz::msgs::Header* temp = header_;
296  header_ = NULL;
297  return temp;
298 }
299 inline ::gz::msgs::Header* Contact::mutable_header() {
300 
301  if (header_ == NULL) {
302  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
303  header_ = p;
304  }
305  // @@protoc_insertion_point(field_mutable:gz.msgs.Contact.header)
306  return header_;
307 }
309  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
310  if (message_arena == NULL) {
311  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
312  }
313  if (header) {
314  ::google::protobuf::Arena* submessage_arena = NULL;
315  if (message_arena != submessage_arena) {
316  header = ::google::protobuf::internal::GetOwnedMessage(
317  message_arena, header, submessage_arena);
318  }
319 
320  } else {
321 
322  }
323  header_ = header;
324  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Contact.header)
325 }
326 
327 // .gz.msgs.Entity collision1 = 2;
328 inline bool Contact::has_collision1() const {
329  return this != internal_default_instance() && collision1_ != NULL;
330 }
331 inline const ::gz::msgs::Entity& Contact::_internal_collision1() const {
332  return *collision1_;
333 }
334 inline const ::gz::msgs::Entity& Contact::collision1() const {
335  const ::gz::msgs::Entity* p = collision1_;
336  // @@protoc_insertion_point(field_get:gz.msgs.Contact.collision1)
337  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Entity*>(
339 }
340 inline ::gz::msgs::Entity* Contact::release_collision1() {
341  // @@protoc_insertion_point(field_release:gz.msgs.Contact.collision1)
342 
343  ::gz::msgs::Entity* temp = collision1_;
344  collision1_ = NULL;
345  return temp;
346 }
347 inline ::gz::msgs::Entity* Contact::mutable_collision1() {
348 
349  if (collision1_ == NULL) {
350  auto* p = CreateMaybeMessage<::gz::msgs::Entity>(GetArenaNoVirtual());
351  collision1_ = p;
352  }
353  // @@protoc_insertion_point(field_mutable:gz.msgs.Contact.collision1)
354  return collision1_;
355 }
357  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
358  if (message_arena == NULL) {
359  delete reinterpret_cast< ::google::protobuf::MessageLite*>(collision1_);
360  }
361  if (collision1) {
362  ::google::protobuf::Arena* submessage_arena = NULL;
363  if (message_arena != submessage_arena) {
364  collision1 = ::google::protobuf::internal::GetOwnedMessage(
365  message_arena, collision1, submessage_arena);
366  }
367 
368  } else {
369 
370  }
371  collision1_ = collision1;
372  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Contact.collision1)
373 }
374 
375 // .gz.msgs.Entity collision2 = 3;
376 inline bool Contact::has_collision2() const {
377  return this != internal_default_instance() && collision2_ != NULL;
378 }
379 inline const ::gz::msgs::Entity& Contact::_internal_collision2() const {
380  return *collision2_;
381 }
382 inline const ::gz::msgs::Entity& Contact::collision2() const {
383  const ::gz::msgs::Entity* p = collision2_;
384  // @@protoc_insertion_point(field_get:gz.msgs.Contact.collision2)
385  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Entity*>(
387 }
388 inline ::gz::msgs::Entity* Contact::release_collision2() {
389  // @@protoc_insertion_point(field_release:gz.msgs.Contact.collision2)
390 
391  ::gz::msgs::Entity* temp = collision2_;
392  collision2_ = NULL;
393  return temp;
394 }
395 inline ::gz::msgs::Entity* Contact::mutable_collision2() {
396 
397  if (collision2_ == NULL) {
398  auto* p = CreateMaybeMessage<::gz::msgs::Entity>(GetArenaNoVirtual());
399  collision2_ = p;
400  }
401  // @@protoc_insertion_point(field_mutable:gz.msgs.Contact.collision2)
402  return collision2_;
403 }
405  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
406  if (message_arena == NULL) {
407  delete reinterpret_cast< ::google::protobuf::MessageLite*>(collision2_);
408  }
409  if (collision2) {
410  ::google::protobuf::Arena* submessage_arena = NULL;
411  if (message_arena != submessage_arena) {
412  collision2 = ::google::protobuf::internal::GetOwnedMessage(
413  message_arena, collision2, submessage_arena);
414  }
415 
416  } else {
417 
418  }
419  collision2_ = collision2;
420  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Contact.collision2)
421 }
422 
423 // repeated .gz.msgs.Vector3d position = 4;
424 inline int Contact::position_size() const {
425  return position_.size();
426 }
427 inline ::gz::msgs::Vector3d* Contact::mutable_position(int index) {
428  // @@protoc_insertion_point(field_mutable:gz.msgs.Contact.position)
429  return position_.Mutable(index);
430 }
431 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >*
433  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Contact.position)
434  return &position_;
435 }
436 inline const ::gz::msgs::Vector3d& Contact::position(int index) const {
437  // @@protoc_insertion_point(field_get:gz.msgs.Contact.position)
438  return position_.Get(index);
439 }
440 inline ::gz::msgs::Vector3d* Contact::add_position() {
441  // @@protoc_insertion_point(field_add:gz.msgs.Contact.position)
442  return position_.Add();
443 }
444 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >&
446  // @@protoc_insertion_point(field_list:gz.msgs.Contact.position)
447  return position_;
448 }
449 
450 // repeated .gz.msgs.Vector3d normal = 5;
451 inline int Contact::normal_size() const {
452  return normal_.size();
453 }
454 inline ::gz::msgs::Vector3d* Contact::mutable_normal(int index) {
455  // @@protoc_insertion_point(field_mutable:gz.msgs.Contact.normal)
456  return normal_.Mutable(index);
457 }
458 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >*
460  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Contact.normal)
461  return &normal_;
462 }
463 inline const ::gz::msgs::Vector3d& Contact::normal(int index) const {
464  // @@protoc_insertion_point(field_get:gz.msgs.Contact.normal)
465  return normal_.Get(index);
466 }
467 inline ::gz::msgs::Vector3d* Contact::add_normal() {
468  // @@protoc_insertion_point(field_add:gz.msgs.Contact.normal)
469  return normal_.Add();
470 }
471 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >&
473  // @@protoc_insertion_point(field_list:gz.msgs.Contact.normal)
474  return normal_;
475 }
476 
477 // repeated double depth = 6;
478 inline int Contact::depth_size() const {
479  return depth_.size();
480 }
481 inline void Contact::clear_depth() {
482  depth_.Clear();
483 }
484 inline double Contact::depth(int index) const {
485  // @@protoc_insertion_point(field_get:gz.msgs.Contact.depth)
486  return depth_.Get(index);
487 }
488 inline void Contact::set_depth(int index, double value) {
489  depth_.Set(index, value);
490  // @@protoc_insertion_point(field_set:gz.msgs.Contact.depth)
491 }
492 inline void Contact::add_depth(double value) {
493  depth_.Add(value);
494  // @@protoc_insertion_point(field_add:gz.msgs.Contact.depth)
495 }
496 inline const ::google::protobuf::RepeatedField< double >&
497 Contact::depth() const {
498  // @@protoc_insertion_point(field_list:gz.msgs.Contact.depth)
499  return depth_;
500 }
501 inline ::google::protobuf::RepeatedField< double >*
503  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Contact.depth)
504  return &depth_;
505 }
506 
507 // repeated .gz.msgs.JointWrench wrench = 7;
508 inline int Contact::wrench_size() const {
509  return wrench_.size();
510 }
511 inline ::gz::msgs::JointWrench* Contact::mutable_wrench(int index) {
512  // @@protoc_insertion_point(field_mutable:gz.msgs.Contact.wrench)
513  return wrench_.Mutable(index);
514 }
515 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::JointWrench >*
517  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Contact.wrench)
518  return &wrench_;
519 }
520 inline const ::gz::msgs::JointWrench& Contact::wrench(int index) const {
521  // @@protoc_insertion_point(field_get:gz.msgs.Contact.wrench)
522  return wrench_.Get(index);
523 }
524 inline ::gz::msgs::JointWrench* Contact::add_wrench() {
525  // @@protoc_insertion_point(field_add:gz.msgs.Contact.wrench)
526  return wrench_.Add();
527 }
528 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::JointWrench >&
530  // @@protoc_insertion_point(field_list:gz.msgs.Contact.wrench)
531  return wrench_;
532 }
533 
534 // .gz.msgs.Entity world = 8;
535 inline bool Contact::has_world() const {
536  return this != internal_default_instance() && world_ != NULL;
537 }
538 inline const ::gz::msgs::Entity& Contact::_internal_world() const {
539  return *world_;
540 }
541 inline const ::gz::msgs::Entity& Contact::world() const {
542  const ::gz::msgs::Entity* p = world_;
543  // @@protoc_insertion_point(field_get:gz.msgs.Contact.world)
544  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Entity*>(
546 }
547 inline ::gz::msgs::Entity* Contact::release_world() {
548  // @@protoc_insertion_point(field_release:gz.msgs.Contact.world)
549 
550  ::gz::msgs::Entity* temp = world_;
551  world_ = NULL;
552  return temp;
553 }
554 inline ::gz::msgs::Entity* Contact::mutable_world() {
555 
556  if (world_ == NULL) {
557  auto* p = CreateMaybeMessage<::gz::msgs::Entity>(GetArenaNoVirtual());
558  world_ = p;
559  }
560  // @@protoc_insertion_point(field_mutable:gz.msgs.Contact.world)
561  return world_;
562 }
564  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
565  if (message_arena == NULL) {
566  delete reinterpret_cast< ::google::protobuf::MessageLite*>(world_);
567  }
568  if (world) {
569  ::google::protobuf::Arena* submessage_arena = NULL;
570  if (message_arena != submessage_arena) {
571  world = ::google::protobuf::internal::GetOwnedMessage(
572  message_arena, world, submessage_arena);
573  }
574 
575  } else {
576 
577  }
578  world_ = world;
579  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Contact.world)
580 }
581 
582 #ifdef __GNUC__
583  #pragma GCC diagnostic pop
584 #endif // __GNUC__
585 
586 // @@protoc_insertion_point(namespace_scope)
587 
588 } // namespace msgs
589 } // namespace gz
590 
591 // @@protoc_insertion_point(global_scope)
592 
593 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fcontact_2eproto