Ignition Msgs

API Reference

6.4.0
sonar.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/sonar.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fsonar_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fsonar_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"
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_2fsonar_2eproto();
53 
54 class Sonar;
55 
56 // ===================================================================
57 
58 class IGNITION_MSGS_VISIBLE Sonar : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Sonar) */ {
59  public:
60  Sonar();
61  virtual ~Sonar();
62 
63  Sonar(const Sonar& from);
64 
65  inline Sonar& operator=(const Sonar& from) {
66  CopyFrom(from);
67  return *this;
68  }
69 
70  static const ::google::protobuf::Descriptor* descriptor();
71  static const Sonar& default_instance();
72 
73  void Swap(Sonar* other);
74 
75  // implements Message ----------------------------------------------
76 
77  inline Sonar* New() const { return New(NULL); }
78 
79  Sonar* 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 Sonar& from);
83  void MergeFrom(const Sonar& 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(Sonar* 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 frame = 2;
128  void clear_frame();
129  static const int kFrameFieldNumber = 2;
130  const ::std::string& frame() const;
131  void set_frame(const ::std::string& value);
132  void set_frame(const char* value);
133  void set_frame(const char* value, size_t size);
134  ::std::string* mutable_frame();
135  ::std::string* release_frame();
136  void set_allocated_frame(::std::string* frame);
137 
138  // optional .ignition.msgs.Pose world_pose = 3;
139  bool has_world_pose() const;
140  void clear_world_pose();
141  static const int kWorldPoseFieldNumber = 3;
142  const ::ignition::msgs::Pose& world_pose() const;
143  ::ignition::msgs::Pose* mutable_world_pose();
144  ::ignition::msgs::Pose* release_world_pose();
145  void set_allocated_world_pose(::ignition::msgs::Pose* world_pose);
146 
147  // optional double range_min = 4;
148  void clear_range_min();
149  static const int kRangeMinFieldNumber = 4;
150  double range_min() const;
151  void set_range_min(double value);
152 
153  // optional double range_max = 5;
154  void clear_range_max();
155  static const int kRangeMaxFieldNumber = 5;
156  double range_max() const;
157  void set_range_max(double value);
158 
159  // optional double radius = 6;
160  void clear_radius();
161  static const int kRadiusFieldNumber = 6;
162  double radius() const;
163  void set_radius(double value);
164 
165  // optional double range = 7;
166  void clear_range();
167  static const int kRangeFieldNumber = 7;
168  double range() const;
169  void set_range(double value);
170 
171  // optional string geometry = 8;
172  void clear_geometry();
173  static const int kGeometryFieldNumber = 8;
174  const ::std::string& geometry() const;
175  void set_geometry(const ::std::string& value);
176  void set_geometry(const char* value);
177  void set_geometry(const char* value, size_t size);
178  ::std::string* mutable_geometry();
179  ::std::string* release_geometry();
180  void set_allocated_geometry(::std::string* geometry);
181 
182  // optional .ignition.msgs.Vector3d contact = 9;
183  bool has_contact() const;
184  void clear_contact();
185  static const int kContactFieldNumber = 9;
186  const ::ignition::msgs::Vector3d& contact() const;
187  ::ignition::msgs::Vector3d* mutable_contact();
188  ::ignition::msgs::Vector3d* release_contact();
189  void set_allocated_contact(::ignition::msgs::Vector3d* contact);
190 
191  // @@protoc_insertion_point(class_scope:ignition.msgs.Sonar)
192  private:
193 
194  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
195  bool _is_default_instance_;
196  ::ignition::msgs::Header* header_;
197  ::google::protobuf::internal::ArenaStringPtr frame_;
198  ::ignition::msgs::Pose* world_pose_;
199  double range_min_;
200  double range_max_;
201  double radius_;
202  double range_;
203  ::google::protobuf::internal::ArenaStringPtr geometry_;
204  ::ignition::msgs::Vector3d* contact_;
205  mutable int _cached_size_;
206  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fsonar_2eproto();
209 
210  void InitAsDefaultInstance();
211  static Sonar* default_instance_;
212 };
213 // ===================================================================
214 
215 
216 // ===================================================================
217 
218 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
219 // Sonar
220 
221 // optional .ignition.msgs.Header header = 1;
222 inline bool Sonar::has_header() const {
223  return !_is_default_instance_ && header_ != NULL;
224 }
225 inline void Sonar::clear_header() {
226  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
227  header_ = NULL;
228 }
229 inline const ::ignition::msgs::Header& Sonar::header() const {
230  // @@protoc_insertion_point(field_get:ignition.msgs.Sonar.header)
231  return header_ != NULL ? *header_ : *default_instance_->header_;
232 }
233 inline ::ignition::msgs::Header* Sonar::mutable_header() {
234 
235  if (header_ == NULL) {
236  header_ = new ::ignition::msgs::Header;
237  }
238  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sonar.header)
239  return header_;
240 }
241 inline ::ignition::msgs::Header* Sonar::release_header() {
242  // @@protoc_insertion_point(field_release:ignition.msgs.Sonar.header)
243 
244  ::ignition::msgs::Header* temp = header_;
245  header_ = NULL;
246  return temp;
247 }
249  delete header_;
250  header_ = header;
251  if (header) {
252 
253  } else {
254 
255  }
256  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sonar.header)
257 }
258 
259 // optional string frame = 2;
260 inline void Sonar::clear_frame() {
261  frame_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
262 }
263 inline const ::std::string& Sonar::frame() const {
264  // @@protoc_insertion_point(field_get:ignition.msgs.Sonar.frame)
265  return frame_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
266 }
267 inline void Sonar::set_frame(const ::std::string& value) {
268 
269  frame_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
270  // @@protoc_insertion_point(field_set:ignition.msgs.Sonar.frame)
271 }
272 inline void Sonar::set_frame(const char* value) {
273 
274  frame_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
275  // @@protoc_insertion_point(field_set_char:ignition.msgs.Sonar.frame)
276 }
277 inline void Sonar::set_frame(const char* value, size_t size) {
278 
279  frame_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
280  ::std::string(reinterpret_cast<const char*>(value), size));
281  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Sonar.frame)
282 }
283 inline ::std::string* Sonar::mutable_frame() {
284 
285  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sonar.frame)
286  return frame_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
287 }
288 inline ::std::string* Sonar::release_frame() {
289  // @@protoc_insertion_point(field_release:ignition.msgs.Sonar.frame)
290 
291  return frame_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
292 }
294  if (frame != NULL) {
295 
296  } else {
297 
298  }
299  frame_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), frame);
300  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sonar.frame)
301 }
302 
303 // optional .ignition.msgs.Pose world_pose = 3;
304 inline bool Sonar::has_world_pose() const {
305  return !_is_default_instance_ && world_pose_ != NULL;
306 }
307 inline void Sonar::clear_world_pose() {
308  if (GetArenaNoVirtual() == NULL && world_pose_ != NULL) delete world_pose_;
309  world_pose_ = NULL;
310 }
311 inline const ::ignition::msgs::Pose& Sonar::world_pose() const {
312  // @@protoc_insertion_point(field_get:ignition.msgs.Sonar.world_pose)
313  return world_pose_ != NULL ? *world_pose_ : *default_instance_->world_pose_;
314 }
315 inline ::ignition::msgs::Pose* Sonar::mutable_world_pose() {
316 
317  if (world_pose_ == NULL) {
318  world_pose_ = new ::ignition::msgs::Pose;
319  }
320  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sonar.world_pose)
321  return world_pose_;
322 }
323 inline ::ignition::msgs::Pose* Sonar::release_world_pose() {
324  // @@protoc_insertion_point(field_release:ignition.msgs.Sonar.world_pose)
325 
326  ::ignition::msgs::Pose* temp = world_pose_;
327  world_pose_ = NULL;
328  return temp;
329 }
331  delete world_pose_;
332  world_pose_ = world_pose;
333  if (world_pose) {
334 
335  } else {
336 
337  }
338  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sonar.world_pose)
339 }
340 
341 // optional double range_min = 4;
342 inline void Sonar::clear_range_min() {
343  range_min_ = 0;
344 }
345 inline double Sonar::range_min() const {
346  // @@protoc_insertion_point(field_get:ignition.msgs.Sonar.range_min)
347  return range_min_;
348 }
349 inline void Sonar::set_range_min(double value) {
350 
351  range_min_ = value;
352  // @@protoc_insertion_point(field_set:ignition.msgs.Sonar.range_min)
353 }
354 
355 // optional double range_max = 5;
356 inline void Sonar::clear_range_max() {
357  range_max_ = 0;
358 }
359 inline double Sonar::range_max() const {
360  // @@protoc_insertion_point(field_get:ignition.msgs.Sonar.range_max)
361  return range_max_;
362 }
363 inline void Sonar::set_range_max(double value) {
364 
365  range_max_ = value;
366  // @@protoc_insertion_point(field_set:ignition.msgs.Sonar.range_max)
367 }
368 
369 // optional double radius = 6;
370 inline void Sonar::clear_radius() {
371  radius_ = 0;
372 }
373 inline double Sonar::radius() const {
374  // @@protoc_insertion_point(field_get:ignition.msgs.Sonar.radius)
375  return radius_;
376 }
377 inline void Sonar::set_radius(double value) {
378 
379  radius_ = value;
380  // @@protoc_insertion_point(field_set:ignition.msgs.Sonar.radius)
381 }
382 
383 // optional double range = 7;
384 inline void Sonar::clear_range() {
385  range_ = 0;
386 }
387 inline double Sonar::range() const {
388  // @@protoc_insertion_point(field_get:ignition.msgs.Sonar.range)
389  return range_;
390 }
391 inline void Sonar::set_range(double value) {
392 
393  range_ = value;
394  // @@protoc_insertion_point(field_set:ignition.msgs.Sonar.range)
395 }
396 
397 // optional string geometry = 8;
398 inline void Sonar::clear_geometry() {
399  geometry_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
400 }
401 inline const ::std::string& Sonar::geometry() const {
402  // @@protoc_insertion_point(field_get:ignition.msgs.Sonar.geometry)
403  return geometry_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
404 }
405 inline void Sonar::set_geometry(const ::std::string& value) {
406 
407  geometry_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
408  // @@protoc_insertion_point(field_set:ignition.msgs.Sonar.geometry)
409 }
410 inline void Sonar::set_geometry(const char* value) {
411 
412  geometry_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
413  // @@protoc_insertion_point(field_set_char:ignition.msgs.Sonar.geometry)
414 }
415 inline void Sonar::set_geometry(const char* value, size_t size) {
416 
417  geometry_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
418  ::std::string(reinterpret_cast<const char*>(value), size));
419  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Sonar.geometry)
420 }
421 inline ::std::string* Sonar::mutable_geometry() {
422 
423  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sonar.geometry)
424  return geometry_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
425 }
426 inline ::std::string* Sonar::release_geometry() {
427  // @@protoc_insertion_point(field_release:ignition.msgs.Sonar.geometry)
428 
429  return geometry_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
430 }
431 inline void Sonar::set_allocated_geometry(::std::string* geometry) {
432  if (geometry != NULL) {
433 
434  } else {
435 
436  }
437  geometry_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), geometry);
438  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sonar.geometry)
439 }
440 
441 // optional .ignition.msgs.Vector3d contact = 9;
442 inline bool Sonar::has_contact() const {
443  return !_is_default_instance_ && contact_ != NULL;
444 }
445 inline void Sonar::clear_contact() {
446  if (GetArenaNoVirtual() == NULL && contact_ != NULL) delete contact_;
447  contact_ = NULL;
448 }
449 inline const ::ignition::msgs::Vector3d& Sonar::contact() const {
450  // @@protoc_insertion_point(field_get:ignition.msgs.Sonar.contact)
451  return contact_ != NULL ? *contact_ : *default_instance_->contact_;
452 }
453 inline ::ignition::msgs::Vector3d* Sonar::mutable_contact() {
454 
455  if (contact_ == NULL) {
456  contact_ = new ::ignition::msgs::Vector3d;
457  }
458  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sonar.contact)
459  return contact_;
460 }
461 inline ::ignition::msgs::Vector3d* Sonar::release_contact() {
462  // @@protoc_insertion_point(field_release:ignition.msgs.Sonar.contact)
463 
464  ::ignition::msgs::Vector3d* temp = contact_;
465  contact_ = NULL;
466  return temp;
467 }
469  delete contact_;
470  contact_ = contact;
471  if (contact) {
472 
473  } else {
474 
475  }
476  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sonar.contact)
477 }
478 
479 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
480 
485 // @@protoc_insertion_point(namespace_scope)
486 
487 } // namespace msgs
488 } // namespace ignition
489 
490 #ifdef _MSC_VER
491 #pragma warning(pop)
492 #endif
493 // @@protoc_insertion_point(global_scope)
494 
495 #endif // PROTOBUF_ignition_2fmsgs_2fsonar_2eproto__INCLUDED
std::shared_ptr< const Sonar > ConstSonarSharedPtr
Definition: sonar.pb.h:484
Definition: pose.pb.h:58
void set_allocated_contact(::ignition::msgs::Vector3d *contact)
Definition: sonar.pb.h:468
::std::string * mutable_frame()
Definition: sonar.pb.h:283
Sonar & operator=(const Sonar &from)
Definition: sonar.pb.h:65
std::unique_ptr< Sonar > SonarUniquePtr
Definition: sonar.pb.h:481
std::shared_ptr< Sonar > SonarSharedPtr
Definition: sonar.pb.h:483
void clear_geometry()
Definition: sonar.pb.h:398
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: sonar.pb.h:94
::ignition::msgs::Header * release_header()
Definition: sonar.pb.h:241
Sonar * New() const
Definition: sonar.pb.h:77
void set_allocated_header(::ignition::msgs::Header *header)
Definition: sonar.pb.h:248
bool has_header() const
Definition: sonar.pb.h:222
void clear_range()
Definition: sonar.pb.h:384
::ignition::msgs::Vector3d * mutable_contact()
Definition: sonar.pb.h:453
void clear_range_max()
Definition: sonar.pb.h:356
void set_geometry(const ::std::string &value)
Definition: sonar.pb.h:405
void clear_frame()
Definition: sonar.pb.h:260
const ::ignition::msgs::Pose & world_pose() const
Definition: sonar.pb.h:311
::ignition::msgs::Pose * release_world_pose()
Definition: sonar.pb.h:323
double radius() const
Definition: sonar.pb.h:373
int GetCachedSize() const
Definition: sonar.pb.h:97
double range() const
Definition: sonar.pb.h:387
Definition: header.pb.h:161
STL class.
void protobuf_ShutdownFile_ignition_2fmsgs_2fsonar_2eproto()
::ignition::msgs::Pose * mutable_world_pose()
Definition: sonar.pb.h:315
void clear_contact()
Definition: sonar.pb.h:445
::std::string * release_frame()
Definition: sonar.pb.h:288
void set_frame(const ::std::string &value)
Definition: sonar.pb.h:267
double range_min() const
Definition: sonar.pb.h:345
void set_allocated_world_pose(::ignition::msgs::Pose *world_pose)
Definition: sonar.pb.h:330
::std::string * mutable_geometry()
Definition: sonar.pb.h:421
::std::string * release_geometry()
Definition: sonar.pb.h:426
Definition: sonar.pb.h:58
const ::std::string & frame() const
Definition: sonar.pb.h:263
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fsonar_2eproto()
void set_range_min(double value)
Definition: sonar.pb.h:349
void protobuf_AssignDesc_ignition_2fmsgs_2fsonar_2eproto()
void set_range_max(double value)
Definition: sonar.pb.h:363
const ::ignition::msgs::Vector3d & contact() const
Definition: sonar.pb.h:449
void set_allocated_frame(::std::string *frame)
Definition: sonar.pb.h:293
void clear_range_min()
Definition: sonar.pb.h:342
Definition: vector3d.pb.h:56
void set_range(double value)
Definition: sonar.pb.h:391
STL class.
::ignition::msgs::Vector3d * release_contact()
Definition: sonar.pb.h:461
void clear_header()
Definition: sonar.pb.h:225
double range_max() const
Definition: sonar.pb.h:359
const ::std::string & geometry() const
Definition: sonar.pb.h:401
void clear_world_pose()
Definition: sonar.pb.h:307
void clear_radius()
Definition: sonar.pb.h:370
void set_allocated_geometry(::std::string *geometry)
Definition: sonar.pb.h:431
bool has_world_pose() const
Definition: sonar.pb.h:304
void set_radius(double value)
Definition: sonar.pb.h:377
std::unique_ptr< const Sonar > ConstSonarUniquePtr
Definition: sonar.pb.h:482
const ::ignition::msgs::Header & header() const
Definition: sonar.pb.h:229
::ignition::msgs::Header * mutable_header()
Definition: sonar.pb.h:233
bool has_contact() const
Definition: sonar.pb.h:442