4 #ifndef PROTOBUF_ignition_2fmsgs_2fcontact_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fcontact_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> 35 #pragma GCC system_header 38 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 41 #include <sys/sysmacros.h> 59 class IGNITION_MSGS_VISIBLE
Contact :
public ::google::protobuf::Message {
71 static const ::google::protobuf::Descriptor* descriptor();
72 static const Contact& default_instance();
80 Contact* New(::google::protobuf::Arena* arena)
const;
81 void CopyFrom(const ::google::protobuf::Message& from);
82 void MergeFrom(const ::google::protobuf::Message& from);
83 void CopyFrom(
const Contact& from);
84 void MergeFrom(
const Contact& from);
86 bool IsInitialized()
const;
89 bool MergePartialFromCodedStream(
90 ::google::protobuf::io::CodedInputStream* input);
91 void SerializeWithCachedSizes(
92 ::google::protobuf::io::CodedOutputStream* output)
const;
93 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
94 bool deterministic, ::google::protobuf::uint8* output)
const;
96 return InternalSerializeWithCachedSizesToArray(
false, output);
102 void SetCachedSize(
int size)
const;
103 void InternalSwap(
Contact* other);
105 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
106 return _internal_metadata_.arena();
108 inline void* MaybeArenaPtr()
const {
109 return _internal_metadata_.raw_arena_ptr();
113 ::google::protobuf::Metadata GetMetadata()
const;
120 bool has_header()
const;
122 static const int kHeaderFieldNumber = 1;
123 const ::ignition::msgs::Header& header()
const;
129 bool has_collision1()
const;
130 void clear_collision1();
131 static const int kCollision1FieldNumber = 2;
132 const ::ignition::msgs::Entity& collision1()
const;
138 bool has_collision2()
const;
139 void clear_collision2();
140 static const int kCollision2FieldNumber = 3;
141 const ::ignition::msgs::Entity& collision2()
const;
147 int position_size()
const;
148 void clear_position();
149 static const int kPositionFieldNumber = 4;
150 const ::ignition::msgs::Vector3d& position(
int index)
const;
153 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
155 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
159 int normal_size()
const;
161 static const int kNormalFieldNumber = 5;
162 const ::ignition::msgs::Vector3d& normal(
int index)
const;
165 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
167 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
171 int depth_size()
const;
173 static const int kDepthFieldNumber = 6;
174 double depth(
int index)
const;
175 void set_depth(
int index,
double value);
176 void add_depth(
double value);
177 const ::google::protobuf::RepeatedField< double >&
179 ::google::protobuf::RepeatedField< double >*
183 int wrench_size()
const;
185 static const int kWrenchFieldNumber = 7;
186 const ::ignition::msgs::JointWrench& wrench(
int index)
const;
189 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::JointWrench >*
191 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::JointWrench >&
195 bool has_world()
const;
197 static const int kWorldFieldNumber = 8;
198 const ::ignition::msgs::Entity& world()
const;
206 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
207 bool _is_default_instance_;
211 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > position_;
212 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > normal_;
213 ::google::protobuf::RepeatedField< double > depth_;
214 mutable int _depth_cached_byte_size_;
215 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::JointWrench > wrench_;
217 mutable int _cached_size_;
222 void InitAsDefaultInstance();
223 static Contact* default_instance_;
230 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 235 return !_is_default_instance_ && header_ != NULL;
238 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
243 return header_ != NULL ? *header_ : *default_instance_->header_;
247 if (header_ == NULL) {
248 header_ = new ::ignition::msgs::Header;
273 return !_is_default_instance_ && collision1_ != NULL;
276 if (GetArenaNoVirtual() == NULL && collision1_ != NULL)
delete collision1_;
281 return collision1_ != NULL ? *collision1_ : *default_instance_->collision1_;
285 if (collision1_ == NULL) {
286 collision1_ = new ::ignition::msgs::Entity;
300 collision1_ = collision1;
311 return !_is_default_instance_ && collision2_ != NULL;
314 if (GetArenaNoVirtual() == NULL && collision2_ != NULL)
delete collision2_;
319 return collision2_ != NULL ? *collision2_ : *default_instance_->collision2_;
323 if (collision2_ == NULL) {
324 collision2_ = new ::ignition::msgs::Entity;
338 collision2_ = collision2;
349 return position_.size();
356 return position_.Get(index);
360 return position_.Mutable(index);
364 return position_.Add();
366 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
371 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
379 return normal_.size();
386 return normal_.Get(index);
390 return normal_.Mutable(index);
394 return normal_.Add();
396 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
401 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
409 return depth_.size();
416 return depth_.Get(index);
419 depth_.Set(index, value);
426 inline const ::google::protobuf::RepeatedField< double >&
431 inline ::google::protobuf::RepeatedField< double >*
439 return wrench_.size();
446 return wrench_.Get(index);
450 return wrench_.Mutable(index);
454 return wrench_.Add();
456 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::JointWrench >*
461 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::JointWrench >&
469 return !_is_default_instance_ && world_ != NULL;
472 if (GetArenaNoVirtual() == NULL && world_ != NULL)
delete world_;
477 return world_ != NULL ? *world_ : *default_instance_->world_;
481 if (world_ == NULL) {
482 world_ = new ::ignition::msgs::Entity;
505 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 521 #endif // PROTOBUF_ignition_2fmsgs_2fcontact_2eproto__INCLUDED
void protobuf_AssignDesc_ignition_2fmsgs_2fcontact_2eproto()
Definition: joint_wrench.pb.h:57
std::shared_ptr< Contact > ContactSharedPtr
Definition: contact.pb.h:509
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fcontact_2eproto()
std::unique_ptr< const Contact > ConstContactUniquePtr
Definition: contact.pb.h:508
std::unique_ptr< Contact > ContactUniquePtr
Definition: contact.pb.h:507
void protobuf_ShutdownFile_ignition_2fmsgs_2fcontact_2eproto()
Definition: vector3d.pb.h:56
std::shared_ptr< const Contact > ConstContactSharedPtr
Definition: contact.pb.h:510
Definition: entity.pb.h:84