Ignition Msgs

API Reference

7.2.0
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_ignition_2fmsgs_2fodometry_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fodometry_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>
31 #include "ignition/msgs/pose.pb.h"
32 #include "ignition/msgs/twist.pb.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_2fodometry_2eproto();
53 
54 class Odometry;
55 
56 // ===================================================================
57 
58 class IGNITION_MSGS_VISIBLE Odometry : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Odometry) */ {
59  public:
60  Odometry();
61  virtual ~Odometry();
62 
63  Odometry(const Odometry& from);
64 
65  inline Odometry& operator=(const Odometry& from) {
66  CopyFrom(from);
67  return *this;
68  }
69 
70  static const ::google::protobuf::Descriptor* descriptor();
71  static const Odometry& default_instance();
72 
73  void Swap(Odometry* other);
74 
75  // implements Message ----------------------------------------------
76 
77  inline Odometry* New() const { return New(NULL); }
78 
79  Odometry* 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 Odometry& from);
83  void MergeFrom(const Odometry& 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(Odometry* 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 .ignition.msgs.Pose pose = 2;
128  bool has_pose() const;
129  void clear_pose();
130  static const int kPoseFieldNumber = 2;
131  const ::ignition::msgs::Pose& pose() const;
132  ::ignition::msgs::Pose* mutable_pose();
133  ::ignition::msgs::Pose* release_pose();
134  void set_allocated_pose(::ignition::msgs::Pose* pose);
135 
136  // optional .ignition.msgs.Twist twist = 3;
137  bool has_twist() const;
138  void clear_twist();
139  static const int kTwistFieldNumber = 3;
140  const ::ignition::msgs::Twist& twist() const;
141  ::ignition::msgs::Twist* mutable_twist();
142  ::ignition::msgs::Twist* release_twist();
143  void set_allocated_twist(::ignition::msgs::Twist* twist);
144 
145  // @@protoc_insertion_point(class_scope:ignition.msgs.Odometry)
146  private:
147 
148  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
149  bool _is_default_instance_;
150  ::ignition::msgs::Header* header_;
151  ::ignition::msgs::Pose* pose_;
152  ::ignition::msgs::Twist* twist_;
153  mutable int _cached_size_;
154  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fodometry_2eproto();
157 
158  void InitAsDefaultInstance();
159  static Odometry* default_instance_;
160 };
161 // ===================================================================
162 
163 
164 // ===================================================================
165 
166 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
167 // Odometry
168 
169 // optional .ignition.msgs.Header header = 1;
170 inline bool Odometry::has_header() const {
171  return !_is_default_instance_ && header_ != NULL;
172 }
173 inline void Odometry::clear_header() {
174  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
175  header_ = NULL;
176 }
177 inline const ::ignition::msgs::Header& Odometry::header() const {
178  // @@protoc_insertion_point(field_get:ignition.msgs.Odometry.header)
179  return header_ != NULL ? *header_ : *default_instance_->header_;
180 }
181 inline ::ignition::msgs::Header* Odometry::mutable_header() {
182 
183  if (header_ == NULL) {
184  header_ = new ::ignition::msgs::Header;
185  }
186  // @@protoc_insertion_point(field_mutable:ignition.msgs.Odometry.header)
187  return header_;
188 }
189 inline ::ignition::msgs::Header* Odometry::release_header() {
190  // @@protoc_insertion_point(field_release:ignition.msgs.Odometry.header)
191 
192  ::ignition::msgs::Header* temp = header_;
193  header_ = NULL;
194  return temp;
195 }
197  delete header_;
198  header_ = header;
199  if (header) {
200 
201  } else {
202 
203  }
204  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Odometry.header)
205 }
206 
207 // optional .ignition.msgs.Pose pose = 2;
208 inline bool Odometry::has_pose() const {
209  return !_is_default_instance_ && pose_ != NULL;
210 }
211 inline void Odometry::clear_pose() {
212  if (GetArenaNoVirtual() == NULL && pose_ != NULL) delete pose_;
213  pose_ = NULL;
214 }
215 inline const ::ignition::msgs::Pose& Odometry::pose() const {
216  // @@protoc_insertion_point(field_get:ignition.msgs.Odometry.pose)
217  return pose_ != NULL ? *pose_ : *default_instance_->pose_;
218 }
219 inline ::ignition::msgs::Pose* Odometry::mutable_pose() {
220 
221  if (pose_ == NULL) {
222  pose_ = new ::ignition::msgs::Pose;
223  }
224  // @@protoc_insertion_point(field_mutable:ignition.msgs.Odometry.pose)
225  return pose_;
226 }
227 inline ::ignition::msgs::Pose* Odometry::release_pose() {
228  // @@protoc_insertion_point(field_release:ignition.msgs.Odometry.pose)
229 
230  ::ignition::msgs::Pose* temp = pose_;
231  pose_ = NULL;
232  return temp;
233 }
235  delete pose_;
236  pose_ = pose;
237  if (pose) {
238 
239  } else {
240 
241  }
242  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Odometry.pose)
243 }
244 
245 // optional .ignition.msgs.Twist twist = 3;
246 inline bool Odometry::has_twist() const {
247  return !_is_default_instance_ && twist_ != NULL;
248 }
249 inline void Odometry::clear_twist() {
250  if (GetArenaNoVirtual() == NULL && twist_ != NULL) delete twist_;
251  twist_ = NULL;
252 }
253 inline const ::ignition::msgs::Twist& Odometry::twist() const {
254  // @@protoc_insertion_point(field_get:ignition.msgs.Odometry.twist)
255  return twist_ != NULL ? *twist_ : *default_instance_->twist_;
256 }
257 inline ::ignition::msgs::Twist* Odometry::mutable_twist() {
258 
259  if (twist_ == NULL) {
260  twist_ = new ::ignition::msgs::Twist;
261  }
262  // @@protoc_insertion_point(field_mutable:ignition.msgs.Odometry.twist)
263  return twist_;
264 }
265 inline ::ignition::msgs::Twist* Odometry::release_twist() {
266  // @@protoc_insertion_point(field_release:ignition.msgs.Odometry.twist)
267 
268  ::ignition::msgs::Twist* temp = twist_;
269  twist_ = NULL;
270  return temp;
271 }
273  delete twist_;
274  twist_ = twist;
275  if (twist) {
276 
277  } else {
278 
279  }
280  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Odometry.twist)
281 }
282 
283 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
284 
289 // @@protoc_insertion_point(namespace_scope)
290 
291 } // namespace msgs
292 } // namespace ignition
293 
294 #ifdef _MSC_VER
295 #pragma warning(pop)
296 #endif
297 // @@protoc_insertion_point(global_scope)
298 
299 #endif // PROTOBUF_ignition_2fmsgs_2fodometry_2eproto__INCLUDED
Definition: pose.pb.h:58
std::unique_ptr< Odometry > OdometryUniquePtr
Definition: odometry.pb.h:285
bool has_header() const
Definition: odometry.pb.h:170
const ::ignition::msgs::Twist & twist() const
Definition: odometry.pb.h:253
::ignition::msgs::Pose * release_pose()
Definition: odometry.pb.h:227
void set_allocated_pose(::ignition::msgs::Pose *pose)
Definition: odometry.pb.h:234
void protobuf_AssignDesc_ignition_2fmsgs_2fodometry_2eproto()
const ::ignition::msgs::Header & header() const
Definition: odometry.pb.h:177
Definition: twist.pb.h:57
::ignition::msgs::Header * release_header()
Definition: odometry.pb.h:189
std::unique_ptr< const Odometry > ConstOdometryUniquePtr
Definition: odometry.pb.h:286
bool has_twist() const
Definition: odometry.pb.h:246
::ignition::msgs::Header * mutable_header()
Definition: odometry.pb.h:181
std::shared_ptr< const Odometry > ConstOdometrySharedPtr
Definition: odometry.pb.h:288
Definition: header.pb.h:161
const ::ignition::msgs::Pose & pose() const
Definition: odometry.pb.h:215
void set_allocated_header(::ignition::msgs::Header *header)
Definition: odometry.pb.h:196
int GetCachedSize() const
Definition: odometry.pb.h:97
Definition: odometry.pb.h:58
void clear_header()
Definition: odometry.pb.h:173
Odometry & operator=(const Odometry &from)
Definition: odometry.pb.h:65
void protobuf_ShutdownFile_ignition_2fmsgs_2fodometry_2eproto()
::ignition::msgs::Twist * release_twist()
Definition: odometry.pb.h:265
::ignition::msgs::Twist * mutable_twist()
Definition: odometry.pb.h:257
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: odometry.pb.h:94
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fodometry_2eproto()
STL class.
bool has_pose() const
Definition: odometry.pb.h:208
::ignition::msgs::Pose * mutable_pose()
Definition: odometry.pb.h:219
void set_allocated_twist(::ignition::msgs::Twist *twist)
Definition: odometry.pb.h:272
void clear_twist()
Definition: odometry.pb.h:249
Odometry * New() const
Definition: odometry.pb.h:77
std::shared_ptr< Odometry > OdometrySharedPtr
Definition: odometry.pb.h:287
void clear_pose()
Definition: odometry.pb.h:211