4 #ifndef PROTOBUF_ignition_2fmsgs_2fpose_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fpose_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> 34 #pragma GCC system_header 37 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 40 #include <sys/sysmacros.h> 58 class IGNITION_MSGS_VISIBLE
Pose :
public ::google::protobuf::Message {
70 static const ::google::protobuf::Descriptor* descriptor();
71 static const Pose& default_instance();
73 void Swap(
Pose* other);
79 Pose* New(::google::protobuf::Arena* arena)
const;
80 void CopyFrom(const ::google::protobuf::Message& from);
81 void MergeFrom(const ::google::protobuf::Message& from);
82 void CopyFrom(
const Pose& from);
83 void MergeFrom(
const Pose& from);
85 bool IsInitialized()
const;
88 bool MergePartialFromCodedStream(
89 ::google::protobuf::io::CodedInputStream* input);
90 void SerializeWithCachedSizes(
91 ::google::protobuf::io::CodedOutputStream* output)
const;
92 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
93 bool deterministic, ::google::protobuf::uint8* output)
const;
95 return InternalSerializeWithCachedSizesToArray(
false, output);
101 void SetCachedSize(
int size)
const;
102 void InternalSwap(
Pose* other);
104 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
105 return _internal_metadata_.arena();
107 inline void* MaybeArenaPtr()
const {
108 return _internal_metadata_.raw_arena_ptr();
112 ::google::protobuf::Metadata GetMetadata()
const;
119 bool has_header()
const;
121 static const int kHeaderFieldNumber = 1;
122 const ::ignition::msgs::Header& header()
const;
129 static const int kNameFieldNumber = 2;
130 const ::std::string& name()
const;
131 void set_name(const ::std::string& value);
132 void set_name(
const char* value);
133 void set_name(
const char* value,
size_t size);
140 static const int kIdFieldNumber = 3;
141 ::google::protobuf::uint32 id()
const;
142 void set_id(::google::protobuf::uint32 value);
145 bool has_position()
const;
146 void clear_position();
147 static const int kPositionFieldNumber = 4;
148 const ::ignition::msgs::Vector3d& position()
const;
154 bool has_orientation()
const;
155 void clear_orientation();
156 static const int kOrientationFieldNumber = 5;
157 const ::ignition::msgs::Quaternion& orientation()
const;
165 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
166 bool _is_default_instance_;
168 ::google::protobuf::internal::ArenaStringPtr name_;
171 ::google::protobuf::uint32 id_;
172 mutable int _cached_size_;
177 void InitAsDefaultInstance();
178 static Pose* default_instance_;
185 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 190 return !_is_default_instance_ && header_ != NULL;
193 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
198 return header_ != NULL ? *header_ : *default_instance_->header_;
202 if (header_ == NULL) {
203 header_ = new ::ignition::msgs::Header;
228 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
232 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
236 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
241 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
246 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
247 ::
std::string(reinterpret_cast<const char*>(value), size));
253 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
258 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
266 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
274 inline ::google::protobuf::uint32
Pose::id()
const {
286 return !_is_default_instance_ && position_ != NULL;
289 if (GetArenaNoVirtual() == NULL && position_ != NULL)
delete position_;
294 return position_ != NULL ? *position_ : *default_instance_->position_;
298 if (position_ == NULL) {
299 position_ = new ::ignition::msgs::Vector3d;
313 position_ = position;
324 return !_is_default_instance_ && orientation_ != NULL;
327 if (GetArenaNoVirtual() == NULL && orientation_ != NULL)
delete orientation_;
332 return orientation_ != NULL ? *orientation_ : *default_instance_->orientation_;
336 if (orientation_ == NULL) {
337 orientation_ = new ::ignition::msgs::Quaternion;
351 orientation_ = orientation;
360 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 376 #endif // PROTOBUF_ignition_2fmsgs_2fpose_2eproto__INCLUDED ::ignition::msgs::Vector3d * release_position()
Definition: pose.pb.h:304
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: pose.pb.h:94
void set_id(::google::protobuf::uint32 value)
Definition: pose.pb.h:278
::ignition::msgs::Header * mutable_header()
Definition: pose.pb.h:200
std::shared_ptr< Pose > PoseSharedPtr
Definition: pose.pb.h:364
void set_allocated_name(::std::string *name)
Definition: pose.pb.h:260
std::unique_ptr< Pose > PoseUniquePtr
Definition: pose.pb.h:362
void set_allocated_position(::ignition::msgs::Vector3d *position)
Definition: pose.pb.h:311
const ::std::string & name() const
Definition: pose.pb.h:230
void set_allocated_orientation(::ignition::msgs::Quaternion *orientation)
Definition: pose.pb.h:349
::std::string * release_name()
Definition: pose.pb.h:255
void clear_id()
Definition: pose.pb.h:271
::ignition::msgs::Vector3d * mutable_position()
Definition: pose.pb.h:296
const ::ignition::msgs::Header & header() const
Definition: pose.pb.h:196
void clear_orientation()
Definition: pose.pb.h:326
const ::ignition::msgs::Vector3d & position() const
Definition: pose.pb.h:292
void protobuf_ShutdownFile_ignition_2fmsgs_2fpose_2eproto()
::ignition::msgs::Quaternion * release_orientation()
Definition: pose.pb.h:342
::google::protobuf::uint32 id() const
Definition: pose.pb.h:274
bool has_position() const
Definition: pose.pb.h:285
void clear_position()
Definition: pose.pb.h:288
::std::string * mutable_name()
Definition: pose.pb.h:250
std::unique_ptr< const Pose > ConstPoseUniquePtr
Definition: pose.pb.h:363
::ignition::msgs::Header * release_header()
Definition: pose.pb.h:208
bool has_orientation() const
Definition: pose.pb.h:323
Definition: vector3d.pb.h:56
Pose * New() const
Definition: pose.pb.h:77
const ::ignition::msgs::Quaternion & orientation() const
Definition: pose.pb.h:330
void clear_header()
Definition: pose.pb.h:192
void protobuf_AssignDesc_ignition_2fmsgs_2fpose_2eproto()
bool has_header() const
Definition: pose.pb.h:189
void set_name(const ::std::string &value)
Definition: pose.pb.h:234
void clear_name()
Definition: pose.pb.h:227
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fpose_2eproto()
Pose & operator=(const Pose &from)
Definition: pose.pb.h:65
void set_allocated_header(::ignition::msgs::Header *header)
Definition: pose.pb.h:215
std::shared_ptr< const Pose > ConstPoseSharedPtr
Definition: pose.pb.h:365
Definition: quaternion.pb.h:56
int GetCachedSize() const
Definition: pose.pb.h:97
::ignition::msgs::Quaternion * mutable_orientation()
Definition: pose.pb.h:334