Ignition Msgs

API Reference

7.1.0
inertial.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/inertial.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2finertial_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2finertial_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>
30 #include "ignition/msgs/pose.pb.h"
32 #ifndef _MSC_VER
33 #pragma GCC system_header
34 #else
35 #pragma warning(push)
36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
37 #endif
38 #ifdef __linux__
39 #include <sys/sysmacros.h>
40 #endif
41 #include <memory>
42 #include <ignition/msgs/Export.hh>
43 // @@protoc_insertion_point(includes)
44 
45 namespace ignition {
46 namespace msgs {
47 
48 // Internal implementation detail -- do not call these.
49 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2finertial_2eproto();
52 
53 class Inertial;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE Inertial : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Inertial) */ {
58  public:
59  Inertial();
60  virtual ~Inertial();
61 
62  Inertial(const Inertial& from);
63 
64  inline Inertial& operator=(const Inertial& from) {
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const Inertial& default_instance();
71 
72  void Swap(Inertial* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline Inertial* New() const { return New(NULL); }
77 
78  Inertial* New(::google::protobuf::Arena* arena) const;
79  void CopyFrom(const ::google::protobuf::Message& from);
80  void MergeFrom(const ::google::protobuf::Message& from);
81  void CopyFrom(const Inertial& from);
82  void MergeFrom(const Inertial& from);
83  void Clear();
84  bool IsInitialized() const;
85 
86  int ByteSize() const;
87  bool MergePartialFromCodedStream(
88  ::google::protobuf::io::CodedInputStream* input);
89  void SerializeWithCachedSizes(
90  ::google::protobuf::io::CodedOutputStream* output) const;
91  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
92  bool deterministic, ::google::protobuf::uint8* output) const;
93  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
94  return InternalSerializeWithCachedSizesToArray(false, output);
95  }
96  int GetCachedSize() const { return _cached_size_; }
97  private:
98  void SharedCtor();
99  void SharedDtor();
100  void SetCachedSize(int size) const;
101  void InternalSwap(Inertial* other);
102  private:
103  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
104  return _internal_metadata_.arena();
105  }
106  inline void* MaybeArenaPtr() const {
107  return _internal_metadata_.raw_arena_ptr();
108  }
109  public:
110 
111  ::google::protobuf::Metadata GetMetadata() const;
112 
113  // nested types ----------------------------------------------------
114 
115  // accessors -------------------------------------------------------
116 
117  // optional .ignition.msgs.Header header = 1;
118  bool has_header() const;
119  void clear_header();
120  static const int kHeaderFieldNumber = 1;
121  const ::ignition::msgs::Header& header() const;
122  ::ignition::msgs::Header* mutable_header();
123  ::ignition::msgs::Header* release_header();
124  void set_allocated_header(::ignition::msgs::Header* header);
125 
126  // optional double mass = 2;
127  void clear_mass();
128  static const int kMassFieldNumber = 2;
129  double mass() const;
130  void set_mass(double value);
131 
132  // optional .ignition.msgs.Pose pose = 3;
133  bool has_pose() const;
134  void clear_pose();
135  static const int kPoseFieldNumber = 3;
136  const ::ignition::msgs::Pose& pose() const;
137  ::ignition::msgs::Pose* mutable_pose();
138  ::ignition::msgs::Pose* release_pose();
139  void set_allocated_pose(::ignition::msgs::Pose* pose);
140 
141  // optional double ixx = 4;
142  void clear_ixx();
143  static const int kIxxFieldNumber = 4;
144  double ixx() const;
145  void set_ixx(double value);
146 
147  // optional double ixy = 5;
148  void clear_ixy();
149  static const int kIxyFieldNumber = 5;
150  double ixy() const;
151  void set_ixy(double value);
152 
153  // optional double ixz = 6;
154  void clear_ixz();
155  static const int kIxzFieldNumber = 6;
156  double ixz() const;
157  void set_ixz(double value);
158 
159  // optional double iyy = 7;
160  void clear_iyy();
161  static const int kIyyFieldNumber = 7;
162  double iyy() const;
163  void set_iyy(double value);
164 
165  // optional double iyz = 8;
166  void clear_iyz();
167  static const int kIyzFieldNumber = 8;
168  double iyz() const;
169  void set_iyz(double value);
170 
171  // optional double izz = 9;
172  void clear_izz();
173  static const int kIzzFieldNumber = 9;
174  double izz() const;
175  void set_izz(double value);
176 
177  // @@protoc_insertion_point(class_scope:ignition.msgs.Inertial)
178  private:
179 
180  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
181  bool _is_default_instance_;
182  ::ignition::msgs::Header* header_;
183  double mass_;
184  ::ignition::msgs::Pose* pose_;
185  double ixx_;
186  double ixy_;
187  double ixz_;
188  double iyy_;
189  double iyz_;
190  double izz_;
191  mutable int _cached_size_;
192  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2finertial_2eproto();
195 
196  void InitAsDefaultInstance();
197  static Inertial* default_instance_;
198 };
199 // ===================================================================
200 
201 
202 // ===================================================================
203 
204 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
205 // Inertial
206 
207 // optional .ignition.msgs.Header header = 1;
208 inline bool Inertial::has_header() const {
209  return !_is_default_instance_ && header_ != NULL;
210 }
211 inline void Inertial::clear_header() {
212  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
213  header_ = NULL;
214 }
215 inline const ::ignition::msgs::Header& Inertial::header() const {
216  // @@protoc_insertion_point(field_get:ignition.msgs.Inertial.header)
217  return header_ != NULL ? *header_ : *default_instance_->header_;
218 }
219 inline ::ignition::msgs::Header* Inertial::mutable_header() {
220 
221  if (header_ == NULL) {
222  header_ = new ::ignition::msgs::Header;
223  }
224  // @@protoc_insertion_point(field_mutable:ignition.msgs.Inertial.header)
225  return header_;
226 }
227 inline ::ignition::msgs::Header* Inertial::release_header() {
228  // @@protoc_insertion_point(field_release:ignition.msgs.Inertial.header)
229 
230  ::ignition::msgs::Header* temp = header_;
231  header_ = NULL;
232  return temp;
233 }
235  delete header_;
236  header_ = header;
237  if (header) {
238 
239  } else {
240 
241  }
242  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Inertial.header)
243 }
244 
245 // optional double mass = 2;
246 inline void Inertial::clear_mass() {
247  mass_ = 0;
248 }
249 inline double Inertial::mass() const {
250  // @@protoc_insertion_point(field_get:ignition.msgs.Inertial.mass)
251  return mass_;
252 }
253 inline void Inertial::set_mass(double value) {
254 
255  mass_ = value;
256  // @@protoc_insertion_point(field_set:ignition.msgs.Inertial.mass)
257 }
258 
259 // optional .ignition.msgs.Pose pose = 3;
260 inline bool Inertial::has_pose() const {
261  return !_is_default_instance_ && pose_ != NULL;
262 }
263 inline void Inertial::clear_pose() {
264  if (GetArenaNoVirtual() == NULL && pose_ != NULL) delete pose_;
265  pose_ = NULL;
266 }
267 inline const ::ignition::msgs::Pose& Inertial::pose() const {
268  // @@protoc_insertion_point(field_get:ignition.msgs.Inertial.pose)
269  return pose_ != NULL ? *pose_ : *default_instance_->pose_;
270 }
271 inline ::ignition::msgs::Pose* Inertial::mutable_pose() {
272 
273  if (pose_ == NULL) {
274  pose_ = new ::ignition::msgs::Pose;
275  }
276  // @@protoc_insertion_point(field_mutable:ignition.msgs.Inertial.pose)
277  return pose_;
278 }
279 inline ::ignition::msgs::Pose* Inertial::release_pose() {
280  // @@protoc_insertion_point(field_release:ignition.msgs.Inertial.pose)
281 
282  ::ignition::msgs::Pose* temp = pose_;
283  pose_ = NULL;
284  return temp;
285 }
287  delete pose_;
288  pose_ = pose;
289  if (pose) {
290 
291  } else {
292 
293  }
294  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Inertial.pose)
295 }
296 
297 // optional double ixx = 4;
298 inline void Inertial::clear_ixx() {
299  ixx_ = 0;
300 }
301 inline double Inertial::ixx() const {
302  // @@protoc_insertion_point(field_get:ignition.msgs.Inertial.ixx)
303  return ixx_;
304 }
305 inline void Inertial::set_ixx(double value) {
306 
307  ixx_ = value;
308  // @@protoc_insertion_point(field_set:ignition.msgs.Inertial.ixx)
309 }
310 
311 // optional double ixy = 5;
312 inline void Inertial::clear_ixy() {
313  ixy_ = 0;
314 }
315 inline double Inertial::ixy() const {
316  // @@protoc_insertion_point(field_get:ignition.msgs.Inertial.ixy)
317  return ixy_;
318 }
319 inline void Inertial::set_ixy(double value) {
320 
321  ixy_ = value;
322  // @@protoc_insertion_point(field_set:ignition.msgs.Inertial.ixy)
323 }
324 
325 // optional double ixz = 6;
326 inline void Inertial::clear_ixz() {
327  ixz_ = 0;
328 }
329 inline double Inertial::ixz() const {
330  // @@protoc_insertion_point(field_get:ignition.msgs.Inertial.ixz)
331  return ixz_;
332 }
333 inline void Inertial::set_ixz(double value) {
334 
335  ixz_ = value;
336  // @@protoc_insertion_point(field_set:ignition.msgs.Inertial.ixz)
337 }
338 
339 // optional double iyy = 7;
340 inline void Inertial::clear_iyy() {
341  iyy_ = 0;
342 }
343 inline double Inertial::iyy() const {
344  // @@protoc_insertion_point(field_get:ignition.msgs.Inertial.iyy)
345  return iyy_;
346 }
347 inline void Inertial::set_iyy(double value) {
348 
349  iyy_ = value;
350  // @@protoc_insertion_point(field_set:ignition.msgs.Inertial.iyy)
351 }
352 
353 // optional double iyz = 8;
354 inline void Inertial::clear_iyz() {
355  iyz_ = 0;
356 }
357 inline double Inertial::iyz() const {
358  // @@protoc_insertion_point(field_get:ignition.msgs.Inertial.iyz)
359  return iyz_;
360 }
361 inline void Inertial::set_iyz(double value) {
362 
363  iyz_ = value;
364  // @@protoc_insertion_point(field_set:ignition.msgs.Inertial.iyz)
365 }
366 
367 // optional double izz = 9;
368 inline void Inertial::clear_izz() {
369  izz_ = 0;
370 }
371 inline double Inertial::izz() const {
372  // @@protoc_insertion_point(field_get:ignition.msgs.Inertial.izz)
373  return izz_;
374 }
375 inline void Inertial::set_izz(double value) {
376 
377  izz_ = value;
378  // @@protoc_insertion_point(field_set:ignition.msgs.Inertial.izz)
379 }
380 
381 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
382 
387 // @@protoc_insertion_point(namespace_scope)
388 
389 } // namespace msgs
390 } // namespace ignition
391 
392 #ifdef _MSC_VER
393 #pragma warning(pop)
394 #endif
395 // @@protoc_insertion_point(global_scope)
396 
397 #endif // PROTOBUF_ignition_2fmsgs_2finertial_2eproto__INCLUDED
::ignition::msgs::Pose * mutable_pose()
Definition: inertial.pb.h:271
double izz() const
Definition: inertial.pb.h:371
double mass() const
Definition: inertial.pb.h:249
::ignition::msgs::Header * mutable_header()
Definition: inertial.pb.h:219
Inertial & operator=(const Inertial &from)
Definition: inertial.pb.h:64
Definition: pose.pb.h:58
void set_ixz(double value)
Definition: inertial.pb.h:333
double iyz() const
Definition: inertial.pb.h:357
void set_allocated_pose(::ignition::msgs::Pose *pose)
Definition: inertial.pb.h:286
void set_izz(double value)
Definition: inertial.pb.h:375
void clear_ixy()
Definition: inertial.pb.h:312
::ignition::msgs::Pose * release_pose()
Definition: inertial.pb.h:279
void clear_header()
Definition: inertial.pb.h:211
std::shared_ptr< Inertial > InertialSharedPtr
Definition: inertial.pb.h:385
const ::ignition::msgs::Header & header() const
Definition: inertial.pb.h:215
void clear_iyz()
Definition: inertial.pb.h:354
void set_mass(double value)
Definition: inertial.pb.h:253
void set_allocated_header(::ignition::msgs::Header *header)
Definition: inertial.pb.h:234
void protobuf_AssignDesc_ignition_2fmsgs_2finertial_2eproto()
const ::ignition::msgs::Pose & pose() const
Definition: inertial.pb.h:267
Definition: header.pb.h:161
double ixy() const
Definition: inertial.pb.h:315
void clear_ixz()
Definition: inertial.pb.h:326
bool has_pose() const
Definition: inertial.pb.h:260
void clear_pose()
Definition: inertial.pb.h:263
void set_ixy(double value)
Definition: inertial.pb.h:319
double iyy() const
Definition: inertial.pb.h:343
void clear_izz()
Definition: inertial.pb.h:368
std::shared_ptr< const Inertial > ConstInertialSharedPtr
Definition: inertial.pb.h:386
Definition: inertial.pb.h:57
void clear_mass()
Definition: inertial.pb.h:246
int GetCachedSize() const
Definition: inertial.pb.h:96
double ixz() const
Definition: inertial.pb.h:329
Inertial * New() const
Definition: inertial.pb.h:76
void clear_iyy()
Definition: inertial.pb.h:340
std::unique_ptr< Inertial > InertialUniquePtr
Definition: inertial.pb.h:383
STL class.
void set_ixx(double value)
Definition: inertial.pb.h:305
double ixx() const
Definition: inertial.pb.h:301
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2finertial_2eproto()
bool has_header() const
Definition: inertial.pb.h:208
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: inertial.pb.h:93
void set_iyy(double value)
Definition: inertial.pb.h:347
::ignition::msgs::Header * release_header()
Definition: inertial.pb.h:227
void clear_ixx()
Definition: inertial.pb.h:298
void set_iyz(double value)
Definition: inertial.pb.h:361
std::unique_ptr< const Inertial > ConstInertialUniquePtr
Definition: inertial.pb.h:384
void protobuf_ShutdownFile_ignition_2fmsgs_2finertial_2eproto()