Gazebo Msgs

API Reference

9.5.0
camera_info.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/camera_info.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fcamera_5finfo_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fcamera_5finfo_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 #include "gz/msgs/header.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fcamera_5finfo_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[4];
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_2fcamera_5finfo_2eproto
50 namespace gz {
51 namespace msgs {
52 class CameraInfo;
53 class CameraInfoDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern CameraInfoDefaultTypeInternal _CameraInfo_default_instance_;
55 class CameraInfo_Distortion;
56 class CameraInfo_DistortionDefaultTypeInternal;
57 GZ_MSGS_VISIBLE extern CameraInfo_DistortionDefaultTypeInternal _CameraInfo_Distortion_default_instance_;
58 class CameraInfo_Intrinsics;
59 class CameraInfo_IntrinsicsDefaultTypeInternal;
60 GZ_MSGS_VISIBLE extern CameraInfo_IntrinsicsDefaultTypeInternal _CameraInfo_Intrinsics_default_instance_;
61 class CameraInfo_Projection;
62 class CameraInfo_ProjectionDefaultTypeInternal;
63 GZ_MSGS_VISIBLE extern CameraInfo_ProjectionDefaultTypeInternal _CameraInfo_Projection_default_instance_;
64 } // namespace msgs
65 } // namespace gz
66 namespace google {
67 namespace protobuf {
68 template<> GZ_MSGS_VISIBLE ::gz::msgs::CameraInfo* Arena::CreateMaybeMessage<::gz::msgs::CameraInfo>(Arena*);
69 template<> GZ_MSGS_VISIBLE ::gz::msgs::CameraInfo_Distortion* Arena::CreateMaybeMessage<::gz::msgs::CameraInfo_Distortion>(Arena*);
70 template<> GZ_MSGS_VISIBLE ::gz::msgs::CameraInfo_Intrinsics* Arena::CreateMaybeMessage<::gz::msgs::CameraInfo_Intrinsics>(Arena*);
71 template<> GZ_MSGS_VISIBLE ::gz::msgs::CameraInfo_Projection* Arena::CreateMaybeMessage<::gz::msgs::CameraInfo_Projection>(Arena*);
72 } // namespace protobuf
73 } // namespace google
74 namespace gz {
75 namespace msgs {
76 
83 };
84 GZ_MSGS_VISIBLE bool CameraInfo_Distortion_DistortionModelType_IsValid(int value);
88 
89 GZ_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* CameraInfo_Distortion_DistortionModelType_descriptor();
91  return ::google::protobuf::internal::NameOfEnum(
93 }
95  const ::std::string& name, CameraInfo_Distortion_DistortionModelType* value) {
96  return ::google::protobuf::internal::ParseNamedEnum<CameraInfo_Distortion_DistortionModelType>(
98 }
99 // ===================================================================
100 
101 class GZ_MSGS_VISIBLE CameraInfo_Distortion : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.CameraInfo.Distortion) */ {
102  public:
104  virtual ~CameraInfo_Distortion();
105 
107 
109  CopyFrom(from);
110  return *this;
111  }
112  #if LANG_CXX11
115  *this = ::std::move(from);
116  }
117 
118  inline CameraInfo_Distortion& operator=(CameraInfo_Distortion&& from) noexcept {
119  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
120  if (this != &from) InternalSwap(&from);
121  } else {
122  CopyFrom(from);
123  }
124  return *this;
125  }
126  #endif
127  static const ::google::protobuf::Descriptor* descriptor();
128  static const CameraInfo_Distortion& default_instance();
129 
130  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
132  return reinterpret_cast<const CameraInfo_Distortion*>(
134  }
135  static constexpr int kIndexInFileMessages =
136  0;
137 
138  void Swap(CameraInfo_Distortion* other);
140  a.Swap(&b);
141  }
142 
143  // implements Message ----------------------------------------------
144 
145  inline CameraInfo_Distortion* New() const final {
146  return CreateMaybeMessage<CameraInfo_Distortion>(NULL);
147  }
148 
149  CameraInfo_Distortion* New(::google::protobuf::Arena* arena) const final {
150  return CreateMaybeMessage<CameraInfo_Distortion>(arena);
151  }
152  void CopyFrom(const ::google::protobuf::Message& from) final;
153  void MergeFrom(const ::google::protobuf::Message& from) final;
154  void CopyFrom(const CameraInfo_Distortion& from);
155  void MergeFrom(const CameraInfo_Distortion& from);
156  void Clear() final;
157  bool IsInitialized() const final;
158 
159  size_t ByteSizeLong() const final;
160  bool MergePartialFromCodedStream(
161  ::google::protobuf::io::CodedInputStream* input) final;
162  void SerializeWithCachedSizes(
163  ::google::protobuf::io::CodedOutputStream* output) const final;
164  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
165  bool deterministic, ::google::protobuf::uint8* target) const final;
166  int GetCachedSize() const final { return _cached_size_.Get(); }
167 
168  private:
169  void SharedCtor();
170  void SharedDtor();
171  void SetCachedSize(int size) const final;
172  void InternalSwap(CameraInfo_Distortion* other);
173  private:
174  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
175  return NULL;
176  }
177  inline void* MaybeArenaPtr() const {
178  return NULL;
179  }
180  public:
181 
182  ::google::protobuf::Metadata GetMetadata() const final;
183 
184  // nested types ----------------------------------------------------
185 
187  static const DistortionModelType PLUMB_BOB =
189  static const DistortionModelType RATIONAL_POLYNOMIAL =
191  static const DistortionModelType EQUIDISTANT =
193  static inline bool DistortionModelType_IsValid(int value) {
195  }
196  static const DistortionModelType DistortionModelType_MIN =
198  static const DistortionModelType DistortionModelType_MAX =
200  static const int DistortionModelType_ARRAYSIZE =
202  static inline const ::google::protobuf::EnumDescriptor*
205  }
206  static inline const ::std::string& DistortionModelType_Name(DistortionModelType value) {
208  }
209  static inline bool DistortionModelType_Parse(const ::std::string& name,
210  DistortionModelType* value) {
212  }
213 
214  // accessors -------------------------------------------------------
215 
216  // repeated double k = 2;
217  int k_size() const;
218  void clear_k();
219  static const int kKFieldNumber = 2;
220  double k(int index) const;
221  void set_k(int index, double value);
222  void add_k(double value);
223  const ::google::protobuf::RepeatedField< double >&
224  k() const;
225  ::google::protobuf::RepeatedField< double >*
226  mutable_k();
227 
228  // .gz.msgs.CameraInfo.Distortion.DistortionModelType model = 1;
229  void clear_model();
230  static const int kModelFieldNumber = 1;
233 
234  // @@protoc_insertion_point(class_scope:gz.msgs.CameraInfo.Distortion)
235  private:
236 
237  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
238  ::google::protobuf::RepeatedField< double > k_;
239  mutable int _k_cached_byte_size_;
240  int model_;
241  mutable ::google::protobuf::internal::CachedSize _cached_size_;
242  friend struct ::protobuf_gz_2fmsgs_2fcamera_5finfo_2eproto::TableStruct;
243 };
244 // -------------------------------------------------------------------
245 
246 class GZ_MSGS_VISIBLE CameraInfo_Intrinsics : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.CameraInfo.Intrinsics) */ {
247  public:
249  virtual ~CameraInfo_Intrinsics();
250 
252 
254  CopyFrom(from);
255  return *this;
256  }
257  #if LANG_CXX11
260  *this = ::std::move(from);
261  }
262 
263  inline CameraInfo_Intrinsics& operator=(CameraInfo_Intrinsics&& from) noexcept {
264  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
265  if (this != &from) InternalSwap(&from);
266  } else {
267  CopyFrom(from);
268  }
269  return *this;
270  }
271  #endif
272  static const ::google::protobuf::Descriptor* descriptor();
273  static const CameraInfo_Intrinsics& default_instance();
274 
275  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
277  return reinterpret_cast<const CameraInfo_Intrinsics*>(
279  }
280  static constexpr int kIndexInFileMessages =
281  1;
282 
283  void Swap(CameraInfo_Intrinsics* other);
285  a.Swap(&b);
286  }
287 
288  // implements Message ----------------------------------------------
289 
290  inline CameraInfo_Intrinsics* New() const final {
291  return CreateMaybeMessage<CameraInfo_Intrinsics>(NULL);
292  }
293 
294  CameraInfo_Intrinsics* New(::google::protobuf::Arena* arena) const final {
295  return CreateMaybeMessage<CameraInfo_Intrinsics>(arena);
296  }
297  void CopyFrom(const ::google::protobuf::Message& from) final;
298  void MergeFrom(const ::google::protobuf::Message& from) final;
299  void CopyFrom(const CameraInfo_Intrinsics& from);
300  void MergeFrom(const CameraInfo_Intrinsics& from);
301  void Clear() final;
302  bool IsInitialized() const final;
303 
304  size_t ByteSizeLong() const final;
305  bool MergePartialFromCodedStream(
306  ::google::protobuf::io::CodedInputStream* input) final;
307  void SerializeWithCachedSizes(
308  ::google::protobuf::io::CodedOutputStream* output) const final;
309  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
310  bool deterministic, ::google::protobuf::uint8* target) const final;
311  int GetCachedSize() const final { return _cached_size_.Get(); }
312 
313  private:
314  void SharedCtor();
315  void SharedDtor();
316  void SetCachedSize(int size) const final;
317  void InternalSwap(CameraInfo_Intrinsics* other);
318  private:
319  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
320  return NULL;
321  }
322  inline void* MaybeArenaPtr() const {
323  return NULL;
324  }
325  public:
326 
327  ::google::protobuf::Metadata GetMetadata() const final;
328 
329  // nested types ----------------------------------------------------
330 
331  // accessors -------------------------------------------------------
332 
333  // repeated double k = 1;
334  int k_size() const;
335  void clear_k();
336  static const int kKFieldNumber = 1;
337  double k(int index) const;
338  void set_k(int index, double value);
339  void add_k(double value);
340  const ::google::protobuf::RepeatedField< double >&
341  k() const;
342  ::google::protobuf::RepeatedField< double >*
343  mutable_k();
344 
345  // @@protoc_insertion_point(class_scope:gz.msgs.CameraInfo.Intrinsics)
346  private:
347 
348  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
349  ::google::protobuf::RepeatedField< double > k_;
350  mutable int _k_cached_byte_size_;
351  mutable ::google::protobuf::internal::CachedSize _cached_size_;
352  friend struct ::protobuf_gz_2fmsgs_2fcamera_5finfo_2eproto::TableStruct;
353 };
354 // -------------------------------------------------------------------
355 
356 class GZ_MSGS_VISIBLE CameraInfo_Projection : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.CameraInfo.Projection) */ {
357  public:
359  virtual ~CameraInfo_Projection();
360 
362 
364  CopyFrom(from);
365  return *this;
366  }
367  #if LANG_CXX11
370  *this = ::std::move(from);
371  }
372 
373  inline CameraInfo_Projection& operator=(CameraInfo_Projection&& from) noexcept {
374  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
375  if (this != &from) InternalSwap(&from);
376  } else {
377  CopyFrom(from);
378  }
379  return *this;
380  }
381  #endif
382  static const ::google::protobuf::Descriptor* descriptor();
383  static const CameraInfo_Projection& default_instance();
384 
385  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
387  return reinterpret_cast<const CameraInfo_Projection*>(
389  }
390  static constexpr int kIndexInFileMessages =
391  2;
392 
393  void Swap(CameraInfo_Projection* other);
395  a.Swap(&b);
396  }
397 
398  // implements Message ----------------------------------------------
399 
400  inline CameraInfo_Projection* New() const final {
401  return CreateMaybeMessage<CameraInfo_Projection>(NULL);
402  }
403 
404  CameraInfo_Projection* New(::google::protobuf::Arena* arena) const final {
405  return CreateMaybeMessage<CameraInfo_Projection>(arena);
406  }
407  void CopyFrom(const ::google::protobuf::Message& from) final;
408  void MergeFrom(const ::google::protobuf::Message& from) final;
409  void CopyFrom(const CameraInfo_Projection& from);
410  void MergeFrom(const CameraInfo_Projection& from);
411  void Clear() final;
412  bool IsInitialized() const final;
413 
414  size_t ByteSizeLong() const final;
415  bool MergePartialFromCodedStream(
416  ::google::protobuf::io::CodedInputStream* input) final;
417  void SerializeWithCachedSizes(
418  ::google::protobuf::io::CodedOutputStream* output) const final;
419  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
420  bool deterministic, ::google::protobuf::uint8* target) const final;
421  int GetCachedSize() const final { return _cached_size_.Get(); }
422 
423  private:
424  void SharedCtor();
425  void SharedDtor();
426  void SetCachedSize(int size) const final;
427  void InternalSwap(CameraInfo_Projection* other);
428  private:
429  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
430  return NULL;
431  }
432  inline void* MaybeArenaPtr() const {
433  return NULL;
434  }
435  public:
436 
437  ::google::protobuf::Metadata GetMetadata() const final;
438 
439  // nested types ----------------------------------------------------
440 
441  // accessors -------------------------------------------------------
442 
443  // repeated double p = 1;
444  int p_size() const;
445  void clear_p();
446  static const int kPFieldNumber = 1;
447  double p(int index) const;
448  void set_p(int index, double value);
449  void add_p(double value);
450  const ::google::protobuf::RepeatedField< double >&
451  p() const;
452  ::google::protobuf::RepeatedField< double >*
453  mutable_p();
454 
455  // @@protoc_insertion_point(class_scope:gz.msgs.CameraInfo.Projection)
456  private:
457 
458  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
459  ::google::protobuf::RepeatedField< double > p_;
460  mutable int _p_cached_byte_size_;
461  mutable ::google::protobuf::internal::CachedSize _cached_size_;
462  friend struct ::protobuf_gz_2fmsgs_2fcamera_5finfo_2eproto::TableStruct;
463 };
464 // -------------------------------------------------------------------
465 
466 class GZ_MSGS_VISIBLE CameraInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.CameraInfo) */ {
467  public:
468  CameraInfo();
469  virtual ~CameraInfo();
470 
471  CameraInfo(const CameraInfo& from);
472 
473  inline CameraInfo& operator=(const CameraInfo& from) {
474  CopyFrom(from);
475  return *this;
476  }
477  #if LANG_CXX11
478  CameraInfo(CameraInfo&& from) noexcept
479  : CameraInfo() {
480  *this = ::std::move(from);
481  }
482 
483  inline CameraInfo& operator=(CameraInfo&& from) noexcept {
484  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
485  if (this != &from) InternalSwap(&from);
486  } else {
487  CopyFrom(from);
488  }
489  return *this;
490  }
491  #endif
492  static const ::google::protobuf::Descriptor* descriptor();
493  static const CameraInfo& default_instance();
494 
495  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
496  static inline const CameraInfo* internal_default_instance() {
497  return reinterpret_cast<const CameraInfo*>(
499  }
500  static constexpr int kIndexInFileMessages =
501  3;
502 
503  void Swap(CameraInfo* other);
504  friend void swap(CameraInfo& a, CameraInfo& b) {
505  a.Swap(&b);
506  }
507 
508  // implements Message ----------------------------------------------
509 
510  inline CameraInfo* New() const final {
511  return CreateMaybeMessage<CameraInfo>(NULL);
512  }
513 
514  CameraInfo* New(::google::protobuf::Arena* arena) const final {
515  return CreateMaybeMessage<CameraInfo>(arena);
516  }
517  void CopyFrom(const ::google::protobuf::Message& from) final;
518  void MergeFrom(const ::google::protobuf::Message& from) final;
519  void CopyFrom(const CameraInfo& from);
520  void MergeFrom(const CameraInfo& from);
521  void Clear() final;
522  bool IsInitialized() const final;
523 
524  size_t ByteSizeLong() const final;
525  bool MergePartialFromCodedStream(
526  ::google::protobuf::io::CodedInputStream* input) final;
527  void SerializeWithCachedSizes(
528  ::google::protobuf::io::CodedOutputStream* output) const final;
529  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
530  bool deterministic, ::google::protobuf::uint8* target) const final;
531  int GetCachedSize() const final { return _cached_size_.Get(); }
532 
533  private:
534  void SharedCtor();
535  void SharedDtor();
536  void SetCachedSize(int size) const final;
537  void InternalSwap(CameraInfo* other);
538  private:
539  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
540  return NULL;
541  }
542  inline void* MaybeArenaPtr() const {
543  return NULL;
544  }
545  public:
546 
547  ::google::protobuf::Metadata GetMetadata() const final;
548 
549  // nested types ----------------------------------------------------
550 
554 
555  // accessors -------------------------------------------------------
556 
557  // repeated double rectification_matrix = 7 [packed = true];
558  int rectification_matrix_size() const;
559  void clear_rectification_matrix();
560  static const int kRectificationMatrixFieldNumber = 7;
561  double rectification_matrix(int index) const;
562  void set_rectification_matrix(int index, double value);
563  void add_rectification_matrix(double value);
564  const ::google::protobuf::RepeatedField< double >&
565  rectification_matrix() const;
566  ::google::protobuf::RepeatedField< double >*
567  mutable_rectification_matrix();
568 
569  // .gz.msgs.Header header = 1;
570  bool has_header() const;
571  void clear_header();
572  static const int kHeaderFieldNumber = 1;
573  private:
574  const ::gz::msgs::Header& _internal_header() const;
575  public:
576  const ::gz::msgs::Header& header() const;
577  ::gz::msgs::Header* release_header();
578  ::gz::msgs::Header* mutable_header();
579  void set_allocated_header(::gz::msgs::Header* header);
580 
581  // .gz.msgs.CameraInfo.Distortion distortion = 4;
582  bool has_distortion() const;
583  void clear_distortion();
584  static const int kDistortionFieldNumber = 4;
585  private:
586  const ::gz::msgs::CameraInfo_Distortion& _internal_distortion() const;
587  public:
588  const ::gz::msgs::CameraInfo_Distortion& distortion() const;
589  ::gz::msgs::CameraInfo_Distortion* release_distortion();
590  ::gz::msgs::CameraInfo_Distortion* mutable_distortion();
591  void set_allocated_distortion(::gz::msgs::CameraInfo_Distortion* distortion);
592 
593  // .gz.msgs.CameraInfo.Intrinsics intrinsics = 5;
594  bool has_intrinsics() const;
595  void clear_intrinsics();
596  static const int kIntrinsicsFieldNumber = 5;
597  private:
598  const ::gz::msgs::CameraInfo_Intrinsics& _internal_intrinsics() const;
599  public:
600  const ::gz::msgs::CameraInfo_Intrinsics& intrinsics() const;
601  ::gz::msgs::CameraInfo_Intrinsics* release_intrinsics();
602  ::gz::msgs::CameraInfo_Intrinsics* mutable_intrinsics();
603  void set_allocated_intrinsics(::gz::msgs::CameraInfo_Intrinsics* intrinsics);
604 
605  // .gz.msgs.CameraInfo.Projection projection = 6;
606  bool has_projection() const;
607  void clear_projection();
608  static const int kProjectionFieldNumber = 6;
609  private:
610  const ::gz::msgs::CameraInfo_Projection& _internal_projection() const;
611  public:
612  const ::gz::msgs::CameraInfo_Projection& projection() const;
613  ::gz::msgs::CameraInfo_Projection* release_projection();
614  ::gz::msgs::CameraInfo_Projection* mutable_projection();
615  void set_allocated_projection(::gz::msgs::CameraInfo_Projection* projection);
616 
617  // uint32 width = 2;
618  void clear_width();
619  static const int kWidthFieldNumber = 2;
620  ::google::protobuf::uint32 width() const;
621  void set_width(::google::protobuf::uint32 value);
622 
623  // uint32 height = 3;
624  void clear_height();
625  static const int kHeightFieldNumber = 3;
626  ::google::protobuf::uint32 height() const;
627  void set_height(::google::protobuf::uint32 value);
628 
629  // @@protoc_insertion_point(class_scope:gz.msgs.CameraInfo)
630  private:
631 
632  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
633  ::google::protobuf::RepeatedField< double > rectification_matrix_;
634  mutable int _rectification_matrix_cached_byte_size_;
635  ::gz::msgs::Header* header_;
636  ::gz::msgs::CameraInfo_Distortion* distortion_;
637  ::gz::msgs::CameraInfo_Intrinsics* intrinsics_;
638  ::gz::msgs::CameraInfo_Projection* projection_;
639  ::google::protobuf::uint32 width_;
640  ::google::protobuf::uint32 height_;
641  mutable ::google::protobuf::internal::CachedSize _cached_size_;
642  friend struct ::protobuf_gz_2fmsgs_2fcamera_5finfo_2eproto::TableStruct;
643 };
644 // ===================================================================
645 
646 
647 // ===================================================================
648 
649 #ifdef __GNUC__
650  #pragma GCC diagnostic push
651  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
652 #endif // __GNUC__
653 // CameraInfo_Distortion
654 
655 // .gz.msgs.CameraInfo.Distortion.DistortionModelType model = 1;
657  model_ = 0;
658 }
660  // @@protoc_insertion_point(field_get:gz.msgs.CameraInfo.Distortion.model)
661  return static_cast< ::gz::msgs::CameraInfo_Distortion_DistortionModelType >(model_);
662 }
664 
665  model_ = value;
666  // @@protoc_insertion_point(field_set:gz.msgs.CameraInfo.Distortion.model)
667 }
668 
669 // repeated double k = 2;
670 inline int CameraInfo_Distortion::k_size() const {
671  return k_.size();
672 }
674  k_.Clear();
675 }
676 inline double CameraInfo_Distortion::k(int index) const {
677  // @@protoc_insertion_point(field_get:gz.msgs.CameraInfo.Distortion.k)
678  return k_.Get(index);
679 }
680 inline void CameraInfo_Distortion::set_k(int index, double value) {
681  k_.Set(index, value);
682  // @@protoc_insertion_point(field_set:gz.msgs.CameraInfo.Distortion.k)
683 }
684 inline void CameraInfo_Distortion::add_k(double value) {
685  k_.Add(value);
686  // @@protoc_insertion_point(field_add:gz.msgs.CameraInfo.Distortion.k)
687 }
688 inline const ::google::protobuf::RepeatedField< double >&
690  // @@protoc_insertion_point(field_list:gz.msgs.CameraInfo.Distortion.k)
691  return k_;
692 }
693 inline ::google::protobuf::RepeatedField< double >*
695  // @@protoc_insertion_point(field_mutable_list:gz.msgs.CameraInfo.Distortion.k)
696  return &k_;
697 }
698 
699 // -------------------------------------------------------------------
700 
701 // CameraInfo_Intrinsics
702 
703 // repeated double k = 1;
704 inline int CameraInfo_Intrinsics::k_size() const {
705  return k_.size();
706 }
708  k_.Clear();
709 }
710 inline double CameraInfo_Intrinsics::k(int index) const {
711  // @@protoc_insertion_point(field_get:gz.msgs.CameraInfo.Intrinsics.k)
712  return k_.Get(index);
713 }
714 inline void CameraInfo_Intrinsics::set_k(int index, double value) {
715  k_.Set(index, value);
716  // @@protoc_insertion_point(field_set:gz.msgs.CameraInfo.Intrinsics.k)
717 }
718 inline void CameraInfo_Intrinsics::add_k(double value) {
719  k_.Add(value);
720  // @@protoc_insertion_point(field_add:gz.msgs.CameraInfo.Intrinsics.k)
721 }
722 inline const ::google::protobuf::RepeatedField< double >&
724  // @@protoc_insertion_point(field_list:gz.msgs.CameraInfo.Intrinsics.k)
725  return k_;
726 }
727 inline ::google::protobuf::RepeatedField< double >*
729  // @@protoc_insertion_point(field_mutable_list:gz.msgs.CameraInfo.Intrinsics.k)
730  return &k_;
731 }
732 
733 // -------------------------------------------------------------------
734 
735 // CameraInfo_Projection
736 
737 // repeated double p = 1;
738 inline int CameraInfo_Projection::p_size() const {
739  return p_.size();
740 }
742  p_.Clear();
743 }
744 inline double CameraInfo_Projection::p(int index) const {
745  // @@protoc_insertion_point(field_get:gz.msgs.CameraInfo.Projection.p)
746  return p_.Get(index);
747 }
748 inline void CameraInfo_Projection::set_p(int index, double value) {
749  p_.Set(index, value);
750  // @@protoc_insertion_point(field_set:gz.msgs.CameraInfo.Projection.p)
751 }
752 inline void CameraInfo_Projection::add_p(double value) {
753  p_.Add(value);
754  // @@protoc_insertion_point(field_add:gz.msgs.CameraInfo.Projection.p)
755 }
756 inline const ::google::protobuf::RepeatedField< double >&
758  // @@protoc_insertion_point(field_list:gz.msgs.CameraInfo.Projection.p)
759  return p_;
760 }
761 inline ::google::protobuf::RepeatedField< double >*
763  // @@protoc_insertion_point(field_mutable_list:gz.msgs.CameraInfo.Projection.p)
764  return &p_;
765 }
766 
767 // -------------------------------------------------------------------
768 
769 // CameraInfo
770 
771 // .gz.msgs.Header header = 1;
772 inline bool CameraInfo::has_header() const {
773  return this != internal_default_instance() && header_ != NULL;
774 }
775 inline const ::gz::msgs::Header& CameraInfo::_internal_header() const {
776  return *header_;
777 }
778 inline const ::gz::msgs::Header& CameraInfo::header() const {
779  const ::gz::msgs::Header* p = header_;
780  // @@protoc_insertion_point(field_get:gz.msgs.CameraInfo.header)
781  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
783 }
784 inline ::gz::msgs::Header* CameraInfo::release_header() {
785  // @@protoc_insertion_point(field_release:gz.msgs.CameraInfo.header)
786 
787  ::gz::msgs::Header* temp = header_;
788  header_ = NULL;
789  return temp;
790 }
791 inline ::gz::msgs::Header* CameraInfo::mutable_header() {
792 
793  if (header_ == NULL) {
794  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
795  header_ = p;
796  }
797  // @@protoc_insertion_point(field_mutable:gz.msgs.CameraInfo.header)
798  return header_;
799 }
801  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
802  if (message_arena == NULL) {
803  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
804  }
805  if (header) {
806  ::google::protobuf::Arena* submessage_arena = NULL;
807  if (message_arena != submessage_arena) {
808  header = ::google::protobuf::internal::GetOwnedMessage(
809  message_arena, header, submessage_arena);
810  }
811 
812  } else {
813 
814  }
815  header_ = header;
816  // @@protoc_insertion_point(field_set_allocated:gz.msgs.CameraInfo.header)
817 }
818 
819 // uint32 width = 2;
820 inline void CameraInfo::clear_width() {
821  width_ = 0u;
822 }
823 inline ::google::protobuf::uint32 CameraInfo::width() const {
824  // @@protoc_insertion_point(field_get:gz.msgs.CameraInfo.width)
825  return width_;
826 }
827 inline void CameraInfo::set_width(::google::protobuf::uint32 value) {
828 
829  width_ = value;
830  // @@protoc_insertion_point(field_set:gz.msgs.CameraInfo.width)
831 }
832 
833 // uint32 height = 3;
835  height_ = 0u;
836 }
837 inline ::google::protobuf::uint32 CameraInfo::height() const {
838  // @@protoc_insertion_point(field_get:gz.msgs.CameraInfo.height)
839  return height_;
840 }
841 inline void CameraInfo::set_height(::google::protobuf::uint32 value) {
842 
843  height_ = value;
844  // @@protoc_insertion_point(field_set:gz.msgs.CameraInfo.height)
845 }
846 
847 // .gz.msgs.CameraInfo.Distortion distortion = 4;
848 inline bool CameraInfo::has_distortion() const {
849  return this != internal_default_instance() && distortion_ != NULL;
850 }
852  if (GetArenaNoVirtual() == NULL && distortion_ != NULL) {
853  delete distortion_;
854  }
855  distortion_ = NULL;
856 }
857 inline const ::gz::msgs::CameraInfo_Distortion& CameraInfo::_internal_distortion() const {
858  return *distortion_;
859 }
860 inline const ::gz::msgs::CameraInfo_Distortion& CameraInfo::distortion() const {
861  const ::gz::msgs::CameraInfo_Distortion* p = distortion_;
862  // @@protoc_insertion_point(field_get:gz.msgs.CameraInfo.distortion)
863  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::CameraInfo_Distortion*>(
865 }
866 inline ::gz::msgs::CameraInfo_Distortion* CameraInfo::release_distortion() {
867  // @@protoc_insertion_point(field_release:gz.msgs.CameraInfo.distortion)
868 
869  ::gz::msgs::CameraInfo_Distortion* temp = distortion_;
870  distortion_ = NULL;
871  return temp;
872 }
873 inline ::gz::msgs::CameraInfo_Distortion* CameraInfo::mutable_distortion() {
874 
875  if (distortion_ == NULL) {
876  auto* p = CreateMaybeMessage<::gz::msgs::CameraInfo_Distortion>(GetArenaNoVirtual());
877  distortion_ = p;
878  }
879  // @@protoc_insertion_point(field_mutable:gz.msgs.CameraInfo.distortion)
880  return distortion_;
881 }
883  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
884  if (message_arena == NULL) {
885  delete distortion_;
886  }
887  if (distortion) {
888  ::google::protobuf::Arena* submessage_arena = NULL;
889  if (message_arena != submessage_arena) {
890  distortion = ::google::protobuf::internal::GetOwnedMessage(
891  message_arena, distortion, submessage_arena);
892  }
893 
894  } else {
895 
896  }
897  distortion_ = distortion;
898  // @@protoc_insertion_point(field_set_allocated:gz.msgs.CameraInfo.distortion)
899 }
900 
901 // .gz.msgs.CameraInfo.Intrinsics intrinsics = 5;
902 inline bool CameraInfo::has_intrinsics() const {
903  return this != internal_default_instance() && intrinsics_ != NULL;
904 }
906  if (GetArenaNoVirtual() == NULL && intrinsics_ != NULL) {
907  delete intrinsics_;
908  }
909  intrinsics_ = NULL;
910 }
911 inline const ::gz::msgs::CameraInfo_Intrinsics& CameraInfo::_internal_intrinsics() const {
912  return *intrinsics_;
913 }
914 inline const ::gz::msgs::CameraInfo_Intrinsics& CameraInfo::intrinsics() const {
915  const ::gz::msgs::CameraInfo_Intrinsics* p = intrinsics_;
916  // @@protoc_insertion_point(field_get:gz.msgs.CameraInfo.intrinsics)
917  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::CameraInfo_Intrinsics*>(
919 }
920 inline ::gz::msgs::CameraInfo_Intrinsics* CameraInfo::release_intrinsics() {
921  // @@protoc_insertion_point(field_release:gz.msgs.CameraInfo.intrinsics)
922 
923  ::gz::msgs::CameraInfo_Intrinsics* temp = intrinsics_;
924  intrinsics_ = NULL;
925  return temp;
926 }
927 inline ::gz::msgs::CameraInfo_Intrinsics* CameraInfo::mutable_intrinsics() {
928 
929  if (intrinsics_ == NULL) {
930  auto* p = CreateMaybeMessage<::gz::msgs::CameraInfo_Intrinsics>(GetArenaNoVirtual());
931  intrinsics_ = p;
932  }
933  // @@protoc_insertion_point(field_mutable:gz.msgs.CameraInfo.intrinsics)
934  return intrinsics_;
935 }
937  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
938  if (message_arena == NULL) {
939  delete intrinsics_;
940  }
941  if (intrinsics) {
942  ::google::protobuf::Arena* submessage_arena = NULL;
943  if (message_arena != submessage_arena) {
944  intrinsics = ::google::protobuf::internal::GetOwnedMessage(
945  message_arena, intrinsics, submessage_arena);
946  }
947 
948  } else {
949 
950  }
951  intrinsics_ = intrinsics;
952  // @@protoc_insertion_point(field_set_allocated:gz.msgs.CameraInfo.intrinsics)
953 }
954 
955 // .gz.msgs.CameraInfo.Projection projection = 6;
956 inline bool CameraInfo::has_projection() const {
957  return this != internal_default_instance() && projection_ != NULL;
958 }
960  if (GetArenaNoVirtual() == NULL && projection_ != NULL) {
961  delete projection_;
962  }
963  projection_ = NULL;
964 }
965 inline const ::gz::msgs::CameraInfo_Projection& CameraInfo::_internal_projection() const {
966  return *projection_;
967 }
968 inline const ::gz::msgs::CameraInfo_Projection& CameraInfo::projection() const {
969  const ::gz::msgs::CameraInfo_Projection* p = projection_;
970  // @@protoc_insertion_point(field_get:gz.msgs.CameraInfo.projection)
971  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::CameraInfo_Projection*>(
973 }
974 inline ::gz::msgs::CameraInfo_Projection* CameraInfo::release_projection() {
975  // @@protoc_insertion_point(field_release:gz.msgs.CameraInfo.projection)
976 
977  ::gz::msgs::CameraInfo_Projection* temp = projection_;
978  projection_ = NULL;
979  return temp;
980 }
981 inline ::gz::msgs::CameraInfo_Projection* CameraInfo::mutable_projection() {
982 
983  if (projection_ == NULL) {
984  auto* p = CreateMaybeMessage<::gz::msgs::CameraInfo_Projection>(GetArenaNoVirtual());
985  projection_ = p;
986  }
987  // @@protoc_insertion_point(field_mutable:gz.msgs.CameraInfo.projection)
988  return projection_;
989 }
991  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
992  if (message_arena == NULL) {
993  delete projection_;
994  }
995  if (projection) {
996  ::google::protobuf::Arena* submessage_arena = NULL;
997  if (message_arena != submessage_arena) {
998  projection = ::google::protobuf::internal::GetOwnedMessage(
999  message_arena, projection, submessage_arena);
1000  }
1001 
1002  } else {
1003 
1004  }
1005  projection_ = projection;
1006  // @@protoc_insertion_point(field_set_allocated:gz.msgs.CameraInfo.projection)
1007 }
1008 
1009 // repeated double rectification_matrix = 7 [packed = true];
1011  return rectification_matrix_.size();
1012 }
1014  rectification_matrix_.Clear();
1015 }
1016 inline double CameraInfo::rectification_matrix(int index) const {
1017  // @@protoc_insertion_point(field_get:gz.msgs.CameraInfo.rectification_matrix)
1018  return rectification_matrix_.Get(index);
1019 }
1020 inline void CameraInfo::set_rectification_matrix(int index, double value) {
1021  rectification_matrix_.Set(index, value);
1022  // @@protoc_insertion_point(field_set:gz.msgs.CameraInfo.rectification_matrix)
1023 }
1024 inline void CameraInfo::add_rectification_matrix(double value) {
1025  rectification_matrix_.Add(value);
1026  // @@protoc_insertion_point(field_add:gz.msgs.CameraInfo.rectification_matrix)
1027 }
1028 inline const ::google::protobuf::RepeatedField< double >&
1030  // @@protoc_insertion_point(field_list:gz.msgs.CameraInfo.rectification_matrix)
1031  return rectification_matrix_;
1032 }
1033 inline ::google::protobuf::RepeatedField< double >*
1035  // @@protoc_insertion_point(field_mutable_list:gz.msgs.CameraInfo.rectification_matrix)
1036  return &rectification_matrix_;
1037 }
1038 
1039 #ifdef __GNUC__
1040  #pragma GCC diagnostic pop
1041 #endif // __GNUC__
1042 // -------------------------------------------------------------------
1043 
1044 // -------------------------------------------------------------------
1045 
1046 // -------------------------------------------------------------------
1047 
1048 
1049 // @@protoc_insertion_point(namespace_scope)
1050 
1051 } // namespace msgs
1052 } // namespace gz
1053 
1054 namespace google {
1055 namespace protobuf {
1056 
1058 template <>
1059 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::CameraInfo_Distortion_DistortionModelType>() {
1061 }
1062 
1063 } // namespace protobuf
1064 } // namespace google
1065 
1066 // @@protoc_insertion_point(global_scope)
1067 
1068 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fcamera_5finfo_2eproto