4 #ifndef PROTOBUF_ignition_2fmsgs_2fimu_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fimu_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
IMU :
public ::google::protobuf::Message {
70 static const ::google::protobuf::Descriptor* descriptor();
71 static const IMU& default_instance();
73 void Swap(
IMU* other);
79 IMU* 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 IMU& from);
83 void MergeFrom(
const IMU& 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(
IMU* 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;
128 void clear_entity_name();
129 static const int kEntityNameFieldNumber = 2;
130 const ::std::string& entity_name()
const;
131 void set_entity_name(const ::std::string& value);
132 void set_entity_name(
const char* value);
133 void set_entity_name(
const char* value,
size_t size);
136 void set_allocated_entity_name(::
std::string* entity_name);
139 bool has_orientation()
const;
140 void clear_orientation();
141 static const int kOrientationFieldNumber = 3;
142 const ::ignition::msgs::Quaternion& orientation()
const;
148 bool has_angular_velocity()
const;
149 void clear_angular_velocity();
150 static const int kAngularVelocityFieldNumber = 4;
151 const ::ignition::msgs::Vector3d& angular_velocity()
const;
157 bool has_linear_acceleration()
const;
158 void clear_linear_acceleration();
159 static const int kLinearAccelerationFieldNumber = 5;
160 const ::ignition::msgs::Vector3d& linear_acceleration()
const;
168 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
169 bool _is_default_instance_;
171 ::google::protobuf::internal::ArenaStringPtr entity_name_;
175 mutable int _cached_size_;
180 void InitAsDefaultInstance();
181 static IMU* default_instance_;
188 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 193 return !_is_default_instance_ && header_ != NULL;
196 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
201 return header_ != NULL ? *header_ : *default_instance_->header_;
205 if (header_ == NULL) {
206 header_ = new ::ignition::msgs::Header;
231 entity_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
235 return entity_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
239 entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
244 entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
249 entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
250 ::
std::string(reinterpret_cast<const char*>(value), size));
256 return entity_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
261 return entity_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
264 if (entity_name != NULL) {
269 entity_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), entity_name);
275 return !_is_default_instance_ && orientation_ != NULL;
278 if (GetArenaNoVirtual() == NULL && orientation_ != NULL)
delete orientation_;
283 return orientation_ != NULL ? *orientation_ : *default_instance_->orientation_;
287 if (orientation_ == NULL) {
288 orientation_ = new ::ignition::msgs::Quaternion;
302 orientation_ = orientation;
313 return !_is_default_instance_ && angular_velocity_ != NULL;
316 if (GetArenaNoVirtual() == NULL && angular_velocity_ != NULL)
delete angular_velocity_;
317 angular_velocity_ = NULL;
321 return angular_velocity_ != NULL ? *angular_velocity_ : *default_instance_->angular_velocity_;
325 if (angular_velocity_ == NULL) {
326 angular_velocity_ = new ::ignition::msgs::Vector3d;
329 return angular_velocity_;
335 angular_velocity_ = NULL;
339 delete angular_velocity_;
340 angular_velocity_ = angular_velocity;
341 if (angular_velocity) {
351 return !_is_default_instance_ && linear_acceleration_ != NULL;
354 if (GetArenaNoVirtual() == NULL && linear_acceleration_ != NULL)
delete linear_acceleration_;
355 linear_acceleration_ = NULL;
359 return linear_acceleration_ != NULL ? *linear_acceleration_ : *default_instance_->linear_acceleration_;
363 if (linear_acceleration_ == NULL) {
364 linear_acceleration_ = new ::ignition::msgs::Vector3d;
367 return linear_acceleration_;
373 linear_acceleration_ = NULL;
377 delete linear_acceleration_;
378 linear_acceleration_ = linear_acceleration;
379 if (linear_acceleration) {
387 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 403 #endif // PROTOBUF_ignition_2fmsgs_2fimu_2eproto__INCLUDED
::ignition::msgs::Header * release_header()
Definition: imu.pb.h:211
void clear_orientation()
Definition: imu.pb.h:277
std::unique_ptr< IMU > IMUUniquePtr
Definition: imu.pb.h:389
::std::string * release_entity_name()
Definition: imu.pb.h:258
IMU * New() const
Definition: imu.pb.h:77
bool has_orientation() const
Definition: imu.pb.h:274
::ignition::msgs::Vector3d * release_linear_acceleration()
Definition: imu.pb.h:369
void set_allocated_orientation(::ignition::msgs::Quaternion *orientation)
Definition: imu.pb.h:300
void clear_linear_acceleration()
Definition: imu.pb.h:353
const ::ignition::msgs::Header & header() const
Definition: imu.pb.h:199
std::shared_ptr< IMU > IMUSharedPtr
Definition: imu.pb.h:391
std::unique_ptr< const IMU > ConstIMUUniquePtr
Definition: imu.pb.h:390
bool has_linear_acceleration() const
Definition: imu.pb.h:350
void set_entity_name(const ::std::string &value)
Definition: imu.pb.h:237
std::shared_ptr< const IMU > ConstIMUSharedPtr
Definition: imu.pb.h:392
void clear_angular_velocity()
Definition: imu.pb.h:315
const ::std::string & entity_name() const
Definition: imu.pb.h:233
void set_allocated_linear_acceleration(::ignition::msgs::Vector3d *linear_acceleration)
Definition: imu.pb.h:376
const ::ignition::msgs::Quaternion & orientation() const
Definition: imu.pb.h:281
bool has_angular_velocity() const
Definition: imu.pb.h:312
void protobuf_ShutdownFile_ignition_2fmsgs_2fimu_2eproto()
bool has_header() const
Definition: imu.pb.h:192
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: imu.pb.h:94
::ignition::msgs::Header * mutable_header()
Definition: imu.pb.h:203
const ::ignition::msgs::Vector3d & linear_acceleration() const
Definition: imu.pb.h:357
::ignition::msgs::Vector3d * mutable_angular_velocity()
Definition: imu.pb.h:323
Definition: vector3d.pb.h:56
::std::string * mutable_entity_name()
Definition: imu.pb.h:253
int GetCachedSize() const
Definition: imu.pb.h:97
::ignition::msgs::Vector3d * mutable_linear_acceleration()
Definition: imu.pb.h:361
void set_allocated_angular_velocity(::ignition::msgs::Vector3d *angular_velocity)
Definition: imu.pb.h:338
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fimu_2eproto()
::ignition::msgs::Vector3d * release_angular_velocity()
Definition: imu.pb.h:331
::ignition::msgs::Quaternion * release_orientation()
Definition: imu.pb.h:293
::ignition::msgs::Quaternion * mutable_orientation()
Definition: imu.pb.h:285
void clear_header()
Definition: imu.pb.h:195
void set_allocated_entity_name(::std::string *entity_name)
Definition: imu.pb.h:263
void clear_entity_name()
Definition: imu.pb.h:230
IMU & operator=(const IMU &from)
Definition: imu.pb.h:65
void set_allocated_header(::ignition::msgs::Header *header)
Definition: imu.pb.h:218
Definition: quaternion.pb.h:56
const ::ignition::msgs::Vector3d & angular_velocity() const
Definition: imu.pb.h:319
void protobuf_AssignDesc_ignition_2fmsgs_2fimu_2eproto()