4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2flaserscan_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2flaserscan_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/unknown_field_set.h>
33 #include "gz/msgs/pose.pb.h"
34 #include "gz/msgs/header.pb.h"
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2flaserscan_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[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[];
53 class LaserScanDefaultTypeInternal;
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::LaserScan* Arena::CreateMaybeMessage<::gz::msgs::LaserScan>(Arena*);
67 class GZ_MSGS_VISIBLE
LaserScan :
public ::google::protobuf::Message {
81 *
this = ::std::move(from);
84 inline LaserScan& operator=(LaserScan&& from) noexcept {
85 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
86 if (
this != &from) InternalSwap(&from);
93 static const ::google::protobuf::Descriptor* descriptor();
94 static const LaserScan& default_instance();
96 static void InitAsDefaultInstance();
98 return reinterpret_cast<const LaserScan*
>(
101 static constexpr
int kIndexInFileMessages =
112 return CreateMaybeMessage<LaserScan>(NULL);
116 return CreateMaybeMessage<LaserScan>(arena);
118 void CopyFrom(const ::google::protobuf::Message& from)
final;
119 void MergeFrom(const ::google::protobuf::Message& from)
final;
123 bool IsInitialized() const final;
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(); }
137 void SetCachedSize(
int size)
const final;
140 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
143 inline void* MaybeArenaPtr()
const {
148 ::google::protobuf::Metadata GetMetadata() const final;
155 int ranges_size() const;
157 static const
int kRangesFieldNumber = 14;
158 double ranges(
int index) const;
159 void set_ranges(
int index,
double value);
160 void add_ranges(
double value);
161 const ::
google::protobuf::RepeatedField<
double >&
163 ::
google::protobuf::RepeatedField<
double >*
167 int intensities_size() const;
168 void clear_intensities();
169 static const
int kIntensitiesFieldNumber = 15;
170 double intensities(
int index) const;
171 void set_intensities(
int index,
double value);
172 void add_intensities(
double value);
173 const ::
google::protobuf::RepeatedField<
double >&
175 ::
google::protobuf::RepeatedField<
double >*
176 mutable_intensities();
180 static const
int kFrameFieldNumber = 2;
181 const ::
std::
string& frame() const;
182 void set_frame(const ::
std::
string& value);
186 void set_frame(
const char* value);
187 void set_frame(
const char* value,
size_t size);
193 bool has_header()
const;
195 static const int kHeaderFieldNumber = 1;
197 const ::gz::msgs::Header& _internal_header()
const;
199 const ::gz::msgs::Header& header()
const;
205 bool has_world_pose()
const;
206 void clear_world_pose();
207 static const int kWorldPoseFieldNumber = 3;
209 const ::gz::msgs::Pose& _internal_world_pose()
const;
211 const ::gz::msgs::Pose& world_pose()
const;
217 void clear_angle_min();
218 static const int kAngleMinFieldNumber = 4;
219 double angle_min()
const;
220 void set_angle_min(
double value);
223 void clear_angle_max();
224 static const int kAngleMaxFieldNumber = 5;
225 double angle_max()
const;
226 void set_angle_max(
double value);
229 void clear_angle_step();
230 static const int kAngleStepFieldNumber = 6;
231 double angle_step()
const;
232 void set_angle_step(
double value);
235 void clear_range_min();
236 static const int kRangeMinFieldNumber = 7;
237 double range_min()
const;
238 void set_range_min(
double value);
241 void clear_range_max();
242 static const int kRangeMaxFieldNumber = 8;
243 double range_max()
const;
244 void set_range_max(
double value);
247 void clear_vertical_angle_min();
248 static const int kVerticalAngleMinFieldNumber = 10;
249 double vertical_angle_min()
const;
250 void set_vertical_angle_min(
double value);
253 void clear_vertical_angle_max();
254 static const int kVerticalAngleMaxFieldNumber = 11;
255 double vertical_angle_max()
const;
256 void set_vertical_angle_max(
double value);
260 static const int kCountFieldNumber = 9;
261 ::google::protobuf::uint32 count()
const;
262 void set_count(::google::protobuf::uint32 value);
265 void clear_vertical_count();
266 static const int kVerticalCountFieldNumber = 13;
267 ::google::protobuf::uint32 vertical_count()
const;
268 void set_vertical_count(::google::protobuf::uint32 value);
271 void clear_vertical_angle_step();
272 static const int kVerticalAngleStepFieldNumber = 12;
273 double vertical_angle_step()
const;
274 void set_vertical_angle_step(
double value);
279 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
280 ::google::protobuf::RepeatedField< double > ranges_;
281 mutable int _ranges_cached_byte_size_;
282 ::google::protobuf::RepeatedField< double > intensities_;
283 mutable int _intensities_cached_byte_size_;
284 ::google::protobuf::internal::ArenaStringPtr frame_;
292 double vertical_angle_min_;
293 double vertical_angle_max_;
294 ::google::protobuf::uint32 count_;
295 ::google::protobuf::uint32 vertical_count_;
296 double vertical_angle_step_;
297 mutable ::google::protobuf::internal::CachedSize _cached_size_;
298 friend struct ::protobuf_gz_2fmsgs_2flaserscan_2eproto::TableStruct;
306 #pragma GCC diagnostic push
307 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
315 inline const ::gz::msgs::Header& LaserScan::_internal_header()
const {
319 const ::gz::msgs::Header* p = header_;
333 if (header_ == NULL) {
334 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
341 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
342 if (message_arena == NULL) {
343 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
346 ::google::protobuf::Arena* submessage_arena = NULL;
347 if (message_arena != submessage_arena) {
348 header = ::google::protobuf::internal::GetOwnedMessage(
349 message_arena,
header, submessage_arena);
361 frame_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
365 return frame_.GetNoArena();
369 frame_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
376 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
381 GOOGLE_DCHECK(value != NULL);
383 frame_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
388 frame_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
389 ::
std::string(
reinterpret_cast<const char*
>(value), size));
395 return frame_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
400 return frame_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
408 frame_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
frame);
416 inline const ::gz::msgs::Pose& LaserScan::_internal_world_pose()
const {
420 const ::gz::msgs::Pose* p = world_pose_;
422 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Pose*
>(
434 if (world_pose_ == NULL) {
435 auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
442 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
443 if (message_arena == NULL) {
444 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(world_pose_);
447 ::google::protobuf::Arena* submessage_arena = NULL;
448 if (message_arena != submessage_arena) {
449 world_pose = ::google::protobuf::internal::GetOwnedMessage(
546 vertical_angle_min_ = 0;
550 return vertical_angle_min_;
554 vertical_angle_min_ = value;
560 vertical_angle_max_ = 0;
564 return vertical_angle_max_;
568 vertical_angle_max_ = value;
574 vertical_angle_step_ = 0;
578 return vertical_angle_step_;
582 vertical_angle_step_ = value;
588 vertical_count_ = 0u;
592 return vertical_count_;
596 vertical_count_ = value;
602 return ranges_.size();
609 return ranges_.Get(index);
612 ranges_.Set(index, value);
619 inline const ::google::protobuf::RepeatedField< double >&
624 inline ::google::protobuf::RepeatedField< double >*
632 return intensities_.size();
635 intensities_.Clear();
639 return intensities_.Get(index);
642 intensities_.Set(index, value);
646 intensities_.Add(value);
649 inline const ::google::protobuf::RepeatedField< double >&
654 inline ::google::protobuf::RepeatedField< double >*
657 return &intensities_;
661 #pragma GCC diagnostic pop
671 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2flaserscan_2eproto