4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fcamera_5finfo_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fcamera_5finfo_2eproto
9 #include <google/protobuf/stubs/common.h>
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
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.
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>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "gz/msgs/header.pb.h"
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fcamera_5finfo_2eproto GZ_MSGS_VISIBLE
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[];
53 class CameraInfoDefaultTypeInternal;
55 class CameraInfo_Distortion;
56 class CameraInfo_DistortionDefaultTypeInternal;
58 class CameraInfo_Intrinsics;
59 class CameraInfo_IntrinsicsDefaultTypeInternal;
61 class CameraInfo_Projection;
62 class CameraInfo_ProjectionDefaultTypeInternal;
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*);
91 return ::google::protobuf::internal::NameOfEnum(
96 return ::google::protobuf::internal::ParseNamedEnum<CameraInfo_Distortion_DistortionModelType>(
115 *
this = ::std::move(from);
118 inline CameraInfo_Distortion& operator=(CameraInfo_Distortion&& from) noexcept {
119 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
120 if (
this != &from) InternalSwap(&from);
127 static const ::google::protobuf::Descriptor* descriptor();
128 static const CameraInfo_Distortion& default_instance();
130 static void InitAsDefaultInstance();
135 static constexpr
int kIndexInFileMessages =
146 return CreateMaybeMessage<CameraInfo_Distortion>(NULL);
150 return CreateMaybeMessage<CameraInfo_Distortion>(arena);
152 void CopyFrom(const ::google::protobuf::Message& from)
final;
153 void MergeFrom(const ::google::protobuf::Message& from)
final;
157 bool IsInitialized() const final;
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(); }
171 void SetCachedSize(
int size)
const final;
174 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
177 inline void* MaybeArenaPtr()
const {
182 ::google::protobuf::Metadata GetMetadata() const final;
193 static inline
bool DistortionModelType_IsValid(
int value) {
200 static const int DistortionModelType_ARRAYSIZE =
202 static inline const ::google::protobuf::EnumDescriptor*
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 >&
225 ::google::protobuf::RepeatedField< double >*
230 static const int kModelFieldNumber = 1;
237 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
238 ::google::protobuf::RepeatedField< double > k_;
239 mutable int _k_cached_byte_size_;
241 mutable ::google::protobuf::internal::CachedSize _cached_size_;
242 friend struct ::protobuf_gz_2fmsgs_2fcamera_5finfo_2eproto::TableStruct;
260 *
this = ::std::move(from);
263 inline CameraInfo_Intrinsics& operator=(CameraInfo_Intrinsics&& from) noexcept {
264 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
265 if (
this != &from) InternalSwap(&from);
272 static const ::google::protobuf::Descriptor* descriptor();
273 static const CameraInfo_Intrinsics& default_instance();
275 static void InitAsDefaultInstance();
280 static constexpr
int kIndexInFileMessages =
291 return CreateMaybeMessage<CameraInfo_Intrinsics>(NULL);
295 return CreateMaybeMessage<CameraInfo_Intrinsics>(arena);
297 void CopyFrom(const ::google::protobuf::Message& from)
final;
298 void MergeFrom(const ::google::protobuf::Message& from)
final;
302 bool IsInitialized() const final;
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(); }
316 void SetCachedSize(
int size)
const final;
319 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
322 inline void* MaybeArenaPtr()
const {
327 ::google::protobuf::Metadata GetMetadata() const final;
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 >&
342 ::
google::protobuf::RepeatedField<
double >*
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_;
370 *
this = ::std::move(from);
373 inline CameraInfo_Projection& operator=(CameraInfo_Projection&& from) noexcept {
374 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
375 if (
this != &from) InternalSwap(&from);
382 static const ::google::protobuf::Descriptor* descriptor();
383 static const CameraInfo_Projection& default_instance();
385 static void InitAsDefaultInstance();
390 static constexpr
int kIndexInFileMessages =
401 return CreateMaybeMessage<CameraInfo_Projection>(NULL);
405 return CreateMaybeMessage<CameraInfo_Projection>(arena);
407 void CopyFrom(const ::google::protobuf::Message& from)
final;
408 void MergeFrom(const ::google::protobuf::Message& from)
final;
412 bool IsInitialized() const final;
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(); }
426 void SetCachedSize(
int size)
const final;
429 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
432 inline void* MaybeArenaPtr()
const {
437 ::google::protobuf::Metadata GetMetadata() const final;
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 >&
452 ::
google::protobuf::RepeatedField<
double >*
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_;
480 *
this = ::std::move(from);
483 inline CameraInfo& operator=(CameraInfo&& from) noexcept {
484 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
485 if (
this != &from) InternalSwap(&from);
492 static const ::google::protobuf::Descriptor* descriptor();
493 static const CameraInfo& default_instance();
495 static void InitAsDefaultInstance();
500 static constexpr
int kIndexInFileMessages =
511 return CreateMaybeMessage<CameraInfo>(NULL);
515 return CreateMaybeMessage<CameraInfo>(arena);
517 void CopyFrom(const ::google::protobuf::Message& from)
final;
518 void MergeFrom(const ::google::protobuf::Message& from)
final;
522 bool IsInitialized() const final;
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(); }
536 void SetCachedSize(
int size)
const final;
539 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
542 inline void* MaybeArenaPtr()
const {
547 ::google::protobuf::Metadata GetMetadata() const final;
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();
570 bool has_header() const;
572 static const
int kHeaderFieldNumber = 1;
574 const ::
gz::msgs::
Header& _internal_header() const;
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);
582 bool has_distortion() const;
583 void clear_distortion();
584 static const
int kDistortionFieldNumber = 4;
594 bool has_intrinsics() const;
595 void clear_intrinsics();
596 static const
int kIntrinsicsFieldNumber = 5;
606 bool has_projection() const;
607 void clear_projection();
608 static const
int kProjectionFieldNumber = 6;
619 static const
int kWidthFieldNumber = 2;
620 ::
google::protobuf::uint32 width() const;
621 void set_width(::
google::protobuf::uint32 value);
625 static const
int kHeightFieldNumber = 3;
626 ::
google::protobuf::uint32 height() const;
627 void set_height(::
google::protobuf::uint32 value);
632 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
633 ::
google::protobuf::RepeatedField<
double > rectification_matrix_;
634 mutable
int _rectification_matrix_cached_byte_size_;
639 ::
google::protobuf::uint32 width_;
640 ::
google::protobuf::uint32 height_;
641 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
650 #pragma GCC diagnostic push
651 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
678 return k_.Get(index);
681 k_.Set(index, value);
688 inline const ::google::protobuf::RepeatedField< double >&
693 inline ::google::protobuf::RepeatedField< double >*
712 return k_.Get(index);
715 k_.Set(index, value);
722 inline const ::google::protobuf::RepeatedField< double >&
727 inline ::google::protobuf::RepeatedField< double >*
746 return p_.Get(index);
749 p_.Set(index, value);
756 inline const ::google::protobuf::RepeatedField< double >&
761 inline ::google::protobuf::RepeatedField< double >*
773 return this != internal_default_instance() && header_ != NULL;
775 inline const ::gz::msgs::Header& CameraInfo::_internal_header()
const {
779 const ::gz::msgs::Header* p = header_;
793 if (header_ == NULL) {
794 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
801 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
802 if (message_arena == NULL) {
803 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(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);
849 return this != internal_default_instance() && distortion_ != NULL;
852 if (GetArenaNoVirtual() == NULL && distortion_ != NULL) {
857 inline const ::gz::msgs::CameraInfo_Distortion& CameraInfo::_internal_distortion()
const {
861 const ::gz::msgs::CameraInfo_Distortion* p = distortion_;
875 if (distortion_ == NULL) {
876 auto* p = CreateMaybeMessage<::gz::msgs::CameraInfo_Distortion>(GetArenaNoVirtual());
883 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
884 if (message_arena == NULL) {
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);
897 distortion_ = distortion;
903 return this != internal_default_instance() && intrinsics_ != NULL;
906 if (GetArenaNoVirtual() == NULL && intrinsics_ != NULL) {
911 inline const ::gz::msgs::CameraInfo_Intrinsics& CameraInfo::_internal_intrinsics()
const {
915 const ::gz::msgs::CameraInfo_Intrinsics* p = intrinsics_;
929 if (intrinsics_ == NULL) {
930 auto* p = CreateMaybeMessage<::gz::msgs::CameraInfo_Intrinsics>(GetArenaNoVirtual());
937 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
938 if (message_arena == NULL) {
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);
951 intrinsics_ = intrinsics;
957 return this != internal_default_instance() && projection_ != NULL;
960 if (GetArenaNoVirtual() == NULL && projection_ != NULL) {
965 inline const ::gz::msgs::CameraInfo_Projection& CameraInfo::_internal_projection()
const {
969 const ::gz::msgs::CameraInfo_Projection* p = projection_;
983 if (projection_ == NULL) {
984 auto* p = CreateMaybeMessage<::gz::msgs::CameraInfo_Projection>(GetArenaNoVirtual());
991 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
992 if (message_arena == NULL) {
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);
1005 projection_ = projection;
1011 return rectification_matrix_.size();
1014 rectification_matrix_.Clear();
1018 return rectification_matrix_.Get(index);
1021 rectification_matrix_.Set(index, value);
1025 rectification_matrix_.Add(value);
1028 inline const ::google::protobuf::RepeatedField< double >&
1031 return rectification_matrix_;
1033 inline ::google::protobuf::RepeatedField< double >*
1036 return &rectification_matrix_;
1040 #pragma GCC diagnostic pop
1055 namespace protobuf {
1059 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::CameraInfo_Distortion_DistortionModelType>() {
1068 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fcamera_5finfo_2eproto