Gazebo Msgs

API Reference

9.5.0
lidar_sensor.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/lidar_sensor.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2flidar_5fsensor_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2flidar_5fsensor_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/sensor_noise.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2flidar_5fsensor_2eproto GZ_MSGS_VISIBLE
37 
39 // Internal implementation detail -- do not use these members.
40 struct GZ_MSGS_VISIBLE TableStruct {
41  static const ::google::protobuf::internal::ParseTableField entries[];
42  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43  static const ::google::protobuf::internal::ParseTable schema[1];
44  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45  static const ::google::protobuf::internal::SerializationTable serialization_table[];
46  static const ::google::protobuf::uint32 offsets[];
47 };
48 void GZ_MSGS_VISIBLE AddDescriptors();
49 } // namespace protobuf_gz_2fmsgs_2flidar_5fsensor_2eproto
50 namespace gz {
51 namespace msgs {
52 class LidarSensor;
53 class LidarSensorDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern LidarSensorDefaultTypeInternal _LidarSensor_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::LidarSensor* Arena::CreateMaybeMessage<::gz::msgs::LidarSensor>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
65 // ===================================================================
66 
67 class GZ_MSGS_VISIBLE LidarSensor : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.LidarSensor) */ {
68  public:
69  LidarSensor();
70  virtual ~LidarSensor();
71 
72  LidarSensor(const LidarSensor& from);
73 
74  inline LidarSensor& operator=(const LidarSensor& from) {
75  CopyFrom(from);
76  return *this;
77  }
78  #if LANG_CXX11
79  LidarSensor(LidarSensor&& from) noexcept
80  : LidarSensor() {
81  *this = ::std::move(from);
82  }
83 
84  inline LidarSensor& operator=(LidarSensor&& from) noexcept {
85  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
86  if (this != &from) InternalSwap(&from);
87  } else {
88  CopyFrom(from);
89  }
90  return *this;
91  }
92  #endif
93  static const ::google::protobuf::Descriptor* descriptor();
94  static const LidarSensor& default_instance();
95 
96  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
97  static inline const LidarSensor* internal_default_instance() {
98  return reinterpret_cast<const LidarSensor*>(
100  }
101  static constexpr int kIndexInFileMessages =
102  0;
103 
104  void Swap(LidarSensor* other);
105  friend void swap(LidarSensor& a, LidarSensor& b) {
106  a.Swap(&b);
107  }
108 
109  // implements Message ----------------------------------------------
110 
111  inline LidarSensor* New() const final {
112  return CreateMaybeMessage<LidarSensor>(NULL);
113  }
114 
115  LidarSensor* New(::google::protobuf::Arena* arena) const final {
116  return CreateMaybeMessage<LidarSensor>(arena);
117  }
118  void CopyFrom(const ::google::protobuf::Message& from) final;
119  void MergeFrom(const ::google::protobuf::Message& from) final;
120  void CopyFrom(const LidarSensor& from);
121  void MergeFrom(const LidarSensor& from);
122  void Clear() final;
123  bool IsInitialized() const final;
124 
125  size_t ByteSizeLong() const final;
126  bool MergePartialFromCodedStream(
127  ::google::protobuf::io::CodedInputStream* input) final;
128  void SerializeWithCachedSizes(
129  ::google::protobuf::io::CodedOutputStream* output) const final;
130  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
131  bool deterministic, ::google::protobuf::uint8* target) const final;
132  int GetCachedSize() const final { return _cached_size_.Get(); }
133 
134  private:
135  void SharedCtor();
136  void SharedDtor();
137  void SetCachedSize(int size) const final;
138  void InternalSwap(LidarSensor* other);
139  private:
140  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
141  return NULL;
142  }
143  inline void* MaybeArenaPtr() const {
144  return NULL;
145  }
146  public:
147 
148  ::google::protobuf::Metadata GetMetadata() const final;
149 
150  // nested types ----------------------------------------------------
151 
152  // accessors -------------------------------------------------------
153 
154  // .gz.msgs.Header header = 1;
155  bool has_header() const;
156  void clear_header();
157  static const int kHeaderFieldNumber = 1;
158  private:
159  const ::gz::msgs::Header& _internal_header() const;
160  public:
161  const ::gz::msgs::Header& header() const;
162  ::gz::msgs::Header* release_header();
163  ::gz::msgs::Header* mutable_header();
164  void set_allocated_header(::gz::msgs::Header* header);
165 
166  // .gz.msgs.SensorNoise noise = 14;
167  bool has_noise() const;
168  void clear_noise();
169  static const int kNoiseFieldNumber = 14;
170  private:
171  const ::gz::msgs::SensorNoise& _internal_noise() const;
172  public:
173  const ::gz::msgs::SensorNoise& noise() const;
174  ::gz::msgs::SensorNoise* release_noise();
175  ::gz::msgs::SensorNoise* mutable_noise();
176  void set_allocated_noise(::gz::msgs::SensorNoise* noise);
177 
178  // bool display_scan = 2;
179  void clear_display_scan();
180  static const int kDisplayScanFieldNumber = 2;
181  bool display_scan() const;
182  void set_display_scan(bool value);
183 
184  // int32 horizontal_samples = 3;
185  void clear_horizontal_samples();
186  static const int kHorizontalSamplesFieldNumber = 3;
187  ::google::protobuf::int32 horizontal_samples() const;
188  void set_horizontal_samples(::google::protobuf::int32 value);
189 
190  // double horizontal_resolution = 4;
191  void clear_horizontal_resolution();
192  static const int kHorizontalResolutionFieldNumber = 4;
193  double horizontal_resolution() const;
194  void set_horizontal_resolution(double value);
195 
196  // double horizontal_min_angle = 5;
197  void clear_horizontal_min_angle();
198  static const int kHorizontalMinAngleFieldNumber = 5;
199  double horizontal_min_angle() const;
200  void set_horizontal_min_angle(double value);
201 
202  // double horizontal_max_angle = 6;
203  void clear_horizontal_max_angle();
204  static const int kHorizontalMaxAngleFieldNumber = 6;
205  double horizontal_max_angle() const;
206  void set_horizontal_max_angle(double value);
207 
208  // double vertical_resolution = 8;
209  void clear_vertical_resolution();
210  static const int kVerticalResolutionFieldNumber = 8;
211  double vertical_resolution() const;
212  void set_vertical_resolution(double value);
213 
214  // double vertical_min_angle = 9;
215  void clear_vertical_min_angle();
216  static const int kVerticalMinAngleFieldNumber = 9;
217  double vertical_min_angle() const;
218  void set_vertical_min_angle(double value);
219 
220  // double vertical_max_angle = 10;
221  void clear_vertical_max_angle();
222  static const int kVerticalMaxAngleFieldNumber = 10;
223  double vertical_max_angle() const;
224  void set_vertical_max_angle(double value);
225 
226  // double range_min = 11;
227  void clear_range_min();
228  static const int kRangeMinFieldNumber = 11;
229  double range_min() const;
230  void set_range_min(double value);
231 
232  // double range_max = 12;
233  void clear_range_max();
234  static const int kRangeMaxFieldNumber = 12;
235  double range_max() const;
236  void set_range_max(double value);
237 
238  // double range_resolution = 13;
239  void clear_range_resolution();
240  static const int kRangeResolutionFieldNumber = 13;
241  double range_resolution() const;
242  void set_range_resolution(double value);
243 
244  // int32 vertical_samples = 7;
245  void clear_vertical_samples();
246  static const int kVerticalSamplesFieldNumber = 7;
247  ::google::protobuf::int32 vertical_samples() const;
248  void set_vertical_samples(::google::protobuf::int32 value);
249 
250  // @@protoc_insertion_point(class_scope:gz.msgs.LidarSensor)
251  private:
252 
253  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
254  ::gz::msgs::Header* header_;
255  ::gz::msgs::SensorNoise* noise_;
256  bool display_scan_;
257  ::google::protobuf::int32 horizontal_samples_;
258  double horizontal_resolution_;
259  double horizontal_min_angle_;
260  double horizontal_max_angle_;
261  double vertical_resolution_;
262  double vertical_min_angle_;
263  double vertical_max_angle_;
264  double range_min_;
265  double range_max_;
266  double range_resolution_;
267  ::google::protobuf::int32 vertical_samples_;
268  mutable ::google::protobuf::internal::CachedSize _cached_size_;
269  friend struct ::protobuf_gz_2fmsgs_2flidar_5fsensor_2eproto::TableStruct;
270 };
271 // ===================================================================
272 
273 
274 // ===================================================================
275 
276 #ifdef __GNUC__
277  #pragma GCC diagnostic push
278  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
279 #endif // __GNUC__
280 // LidarSensor
281 
282 // .gz.msgs.Header header = 1;
283 inline bool LidarSensor::has_header() const {
284  return this != internal_default_instance() && header_ != NULL;
285 }
286 inline const ::gz::msgs::Header& LidarSensor::_internal_header() const {
287  return *header_;
288 }
289 inline const ::gz::msgs::Header& LidarSensor::header() const {
290  const ::gz::msgs::Header* p = header_;
291  // @@protoc_insertion_point(field_get:gz.msgs.LidarSensor.header)
292  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
294 }
295 inline ::gz::msgs::Header* LidarSensor::release_header() {
296  // @@protoc_insertion_point(field_release:gz.msgs.LidarSensor.header)
297 
298  ::gz::msgs::Header* temp = header_;
299  header_ = NULL;
300  return temp;
301 }
302 inline ::gz::msgs::Header* LidarSensor::mutable_header() {
303 
304  if (header_ == NULL) {
305  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
306  header_ = p;
307  }
308  // @@protoc_insertion_point(field_mutable:gz.msgs.LidarSensor.header)
309  return header_;
310 }
312  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
313  if (message_arena == NULL) {
314  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
315  }
316  if (header) {
317  ::google::protobuf::Arena* submessage_arena = NULL;
318  if (message_arena != submessage_arena) {
319  header = ::google::protobuf::internal::GetOwnedMessage(
320  message_arena, header, submessage_arena);
321  }
322 
323  } else {
324 
325  }
326  header_ = header;
327  // @@protoc_insertion_point(field_set_allocated:gz.msgs.LidarSensor.header)
328 }
329 
330 // bool display_scan = 2;
332  display_scan_ = false;
333 }
334 inline bool LidarSensor::display_scan() const {
335  // @@protoc_insertion_point(field_get:gz.msgs.LidarSensor.display_scan)
336  return display_scan_;
337 }
338 inline void LidarSensor::set_display_scan(bool value) {
339 
340  display_scan_ = value;
341  // @@protoc_insertion_point(field_set:gz.msgs.LidarSensor.display_scan)
342 }
343 
344 // int32 horizontal_samples = 3;
346  horizontal_samples_ = 0;
347 }
348 inline ::google::protobuf::int32 LidarSensor::horizontal_samples() const {
349  // @@protoc_insertion_point(field_get:gz.msgs.LidarSensor.horizontal_samples)
350  return horizontal_samples_;
351 }
352 inline void LidarSensor::set_horizontal_samples(::google::protobuf::int32 value) {
353 
354  horizontal_samples_ = value;
355  // @@protoc_insertion_point(field_set:gz.msgs.LidarSensor.horizontal_samples)
356 }
357 
358 // double horizontal_resolution = 4;
360  horizontal_resolution_ = 0;
361 }
362 inline double LidarSensor::horizontal_resolution() const {
363  // @@protoc_insertion_point(field_get:gz.msgs.LidarSensor.horizontal_resolution)
364  return horizontal_resolution_;
365 }
366 inline void LidarSensor::set_horizontal_resolution(double value) {
367 
368  horizontal_resolution_ = value;
369  // @@protoc_insertion_point(field_set:gz.msgs.LidarSensor.horizontal_resolution)
370 }
371 
372 // double horizontal_min_angle = 5;
374  horizontal_min_angle_ = 0;
375 }
376 inline double LidarSensor::horizontal_min_angle() const {
377  // @@protoc_insertion_point(field_get:gz.msgs.LidarSensor.horizontal_min_angle)
378  return horizontal_min_angle_;
379 }
380 inline void LidarSensor::set_horizontal_min_angle(double value) {
381 
382  horizontal_min_angle_ = value;
383  // @@protoc_insertion_point(field_set:gz.msgs.LidarSensor.horizontal_min_angle)
384 }
385 
386 // double horizontal_max_angle = 6;
388  horizontal_max_angle_ = 0;
389 }
390 inline double LidarSensor::horizontal_max_angle() const {
391  // @@protoc_insertion_point(field_get:gz.msgs.LidarSensor.horizontal_max_angle)
392  return horizontal_max_angle_;
393 }
394 inline void LidarSensor::set_horizontal_max_angle(double value) {
395 
396  horizontal_max_angle_ = value;
397  // @@protoc_insertion_point(field_set:gz.msgs.LidarSensor.horizontal_max_angle)
398 }
399 
400 // int32 vertical_samples = 7;
402  vertical_samples_ = 0;
403 }
404 inline ::google::protobuf::int32 LidarSensor::vertical_samples() const {
405  // @@protoc_insertion_point(field_get:gz.msgs.LidarSensor.vertical_samples)
406  return vertical_samples_;
407 }
408 inline void LidarSensor::set_vertical_samples(::google::protobuf::int32 value) {
409 
410  vertical_samples_ = value;
411  // @@protoc_insertion_point(field_set:gz.msgs.LidarSensor.vertical_samples)
412 }
413 
414 // double vertical_resolution = 8;
416  vertical_resolution_ = 0;
417 }
418 inline double LidarSensor::vertical_resolution() const {
419  // @@protoc_insertion_point(field_get:gz.msgs.LidarSensor.vertical_resolution)
420  return vertical_resolution_;
421 }
422 inline void LidarSensor::set_vertical_resolution(double value) {
423 
424  vertical_resolution_ = value;
425  // @@protoc_insertion_point(field_set:gz.msgs.LidarSensor.vertical_resolution)
426 }
427 
428 // double vertical_min_angle = 9;
430  vertical_min_angle_ = 0;
431 }
432 inline double LidarSensor::vertical_min_angle() const {
433  // @@protoc_insertion_point(field_get:gz.msgs.LidarSensor.vertical_min_angle)
434  return vertical_min_angle_;
435 }
436 inline void LidarSensor::set_vertical_min_angle(double value) {
437 
438  vertical_min_angle_ = value;
439  // @@protoc_insertion_point(field_set:gz.msgs.LidarSensor.vertical_min_angle)
440 }
441 
442 // double vertical_max_angle = 10;
444  vertical_max_angle_ = 0;
445 }
446 inline double LidarSensor::vertical_max_angle() const {
447  // @@protoc_insertion_point(field_get:gz.msgs.LidarSensor.vertical_max_angle)
448  return vertical_max_angle_;
449 }
450 inline void LidarSensor::set_vertical_max_angle(double value) {
451 
452  vertical_max_angle_ = value;
453  // @@protoc_insertion_point(field_set:gz.msgs.LidarSensor.vertical_max_angle)
454 }
455 
456 // double range_min = 11;
458  range_min_ = 0;
459 }
460 inline double LidarSensor::range_min() const {
461  // @@protoc_insertion_point(field_get:gz.msgs.LidarSensor.range_min)
462  return range_min_;
463 }
464 inline void LidarSensor::set_range_min(double value) {
465 
466  range_min_ = value;
467  // @@protoc_insertion_point(field_set:gz.msgs.LidarSensor.range_min)
468 }
469 
470 // double range_max = 12;
472  range_max_ = 0;
473 }
474 inline double LidarSensor::range_max() const {
475  // @@protoc_insertion_point(field_get:gz.msgs.LidarSensor.range_max)
476  return range_max_;
477 }
478 inline void LidarSensor::set_range_max(double value) {
479 
480  range_max_ = value;
481  // @@protoc_insertion_point(field_set:gz.msgs.LidarSensor.range_max)
482 }
483 
484 // double range_resolution = 13;
486  range_resolution_ = 0;
487 }
488 inline double LidarSensor::range_resolution() const {
489  // @@protoc_insertion_point(field_get:gz.msgs.LidarSensor.range_resolution)
490  return range_resolution_;
491 }
492 inline void LidarSensor::set_range_resolution(double value) {
493 
494  range_resolution_ = value;
495  // @@protoc_insertion_point(field_set:gz.msgs.LidarSensor.range_resolution)
496 }
497 
498 // .gz.msgs.SensorNoise noise = 14;
499 inline bool LidarSensor::has_noise() const {
500  return this != internal_default_instance() && noise_ != NULL;
501 }
502 inline const ::gz::msgs::SensorNoise& LidarSensor::_internal_noise() const {
503  return *noise_;
504 }
505 inline const ::gz::msgs::SensorNoise& LidarSensor::noise() const {
506  const ::gz::msgs::SensorNoise* p = noise_;
507  // @@protoc_insertion_point(field_get:gz.msgs.LidarSensor.noise)
508  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::SensorNoise*>(
510 }
511 inline ::gz::msgs::SensorNoise* LidarSensor::release_noise() {
512  // @@protoc_insertion_point(field_release:gz.msgs.LidarSensor.noise)
513 
514  ::gz::msgs::SensorNoise* temp = noise_;
515  noise_ = NULL;
516  return temp;
517 }
518 inline ::gz::msgs::SensorNoise* LidarSensor::mutable_noise() {
519 
520  if (noise_ == NULL) {
521  auto* p = CreateMaybeMessage<::gz::msgs::SensorNoise>(GetArenaNoVirtual());
522  noise_ = p;
523  }
524  // @@protoc_insertion_point(field_mutable:gz.msgs.LidarSensor.noise)
525  return noise_;
526 }
528  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
529  if (message_arena == NULL) {
530  delete reinterpret_cast< ::google::protobuf::MessageLite*>(noise_);
531  }
532  if (noise) {
533  ::google::protobuf::Arena* submessage_arena = NULL;
534  if (message_arena != submessage_arena) {
535  noise = ::google::protobuf::internal::GetOwnedMessage(
536  message_arena, noise, submessage_arena);
537  }
538 
539  } else {
540 
541  }
542  noise_ = noise;
543  // @@protoc_insertion_point(field_set_allocated:gz.msgs.LidarSensor.noise)
544 }
545 
546 #ifdef __GNUC__
547  #pragma GCC diagnostic pop
548 #endif // __GNUC__
549 
550 // @@protoc_insertion_point(namespace_scope)
551 
552 } // namespace msgs
553 } // namespace gz
554 
555 // @@protoc_insertion_point(global_scope)
556 
557 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2flidar_5fsensor_2eproto