Gazebo Msgs

API Reference

9.5.1
odometry.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/odometry.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fodometry_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fodometry_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < 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/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/unknown_field_set.h>
33 #include "gz/msgs/header.pb.h"
34 #include "gz/msgs/pose.pb.h"
35 #include "gz/msgs/twist.pb.h"
36 // @@protoc_insertion_point(includes)
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fodometry_2eproto GZ_MSGS_VISIBLE
38 
40 // Internal implementation detail -- do not use these members.
41 struct GZ_MSGS_VISIBLE TableStruct {
42  static const ::google::protobuf::internal::ParseTableField entries[];
43  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44  static const ::google::protobuf::internal::ParseTable schema[1];
45  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46  static const ::google::protobuf::internal::SerializationTable serialization_table[];
47  static const ::google::protobuf::uint32 offsets[];
48 };
49 void GZ_MSGS_VISIBLE AddDescriptors();
50 } // namespace protobuf_gz_2fmsgs_2fodometry_2eproto
51 namespace gz {
52 namespace msgs {
53 class Odometry;
54 class OdometryDefaultTypeInternal;
55 GZ_MSGS_VISIBLE extern OdometryDefaultTypeInternal _Odometry_default_instance_;
56 } // namespace msgs
57 } // namespace gz
58 namespace google {
59 namespace protobuf {
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::Odometry* Arena::CreateMaybeMessage<::gz::msgs::Odometry>(Arena*);
61 } // namespace protobuf
62 } // namespace google
63 namespace gz {
64 namespace msgs {
65 
66 // ===================================================================
67 
68 class GZ_MSGS_VISIBLE Odometry : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Odometry) */ {
69  public:
70  Odometry();
71  virtual ~Odometry();
72 
73  Odometry(const Odometry& from);
74 
75  inline Odometry& operator=(const Odometry& from) {
76  CopyFrom(from);
77  return *this;
78  }
79  #if LANG_CXX11
80  Odometry(Odometry&& from) noexcept
81  : Odometry() {
82  *this = ::std::move(from);
83  }
84 
85  inline Odometry& operator=(Odometry&& from) noexcept {
86  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
87  if (this != &from) InternalSwap(&from);
88  } else {
89  CopyFrom(from);
90  }
91  return *this;
92  }
93  #endif
94  static const ::google::protobuf::Descriptor* descriptor();
95  static const Odometry& default_instance();
96 
97  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
98  static inline const Odometry* internal_default_instance() {
99  return reinterpret_cast<const Odometry*>(
101  }
102  static constexpr int kIndexInFileMessages =
103  0;
104 
105  void Swap(Odometry* other);
106  friend void swap(Odometry& a, Odometry& b) {
107  a.Swap(&b);
108  }
109 
110  // implements Message ----------------------------------------------
111 
112  inline Odometry* New() const final {
113  return CreateMaybeMessage<Odometry>(NULL);
114  }
115 
116  Odometry* New(::google::protobuf::Arena* arena) const final {
117  return CreateMaybeMessage<Odometry>(arena);
118  }
119  void CopyFrom(const ::google::protobuf::Message& from) final;
120  void MergeFrom(const ::google::protobuf::Message& from) final;
121  void CopyFrom(const Odometry& from);
122  void MergeFrom(const Odometry& from);
123  void Clear() final;
124  bool IsInitialized() const final;
125 
126  size_t ByteSizeLong() const final;
127  bool MergePartialFromCodedStream(
128  ::google::protobuf::io::CodedInputStream* input) final;
129  void SerializeWithCachedSizes(
130  ::google::protobuf::io::CodedOutputStream* output) const final;
131  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
132  bool deterministic, ::google::protobuf::uint8* target) const final;
133  int GetCachedSize() const final { return _cached_size_.Get(); }
134 
135  private:
136  void SharedCtor();
137  void SharedDtor();
138  void SetCachedSize(int size) const final;
139  void InternalSwap(Odometry* other);
140  private:
141  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
142  return NULL;
143  }
144  inline void* MaybeArenaPtr() const {
145  return NULL;
146  }
147  public:
148 
149  ::google::protobuf::Metadata GetMetadata() const final;
150 
151  // nested types ----------------------------------------------------
152 
153  // accessors -------------------------------------------------------
154 
155  // .gz.msgs.Header header = 1;
156  bool has_header() const;
157  void clear_header();
158  static const int kHeaderFieldNumber = 1;
159  private:
160  const ::gz::msgs::Header& _internal_header() const;
161  public:
162  const ::gz::msgs::Header& header() const;
163  ::gz::msgs::Header* release_header();
164  ::gz::msgs::Header* mutable_header();
165  void set_allocated_header(::gz::msgs::Header* header);
166 
167  // .gz.msgs.Pose pose = 2;
168  bool has_pose() const;
169  void clear_pose();
170  static const int kPoseFieldNumber = 2;
171  private:
172  const ::gz::msgs::Pose& _internal_pose() const;
173  public:
174  const ::gz::msgs::Pose& pose() const;
175  ::gz::msgs::Pose* release_pose();
176  ::gz::msgs::Pose* mutable_pose();
177  void set_allocated_pose(::gz::msgs::Pose* pose);
178 
179  // .gz.msgs.Twist twist = 3;
180  bool has_twist() const;
181  void clear_twist();
182  static const int kTwistFieldNumber = 3;
183  private:
184  const ::gz::msgs::Twist& _internal_twist() const;
185  public:
186  const ::gz::msgs::Twist& twist() const;
187  ::gz::msgs::Twist* release_twist();
188  ::gz::msgs::Twist* mutable_twist();
189  void set_allocated_twist(::gz::msgs::Twist* twist);
190 
191  // @@protoc_insertion_point(class_scope:gz.msgs.Odometry)
192  private:
193 
194  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
195  ::gz::msgs::Header* header_;
196  ::gz::msgs::Pose* pose_;
197  ::gz::msgs::Twist* twist_;
198  mutable ::google::protobuf::internal::CachedSize _cached_size_;
199  friend struct ::protobuf_gz_2fmsgs_2fodometry_2eproto::TableStruct;
200 };
201 // ===================================================================
202 
203 
204 // ===================================================================
205 
206 #ifdef __GNUC__
207  #pragma GCC diagnostic push
208  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
209 #endif // __GNUC__
210 // Odometry
211 
212 // .gz.msgs.Header header = 1;
213 inline bool Odometry::has_header() const {
214  return this != internal_default_instance() && header_ != NULL;
215 }
216 inline const ::gz::msgs::Header& Odometry::_internal_header() const {
217  return *header_;
218 }
219 inline const ::gz::msgs::Header& Odometry::header() const {
220  const ::gz::msgs::Header* p = header_;
221  // @@protoc_insertion_point(field_get:gz.msgs.Odometry.header)
222  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
224 }
225 inline ::gz::msgs::Header* Odometry::release_header() {
226  // @@protoc_insertion_point(field_release:gz.msgs.Odometry.header)
227 
228  ::gz::msgs::Header* temp = header_;
229  header_ = NULL;
230  return temp;
231 }
232 inline ::gz::msgs::Header* Odometry::mutable_header() {
233 
234  if (header_ == NULL) {
235  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
236  header_ = p;
237  }
238  // @@protoc_insertion_point(field_mutable:gz.msgs.Odometry.header)
239  return header_;
240 }
242  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
243  if (message_arena == NULL) {
244  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
245  }
246  if (header) {
247  ::google::protobuf::Arena* submessage_arena = NULL;
248  if (message_arena != submessage_arena) {
249  header = ::google::protobuf::internal::GetOwnedMessage(
250  message_arena, header, submessage_arena);
251  }
252 
253  } else {
254 
255  }
256  header_ = header;
257  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Odometry.header)
258 }
259 
260 // .gz.msgs.Pose pose = 2;
261 inline bool Odometry::has_pose() const {
262  return this != internal_default_instance() && pose_ != NULL;
263 }
264 inline const ::gz::msgs::Pose& Odometry::_internal_pose() const {
265  return *pose_;
266 }
267 inline const ::gz::msgs::Pose& Odometry::pose() const {
268  const ::gz::msgs::Pose* p = pose_;
269  // @@protoc_insertion_point(field_get:gz.msgs.Odometry.pose)
270  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Pose*>(
272 }
273 inline ::gz::msgs::Pose* Odometry::release_pose() {
274  // @@protoc_insertion_point(field_release:gz.msgs.Odometry.pose)
275 
276  ::gz::msgs::Pose* temp = pose_;
277  pose_ = NULL;
278  return temp;
279 }
280 inline ::gz::msgs::Pose* Odometry::mutable_pose() {
281 
282  if (pose_ == NULL) {
283  auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
284  pose_ = p;
285  }
286  // @@protoc_insertion_point(field_mutable:gz.msgs.Odometry.pose)
287  return pose_;
288 }
290  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
291  if (message_arena == NULL) {
292  delete reinterpret_cast< ::google::protobuf::MessageLite*>(pose_);
293  }
294  if (pose) {
295  ::google::protobuf::Arena* submessage_arena = NULL;
296  if (message_arena != submessage_arena) {
297  pose = ::google::protobuf::internal::GetOwnedMessage(
298  message_arena, pose, submessage_arena);
299  }
300 
301  } else {
302 
303  }
304  pose_ = pose;
305  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Odometry.pose)
306 }
307 
308 // .gz.msgs.Twist twist = 3;
309 inline bool Odometry::has_twist() const {
310  return this != internal_default_instance() && twist_ != NULL;
311 }
312 inline const ::gz::msgs::Twist& Odometry::_internal_twist() const {
313  return *twist_;
314 }
315 inline const ::gz::msgs::Twist& Odometry::twist() const {
316  const ::gz::msgs::Twist* p = twist_;
317  // @@protoc_insertion_point(field_get:gz.msgs.Odometry.twist)
318  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Twist*>(
320 }
321 inline ::gz::msgs::Twist* Odometry::release_twist() {
322  // @@protoc_insertion_point(field_release:gz.msgs.Odometry.twist)
323 
324  ::gz::msgs::Twist* temp = twist_;
325  twist_ = NULL;
326  return temp;
327 }
328 inline ::gz::msgs::Twist* Odometry::mutable_twist() {
329 
330  if (twist_ == NULL) {
331  auto* p = CreateMaybeMessage<::gz::msgs::Twist>(GetArenaNoVirtual());
332  twist_ = p;
333  }
334  // @@protoc_insertion_point(field_mutable:gz.msgs.Odometry.twist)
335  return twist_;
336 }
338  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
339  if (message_arena == NULL) {
340  delete reinterpret_cast< ::google::protobuf::MessageLite*>(twist_);
341  }
342  if (twist) {
343  ::google::protobuf::Arena* submessage_arena = NULL;
344  if (message_arena != submessage_arena) {
345  twist = ::google::protobuf::internal::GetOwnedMessage(
346  message_arena, twist, submessage_arena);
347  }
348 
349  } else {
350 
351  }
352  twist_ = twist;
353  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Odometry.twist)
354 }
355 
356 #ifdef __GNUC__
357  #pragma GCC diagnostic pop
358 #endif // __GNUC__
359 
360 // @@protoc_insertion_point(namespace_scope)
361 
362 } // namespace msgs
363 } // namespace gz
364 
365 // @@protoc_insertion_point(global_scope)
366 
367 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fodometry_2eproto