Gazebo Msgs

API Reference

9.5.0
lens.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/lens.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2flens_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2flens_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/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 // @@protoc_insertion_point(includes)
35 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2flens_2eproto GZ_MSGS_VISIBLE
36 
38 // Internal implementation detail -- do not use these members.
39 struct GZ_MSGS_VISIBLE TableStruct {
40  static const ::google::protobuf::internal::ParseTableField entries[];
41  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
42  static const ::google::protobuf::internal::ParseTable schema[1];
43  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
44  static const ::google::protobuf::internal::SerializationTable serialization_table[];
45  static const ::google::protobuf::uint32 offsets[];
46 };
47 void GZ_MSGS_VISIBLE AddDescriptors();
48 } // namespace protobuf_gz_2fmsgs_2flens_2eproto
49 namespace gz {
50 namespace msgs {
51 class Lens;
52 class LensDefaultTypeInternal;
53 GZ_MSGS_VISIBLE extern LensDefaultTypeInternal _Lens_default_instance_;
54 } // namespace msgs
55 } // namespace gz
56 namespace google {
57 namespace protobuf {
58 template<> GZ_MSGS_VISIBLE ::gz::msgs::Lens* Arena::CreateMaybeMessage<::gz::msgs::Lens>(Arena*);
59 } // namespace protobuf
60 } // namespace google
61 namespace gz {
62 namespace msgs {
63 
64 enum Lens_Type {
72  Lens_Type_Lens_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
73  Lens_Type_Lens_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
74 };
75 GZ_MSGS_VISIBLE bool Lens_Type_IsValid(int value);
79 
80 GZ_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Lens_Type_descriptor();
81 inline const ::std::string& Lens_Type_Name(Lens_Type value) {
82  return ::google::protobuf::internal::NameOfEnum(
83  Lens_Type_descriptor(), value);
84 }
85 inline bool Lens_Type_Parse(
86  const ::std::string& name, Lens_Type* value) {
87  return ::google::protobuf::internal::ParseNamedEnum<Lens_Type>(
88  Lens_Type_descriptor(), name, value);
89 }
97 };
98 GZ_MSGS_VISIBLE bool Lens_FunctionType_IsValid(int value);
102 
103 GZ_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Lens_FunctionType_descriptor();
104 inline const ::std::string& Lens_FunctionType_Name(Lens_FunctionType value) {
105  return ::google::protobuf::internal::NameOfEnum(
107 }
109  const ::std::string& name, Lens_FunctionType* value) {
110  return ::google::protobuf::internal::ParseNamedEnum<Lens_FunctionType>(
111  Lens_FunctionType_descriptor(), name, value);
112 }
113 // ===================================================================
114 
115 class GZ_MSGS_VISIBLE Lens : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Lens) */ {
116  public:
117  Lens();
118  virtual ~Lens();
119 
120  Lens(const Lens& from);
121 
122  inline Lens& operator=(const Lens& from) {
123  CopyFrom(from);
124  return *this;
125  }
126  #if LANG_CXX11
127  Lens(Lens&& from) noexcept
128  : Lens() {
129  *this = ::std::move(from);
130  }
131 
132  inline Lens& operator=(Lens&& from) noexcept {
133  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
134  if (this != &from) InternalSwap(&from);
135  } else {
136  CopyFrom(from);
137  }
138  return *this;
139  }
140  #endif
141  static const ::google::protobuf::Descriptor* descriptor();
142  static const Lens& default_instance();
143 
144  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
145  static inline const Lens* internal_default_instance() {
146  return reinterpret_cast<const Lens*>(
148  }
149  static constexpr int kIndexInFileMessages =
150  0;
151 
152  void Swap(Lens* other);
153  friend void swap(Lens& a, Lens& b) {
154  a.Swap(&b);
155  }
156 
157  // implements Message ----------------------------------------------
158 
159  inline Lens* New() const final {
160  return CreateMaybeMessage<Lens>(NULL);
161  }
162 
163  Lens* New(::google::protobuf::Arena* arena) const final {
164  return CreateMaybeMessage<Lens>(arena);
165  }
166  void CopyFrom(const ::google::protobuf::Message& from) final;
167  void MergeFrom(const ::google::protobuf::Message& from) final;
168  void CopyFrom(const Lens& from);
169  void MergeFrom(const Lens& from);
170  void Clear() final;
171  bool IsInitialized() const final;
172 
173  size_t ByteSizeLong() const final;
174  bool MergePartialFromCodedStream(
175  ::google::protobuf::io::CodedInputStream* input) final;
176  void SerializeWithCachedSizes(
177  ::google::protobuf::io::CodedOutputStream* output) const final;
178  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
179  bool deterministic, ::google::protobuf::uint8* target) const final;
180  int GetCachedSize() const final { return _cached_size_.Get(); }
181 
182  private:
183  void SharedCtor();
184  void SharedDtor();
185  void SetCachedSize(int size) const final;
186  void InternalSwap(Lens* other);
187  private:
188  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
189  return NULL;
190  }
191  inline void* MaybeArenaPtr() const {
192  return NULL;
193  }
194  public:
195 
196  ::google::protobuf::Metadata GetMetadata() const final;
197 
198  // nested types ----------------------------------------------------
199 
200  typedef Lens_Type Type;
201  static const Type TYPE_NOT_SPECIFIED =
203  static const Type GNOMONICAL =
205  static const Type STEREOGRAPHIC =
207  static const Type EQUIDISTANT =
209  static const Type EQUISOLID_ANGLE =
211  static const Type ORTHOGRAPHIC =
213  static const Type CUSTOM =
215  static inline bool Type_IsValid(int value) {
216  return Lens_Type_IsValid(value);
217  }
218  static const Type Type_MIN =
220  static const Type Type_MAX =
222  static const int Type_ARRAYSIZE =
224  static inline const ::google::protobuf::EnumDescriptor*
226  return Lens_Type_descriptor();
227  }
228  static inline const ::std::string& Type_Name(Type value) {
229  return Lens_Type_Name(value);
230  }
231  static inline bool Type_Parse(const ::std::string& name,
232  Type* value) {
233  return Lens_Type_Parse(name, value);
234  }
235 
237  static const FunctionType FUNCTION_NOT_SPECIFIED =
239  static const FunctionType SIN =
241  static const FunctionType TAN =
243  static const FunctionType ID =
245  static inline bool FunctionType_IsValid(int value) {
246  return Lens_FunctionType_IsValid(value);
247  }
248  static const FunctionType FunctionType_MIN =
250  static const FunctionType FunctionType_MAX =
252  static const int FunctionType_ARRAYSIZE =
254  static inline const ::google::protobuf::EnumDescriptor*
257  }
258  static inline const ::std::string& FunctionType_Name(FunctionType value) {
259  return Lens_FunctionType_Name(value);
260  }
261  static inline bool FunctionType_Parse(const ::std::string& name,
262  FunctionType* value) {
263  return Lens_FunctionType_Parse(name, value);
264  }
265 
266  // accessors -------------------------------------------------------
267 
268  // .gz.msgs.Lens.Type type = 1;
269  void clear_type();
270  static const int kTypeFieldNumber = 1;
271  ::gz::msgs::Lens_Type type() const;
272  void set_type(::gz::msgs::Lens_Type value);
273 
274  // bool scale_to_hfov = 2;
275  void clear_scale_to_hfov();
276  static const int kScaleToHfovFieldNumber = 2;
277  bool scale_to_hfov() const;
278  void set_scale_to_hfov(bool value);
279 
280  // double c1 = 3;
281  void clear_c1();
282  static const int kC1FieldNumber = 3;
283  double c1() const;
284  void set_c1(double value);
285 
286  // double c2 = 4;
287  void clear_c2();
288  static const int kC2FieldNumber = 4;
289  double c2() const;
290  void set_c2(double value);
291 
292  // double c3 = 5;
293  void clear_c3();
294  static const int kC3FieldNumber = 5;
295  double c3() const;
296  void set_c3(double value);
297 
298  // double focal_length = 6;
299  void clear_focal_length();
300  static const int kFocalLengthFieldNumber = 6;
301  double focal_length() const;
302  void set_focal_length(double value);
303 
304  // double cutoff_angle = 8;
305  void clear_cutoff_angle();
306  static const int kCutoffAngleFieldNumber = 8;
307  double cutoff_angle() const;
308  void set_cutoff_angle(double value);
309 
310  // .gz.msgs.Lens.FunctionType function_type = 7;
311  void clear_function_type();
312  static const int kFunctionTypeFieldNumber = 7;
313  ::gz::msgs::Lens_FunctionType function_type() const;
314  void set_function_type(::gz::msgs::Lens_FunctionType value);
315 
316  // int32 environment_texture_size = 9;
317  void clear_environment_texture_size();
318  static const int kEnvironmentTextureSizeFieldNumber = 9;
319  ::google::protobuf::int32 environment_texture_size() const;
320  void set_environment_texture_size(::google::protobuf::int32 value);
321 
322  // double intrinsics_fx = 10;
323  void clear_intrinsics_fx();
324  static const int kIntrinsicsFxFieldNumber = 10;
325  double intrinsics_fx() const;
326  void set_intrinsics_fx(double value);
327 
328  // double intrinsics_fy = 11;
329  void clear_intrinsics_fy();
330  static const int kIntrinsicsFyFieldNumber = 11;
331  double intrinsics_fy() const;
332  void set_intrinsics_fy(double value);
333 
334  // double intrinsics_cx = 12;
335  void clear_intrinsics_cx();
336  static const int kIntrinsicsCxFieldNumber = 12;
337  double intrinsics_cx() const;
338  void set_intrinsics_cx(double value);
339 
340  // double intrinsics_cy = 13;
341  void clear_intrinsics_cy();
342  static const int kIntrinsicsCyFieldNumber = 13;
343  double intrinsics_cy() const;
344  void set_intrinsics_cy(double value);
345 
346  // double intrinsics_skew = 14;
347  void clear_intrinsics_skew();
348  static const int kIntrinsicsSkewFieldNumber = 14;
349  double intrinsics_skew() const;
350  void set_intrinsics_skew(double value);
351 
352  // @@protoc_insertion_point(class_scope:gz.msgs.Lens)
353  private:
354 
355  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
356  int type_;
357  bool scale_to_hfov_;
358  double c1_;
359  double c2_;
360  double c3_;
361  double focal_length_;
362  double cutoff_angle_;
363  int function_type_;
364  ::google::protobuf::int32 environment_texture_size_;
365  double intrinsics_fx_;
366  double intrinsics_fy_;
367  double intrinsics_cx_;
368  double intrinsics_cy_;
369  double intrinsics_skew_;
370  mutable ::google::protobuf::internal::CachedSize _cached_size_;
371  friend struct ::protobuf_gz_2fmsgs_2flens_2eproto::TableStruct;
372 };
373 // ===================================================================
374 
375 
376 // ===================================================================
377 
378 #ifdef __GNUC__
379  #pragma GCC diagnostic push
380  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
381 #endif // __GNUC__
382 // Lens
383 
384 // .gz.msgs.Lens.Type type = 1;
385 inline void Lens::clear_type() {
386  type_ = 0;
387 }
389  // @@protoc_insertion_point(field_get:gz.msgs.Lens.type)
390  return static_cast< ::gz::msgs::Lens_Type >(type_);
391 }
392 inline void Lens::set_type(::gz::msgs::Lens_Type value) {
393 
394  type_ = value;
395  // @@protoc_insertion_point(field_set:gz.msgs.Lens.type)
396 }
397 
398 // bool scale_to_hfov = 2;
400  scale_to_hfov_ = false;
401 }
402 inline bool Lens::scale_to_hfov() const {
403  // @@protoc_insertion_point(field_get:gz.msgs.Lens.scale_to_hfov)
404  return scale_to_hfov_;
405 }
406 inline void Lens::set_scale_to_hfov(bool value) {
407 
408  scale_to_hfov_ = value;
409  // @@protoc_insertion_point(field_set:gz.msgs.Lens.scale_to_hfov)
410 }
411 
412 // double c1 = 3;
413 inline void Lens::clear_c1() {
414  c1_ = 0;
415 }
416 inline double Lens::c1() const {
417  // @@protoc_insertion_point(field_get:gz.msgs.Lens.c1)
418  return c1_;
419 }
420 inline void Lens::set_c1(double value) {
421 
422  c1_ = value;
423  // @@protoc_insertion_point(field_set:gz.msgs.Lens.c1)
424 }
425 
426 // double c2 = 4;
427 inline void Lens::clear_c2() {
428  c2_ = 0;
429 }
430 inline double Lens::c2() const {
431  // @@protoc_insertion_point(field_get:gz.msgs.Lens.c2)
432  return c2_;
433 }
434 inline void Lens::set_c2(double value) {
435 
436  c2_ = value;
437  // @@protoc_insertion_point(field_set:gz.msgs.Lens.c2)
438 }
439 
440 // double c3 = 5;
441 inline void Lens::clear_c3() {
442  c3_ = 0;
443 }
444 inline double Lens::c3() const {
445  // @@protoc_insertion_point(field_get:gz.msgs.Lens.c3)
446  return c3_;
447 }
448 inline void Lens::set_c3(double value) {
449 
450  c3_ = value;
451  // @@protoc_insertion_point(field_set:gz.msgs.Lens.c3)
452 }
453 
454 // double focal_length = 6;
456  focal_length_ = 0;
457 }
458 inline double Lens::focal_length() const {
459  // @@protoc_insertion_point(field_get:gz.msgs.Lens.focal_length)
460  return focal_length_;
461 }
462 inline void Lens::set_focal_length(double value) {
463 
464  focal_length_ = value;
465  // @@protoc_insertion_point(field_set:gz.msgs.Lens.focal_length)
466 }
467 
468 // .gz.msgs.Lens.FunctionType function_type = 7;
470  function_type_ = 0;
471 }
473  // @@protoc_insertion_point(field_get:gz.msgs.Lens.function_type)
474  return static_cast< ::gz::msgs::Lens_FunctionType >(function_type_);
475 }
477 
478  function_type_ = value;
479  // @@protoc_insertion_point(field_set:gz.msgs.Lens.function_type)
480 }
481 
482 // double cutoff_angle = 8;
484  cutoff_angle_ = 0;
485 }
486 inline double Lens::cutoff_angle() const {
487  // @@protoc_insertion_point(field_get:gz.msgs.Lens.cutoff_angle)
488  return cutoff_angle_;
489 }
490 inline void Lens::set_cutoff_angle(double value) {
491 
492  cutoff_angle_ = value;
493  // @@protoc_insertion_point(field_set:gz.msgs.Lens.cutoff_angle)
494 }
495 
496 // int32 environment_texture_size = 9;
498  environment_texture_size_ = 0;
499 }
500 inline ::google::protobuf::int32 Lens::environment_texture_size() const {
501  // @@protoc_insertion_point(field_get:gz.msgs.Lens.environment_texture_size)
502  return environment_texture_size_;
503 }
504 inline void Lens::set_environment_texture_size(::google::protobuf::int32 value) {
505 
506  environment_texture_size_ = value;
507  // @@protoc_insertion_point(field_set:gz.msgs.Lens.environment_texture_size)
508 }
509 
510 // double intrinsics_fx = 10;
512  intrinsics_fx_ = 0;
513 }
514 inline double Lens::intrinsics_fx() const {
515  // @@protoc_insertion_point(field_get:gz.msgs.Lens.intrinsics_fx)
516  return intrinsics_fx_;
517 }
518 inline void Lens::set_intrinsics_fx(double value) {
519 
520  intrinsics_fx_ = value;
521  // @@protoc_insertion_point(field_set:gz.msgs.Lens.intrinsics_fx)
522 }
523 
524 // double intrinsics_fy = 11;
526  intrinsics_fy_ = 0;
527 }
528 inline double Lens::intrinsics_fy() const {
529  // @@protoc_insertion_point(field_get:gz.msgs.Lens.intrinsics_fy)
530  return intrinsics_fy_;
531 }
532 inline void Lens::set_intrinsics_fy(double value) {
533 
534  intrinsics_fy_ = value;
535  // @@protoc_insertion_point(field_set:gz.msgs.Lens.intrinsics_fy)
536 }
537 
538 // double intrinsics_cx = 12;
540  intrinsics_cx_ = 0;
541 }
542 inline double Lens::intrinsics_cx() const {
543  // @@protoc_insertion_point(field_get:gz.msgs.Lens.intrinsics_cx)
544  return intrinsics_cx_;
545 }
546 inline void Lens::set_intrinsics_cx(double value) {
547 
548  intrinsics_cx_ = value;
549  // @@protoc_insertion_point(field_set:gz.msgs.Lens.intrinsics_cx)
550 }
551 
552 // double intrinsics_cy = 13;
554  intrinsics_cy_ = 0;
555 }
556 inline double Lens::intrinsics_cy() const {
557  // @@protoc_insertion_point(field_get:gz.msgs.Lens.intrinsics_cy)
558  return intrinsics_cy_;
559 }
560 inline void Lens::set_intrinsics_cy(double value) {
561 
562  intrinsics_cy_ = value;
563  // @@protoc_insertion_point(field_set:gz.msgs.Lens.intrinsics_cy)
564 }
565 
566 // double intrinsics_skew = 14;
568  intrinsics_skew_ = 0;
569 }
570 inline double Lens::intrinsics_skew() const {
571  // @@protoc_insertion_point(field_get:gz.msgs.Lens.intrinsics_skew)
572  return intrinsics_skew_;
573 }
574 inline void Lens::set_intrinsics_skew(double value) {
575 
576  intrinsics_skew_ = value;
577  // @@protoc_insertion_point(field_set:gz.msgs.Lens.intrinsics_skew)
578 }
579 
580 #ifdef __GNUC__
581  #pragma GCC diagnostic pop
582 #endif // __GNUC__
583 
584 // @@protoc_insertion_point(namespace_scope)
585 
586 } // namespace msgs
587 } // namespace gz
588 
589 namespace google {
590 namespace protobuf {
591 
592 template <> struct is_proto_enum< ::gz::msgs::Lens_Type> : ::std::true_type {};
593 template <>
594 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Lens_Type>() {
596 }
597 template <> struct is_proto_enum< ::gz::msgs::Lens_FunctionType> : ::std::true_type {};
598 template <>
599 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Lens_FunctionType>() {
601 }
602 
603 } // namespace protobuf
604 } // namespace google
605 
606 // @@protoc_insertion_point(global_scope)
607 
608 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2flens_2eproto