Ignition Msgs

API Reference

7.1.0
imu.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/imu.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fimu_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fimu_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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>
33 #ifndef _MSC_VER
34 #pragma GCC system_header
35 #else
36 #pragma warning(push)
37 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
38 #endif
39 #ifdef __linux__
40 #include <sys/sysmacros.h>
41 #endif
42 #include <memory>
43 #include <ignition/msgs/Export.hh>
44 // @@protoc_insertion_point(includes)
45 
46 namespace ignition {
47 namespace msgs {
48 
49 // Internal implementation detail -- do not call these.
50 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fimu_2eproto();
53 
54 class IMU;
55 
56 // ===================================================================
57 
58 class IGNITION_MSGS_VISIBLE IMU : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.IMU) */ {
59  public:
60  IMU();
61  virtual ~IMU();
62 
63  IMU(const IMU& from);
64 
65  inline IMU& operator=(const IMU& from) {
66  CopyFrom(from);
67  return *this;
68  }
69 
70  static const ::google::protobuf::Descriptor* descriptor();
71  static const IMU& default_instance();
72 
73  void Swap(IMU* other);
74 
75  // implements Message ----------------------------------------------
76 
77  inline IMU* New() const { return New(NULL); }
78 
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);
84  void Clear();
85  bool IsInitialized() const;
86 
87  int ByteSize() 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;
94  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
95  return InternalSerializeWithCachedSizesToArray(false, output);
96  }
97  int GetCachedSize() const { return _cached_size_; }
98  private:
99  void SharedCtor();
100  void SharedDtor();
101  void SetCachedSize(int size) const;
102  void InternalSwap(IMU* other);
103  private:
104  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
105  return _internal_metadata_.arena();
106  }
107  inline void* MaybeArenaPtr() const {
108  return _internal_metadata_.raw_arena_ptr();
109  }
110  public:
111 
112  ::google::protobuf::Metadata GetMetadata() const;
113 
114  // nested types ----------------------------------------------------
115 
116  // accessors -------------------------------------------------------
117 
118  // optional .ignition.msgs.Header header = 1;
119  bool has_header() const;
120  void clear_header();
121  static const int kHeaderFieldNumber = 1;
122  const ::ignition::msgs::Header& header() const;
123  ::ignition::msgs::Header* mutable_header();
124  ::ignition::msgs::Header* release_header();
125  void set_allocated_header(::ignition::msgs::Header* header);
126 
127  // optional string entity_name = 2;
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);
134  ::std::string* mutable_entity_name();
135  ::std::string* release_entity_name();
136  void set_allocated_entity_name(::std::string* entity_name);
137 
138  // optional .ignition.msgs.Quaternion orientation = 3;
139  bool has_orientation() const;
140  void clear_orientation();
141  static const int kOrientationFieldNumber = 3;
142  const ::ignition::msgs::Quaternion& orientation() const;
143  ::ignition::msgs::Quaternion* mutable_orientation();
144  ::ignition::msgs::Quaternion* release_orientation();
145  void set_allocated_orientation(::ignition::msgs::Quaternion* orientation);
146 
147  // optional .ignition.msgs.Vector3d angular_velocity = 4;
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;
152  ::ignition::msgs::Vector3d* mutable_angular_velocity();
153  ::ignition::msgs::Vector3d* release_angular_velocity();
154  void set_allocated_angular_velocity(::ignition::msgs::Vector3d* angular_velocity);
155 
156  // optional .ignition.msgs.Vector3d linear_acceleration = 5;
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;
161  ::ignition::msgs::Vector3d* mutable_linear_acceleration();
162  ::ignition::msgs::Vector3d* release_linear_acceleration();
163  void set_allocated_linear_acceleration(::ignition::msgs::Vector3d* linear_acceleration);
164 
165  // @@protoc_insertion_point(class_scope:ignition.msgs.IMU)
166  private:
167 
168  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
169  bool _is_default_instance_;
170  ::ignition::msgs::Header* header_;
171  ::google::protobuf::internal::ArenaStringPtr entity_name_;
172  ::ignition::msgs::Quaternion* orientation_;
173  ::ignition::msgs::Vector3d* angular_velocity_;
174  ::ignition::msgs::Vector3d* linear_acceleration_;
175  mutable int _cached_size_;
176  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fimu_2eproto();
179 
180  void InitAsDefaultInstance();
181  static IMU* default_instance_;
182 };
183 // ===================================================================
184 
185 
186 // ===================================================================
187 
188 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
189 // IMU
190 
191 // optional .ignition.msgs.Header header = 1;
192 inline bool IMU::has_header() const {
193  return !_is_default_instance_ && header_ != NULL;
194 }
195 inline void IMU::clear_header() {
196  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
197  header_ = NULL;
198 }
199 inline const ::ignition::msgs::Header& IMU::header() const {
200  // @@protoc_insertion_point(field_get:ignition.msgs.IMU.header)
201  return header_ != NULL ? *header_ : *default_instance_->header_;
202 }
203 inline ::ignition::msgs::Header* IMU::mutable_header() {
204 
205  if (header_ == NULL) {
206  header_ = new ::ignition::msgs::Header;
207  }
208  // @@protoc_insertion_point(field_mutable:ignition.msgs.IMU.header)
209  return header_;
210 }
211 inline ::ignition::msgs::Header* IMU::release_header() {
212  // @@protoc_insertion_point(field_release:ignition.msgs.IMU.header)
213 
214  ::ignition::msgs::Header* temp = header_;
215  header_ = NULL;
216  return temp;
217 }
219  delete header_;
220  header_ = header;
221  if (header) {
222 
223  } else {
224 
225  }
226  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.IMU.header)
227 }
228 
229 // optional string entity_name = 2;
230 inline void IMU::clear_entity_name() {
231  entity_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
232 }
233 inline const ::std::string& IMU::entity_name() const {
234  // @@protoc_insertion_point(field_get:ignition.msgs.IMU.entity_name)
235  return entity_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
236 }
237 inline void IMU::set_entity_name(const ::std::string& value) {
238 
239  entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
240  // @@protoc_insertion_point(field_set:ignition.msgs.IMU.entity_name)
241 }
242 inline void IMU::set_entity_name(const char* value) {
243 
244  entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
245  // @@protoc_insertion_point(field_set_char:ignition.msgs.IMU.entity_name)
246 }
247 inline void IMU::set_entity_name(const char* value, size_t size) {
248 
249  entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
250  ::std::string(reinterpret_cast<const char*>(value), size));
251  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.IMU.entity_name)
252 }
253 inline ::std::string* IMU::mutable_entity_name() {
254 
255  // @@protoc_insertion_point(field_mutable:ignition.msgs.IMU.entity_name)
256  return entity_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
257 }
258 inline ::std::string* IMU::release_entity_name() {
259  // @@protoc_insertion_point(field_release:ignition.msgs.IMU.entity_name)
260 
261  return entity_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
262 }
263 inline void IMU::set_allocated_entity_name(::std::string* entity_name) {
264  if (entity_name != NULL) {
265 
266  } else {
267 
268  }
269  entity_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), entity_name);
270  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.IMU.entity_name)
271 }
272 
273 // optional .ignition.msgs.Quaternion orientation = 3;
274 inline bool IMU::has_orientation() const {
275  return !_is_default_instance_ && orientation_ != NULL;
276 }
277 inline void IMU::clear_orientation() {
278  if (GetArenaNoVirtual() == NULL && orientation_ != NULL) delete orientation_;
279  orientation_ = NULL;
280 }
281 inline const ::ignition::msgs::Quaternion& IMU::orientation() const {
282  // @@protoc_insertion_point(field_get:ignition.msgs.IMU.orientation)
283  return orientation_ != NULL ? *orientation_ : *default_instance_->orientation_;
284 }
285 inline ::ignition::msgs::Quaternion* IMU::mutable_orientation() {
286 
287  if (orientation_ == NULL) {
288  orientation_ = new ::ignition::msgs::Quaternion;
289  }
290  // @@protoc_insertion_point(field_mutable:ignition.msgs.IMU.orientation)
291  return orientation_;
292 }
293 inline ::ignition::msgs::Quaternion* IMU::release_orientation() {
294  // @@protoc_insertion_point(field_release:ignition.msgs.IMU.orientation)
295 
296  ::ignition::msgs::Quaternion* temp = orientation_;
297  orientation_ = NULL;
298  return temp;
299 }
301  delete orientation_;
302  orientation_ = orientation;
303  if (orientation) {
304 
305  } else {
306 
307  }
308  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.IMU.orientation)
309 }
310 
311 // optional .ignition.msgs.Vector3d angular_velocity = 4;
312 inline bool IMU::has_angular_velocity() const {
313  return !_is_default_instance_ && angular_velocity_ != NULL;
314 }
316  if (GetArenaNoVirtual() == NULL && angular_velocity_ != NULL) delete angular_velocity_;
317  angular_velocity_ = NULL;
318 }
319 inline const ::ignition::msgs::Vector3d& IMU::angular_velocity() const {
320  // @@protoc_insertion_point(field_get:ignition.msgs.IMU.angular_velocity)
321  return angular_velocity_ != NULL ? *angular_velocity_ : *default_instance_->angular_velocity_;
322 }
323 inline ::ignition::msgs::Vector3d* IMU::mutable_angular_velocity() {
324 
325  if (angular_velocity_ == NULL) {
326  angular_velocity_ = new ::ignition::msgs::Vector3d;
327  }
328  // @@protoc_insertion_point(field_mutable:ignition.msgs.IMU.angular_velocity)
329  return angular_velocity_;
330 }
331 inline ::ignition::msgs::Vector3d* IMU::release_angular_velocity() {
332  // @@protoc_insertion_point(field_release:ignition.msgs.IMU.angular_velocity)
333 
334  ::ignition::msgs::Vector3d* temp = angular_velocity_;
335  angular_velocity_ = NULL;
336  return temp;
337 }
339  delete angular_velocity_;
340  angular_velocity_ = angular_velocity;
341  if (angular_velocity) {
342 
343  } else {
344 
345  }
346  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.IMU.angular_velocity)
347 }
348 
349 // optional .ignition.msgs.Vector3d linear_acceleration = 5;
350 inline bool IMU::has_linear_acceleration() const {
351  return !_is_default_instance_ && linear_acceleration_ != NULL;
352 }
354  if (GetArenaNoVirtual() == NULL && linear_acceleration_ != NULL) delete linear_acceleration_;
355  linear_acceleration_ = NULL;
356 }
357 inline const ::ignition::msgs::Vector3d& IMU::linear_acceleration() const {
358  // @@protoc_insertion_point(field_get:ignition.msgs.IMU.linear_acceleration)
359  return linear_acceleration_ != NULL ? *linear_acceleration_ : *default_instance_->linear_acceleration_;
360 }
361 inline ::ignition::msgs::Vector3d* IMU::mutable_linear_acceleration() {
362 
363  if (linear_acceleration_ == NULL) {
364  linear_acceleration_ = new ::ignition::msgs::Vector3d;
365  }
366  // @@protoc_insertion_point(field_mutable:ignition.msgs.IMU.linear_acceleration)
367  return linear_acceleration_;
368 }
369 inline ::ignition::msgs::Vector3d* IMU::release_linear_acceleration() {
370  // @@protoc_insertion_point(field_release:ignition.msgs.IMU.linear_acceleration)
371 
372  ::ignition::msgs::Vector3d* temp = linear_acceleration_;
373  linear_acceleration_ = NULL;
374  return temp;
375 }
377  delete linear_acceleration_;
378  linear_acceleration_ = linear_acceleration;
379  if (linear_acceleration) {
380 
381  } else {
382 
383  }
384  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.IMU.linear_acceleration)
385 }
386 
387 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
388 
393 // @@protoc_insertion_point(namespace_scope)
394 
395 } // namespace msgs
396 } // namespace ignition
397 
398 #ifdef _MSC_VER
399 #pragma warning(pop)
400 #endif
401 // @@protoc_insertion_point(global_scope)
402 
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
Definition: imu.pb.h:58
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
Definition: header.pb.h:161
STL class.
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
STL class.
::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()