4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fcontact_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fcontact_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3019000
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 3019000 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h>
32 #include <google/protobuf/extension_set.h>
33 #include <google/protobuf/unknown_field_set.h>
39 #pragma GCC system_header
42 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
45 #include <sys/sysmacros.h>
50 #include <google/protobuf/port_def.inc>
51 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fcontact_2eproto IGNITION_MSGS_VISIBLE
52 PROTOBUF_NAMESPACE_OPEN
56 PROTOBUF_NAMESPACE_CLOSE
60 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
62 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
64 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
66 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
67 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
68 static const uint32_t offsets[];
74 struct ContactDefaultTypeInternal;
78 PROTOBUF_NAMESPACE_OPEN
79 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Contact* Arena::CreateMaybeMessage<::ignition::msgs::Contact>(Arena*);
80 PROTOBUF_NAMESPACE_CLOSE
86 class IGNITION_MSGS_VISIBLE
Contact final :
87 public ::PROTOBUF_NAMESPACE_ID::Message {
91 explicit constexpr
Contact(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
96 *
this = ::std::move(from);
104 if (
this == &from)
return *
this;
105 if (GetOwningArena() == from.GetOwningArena()
106 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
107 && GetOwningArena() !=
nullptr
117 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
118 return GetDescriptor();
121 return default_instance().GetMetadata().descriptor;
124 return default_instance().GetMetadata().reflection;
127 return *internal_default_instance();
130 return reinterpret_cast<const Contact*
>(
133 static constexpr
int kIndexInFileMessages =
140 if (other ==
this)
return;
141 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
142 if (GetOwningArena() !=
nullptr &&
143 GetOwningArena() == other->GetOwningArena()) {
145 if (GetOwningArena() == other->GetOwningArena()) {
149 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
153 if (other ==
this)
return;
154 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
160 Contact*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
161 return CreateMaybeMessage<Contact>(arena);
163 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
165 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
168 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
170 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
171 bool IsInitialized() const final;
173 size_t ByteSizeLong() const final;
174 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
175 uint8_t* _InternalSerialize(
176 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
177 int GetCachedSize() const final {
return _cached_size_.Get(); }
182 void SetCachedSize(
int size)
const final;
183 void InternalSwap(
Contact* other);
186 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
187 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
188 return "ignition.msgs.Contact";
191 explicit Contact(::PROTOBUF_NAMESPACE_ID::Arena* arena,
192 bool is_message_owned =
false);
194 static void ArenaDtor(
void*
object);
195 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
199 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
201 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
208 kPositionFieldNumber = 4,
209 kNormalFieldNumber = 5,
210 kDepthFieldNumber = 6,
211 kWrenchFieldNumber = 7,
212 kHeaderFieldNumber = 1,
213 kCollision1FieldNumber = 2,
214 kCollision2FieldNumber = 3,
215 kWorldFieldNumber = 8,
218 int position_size()
const;
220 int _internal_position_size()
const;
224 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d >*
227 const ::ignition::msgs::Vector3d& _internal_position(
int index)
const;
230 const ::ignition::msgs::Vector3d& position(
int index)
const;
232 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d >&
236 int normal_size()
const;
238 int _internal_normal_size()
const;
242 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d >*
245 const ::ignition::msgs::Vector3d& _internal_normal(
int index)
const;
248 const ::ignition::msgs::Vector3d& normal(
int index)
const;
250 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d >&
254 int depth_size()
const;
256 int _internal_depth_size()
const;
260 double _internal_depth(
int index)
const;
261 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
262 _internal_depth()
const;
263 void _internal_add_depth(
double value);
264 ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
265 _internal_mutable_depth();
267 double depth(
int index)
const;
268 void set_depth(
int index,
double value);
269 void add_depth(
double value);
270 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
272 ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
276 int wrench_size()
const;
278 int _internal_wrench_size()
const;
282 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::JointWrench >*
285 const ::ignition::msgs::JointWrench& _internal_wrench(
int index)
const;
288 const ::ignition::msgs::JointWrench& wrench(
int index)
const;
290 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::JointWrench >&
294 bool has_header()
const;
296 bool _internal_has_header()
const;
299 const ::ignition::msgs::Header& header()
const;
300 PROTOBUF_NODISCARD ::ignition::msgs::Header* release_header();
304 const ::ignition::msgs::Header& _internal_header()
const;
307 void unsafe_arena_set_allocated_header(
312 bool has_collision1()
const;
314 bool _internal_has_collision1()
const;
317 const ::ignition::msgs::Entity& collision1()
const;
318 PROTOBUF_NODISCARD ::ignition::msgs::Entity* release_collision1();
322 const ::ignition::msgs::Entity& _internal_collision1()
const;
325 void unsafe_arena_set_allocated_collision1(
330 bool has_collision2()
const;
332 bool _internal_has_collision2()
const;
335 const ::ignition::msgs::Entity& collision2()
const;
336 PROTOBUF_NODISCARD ::ignition::msgs::Entity* release_collision2();
340 const ::ignition::msgs::Entity& _internal_collision2()
const;
343 void unsafe_arena_set_allocated_collision2(
348 bool has_world()
const;
350 bool _internal_has_world()
const;
353 const ::ignition::msgs::Entity& world()
const;
354 PROTOBUF_NODISCARD ::ignition::msgs::Entity* release_world();
358 const ::ignition::msgs::Entity& _internal_world()
const;
361 void unsafe_arena_set_allocated_world(
369 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
370 typedef void InternalArenaConstructable_;
371 typedef void DestructorSkippable_;
372 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d > position_;
373 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d > normal_;
374 ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > depth_;
375 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::JointWrench > wrench_;
380 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
381 friend struct ::TableStruct_ignition_2fmsgs_2fcontact_2eproto;
389 #pragma GCC diagnostic push
390 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
395 inline bool Contact::_internal_has_header()
const {
396 return this != internal_default_instance() && header_ !=
nullptr;
399 return _internal_has_header();
401 inline const ::ignition::msgs::Header& Contact::_internal_header()
const {
402 const ::ignition::msgs::Header* p = header_;
408 return _internal_header();
412 if (GetArenaForAllocation() ==
nullptr) {
413 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
427 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
428 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
429 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
430 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
432 if (GetArenaForAllocation() !=
nullptr) {
433 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
445 inline ::ignition::msgs::Header* Contact::_internal_mutable_header() {
447 if (header_ ==
nullptr) {
448 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
459 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
460 if (message_arena ==
nullptr) {
461 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
464 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
465 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
466 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
467 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header));
468 if (message_arena != submessage_arena) {
469 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
470 message_arena, header, submessage_arena);
481 inline bool Contact::_internal_has_collision1()
const {
482 return this != internal_default_instance() && collision1_ !=
nullptr;
485 return _internal_has_collision1();
487 inline const ::ignition::msgs::Entity& Contact::_internal_collision1()
const {
488 const ::ignition::msgs::Entity* p = collision1_;
494 return _internal_collision1();
498 if (GetArenaForAllocation() ==
nullptr) {
499 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(collision1_);
501 collision1_ = collision1;
512 collision1_ =
nullptr;
513 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
514 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
515 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
516 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
518 if (GetArenaForAllocation() !=
nullptr) {
519 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
528 collision1_ =
nullptr;
531 inline ::ignition::msgs::Entity* Contact::_internal_mutable_collision1() {
533 if (collision1_ ==
nullptr) {
534 auto* p = CreateMaybeMessage<::ignition::msgs::Entity>(GetArenaForAllocation());
545 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
546 if (message_arena ==
nullptr) {
547 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(collision1_);
550 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
551 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
552 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
553 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(collision1));
554 if (message_arena != submessage_arena) {
555 collision1 = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
556 message_arena, collision1, submessage_arena);
562 collision1_ = collision1;
567 inline bool Contact::_internal_has_collision2()
const {
568 return this != internal_default_instance() && collision2_ !=
nullptr;
571 return _internal_has_collision2();
573 inline const ::ignition::msgs::Entity& Contact::_internal_collision2()
const {
574 const ::ignition::msgs::Entity* p = collision2_;
580 return _internal_collision2();
584 if (GetArenaForAllocation() ==
nullptr) {
585 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(collision2_);
587 collision2_ = collision2;
598 collision2_ =
nullptr;
599 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
600 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
601 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
602 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
604 if (GetArenaForAllocation() !=
nullptr) {
605 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
614 collision2_ =
nullptr;
617 inline ::ignition::msgs::Entity* Contact::_internal_mutable_collision2() {
619 if (collision2_ ==
nullptr) {
620 auto* p = CreateMaybeMessage<::ignition::msgs::Entity>(GetArenaForAllocation());
631 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
632 if (message_arena ==
nullptr) {
633 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(collision2_);
636 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
637 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
638 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
639 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(collision2));
640 if (message_arena != submessage_arena) {
641 collision2 = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
642 message_arena, collision2, submessage_arena);
648 collision2_ = collision2;
653 inline int Contact::_internal_position_size()
const {
654 return position_.size();
657 return _internal_position_size();
661 return position_.Mutable(index);
663 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d >*
668 inline const ::ignition::msgs::Vector3d& Contact::_internal_position(
int index)
const {
669 return position_.Get(index);
673 return _internal_position(index);
675 inline ::ignition::msgs::Vector3d* Contact::_internal_add_position() {
676 return position_.Add();
683 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d >&
690 inline int Contact::_internal_normal_size()
const {
691 return normal_.size();
694 return _internal_normal_size();
698 return normal_.Mutable(index);
700 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d >*
705 inline const ::ignition::msgs::Vector3d& Contact::_internal_normal(
int index)
const {
706 return normal_.Get(index);
710 return _internal_normal(index);
712 inline ::ignition::msgs::Vector3d* Contact::_internal_add_normal() {
713 return normal_.Add();
720 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Vector3d >&
727 inline int Contact::_internal_depth_size()
const {
728 return depth_.size();
731 return _internal_depth_size();
736 inline double Contact::_internal_depth(
int index)
const {
737 return depth_.Get(index);
741 return _internal_depth(index);
744 depth_.Set(index, value);
747 inline void Contact::_internal_add_depth(
double value) {
751 _internal_add_depth(value);
754 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
755 Contact::_internal_depth()
const {
758 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
761 return _internal_depth();
763 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
764 Contact::_internal_mutable_depth() {
767 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
770 return _internal_mutable_depth();
774 inline int Contact::_internal_wrench_size()
const {
775 return wrench_.size();
778 return _internal_wrench_size();
782 return wrench_.Mutable(index);
784 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::JointWrench >*
789 inline const ::ignition::msgs::JointWrench& Contact::_internal_wrench(
int index)
const {
790 return wrench_.Get(index);
794 return _internal_wrench(index);
796 inline ::ignition::msgs::JointWrench* Contact::_internal_add_wrench() {
797 return wrench_.Add();
804 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::JointWrench >&
811 inline bool Contact::_internal_has_world()
const {
812 return this != internal_default_instance() && world_ !=
nullptr;
815 return _internal_has_world();
817 inline const ::ignition::msgs::Entity& Contact::_internal_world()
const {
818 const ::ignition::msgs::Entity* p = world_;
824 return _internal_world();
828 if (GetArenaForAllocation() ==
nullptr) {
829 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(world_);
843 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
844 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
845 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
846 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
848 if (GetArenaForAllocation() !=
nullptr) {
849 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
861 inline ::ignition::msgs::Entity* Contact::_internal_mutable_world() {
863 if (world_ ==
nullptr) {
864 auto* p = CreateMaybeMessage<::ignition::msgs::Entity>(GetArenaForAllocation());
875 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
876 if (message_arena ==
nullptr) {
877 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(world_);
880 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
881 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
882 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
883 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(world));
884 if (message_arena != submessage_arena) {
885 world = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
886 message_arena, world, submessage_arena);
897 #pragma GCC diagnostic pop
914 #include <google/protobuf/port_undef.inc>
Definition: entity.pb.h:116
Definition: joint_wrench.pb.h:85
Definition: vector3d.pb.h:84
IGNITION_MSGS_VISIBLE EntityDefaultTypeInternal _Entity_default_instance_
IGNITION_MSGS_VISIBLE ContactDefaultTypeInternal _Contact_default_instance_
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< const Contact > ConstContactSharedPtr
Definition: contact.pb.h:903
std::unique_ptr< Contact > ContactUniquePtr
Definition: contact.pb.h:900
std::unique_ptr< const Contact > ConstContactUniquePtr
Definition: contact.pb.h:901
std::shared_ptr< Contact > ContactSharedPtr
Definition: contact.pb.h:902
Definition: actor.pb.h:52