Gazebo Msgs

API Reference

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