4 #ifndef PROTOBUF_ignition_2fmsgs_2fcamerasensor_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fcamerasensor_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 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 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. 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> 34 #pragma GCC system_header 37 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 40 #include <sys/sysmacros.h> 58 class IGNITION_MSGS_VISIBLE
CameraSensor :
public ::google::protobuf::Message {
70 static const ::google::protobuf::Descriptor* descriptor();
79 CameraSensor* New(::google::protobuf::Arena* arena)
const;
80 void CopyFrom(const ::google::protobuf::Message& from);
81 void MergeFrom(const ::google::protobuf::Message& from);
85 bool IsInitialized()
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;
95 return InternalSerializeWithCachedSizesToArray(
false, output);
101 void SetCachedSize(
int size)
const;
104 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
105 return _internal_metadata_.arena();
107 inline void* MaybeArenaPtr()
const {
108 return _internal_metadata_.raw_arena_ptr();
112 ::google::protobuf::Metadata GetMetadata()
const;
119 bool has_header()
const;
121 static const int kHeaderFieldNumber = 1;
122 const ::ignition::msgs::Header& header()
const;
128 void clear_horizontal_fov();
129 static const int kHorizontalFovFieldNumber = 2;
130 double horizontal_fov()
const;
131 void set_horizontal_fov(
double value);
134 bool has_image_size()
const;
135 void clear_image_size();
136 static const int kImageSizeFieldNumber = 3;
137 const ::ignition::msgs::Vector2d& image_size()
const;
143 void clear_image_format();
144 static const int kImageFormatFieldNumber = 4;
145 const ::std::string& image_format()
const;
146 void set_image_format(const ::std::string& value);
147 void set_image_format(
const char* value);
148 void set_image_format(
const char* value,
size_t size);
151 void set_allocated_image_format(::
std::string* image_format);
154 void clear_near_clip();
155 static const int kNearClipFieldNumber = 5;
156 double near_clip()
const;
157 void set_near_clip(
double value);
160 void clear_far_clip();
161 static const int kFarClipFieldNumber = 6;
162 double far_clip()
const;
163 void set_far_clip(
double value);
166 void clear_save_enabled();
167 static const int kSaveEnabledFieldNumber = 7;
168 bool save_enabled()
const;
169 void set_save_enabled(
bool value);
172 void clear_save_path();
173 static const int kSavePathFieldNumber = 8;
174 const ::std::string& save_path()
const;
175 void set_save_path(const ::std::string& value);
176 void set_save_path(
const char* value);
177 void set_save_path(
const char* value,
size_t size);
180 void set_allocated_save_path(::
std::string* save_path);
183 bool has_distortion()
const;
184 void clear_distortion();
185 static const int kDistortionFieldNumber = 9;
186 const ::ignition::msgs::Distortion& distortion()
const;
194 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
195 bool _is_default_instance_;
197 double horizontal_fov_;
199 ::google::protobuf::internal::ArenaStringPtr image_format_;
202 ::google::protobuf::internal::ArenaStringPtr save_path_;
205 mutable int _cached_size_;
210 void InitAsDefaultInstance();
218 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 223 return !_is_default_instance_ && header_ != NULL;
226 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
231 return header_ != NULL ? *header_ : *default_instance_->header_;
235 if (header_ == NULL) {
236 header_ = new ::ignition::msgs::Header;
265 return horizontal_fov_;
269 horizontal_fov_ = value;
275 return !_is_default_instance_ && image_size_ != NULL;
278 if (GetArenaNoVirtual() == NULL && image_size_ != NULL)
delete image_size_;
283 return image_size_ != NULL ? *image_size_ : *default_instance_->image_size_;
287 if (image_size_ == NULL) {
288 image_size_ = new ::ignition::msgs::Vector2d;
302 image_size_ = image_size;
313 image_format_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
317 return image_format_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
321 image_format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
326 image_format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
331 image_format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
332 ::
std::string(reinterpret_cast<const char*>(value), size));
338 return image_format_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
343 return image_format_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
346 if (image_format != NULL) {
351 image_format_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), image_format);
385 save_enabled_ =
false;
389 return save_enabled_;
393 save_enabled_ = value;
399 save_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
403 return save_path_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
407 save_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
412 save_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
417 save_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
418 ::
std::string(reinterpret_cast<const char*>(value), size));
424 return save_path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
429 return save_path_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
432 if (save_path != NULL) {
437 save_path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), save_path);
443 return !_is_default_instance_ && distortion_ != NULL;
446 if (GetArenaNoVirtual() == NULL && distortion_ != NULL)
delete distortion_;
451 return distortion_ != NULL ? *distortion_ : *default_instance_->distortion_;
455 if (distortion_ == NULL) {
456 distortion_ = new ::ignition::msgs::Distortion;
470 distortion_ = distortion;
479 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 495 #endif // PROTOBUF_ignition_2fmsgs_2fcamerasensor_2eproto__INCLUDED void set_horizontal_fov(double value)
Definition: camerasensor.pb.h:267
void set_far_clip(double value)
Definition: camerasensor.pb.h:377
::std::string * mutable_save_path()
Definition: camerasensor.pb.h:421
double far_clip() const
Definition: camerasensor.pb.h:373
::ignition::msgs::Vector2d * release_image_size()
Definition: camerasensor.pb.h:293
void set_save_enabled(bool value)
Definition: camerasensor.pb.h:391
Definition: camerasensor.pb.h:58
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fcamerasensor_2eproto()
CameraSensor * New() const
Definition: camerasensor.pb.h:77
const ::ignition::msgs::Vector2d & image_size() const
Definition: camerasensor.pb.h:281
void set_allocated_header(::ignition::msgs::Header *header)
Definition: camerasensor.pb.h:248
Definition: vector2d.pb.h:56
std::shared_ptr< CameraSensor > CameraSensorSharedPtr
Definition: camerasensor.pb.h:483
double near_clip() const
Definition: camerasensor.pb.h:359
void clear_save_path()
Definition: camerasensor.pb.h:398
void clear_header()
Definition: camerasensor.pb.h:225
void clear_horizontal_fov()
Definition: camerasensor.pb.h:260
void clear_distortion()
Definition: camerasensor.pb.h:445
void clear_image_size()
Definition: camerasensor.pb.h:277
std::shared_ptr< const CameraSensor > ConstCameraSensorSharedPtr
Definition: camerasensor.pb.h:484
const ::std::string & image_format() const
Definition: camerasensor.pb.h:315
std::unique_ptr< const CameraSensor > ConstCameraSensorUniquePtr
Definition: camerasensor.pb.h:482
const ::std::string & save_path() const
Definition: camerasensor.pb.h:401
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: camerasensor.pb.h:94
::ignition::msgs::Header * mutable_header()
Definition: camerasensor.pb.h:233
std::unique_ptr< CameraSensor > CameraSensorUniquePtr
Definition: camerasensor.pb.h:481
void clear_save_enabled()
Definition: camerasensor.pb.h:384
void set_save_path(const ::std::string &value)
Definition: camerasensor.pb.h:405
::std::string * release_save_path()
Definition: camerasensor.pb.h:426
void set_allocated_image_size(::ignition::msgs::Vector2d *image_size)
Definition: camerasensor.pb.h:300
CameraSensor & operator=(const CameraSensor &from)
Definition: camerasensor.pb.h:65
bool save_enabled() const
Definition: camerasensor.pb.h:387
void clear_image_format()
Definition: camerasensor.pb.h:312
void clear_far_clip()
Definition: camerasensor.pb.h:370
::std::string * release_image_format()
Definition: camerasensor.pb.h:340
void set_allocated_distortion(::ignition::msgs::Distortion *distortion)
Definition: camerasensor.pb.h:468
void set_allocated_save_path(::std::string *save_path)
Definition: camerasensor.pb.h:431
bool has_image_size() const
Definition: camerasensor.pb.h:274
::std::string * mutable_image_format()
Definition: camerasensor.pb.h:335
::ignition::msgs::Header * release_header()
Definition: camerasensor.pb.h:241
Definition: distortion.pb.h:57
void set_allocated_image_format(::std::string *image_format)
Definition: camerasensor.pb.h:345
bool has_header() const
Definition: camerasensor.pb.h:222
void protobuf_ShutdownFile_ignition_2fmsgs_2fcamerasensor_2eproto()
::ignition::msgs::Distortion * mutable_distortion()
Definition: camerasensor.pb.h:453
double horizontal_fov() const
Definition: camerasensor.pb.h:263
bool has_distortion() const
Definition: camerasensor.pb.h:442
const ::ignition::msgs::Header & header() const
Definition: camerasensor.pb.h:229
void set_near_clip(double value)
Definition: camerasensor.pb.h:363
::ignition::msgs::Distortion * release_distortion()
Definition: camerasensor.pb.h:461
::ignition::msgs::Vector2d * mutable_image_size()
Definition: camerasensor.pb.h:285
void set_image_format(const ::std::string &value)
Definition: camerasensor.pb.h:319
const ::ignition::msgs::Distortion & distortion() const
Definition: camerasensor.pb.h:449
void protobuf_AssignDesc_ignition_2fmsgs_2fcamerasensor_2eproto()
void clear_near_clip()
Definition: camerasensor.pb.h:356
int GetCachedSize() const
Definition: camerasensor.pb.h:97