Gazebo Msgs

API Reference

9.5.1
spherical_coordinates.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/spherical_coordinates.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fspherical_5fcoordinates_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fspherical_5fcoordinates_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/entity.pb.h"
35 #include "gz/msgs/header.pb.h"
36 // @@protoc_insertion_point(includes)
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fspherical_5fcoordinates_2eproto GZ_MSGS_VISIBLE
38 
40 // Internal implementation detail -- do not use these members.
41 struct GZ_MSGS_VISIBLE TableStruct {
42  static const ::google::protobuf::internal::ParseTableField entries[];
43  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44  static const ::google::protobuf::internal::ParseTable schema[1];
45  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46  static const ::google::protobuf::internal::SerializationTable serialization_table[];
47  static const ::google::protobuf::uint32 offsets[];
48 };
49 void GZ_MSGS_VISIBLE AddDescriptors();
50 } // namespace protobuf_gz_2fmsgs_2fspherical_5fcoordinates_2eproto
51 namespace gz {
52 namespace msgs {
53 class SphericalCoordinates;
54 class SphericalCoordinatesDefaultTypeInternal;
55 GZ_MSGS_VISIBLE extern SphericalCoordinatesDefaultTypeInternal _SphericalCoordinates_default_instance_;
56 } // namespace msgs
57 } // namespace gz
58 namespace google {
59 namespace protobuf {
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::SphericalCoordinates* Arena::CreateMaybeMessage<::gz::msgs::SphericalCoordinates>(Arena*);
61 } // namespace protobuf
62 } // namespace google
63 namespace gz {
64 namespace msgs {
65 
72 };
73 GZ_MSGS_VISIBLE bool SphericalCoordinates_SurfaceModel_IsValid(int value);
77 
78 GZ_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* SphericalCoordinates_SurfaceModel_descriptor();
80  return ::google::protobuf::internal::NameOfEnum(
82 }
84  const ::std::string& name, SphericalCoordinates_SurfaceModel* value) {
85  return ::google::protobuf::internal::ParseNamedEnum<SphericalCoordinates_SurfaceModel>(
87 }
89  SPHERICAL = 0,
90  ECEF = 1,
91  GLOBAL = 2,
92  LOCAL = 3,
93  LOCAL2 = 4,
96 };
97 GZ_MSGS_VISIBLE bool SphericalCoordinatesType_IsValid(int value);
101 
102 GZ_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* SphericalCoordinatesType_descriptor();
103 inline const ::std::string& SphericalCoordinatesType_Name(SphericalCoordinatesType value) {
104  return ::google::protobuf::internal::NameOfEnum(
106 }
108  const ::std::string& name, SphericalCoordinatesType* value) {
109  return ::google::protobuf::internal::ParseNamedEnum<SphericalCoordinatesType>(
110  SphericalCoordinatesType_descriptor(), name, value);
111 }
112 // ===================================================================
113 
114 class GZ_MSGS_VISIBLE SphericalCoordinates : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.SphericalCoordinates) */ {
115  public:
117  virtual ~SphericalCoordinates();
118 
120 
122  CopyFrom(from);
123  return *this;
124  }
125  #if LANG_CXX11
128  *this = ::std::move(from);
129  }
130 
131  inline SphericalCoordinates& operator=(SphericalCoordinates&& from) noexcept {
132  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
133  if (this != &from) InternalSwap(&from);
134  } else {
135  CopyFrom(from);
136  }
137  return *this;
138  }
139  #endif
140  static const ::google::protobuf::Descriptor* descriptor();
141  static const SphericalCoordinates& default_instance();
142 
143  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
145  return reinterpret_cast<const SphericalCoordinates*>(
147  }
148  static constexpr int kIndexInFileMessages =
149  0;
150 
151  void Swap(SphericalCoordinates* other);
153  a.Swap(&b);
154  }
155 
156  // implements Message ----------------------------------------------
157 
158  inline SphericalCoordinates* New() const final {
159  return CreateMaybeMessage<SphericalCoordinates>(NULL);
160  }
161 
162  SphericalCoordinates* New(::google::protobuf::Arena* arena) const final {
163  return CreateMaybeMessage<SphericalCoordinates>(arena);
164  }
165  void CopyFrom(const ::google::protobuf::Message& from) final;
166  void MergeFrom(const ::google::protobuf::Message& from) final;
167  void CopyFrom(const SphericalCoordinates& from);
168  void MergeFrom(const SphericalCoordinates& from);
169  void Clear() final;
170  bool IsInitialized() const final;
171 
172  size_t ByteSizeLong() const final;
173  bool MergePartialFromCodedStream(
174  ::google::protobuf::io::CodedInputStream* input) final;
175  void SerializeWithCachedSizes(
176  ::google::protobuf::io::CodedOutputStream* output) const final;
177  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
178  bool deterministic, ::google::protobuf::uint8* target) const final;
179  int GetCachedSize() const final { return _cached_size_.Get(); }
180 
181  private:
182  void SharedCtor();
183  void SharedDtor();
184  void SetCachedSize(int size) const final;
185  void InternalSwap(SphericalCoordinates* other);
186  private:
187  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
188  return NULL;
189  }
190  inline void* MaybeArenaPtr() const {
191  return NULL;
192  }
193  public:
194 
195  ::google::protobuf::Metadata GetMetadata() const final;
196 
197  // nested types ----------------------------------------------------
198 
200  static const SurfaceModel EARTH_WGS84 =
202  static const SurfaceModel MOON_SCS =
204  static const SurfaceModel CUSTOM_SURFACE =
206  static inline bool SurfaceModel_IsValid(int value) {
208  }
209  static const SurfaceModel SurfaceModel_MIN =
211  static const SurfaceModel SurfaceModel_MAX =
213  static const int SurfaceModel_ARRAYSIZE =
215  static inline const ::google::protobuf::EnumDescriptor*
218  }
219  static inline const ::std::string& SurfaceModel_Name(SurfaceModel value) {
221  }
222  static inline bool SurfaceModel_Parse(const ::std::string& name,
223  SurfaceModel* value) {
224  return SphericalCoordinates_SurfaceModel_Parse(name, value);
225  }
226 
227  // accessors -------------------------------------------------------
228 
229  // .gz.msgs.Header header = 1;
230  bool has_header() const;
231  void clear_header();
232  static const int kHeaderFieldNumber = 1;
233  private:
234  const ::gz::msgs::Header& _internal_header() const;
235  public:
236  const ::gz::msgs::Header& header() const;
237  ::gz::msgs::Header* release_header();
238  ::gz::msgs::Header* mutable_header();
239  void set_allocated_header(::gz::msgs::Header* header);
240 
241  // .gz.msgs.Entity entity = 7;
242  bool has_entity() const;
243  void clear_entity();
244  static const int kEntityFieldNumber = 7;
245  private:
246  const ::gz::msgs::Entity& _internal_entity() const;
247  public:
248  const ::gz::msgs::Entity& entity() const;
249  ::gz::msgs::Entity* release_entity();
250  ::gz::msgs::Entity* mutable_entity();
251  void set_allocated_entity(::gz::msgs::Entity* entity);
252 
253  // double latitude_deg = 3;
254  void clear_latitude_deg();
255  static const int kLatitudeDegFieldNumber = 3;
256  double latitude_deg() const;
257  void set_latitude_deg(double value);
258 
259  // double longitude_deg = 4;
260  void clear_longitude_deg();
261  static const int kLongitudeDegFieldNumber = 4;
262  double longitude_deg() const;
263  void set_longitude_deg(double value);
264 
265  // double elevation = 5;
266  void clear_elevation();
267  static const int kElevationFieldNumber = 5;
268  double elevation() const;
269  void set_elevation(double value);
270 
271  // double heading_deg = 6;
272  void clear_heading_deg();
273  static const int kHeadingDegFieldNumber = 6;
274  double heading_deg() const;
275  void set_heading_deg(double value);
276 
277  // double surface_axis_equatorial = 8;
278  void clear_surface_axis_equatorial();
279  static const int kSurfaceAxisEquatorialFieldNumber = 8;
280  double surface_axis_equatorial() const;
281  void set_surface_axis_equatorial(double value);
282 
283  // double surface_axis_polar = 9;
284  void clear_surface_axis_polar();
285  static const int kSurfaceAxisPolarFieldNumber = 9;
286  double surface_axis_polar() const;
287  void set_surface_axis_polar(double value);
288 
289  // .gz.msgs.SphericalCoordinates.SurfaceModel surface_model = 2;
290  void clear_surface_model();
291  static const int kSurfaceModelFieldNumber = 2;
292  ::gz::msgs::SphericalCoordinates_SurfaceModel surface_model() const;
293  void set_surface_model(::gz::msgs::SphericalCoordinates_SurfaceModel value);
294 
295  // @@protoc_insertion_point(class_scope:gz.msgs.SphericalCoordinates)
296  private:
297 
298  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
299  ::gz::msgs::Header* header_;
300  ::gz::msgs::Entity* entity_;
301  double latitude_deg_;
302  double longitude_deg_;
303  double elevation_;
304  double heading_deg_;
305  double surface_axis_equatorial_;
306  double surface_axis_polar_;
307  int surface_model_;
308  mutable ::google::protobuf::internal::CachedSize _cached_size_;
309  friend struct ::protobuf_gz_2fmsgs_2fspherical_5fcoordinates_2eproto::TableStruct;
310 };
311 // ===================================================================
312 
313 
314 // ===================================================================
315 
316 #ifdef __GNUC__
317  #pragma GCC diagnostic push
318  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
319 #endif // __GNUC__
320 // SphericalCoordinates
321 
322 // .gz.msgs.Header header = 1;
323 inline bool SphericalCoordinates::has_header() const {
324  return this != internal_default_instance() && header_ != NULL;
325 }
326 inline const ::gz::msgs::Header& SphericalCoordinates::_internal_header() const {
327  return *header_;
328 }
329 inline const ::gz::msgs::Header& SphericalCoordinates::header() const {
330  const ::gz::msgs::Header* p = header_;
331  // @@protoc_insertion_point(field_get:gz.msgs.SphericalCoordinates.header)
332  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
334 }
335 inline ::gz::msgs::Header* SphericalCoordinates::release_header() {
336  // @@protoc_insertion_point(field_release:gz.msgs.SphericalCoordinates.header)
337 
338  ::gz::msgs::Header* temp = header_;
339  header_ = NULL;
340  return temp;
341 }
342 inline ::gz::msgs::Header* SphericalCoordinates::mutable_header() {
343 
344  if (header_ == NULL) {
345  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
346  header_ = p;
347  }
348  // @@protoc_insertion_point(field_mutable:gz.msgs.SphericalCoordinates.header)
349  return header_;
350 }
352  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
353  if (message_arena == NULL) {
354  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
355  }
356  if (header) {
357  ::google::protobuf::Arena* submessage_arena = NULL;
358  if (message_arena != submessage_arena) {
359  header = ::google::protobuf::internal::GetOwnedMessage(
360  message_arena, header, submessage_arena);
361  }
362 
363  } else {
364 
365  }
366  header_ = header;
367  // @@protoc_insertion_point(field_set_allocated:gz.msgs.SphericalCoordinates.header)
368 }
369 
370 // .gz.msgs.SphericalCoordinates.SurfaceModel surface_model = 2;
372  surface_model_ = 0;
373 }
375  // @@protoc_insertion_point(field_get:gz.msgs.SphericalCoordinates.surface_model)
376  return static_cast< ::gz::msgs::SphericalCoordinates_SurfaceModel >(surface_model_);
377 }
379 
380  surface_model_ = value;
381  // @@protoc_insertion_point(field_set:gz.msgs.SphericalCoordinates.surface_model)
382 }
383 
384 // double latitude_deg = 3;
386  latitude_deg_ = 0;
387 }
388 inline double SphericalCoordinates::latitude_deg() const {
389  // @@protoc_insertion_point(field_get:gz.msgs.SphericalCoordinates.latitude_deg)
390  return latitude_deg_;
391 }
392 inline void SphericalCoordinates::set_latitude_deg(double value) {
393 
394  latitude_deg_ = value;
395  // @@protoc_insertion_point(field_set:gz.msgs.SphericalCoordinates.latitude_deg)
396 }
397 
398 // double longitude_deg = 4;
400  longitude_deg_ = 0;
401 }
402 inline double SphericalCoordinates::longitude_deg() const {
403  // @@protoc_insertion_point(field_get:gz.msgs.SphericalCoordinates.longitude_deg)
404  return longitude_deg_;
405 }
406 inline void SphericalCoordinates::set_longitude_deg(double value) {
407 
408  longitude_deg_ = value;
409  // @@protoc_insertion_point(field_set:gz.msgs.SphericalCoordinates.longitude_deg)
410 }
411 
412 // double elevation = 5;
414  elevation_ = 0;
415 }
416 inline double SphericalCoordinates::elevation() const {
417  // @@protoc_insertion_point(field_get:gz.msgs.SphericalCoordinates.elevation)
418  return elevation_;
419 }
420 inline void SphericalCoordinates::set_elevation(double value) {
421 
422  elevation_ = value;
423  // @@protoc_insertion_point(field_set:gz.msgs.SphericalCoordinates.elevation)
424 }
425 
426 // double heading_deg = 6;
428  heading_deg_ = 0;
429 }
430 inline double SphericalCoordinates::heading_deg() const {
431  // @@protoc_insertion_point(field_get:gz.msgs.SphericalCoordinates.heading_deg)
432  return heading_deg_;
433 }
434 inline void SphericalCoordinates::set_heading_deg(double value) {
435 
436  heading_deg_ = value;
437  // @@protoc_insertion_point(field_set:gz.msgs.SphericalCoordinates.heading_deg)
438 }
439 
440 // .gz.msgs.Entity entity = 7;
441 inline bool SphericalCoordinates::has_entity() const {
442  return this != internal_default_instance() && entity_ != NULL;
443 }
444 inline const ::gz::msgs::Entity& SphericalCoordinates::_internal_entity() const {
445  return *entity_;
446 }
447 inline const ::gz::msgs::Entity& SphericalCoordinates::entity() const {
448  const ::gz::msgs::Entity* p = entity_;
449  // @@protoc_insertion_point(field_get:gz.msgs.SphericalCoordinates.entity)
450  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Entity*>(
452 }
453 inline ::gz::msgs::Entity* SphericalCoordinates::release_entity() {
454  // @@protoc_insertion_point(field_release:gz.msgs.SphericalCoordinates.entity)
455 
456  ::gz::msgs::Entity* temp = entity_;
457  entity_ = NULL;
458  return temp;
459 }
460 inline ::gz::msgs::Entity* SphericalCoordinates::mutable_entity() {
461 
462  if (entity_ == NULL) {
463  auto* p = CreateMaybeMessage<::gz::msgs::Entity>(GetArenaNoVirtual());
464  entity_ = p;
465  }
466  // @@protoc_insertion_point(field_mutable:gz.msgs.SphericalCoordinates.entity)
467  return entity_;
468 }
470  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
471  if (message_arena == NULL) {
472  delete reinterpret_cast< ::google::protobuf::MessageLite*>(entity_);
473  }
474  if (entity) {
475  ::google::protobuf::Arena* submessage_arena = NULL;
476  if (message_arena != submessage_arena) {
477  entity = ::google::protobuf::internal::GetOwnedMessage(
478  message_arena, entity, submessage_arena);
479  }
480 
481  } else {
482 
483  }
484  entity_ = entity;
485  // @@protoc_insertion_point(field_set_allocated:gz.msgs.SphericalCoordinates.entity)
486 }
487 
488 // double surface_axis_equatorial = 8;
490  surface_axis_equatorial_ = 0;
491 }
493  // @@protoc_insertion_point(field_get:gz.msgs.SphericalCoordinates.surface_axis_equatorial)
494  return surface_axis_equatorial_;
495 }
497 
498  surface_axis_equatorial_ = value;
499  // @@protoc_insertion_point(field_set:gz.msgs.SphericalCoordinates.surface_axis_equatorial)
500 }
501 
502 // double surface_axis_polar = 9;
504  surface_axis_polar_ = 0;
505 }
507  // @@protoc_insertion_point(field_get:gz.msgs.SphericalCoordinates.surface_axis_polar)
508  return surface_axis_polar_;
509 }
511 
512  surface_axis_polar_ = value;
513  // @@protoc_insertion_point(field_set:gz.msgs.SphericalCoordinates.surface_axis_polar)
514 }
515 
516 #ifdef __GNUC__
517  #pragma GCC diagnostic pop
518 #endif // __GNUC__
519 
520 // @@protoc_insertion_point(namespace_scope)
521 
522 } // namespace msgs
523 } // namespace gz
524 
525 namespace google {
526 namespace protobuf {
527 
528 template <> struct is_proto_enum< ::gz::msgs::SphericalCoordinates_SurfaceModel> : ::std::true_type {};
529 template <>
530 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::SphericalCoordinates_SurfaceModel>() {
532 }
533 template <> struct is_proto_enum< ::gz::msgs::SphericalCoordinatesType> : ::std::true_type {};
534 template <>
535 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::SphericalCoordinatesType>() {
537 }
538 
539 } // namespace protobuf
540 } // namespace google
541 
542 // @@protoc_insertion_point(global_scope)
543 
544 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fspherical_5fcoordinates_2eproto