Gazebo Msgs

API Reference

5.11.0
build/ignition-msgs5/include/ignition/msgs/sensor.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/sensor.proto
3 
4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fsensor_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fsensor_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/unknown_field_set.h>
43 #include "ignition/msgs/pose.pb.h"
44 #ifndef _MSC_VER
45 #pragma GCC system_header
46 #else
47 #pragma warning(push)
48 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
49 #endif
50 #ifdef __linux__
51 #include <sys/sysmacros.h>
52 #endif
53 #include <memory>
54 #include <ignition/msgs/Export.hh>
55 // @@protoc_insertion_point(includes)
56 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fsensor_2eproto IGNITION_MSGS_VISIBLE
57 
59 // Internal implementation detail -- do not use these members.
60 struct IGNITION_MSGS_VISIBLE TableStruct {
61  static const ::google::protobuf::internal::ParseTableField entries[];
62  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
63  static const ::google::protobuf::internal::ParseTable schema[1];
64  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
65  static const ::google::protobuf::internal::SerializationTable serialization_table[];
66  static const ::google::protobuf::uint32 offsets[];
67 };
68 void IGNITION_MSGS_VISIBLE AddDescriptors();
69 } // namespace protobuf_ignition_2fmsgs_2fsensor_2eproto
70 namespace ignition {
71 namespace msgs {
72 class Sensor;
73 class SensorDefaultTypeInternal;
74 IGNITION_MSGS_VISIBLE extern SensorDefaultTypeInternal _Sensor_default_instance_;
75 } // namespace msgs
76 } // namespace ignition
77 namespace google {
78 namespace protobuf {
79 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Sensor* Arena::CreateMaybeMessage<::ignition::msgs::Sensor>(Arena*);
80 } // namespace protobuf
81 } // namespace google
82 namespace ignition {
83 namespace msgs {
84 
85 // ===================================================================
86 
87 class IGNITION_MSGS_VISIBLE Sensor : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Sensor) */ {
88  public:
89  Sensor();
90  virtual ~Sensor();
91 
92  Sensor(const Sensor& from);
93 
94  inline Sensor& operator=(const Sensor& from) {
95  CopyFrom(from);
96  return *this;
97  }
98  #if LANG_CXX11
99  Sensor(Sensor&& from) noexcept
100  : Sensor() {
101  *this = ::std::move(from);
102  }
103 
104  inline Sensor& operator=(Sensor&& from) noexcept {
105  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
106  if (this != &from) InternalSwap(&from);
107  } else {
108  CopyFrom(from);
109  }
110  return *this;
111  }
112  #endif
113  static const ::google::protobuf::Descriptor* descriptor();
114  static const Sensor& default_instance();
115 
116  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
117  static inline const Sensor* internal_default_instance() {
118  return reinterpret_cast<const Sensor*>(
120  }
121  static constexpr int kIndexInFileMessages =
122  0;
123 
124  void Swap(Sensor* other);
125  friend void swap(Sensor& a, Sensor& b) {
126  a.Swap(&b);
127  }
128 
129  // implements Message ----------------------------------------------
130 
131  inline Sensor* New() const final {
132  return CreateMaybeMessage<Sensor>(NULL);
133  }
134 
135  Sensor* New(::google::protobuf::Arena* arena) const final {
136  return CreateMaybeMessage<Sensor>(arena);
137  }
138  void CopyFrom(const ::google::protobuf::Message& from) final;
139  void MergeFrom(const ::google::protobuf::Message& from) final;
140  void CopyFrom(const Sensor& from);
141  void MergeFrom(const Sensor& from);
142  void Clear() final;
143  bool IsInitialized() const final;
144 
145  size_t ByteSizeLong() const final;
146  bool MergePartialFromCodedStream(
147  ::google::protobuf::io::CodedInputStream* input) final;
148  void SerializeWithCachedSizes(
149  ::google::protobuf::io::CodedOutputStream* output) const final;
150  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
151  bool deterministic, ::google::protobuf::uint8* target) const final;
152  int GetCachedSize() const final { return _cached_size_.Get(); }
153 
154  private:
155  void SharedCtor();
156  void SharedDtor();
157  void SetCachedSize(int size) const final;
158  void InternalSwap(Sensor* other);
159  private:
160  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
161  return NULL;
162  }
163  inline void* MaybeArenaPtr() const {
164  return NULL;
165  }
166  public:
167 
168  ::google::protobuf::Metadata GetMetadata() const final;
169 
170  // nested types ----------------------------------------------------
171 
172  // accessors -------------------------------------------------------
173 
174  // string name = 2;
175  void clear_name();
176  static const int kNameFieldNumber = 2;
177  const ::std::string& name() const;
178  void set_name(const ::std::string& value);
179  #if LANG_CXX11
180  void set_name(::std::string&& value);
181  #endif
182  void set_name(const char* value);
183  void set_name(const char* value, size_t size);
184  ::std::string* mutable_name();
185  ::std::string* release_name();
186  void set_allocated_name(::std::string* name);
187 
188  // string parent = 4;
189  void clear_parent();
190  static const int kParentFieldNumber = 4;
191  const ::std::string& parent() const;
192  void set_parent(const ::std::string& value);
193  #if LANG_CXX11
194  void set_parent(::std::string&& value);
195  #endif
196  void set_parent(const char* value);
197  void set_parent(const char* value, size_t size);
198  ::std::string* mutable_parent();
199  ::std::string* release_parent();
200  void set_allocated_parent(::std::string* parent);
201 
202  // string type = 6;
203  void clear_type();
204  static const int kTypeFieldNumber = 6;
205  const ::std::string& type() const;
206  void set_type(const ::std::string& value);
207  #if LANG_CXX11
208  void set_type(::std::string&& value);
209  #endif
210  void set_type(const char* value);
211  void set_type(const char* value, size_t size);
212  ::std::string* mutable_type();
213  ::std::string* release_type();
214  void set_allocated_type(::std::string* type);
215 
216  // string topic = 13;
217  void clear_topic();
218  static const int kTopicFieldNumber = 13;
219  const ::std::string& topic() const;
220  void set_topic(const ::std::string& value);
221  #if LANG_CXX11
222  void set_topic(::std::string&& value);
223  #endif
224  void set_topic(const char* value);
225  void set_topic(const char* value, size_t size);
226  ::std::string* mutable_topic();
227  ::std::string* release_topic();
228  void set_allocated_topic(::std::string* topic);
229 
230  // .ignition.msgs.Header header = 1;
231  bool has_header() const;
232  void clear_header();
233  static const int kHeaderFieldNumber = 1;
234  private:
235  const ::ignition::msgs::Header& _internal_header() const;
236  public:
237  const ::ignition::msgs::Header& header() const;
238  ::ignition::msgs::Header* release_header();
239  ::ignition::msgs::Header* mutable_header();
240  void set_allocated_header(::ignition::msgs::Header* header);
241 
242  // .ignition.msgs.Pose pose = 9;
243  bool has_pose() const;
244  void clear_pose();
245  static const int kPoseFieldNumber = 9;
246  private:
247  const ::ignition::msgs::Pose& _internal_pose() const;
248  public:
249  const ::ignition::msgs::Pose& pose() const;
250  ::ignition::msgs::Pose* release_pose();
251  ::ignition::msgs::Pose* mutable_pose();
252  void set_allocated_pose(::ignition::msgs::Pose* pose);
253 
254  // .ignition.msgs.CameraSensor camera = 10;
255  bool has_camera() const;
256  void clear_camera();
257  static const int kCameraFieldNumber = 10;
258  private:
259  const ::ignition::msgs::CameraSensor& _internal_camera() const;
260  public:
261  const ::ignition::msgs::CameraSensor& camera() const;
262  ::ignition::msgs::CameraSensor* release_camera();
263  ::ignition::msgs::CameraSensor* mutable_camera();
264  void set_allocated_camera(::ignition::msgs::CameraSensor* camera);
265 
266  // .ignition.msgs.ContactSensor contact = 11;
267  bool has_contact() const;
268  void clear_contact();
269  static const int kContactFieldNumber = 11;
270  private:
271  const ::ignition::msgs::ContactSensor& _internal_contact() const;
272  public:
273  const ::ignition::msgs::ContactSensor& contact() const;
274  ::ignition::msgs::ContactSensor* release_contact();
275  ::ignition::msgs::ContactSensor* mutable_contact();
276  void set_allocated_contact(::ignition::msgs::ContactSensor* contact);
277 
278  // .ignition.msgs.LogicalCameraSensor logical_camera = 14;
279  bool has_logical_camera() const;
280  void clear_logical_camera();
281  static const int kLogicalCameraFieldNumber = 14;
282  private:
283  const ::ignition::msgs::LogicalCameraSensor& _internal_logical_camera() const;
284  public:
285  const ::ignition::msgs::LogicalCameraSensor& logical_camera() const;
286  ::ignition::msgs::LogicalCameraSensor* release_logical_camera();
287  ::ignition::msgs::LogicalCameraSensor* mutable_logical_camera();
288  void set_allocated_logical_camera(::ignition::msgs::LogicalCameraSensor* logical_camera);
289 
290  // .ignition.msgs.GPSSensor gps = 15;
291  bool has_gps() const;
292  void clear_gps();
293  static const int kGpsFieldNumber = 15;
294  private:
295  const ::ignition::msgs::GPSSensor& _internal_gps() const;
296  public:
297  const ::ignition::msgs::GPSSensor& gps() const;
298  ::ignition::msgs::GPSSensor* release_gps();
299  ::ignition::msgs::GPSSensor* mutable_gps();
300  void set_allocated_gps(::ignition::msgs::GPSSensor* gps);
301 
302  // .ignition.msgs.IMUSensor imu = 16;
303  bool has_imu() const;
304  void clear_imu();
305  static const int kImuFieldNumber = 16;
306  private:
307  const ::ignition::msgs::IMUSensor& _internal_imu() const;
308  public:
309  const ::ignition::msgs::IMUSensor& imu() const;
310  ::ignition::msgs::IMUSensor* release_imu();
311  ::ignition::msgs::IMUSensor* mutable_imu();
312  void set_allocated_imu(::ignition::msgs::IMUSensor* imu);
313 
314  // .ignition.msgs.MagnetometerSensor magnetometer = 17;
315  bool has_magnetometer() const;
316  void clear_magnetometer();
317  static const int kMagnetometerFieldNumber = 17;
318  private:
319  const ::ignition::msgs::MagnetometerSensor& _internal_magnetometer() const;
320  public:
321  const ::ignition::msgs::MagnetometerSensor& magnetometer() const;
322  ::ignition::msgs::MagnetometerSensor* release_magnetometer();
323  ::ignition::msgs::MagnetometerSensor* mutable_magnetometer();
324  void set_allocated_magnetometer(::ignition::msgs::MagnetometerSensor* magnetometer);
325 
326  // .ignition.msgs.AltimeterSensor altimeter = 18;
327  bool has_altimeter() const;
328  void clear_altimeter();
329  static const int kAltimeterFieldNumber = 18;
330  private:
331  const ::ignition::msgs::AltimeterSensor& _internal_altimeter() const;
332  public:
333  const ::ignition::msgs::AltimeterSensor& altimeter() const;
334  ::ignition::msgs::AltimeterSensor* release_altimeter();
335  ::ignition::msgs::AltimeterSensor* mutable_altimeter();
336  void set_allocated_altimeter(::ignition::msgs::AltimeterSensor* altimeter);
337 
338  // .ignition.msgs.AirPressureSensor air_pressure = 19;
339  bool has_air_pressure() const;
340  void clear_air_pressure();
341  static const int kAirPressureFieldNumber = 19;
342  private:
343  const ::ignition::msgs::AirPressureSensor& _internal_air_pressure() const;
344  public:
345  const ::ignition::msgs::AirPressureSensor& air_pressure() const;
346  ::ignition::msgs::AirPressureSensor* release_air_pressure();
347  ::ignition::msgs::AirPressureSensor* mutable_air_pressure();
348  void set_allocated_air_pressure(::ignition::msgs::AirPressureSensor* air_pressure);
349 
350  // .ignition.msgs.LidarSensor lidar = 20;
351  bool has_lidar() const;
352  void clear_lidar();
353  static const int kLidarFieldNumber = 20;
354  private:
355  const ::ignition::msgs::LidarSensor& _internal_lidar() const;
356  public:
357  const ::ignition::msgs::LidarSensor& lidar() const;
358  ::ignition::msgs::LidarSensor* release_lidar();
359  ::ignition::msgs::LidarSensor* mutable_lidar();
360  void set_allocated_lidar(::ignition::msgs::LidarSensor* lidar);
361 
362  // uint32 id = 3;
363  void clear_id();
364  static const int kIdFieldNumber = 3;
365  ::google::protobuf::uint32 id() const;
366  void set_id(::google::protobuf::uint32 value);
367 
368  // uint32 parent_id = 5;
369  void clear_parent_id();
370  static const int kParentIdFieldNumber = 5;
371  ::google::protobuf::uint32 parent_id() const;
372  void set_parent_id(::google::protobuf::uint32 value);
373 
374  // double update_rate = 8;
375  void clear_update_rate();
376  static const int kUpdateRateFieldNumber = 8;
377  double update_rate() const;
378  void set_update_rate(double value);
379 
380  // bool always_on = 7;
381  void clear_always_on();
382  static const int kAlwaysOnFieldNumber = 7;
383  bool always_on() const;
384  void set_always_on(bool value);
385 
386  // bool visualize = 12;
387  void clear_visualize();
388  static const int kVisualizeFieldNumber = 12;
389  bool visualize() const;
390  void set_visualize(bool value);
391 
392  // @@protoc_insertion_point(class_scope:ignition.msgs.Sensor)
393  private:
394 
395  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
396  ::google::protobuf::internal::ArenaStringPtr name_;
397  ::google::protobuf::internal::ArenaStringPtr parent_;
398  ::google::protobuf::internal::ArenaStringPtr type_;
399  ::google::protobuf::internal::ArenaStringPtr topic_;
400  ::ignition::msgs::Header* header_;
401  ::ignition::msgs::Pose* pose_;
404  ::ignition::msgs::LogicalCameraSensor* logical_camera_;
411  ::google::protobuf::uint32 id_;
412  ::google::protobuf::uint32 parent_id_;
413  double update_rate_;
414  bool always_on_;
415  bool visualize_;
416  mutable ::google::protobuf::internal::CachedSize _cached_size_;
417  friend struct ::protobuf_ignition_2fmsgs_2fsensor_2eproto::TableStruct;
418 };
419 // ===================================================================
420 
421 
422 // ===================================================================
423 
424 #ifdef __GNUC__
425  #pragma GCC diagnostic push
426  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
427 #endif // __GNUC__
428 // Sensor
429 
430 // .ignition.msgs.Header header = 1;
431 inline bool Sensor::has_header() const {
432  return this != internal_default_instance() && header_ != NULL;
433 }
434 inline const ::ignition::msgs::Header& Sensor::_internal_header() const {
435  return *header_;
436 }
437 inline const ::ignition::msgs::Header& Sensor::header() const {
438  const ::ignition::msgs::Header* p = header_;
439  // @@protoc_insertion_point(field_get:ignition.msgs.Sensor.header)
440  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Header*>(
442 }
443 inline ::ignition::msgs::Header* Sensor::release_header() {
444  // @@protoc_insertion_point(field_release:ignition.msgs.Sensor.header)
445 
446  ::ignition::msgs::Header* temp = header_;
447  header_ = NULL;
448  return temp;
449 }
450 inline ::ignition::msgs::Header* Sensor::mutable_header() {
451 
452  if (header_ == NULL) {
453  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
454  header_ = p;
455  }
456  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sensor.header)
457  return header_;
458 }
460  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
461  if (message_arena == NULL) {
462  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
463  }
464  if (header) {
465  ::google::protobuf::Arena* submessage_arena = NULL;
466  if (message_arena != submessage_arena) {
467  header = ::google::protobuf::internal::GetOwnedMessage(
468  message_arena, header, submessage_arena);
469  }
470 
471  } else {
472 
473  }
474  header_ = header;
475  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sensor.header)
476 }
477 
478 // string name = 2;
479 inline void Sensor::clear_name() {
480  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
481 }
482 inline const ::std::string& Sensor::name() const {
483  // @@protoc_insertion_point(field_get:ignition.msgs.Sensor.name)
484  return name_.GetNoArena();
485 }
486 inline void Sensor::set_name(const ::std::string& value) {
487 
488  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
489  // @@protoc_insertion_point(field_set:ignition.msgs.Sensor.name)
490 }
491 #if LANG_CXX11
492 inline void Sensor::set_name(::std::string&& value) {
493 
494  name_.SetNoArena(
495  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
496  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.Sensor.name)
497 }
498 #endif
499 inline void Sensor::set_name(const char* value) {
500  GOOGLE_DCHECK(value != NULL);
501 
502  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
503  // @@protoc_insertion_point(field_set_char:ignition.msgs.Sensor.name)
504 }
505 inline void Sensor::set_name(const char* value, size_t size) {
506 
507  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
508  ::std::string(reinterpret_cast<const char*>(value), size));
509  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Sensor.name)
510 }
511 inline ::std::string* Sensor::mutable_name() {
512 
513  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sensor.name)
514  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
515 }
516 inline ::std::string* Sensor::release_name() {
517  // @@protoc_insertion_point(field_release:ignition.msgs.Sensor.name)
518 
519  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
520 }
522  if (name != NULL) {
523 
524  } else {
525 
526  }
527  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
528  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sensor.name)
529 }
530 
531 // uint32 id = 3;
532 inline void Sensor::clear_id() {
533  id_ = 0u;
534 }
535 inline ::google::protobuf::uint32 Sensor::id() const {
536  // @@protoc_insertion_point(field_get:ignition.msgs.Sensor.id)
537  return id_;
538 }
539 inline void Sensor::set_id(::google::protobuf::uint32 value) {
540 
541  id_ = value;
542  // @@protoc_insertion_point(field_set:ignition.msgs.Sensor.id)
543 }
544 
545 // string parent = 4;
546 inline void Sensor::clear_parent() {
547  parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
548 }
549 inline const ::std::string& Sensor::parent() const {
550  // @@protoc_insertion_point(field_get:ignition.msgs.Sensor.parent)
551  return parent_.GetNoArena();
552 }
553 inline void Sensor::set_parent(const ::std::string& value) {
554 
555  parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
556  // @@protoc_insertion_point(field_set:ignition.msgs.Sensor.parent)
557 }
558 #if LANG_CXX11
559 inline void Sensor::set_parent(::std::string&& value) {
560 
561  parent_.SetNoArena(
562  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
563  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.Sensor.parent)
564 }
565 #endif
566 inline void Sensor::set_parent(const char* value) {
567  GOOGLE_DCHECK(value != NULL);
568 
569  parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
570  // @@protoc_insertion_point(field_set_char:ignition.msgs.Sensor.parent)
571 }
572 inline void Sensor::set_parent(const char* value, size_t size) {
573 
574  parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
575  ::std::string(reinterpret_cast<const char*>(value), size));
576  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Sensor.parent)
577 }
578 inline ::std::string* Sensor::mutable_parent() {
579 
580  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sensor.parent)
581  return parent_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
582 }
583 inline ::std::string* Sensor::release_parent() {
584  // @@protoc_insertion_point(field_release:ignition.msgs.Sensor.parent)
585 
586  return parent_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
587 }
589  if (parent != NULL) {
590 
591  } else {
592 
593  }
594  parent_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), parent);
595  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sensor.parent)
596 }
597 
598 // uint32 parent_id = 5;
599 inline void Sensor::clear_parent_id() {
600  parent_id_ = 0u;
601 }
602 inline ::google::protobuf::uint32 Sensor::parent_id() const {
603  // @@protoc_insertion_point(field_get:ignition.msgs.Sensor.parent_id)
604  return parent_id_;
605 }
606 inline void Sensor::set_parent_id(::google::protobuf::uint32 value) {
607 
608  parent_id_ = value;
609  // @@protoc_insertion_point(field_set:ignition.msgs.Sensor.parent_id)
610 }
611 
612 // string type = 6;
613 inline void Sensor::clear_type() {
614  type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
615 }
616 inline const ::std::string& Sensor::type() const {
617  // @@protoc_insertion_point(field_get:ignition.msgs.Sensor.type)
618  return type_.GetNoArena();
619 }
620 inline void Sensor::set_type(const ::std::string& value) {
621 
622  type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
623  // @@protoc_insertion_point(field_set:ignition.msgs.Sensor.type)
624 }
625 #if LANG_CXX11
626 inline void Sensor::set_type(::std::string&& value) {
627 
628  type_.SetNoArena(
629  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
630  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.Sensor.type)
631 }
632 #endif
633 inline void Sensor::set_type(const char* value) {
634  GOOGLE_DCHECK(value != NULL);
635 
636  type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
637  // @@protoc_insertion_point(field_set_char:ignition.msgs.Sensor.type)
638 }
639 inline void Sensor::set_type(const char* value, size_t size) {
640 
641  type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
642  ::std::string(reinterpret_cast<const char*>(value), size));
643  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Sensor.type)
644 }
645 inline ::std::string* Sensor::mutable_type() {
646 
647  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sensor.type)
648  return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
649 }
650 inline ::std::string* Sensor::release_type() {
651  // @@protoc_insertion_point(field_release:ignition.msgs.Sensor.type)
652 
653  return type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
654 }
656  if (type != NULL) {
657 
658  } else {
659 
660  }
661  type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type);
662  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sensor.type)
663 }
664 
665 // bool always_on = 7;
666 inline void Sensor::clear_always_on() {
667  always_on_ = false;
668 }
669 inline bool Sensor::always_on() const {
670  // @@protoc_insertion_point(field_get:ignition.msgs.Sensor.always_on)
671  return always_on_;
672 }
673 inline void Sensor::set_always_on(bool value) {
674 
675  always_on_ = value;
676  // @@protoc_insertion_point(field_set:ignition.msgs.Sensor.always_on)
677 }
678 
679 // double update_rate = 8;
681  update_rate_ = 0;
682 }
683 inline double Sensor::update_rate() const {
684  // @@protoc_insertion_point(field_get:ignition.msgs.Sensor.update_rate)
685  return update_rate_;
686 }
687 inline void Sensor::set_update_rate(double value) {
688 
689  update_rate_ = value;
690  // @@protoc_insertion_point(field_set:ignition.msgs.Sensor.update_rate)
691 }
692 
693 // .ignition.msgs.Pose pose = 9;
694 inline bool Sensor::has_pose() const {
695  return this != internal_default_instance() && pose_ != NULL;
696 }
697 inline const ::ignition::msgs::Pose& Sensor::_internal_pose() const {
698  return *pose_;
699 }
700 inline const ::ignition::msgs::Pose& Sensor::pose() const {
701  const ::ignition::msgs::Pose* p = pose_;
702  // @@protoc_insertion_point(field_get:ignition.msgs.Sensor.pose)
703  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Pose*>(
705 }
706 inline ::ignition::msgs::Pose* Sensor::release_pose() {
707  // @@protoc_insertion_point(field_release:ignition.msgs.Sensor.pose)
708 
709  ::ignition::msgs::Pose* temp = pose_;
710  pose_ = NULL;
711  return temp;
712 }
713 inline ::ignition::msgs::Pose* Sensor::mutable_pose() {
714 
715  if (pose_ == NULL) {
716  auto* p = CreateMaybeMessage<::ignition::msgs::Pose>(GetArenaNoVirtual());
717  pose_ = p;
718  }
719  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sensor.pose)
720  return pose_;
721 }
723  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
724  if (message_arena == NULL) {
725  delete reinterpret_cast< ::google::protobuf::MessageLite*>(pose_);
726  }
727  if (pose) {
728  ::google::protobuf::Arena* submessage_arena = NULL;
729  if (message_arena != submessage_arena) {
730  pose = ::google::protobuf::internal::GetOwnedMessage(
731  message_arena, pose, submessage_arena);
732  }
733 
734  } else {
735 
736  }
737  pose_ = pose;
738  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sensor.pose)
739 }
740 
741 // .ignition.msgs.CameraSensor camera = 10;
742 inline bool Sensor::has_camera() const {
743  return this != internal_default_instance() && camera_ != NULL;
744 }
745 inline const ::ignition::msgs::CameraSensor& Sensor::_internal_camera() const {
746  return *camera_;
747 }
748 inline const ::ignition::msgs::CameraSensor& Sensor::camera() const {
749  const ::ignition::msgs::CameraSensor* p = camera_;
750  // @@protoc_insertion_point(field_get:ignition.msgs.Sensor.camera)
751  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::CameraSensor*>(
753 }
754 inline ::ignition::msgs::CameraSensor* Sensor::release_camera() {
755  // @@protoc_insertion_point(field_release:ignition.msgs.Sensor.camera)
756 
757  ::ignition::msgs::CameraSensor* temp = camera_;
758  camera_ = NULL;
759  return temp;
760 }
761 inline ::ignition::msgs::CameraSensor* Sensor::mutable_camera() {
762 
763  if (camera_ == NULL) {
764  auto* p = CreateMaybeMessage<::ignition::msgs::CameraSensor>(GetArenaNoVirtual());
765  camera_ = p;
766  }
767  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sensor.camera)
768  return camera_;
769 }
771  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
772  if (message_arena == NULL) {
773  delete reinterpret_cast< ::google::protobuf::MessageLite*>(camera_);
774  }
775  if (camera) {
776  ::google::protobuf::Arena* submessage_arena = NULL;
777  if (message_arena != submessage_arena) {
778  camera = ::google::protobuf::internal::GetOwnedMessage(
779  message_arena, camera, submessage_arena);
780  }
781 
782  } else {
783 
784  }
785  camera_ = camera;
786  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sensor.camera)
787 }
788 
789 // .ignition.msgs.ContactSensor contact = 11;
790 inline bool Sensor::has_contact() const {
791  return this != internal_default_instance() && contact_ != NULL;
792 }
793 inline const ::ignition::msgs::ContactSensor& Sensor::_internal_contact() const {
794  return *contact_;
795 }
796 inline const ::ignition::msgs::ContactSensor& Sensor::contact() const {
797  const ::ignition::msgs::ContactSensor* p = contact_;
798  // @@protoc_insertion_point(field_get:ignition.msgs.Sensor.contact)
799  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::ContactSensor*>(
801 }
802 inline ::ignition::msgs::ContactSensor* Sensor::release_contact() {
803  // @@protoc_insertion_point(field_release:ignition.msgs.Sensor.contact)
804 
805  ::ignition::msgs::ContactSensor* temp = contact_;
806  contact_ = NULL;
807  return temp;
808 }
809 inline ::ignition::msgs::ContactSensor* Sensor::mutable_contact() {
810 
811  if (contact_ == NULL) {
812  auto* p = CreateMaybeMessage<::ignition::msgs::ContactSensor>(GetArenaNoVirtual());
813  contact_ = p;
814  }
815  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sensor.contact)
816  return contact_;
817 }
819  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
820  if (message_arena == NULL) {
821  delete reinterpret_cast< ::google::protobuf::MessageLite*>(contact_);
822  }
823  if (contact) {
824  ::google::protobuf::Arena* submessage_arena = NULL;
825  if (message_arena != submessage_arena) {
826  contact = ::google::protobuf::internal::GetOwnedMessage(
827  message_arena, contact, submessage_arena);
828  }
829 
830  } else {
831 
832  }
833  contact_ = contact;
834  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sensor.contact)
835 }
836 
837 // bool visualize = 12;
838 inline void Sensor::clear_visualize() {
839  visualize_ = false;
840 }
841 inline bool Sensor::visualize() const {
842  // @@protoc_insertion_point(field_get:ignition.msgs.Sensor.visualize)
843  return visualize_;
844 }
845 inline void Sensor::set_visualize(bool value) {
846 
847  visualize_ = value;
848  // @@protoc_insertion_point(field_set:ignition.msgs.Sensor.visualize)
849 }
850 
851 // string topic = 13;
852 inline void Sensor::clear_topic() {
853  topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
854 }
855 inline const ::std::string& Sensor::topic() const {
856  // @@protoc_insertion_point(field_get:ignition.msgs.Sensor.topic)
857  return topic_.GetNoArena();
858 }
859 inline void Sensor::set_topic(const ::std::string& value) {
860 
861  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
862  // @@protoc_insertion_point(field_set:ignition.msgs.Sensor.topic)
863 }
864 #if LANG_CXX11
865 inline void Sensor::set_topic(::std::string&& value) {
866 
867  topic_.SetNoArena(
868  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
869  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.Sensor.topic)
870 }
871 #endif
872 inline void Sensor::set_topic(const char* value) {
873  GOOGLE_DCHECK(value != NULL);
874 
875  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
876  // @@protoc_insertion_point(field_set_char:ignition.msgs.Sensor.topic)
877 }
878 inline void Sensor::set_topic(const char* value, size_t size) {
879 
880  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
881  ::std::string(reinterpret_cast<const char*>(value), size));
882  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Sensor.topic)
883 }
884 inline ::std::string* Sensor::mutable_topic() {
885 
886  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sensor.topic)
887  return topic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
888 }
889 inline ::std::string* Sensor::release_topic() {
890  // @@protoc_insertion_point(field_release:ignition.msgs.Sensor.topic)
891 
892  return topic_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
893 }
895  if (topic != NULL) {
896 
897  } else {
898 
899  }
900  topic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), topic);
901  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sensor.topic)
902 }
903 
904 // .ignition.msgs.LogicalCameraSensor logical_camera = 14;
905 inline bool Sensor::has_logical_camera() const {
906  return this != internal_default_instance() && logical_camera_ != NULL;
907 }
908 inline const ::ignition::msgs::LogicalCameraSensor& Sensor::_internal_logical_camera() const {
909  return *logical_camera_;
910 }
911 inline const ::ignition::msgs::LogicalCameraSensor& Sensor::logical_camera() const {
912  const ::ignition::msgs::LogicalCameraSensor* p = logical_camera_;
913  // @@protoc_insertion_point(field_get:ignition.msgs.Sensor.logical_camera)
914  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::LogicalCameraSensor*>(
916 }
917 inline ::ignition::msgs::LogicalCameraSensor* Sensor::release_logical_camera() {
918  // @@protoc_insertion_point(field_release:ignition.msgs.Sensor.logical_camera)
919 
920  ::ignition::msgs::LogicalCameraSensor* temp = logical_camera_;
921  logical_camera_ = NULL;
922  return temp;
923 }
924 inline ::ignition::msgs::LogicalCameraSensor* Sensor::mutable_logical_camera() {
925 
926  if (logical_camera_ == NULL) {
927  auto* p = CreateMaybeMessage<::ignition::msgs::LogicalCameraSensor>(GetArenaNoVirtual());
928  logical_camera_ = p;
929  }
930  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sensor.logical_camera)
931  return logical_camera_;
932 }
934  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
935  if (message_arena == NULL) {
936  delete reinterpret_cast< ::google::protobuf::MessageLite*>(logical_camera_);
937  }
938  if (logical_camera) {
939  ::google::protobuf::Arena* submessage_arena = NULL;
940  if (message_arena != submessage_arena) {
941  logical_camera = ::google::protobuf::internal::GetOwnedMessage(
942  message_arena, logical_camera, submessage_arena);
943  }
944 
945  } else {
946 
947  }
948  logical_camera_ = logical_camera;
949  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sensor.logical_camera)
950 }
951 
952 // .ignition.msgs.GPSSensor gps = 15;
953 inline bool Sensor::has_gps() const {
954  return this != internal_default_instance() && gps_ != NULL;
955 }
956 inline const ::ignition::msgs::GPSSensor& Sensor::_internal_gps() const {
957  return *gps_;
958 }
959 inline const ::ignition::msgs::GPSSensor& Sensor::gps() const {
960  const ::ignition::msgs::GPSSensor* p = gps_;
961  // @@protoc_insertion_point(field_get:ignition.msgs.Sensor.gps)
962  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::GPSSensor*>(
964 }
965 inline ::ignition::msgs::GPSSensor* Sensor::release_gps() {
966  // @@protoc_insertion_point(field_release:ignition.msgs.Sensor.gps)
967 
968  ::ignition::msgs::GPSSensor* temp = gps_;
969  gps_ = NULL;
970  return temp;
971 }
972 inline ::ignition::msgs::GPSSensor* Sensor::mutable_gps() {
973 
974  if (gps_ == NULL) {
975  auto* p = CreateMaybeMessage<::ignition::msgs::GPSSensor>(GetArenaNoVirtual());
976  gps_ = p;
977  }
978  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sensor.gps)
979  return gps_;
980 }
982  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
983  if (message_arena == NULL) {
984  delete reinterpret_cast< ::google::protobuf::MessageLite*>(gps_);
985  }
986  if (gps) {
987  ::google::protobuf::Arena* submessage_arena = NULL;
988  if (message_arena != submessage_arena) {
989  gps = ::google::protobuf::internal::GetOwnedMessage(
990  message_arena, gps, submessage_arena);
991  }
992 
993  } else {
994 
995  }
996  gps_ = gps;
997  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sensor.gps)
998 }
999 
1000 // .ignition.msgs.IMUSensor imu = 16;
1001 inline bool Sensor::has_imu() const {
1002  return this != internal_default_instance() && imu_ != NULL;
1003 }
1004 inline const ::ignition::msgs::IMUSensor& Sensor::_internal_imu() const {
1005  return *imu_;
1006 }
1007 inline const ::ignition::msgs::IMUSensor& Sensor::imu() const {
1008  const ::ignition::msgs::IMUSensor* p = imu_;
1009  // @@protoc_insertion_point(field_get:ignition.msgs.Sensor.imu)
1010  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::IMUSensor*>(
1012 }
1013 inline ::ignition::msgs::IMUSensor* Sensor::release_imu() {
1014  // @@protoc_insertion_point(field_release:ignition.msgs.Sensor.imu)
1015 
1016  ::ignition::msgs::IMUSensor* temp = imu_;
1017  imu_ = NULL;
1018  return temp;
1019 }
1020 inline ::ignition::msgs::IMUSensor* Sensor::mutable_imu() {
1021 
1022  if (imu_ == NULL) {
1023  auto* p = CreateMaybeMessage<::ignition::msgs::IMUSensor>(GetArenaNoVirtual());
1024  imu_ = p;
1025  }
1026  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sensor.imu)
1027  return imu_;
1028 }
1030  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1031  if (message_arena == NULL) {
1032  delete reinterpret_cast< ::google::protobuf::MessageLite*>(imu_);
1033  }
1034  if (imu) {
1035  ::google::protobuf::Arena* submessage_arena = NULL;
1036  if (message_arena != submessage_arena) {
1037  imu = ::google::protobuf::internal::GetOwnedMessage(
1038  message_arena, imu, submessage_arena);
1039  }
1040 
1041  } else {
1042 
1043  }
1044  imu_ = imu;
1045  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sensor.imu)
1046 }
1047 
1048 // .ignition.msgs.MagnetometerSensor magnetometer = 17;
1049 inline bool Sensor::has_magnetometer() const {
1050  return this != internal_default_instance() && magnetometer_ != NULL;
1051 }
1052 inline const ::ignition::msgs::MagnetometerSensor& Sensor::_internal_magnetometer() const {
1053  return *magnetometer_;
1054 }
1055 inline const ::ignition::msgs::MagnetometerSensor& Sensor::magnetometer() const {
1056  const ::ignition::msgs::MagnetometerSensor* p = magnetometer_;
1057  // @@protoc_insertion_point(field_get:ignition.msgs.Sensor.magnetometer)
1058  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::MagnetometerSensor*>(
1060 }
1061 inline ::ignition::msgs::MagnetometerSensor* Sensor::release_magnetometer() {
1062  // @@protoc_insertion_point(field_release:ignition.msgs.Sensor.magnetometer)
1063 
1064  ::ignition::msgs::MagnetometerSensor* temp = magnetometer_;
1065  magnetometer_ = NULL;
1066  return temp;
1067 }
1068 inline ::ignition::msgs::MagnetometerSensor* Sensor::mutable_magnetometer() {
1069 
1070  if (magnetometer_ == NULL) {
1071  auto* p = CreateMaybeMessage<::ignition::msgs::MagnetometerSensor>(GetArenaNoVirtual());
1072  magnetometer_ = p;
1073  }
1074  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sensor.magnetometer)
1075  return magnetometer_;
1076 }
1078  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1079  if (message_arena == NULL) {
1080  delete reinterpret_cast< ::google::protobuf::MessageLite*>(magnetometer_);
1081  }
1082  if (magnetometer) {
1083  ::google::protobuf::Arena* submessage_arena = NULL;
1084  if (message_arena != submessage_arena) {
1085  magnetometer = ::google::protobuf::internal::GetOwnedMessage(
1086  message_arena, magnetometer, submessage_arena);
1087  }
1088 
1089  } else {
1090 
1091  }
1092  magnetometer_ = magnetometer;
1093  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sensor.magnetometer)
1094 }
1095 
1096 // .ignition.msgs.AltimeterSensor altimeter = 18;
1097 inline bool Sensor::has_altimeter() const {
1098  return this != internal_default_instance() && altimeter_ != NULL;
1099 }
1100 inline const ::ignition::msgs::AltimeterSensor& Sensor::_internal_altimeter() const {
1101  return *altimeter_;
1102 }
1103 inline const ::ignition::msgs::AltimeterSensor& Sensor::altimeter() const {
1104  const ::ignition::msgs::AltimeterSensor* p = altimeter_;
1105  // @@protoc_insertion_point(field_get:ignition.msgs.Sensor.altimeter)
1106  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::AltimeterSensor*>(
1108 }
1109 inline ::ignition::msgs::AltimeterSensor* Sensor::release_altimeter() {
1110  // @@protoc_insertion_point(field_release:ignition.msgs.Sensor.altimeter)
1111 
1112  ::ignition::msgs::AltimeterSensor* temp = altimeter_;
1113  altimeter_ = NULL;
1114  return temp;
1115 }
1116 inline ::ignition::msgs::AltimeterSensor* Sensor::mutable_altimeter() {
1117 
1118  if (altimeter_ == NULL) {
1119  auto* p = CreateMaybeMessage<::ignition::msgs::AltimeterSensor>(GetArenaNoVirtual());
1120  altimeter_ = p;
1121  }
1122  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sensor.altimeter)
1123  return altimeter_;
1124 }
1126  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1127  if (message_arena == NULL) {
1128  delete reinterpret_cast< ::google::protobuf::MessageLite*>(altimeter_);
1129  }
1130  if (altimeter) {
1131  ::google::protobuf::Arena* submessage_arena = NULL;
1132  if (message_arena != submessage_arena) {
1133  altimeter = ::google::protobuf::internal::GetOwnedMessage(
1134  message_arena, altimeter, submessage_arena);
1135  }
1136 
1137  } else {
1138 
1139  }
1140  altimeter_ = altimeter;
1141  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sensor.altimeter)
1142 }
1143 
1144 // .ignition.msgs.AirPressureSensor air_pressure = 19;
1145 inline bool Sensor::has_air_pressure() const {
1146  return this != internal_default_instance() && air_pressure_ != NULL;
1147 }
1148 inline const ::ignition::msgs::AirPressureSensor& Sensor::_internal_air_pressure() const {
1149  return *air_pressure_;
1150 }
1151 inline const ::ignition::msgs::AirPressureSensor& Sensor::air_pressure() const {
1152  const ::ignition::msgs::AirPressureSensor* p = air_pressure_;
1153  // @@protoc_insertion_point(field_get:ignition.msgs.Sensor.air_pressure)
1154  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::AirPressureSensor*>(
1156 }
1157 inline ::ignition::msgs::AirPressureSensor* Sensor::release_air_pressure() {
1158  // @@protoc_insertion_point(field_release:ignition.msgs.Sensor.air_pressure)
1159 
1160  ::ignition::msgs::AirPressureSensor* temp = air_pressure_;
1161  air_pressure_ = NULL;
1162  return temp;
1163 }
1164 inline ::ignition::msgs::AirPressureSensor* Sensor::mutable_air_pressure() {
1165 
1166  if (air_pressure_ == NULL) {
1167  auto* p = CreateMaybeMessage<::ignition::msgs::AirPressureSensor>(GetArenaNoVirtual());
1168  air_pressure_ = p;
1169  }
1170  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sensor.air_pressure)
1171  return air_pressure_;
1172 }
1174  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1175  if (message_arena == NULL) {
1176  delete reinterpret_cast< ::google::protobuf::MessageLite*>(air_pressure_);
1177  }
1178  if (air_pressure) {
1179  ::google::protobuf::Arena* submessage_arena = NULL;
1180  if (message_arena != submessage_arena) {
1181  air_pressure = ::google::protobuf::internal::GetOwnedMessage(
1182  message_arena, air_pressure, submessage_arena);
1183  }
1184 
1185  } else {
1186 
1187  }
1188  air_pressure_ = air_pressure;
1189  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sensor.air_pressure)
1190 }
1191 
1192 // .ignition.msgs.LidarSensor lidar = 20;
1193 inline bool Sensor::has_lidar() const {
1194  return this != internal_default_instance() && lidar_ != NULL;
1195 }
1196 inline const ::ignition::msgs::LidarSensor& Sensor::_internal_lidar() const {
1197  return *lidar_;
1198 }
1199 inline const ::ignition::msgs::LidarSensor& Sensor::lidar() const {
1200  const ::ignition::msgs::LidarSensor* p = lidar_;
1201  // @@protoc_insertion_point(field_get:ignition.msgs.Sensor.lidar)
1202  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::LidarSensor*>(
1204 }
1205 inline ::ignition::msgs::LidarSensor* Sensor::release_lidar() {
1206  // @@protoc_insertion_point(field_release:ignition.msgs.Sensor.lidar)
1207 
1208  ::ignition::msgs::LidarSensor* temp = lidar_;
1209  lidar_ = NULL;
1210  return temp;
1211 }
1212 inline ::ignition::msgs::LidarSensor* Sensor::mutable_lidar() {
1213 
1214  if (lidar_ == NULL) {
1215  auto* p = CreateMaybeMessage<::ignition::msgs::LidarSensor>(GetArenaNoVirtual());
1216  lidar_ = p;
1217  }
1218  // @@protoc_insertion_point(field_mutable:ignition.msgs.Sensor.lidar)
1219  return lidar_;
1220 }
1222  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1223  if (message_arena == NULL) {
1224  delete reinterpret_cast< ::google::protobuf::MessageLite*>(lidar_);
1225  }
1226  if (lidar) {
1227  ::google::protobuf::Arena* submessage_arena = NULL;
1228  if (message_arena != submessage_arena) {
1229  lidar = ::google::protobuf::internal::GetOwnedMessage(
1230  message_arena, lidar, submessage_arena);
1231  }
1232 
1233  } else {
1234 
1235  }
1236  lidar_ = lidar;
1237  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Sensor.lidar)
1238 }
1239 
1240 #ifdef __GNUC__
1241  #pragma GCC diagnostic pop
1242 #endif // __GNUC__
1243 
1248 // @@protoc_insertion_point(namespace_scope)
1249 
1250 } // namespace msgs
1251 } // namespace ignition
1252 
1253 #ifdef _MSC_VER
1254 #pragma warning(pop)
1255 #endif
1256 // @@protoc_insertion_point(global_scope)
1257 
1258 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fsensor_2eproto
const ::ignition::msgs::AirPressureSensor & air_pressure() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1151
Sensor * New(::google::protobuf::Arena *arena) const final
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:135
const ::std::string & topic() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:855
void clear_parent()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:546
::ignition::msgs::CameraSensor * release_camera()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:754
bool has_header() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:431
const ::std::string & parent() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:549
void set_allocated_type(::std::string *type)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:655
STL class.
STL class.
void set_allocated_header(::ignition::msgs::Header *header)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:459
const ::ignition::msgs::Pose & pose() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:700
T move(T... args)
std::shared_ptr< const Sensor > ConstSensorSharedPtr
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1247
void clear_update_rate()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:680
bool has_imu() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1001
Definition: build/ignition-msgs5/include/ignition/msgs/altimeter_sensor.pb.h:78
const ::std::string & name() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:482
IGNITION_MSGS_VISIBLE GPSSensorDefaultTypeInternal _GPSSensor_default_instance_
::ignition::msgs::ContactSensor * release_contact()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:802
void set_allocated_contact(::ignition::msgs::ContactSensor *contact)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:818
const ::ignition::msgs::ContactSensor & contact() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:796
bool has_logical_camera() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:905
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:58
Definition: build/ignition-msgs5/include/ignition/msgs/imu_sensor.pb.h:528
void Swap(Sensor *other)
::ignition::msgs::Header * release_header()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:443
::ignition::msgs::LogicalCameraSensor * release_logical_camera()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:917
void set_parent_id(::google::protobuf::uint32 value)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:606
Definition: build/ignition-msgs5/include/ignition/msgs/air_pressure_sensor.pb.h:78
Definition: build/ignition-msgs5/include/ignition/msgs/pose.pb.h:79
Definition: build/ignition-msgs5/include/ignition/msgs/gps_sensor.pb.h:204
Definition: build/ignition-msgs5/include/ignition/msgs/magnetometer_sensor.pb.h:78
bool has_contact() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:790
void set_allocated_imu(::ignition::msgs::IMUSensor *imu)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1029
void set_allocated_gps(::ignition::msgs::GPSSensor *gps)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:981
IGNITION_MSGS_VISIBLE CameraSensorDefaultTypeInternal _CameraSensor_default_instance_
::ignition::msgs::Pose * release_pose()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:706
IGNITION_MSGS_VISIBLE SensorDefaultTypeInternal _Sensor_default_instance_
bool has_magnetometer() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1049
::ignition::msgs::ContactSensor * mutable_contact()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:809
void IGNITION_MSGS_VISIBLE AddDescriptors()
bool always_on() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:669
::ignition::msgs::CameraSensor * mutable_camera()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:761
void set_name(const ::std::string &value)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:486
bool has_gps() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:953
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:60
::google::protobuf::uint32 id() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:535
IGNITION_MSGS_VISIBLE PoseDefaultTypeInternal _Pose_default_instance_
IGNITION_MSGS_VISIBLE LogicalCameraSensorDefaultTypeInternal _LogicalCameraSensor_default_instance_
::ignition::msgs::AirPressureSensor * release_air_pressure()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1157
friend void swap(Sensor &a, Sensor &b)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:125
static const Sensor * internal_default_instance()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:117
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:87
::std::string * release_topic()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:889
void set_allocated_air_pressure(::ignition::msgs::AirPressureSensor *air_pressure)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1173
std::shared_ptr< Sensor > SensorSharedPtr
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1246
::ignition::msgs::IMUSensor * mutable_imu()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1020
const ::std::string & type() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:616
::std::string * mutable_type()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:645
::ignition::msgs::IMUSensor * release_imu()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1013
bool has_pose() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:694
const ::ignition::msgs::LogicalCameraSensor & logical_camera() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:911
::ignition::msgs::Pose * mutable_pose()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:713
void set_allocated_camera(::ignition::msgs::CameraSensor *camera)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:770
void clear_topic()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:852
::ignition::msgs::LidarSensor * release_lidar()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1205
void clear_always_on()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:666
::std::string * mutable_parent()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:578
::ignition::msgs::AltimeterSensor * release_altimeter()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1109
const ::ignition::msgs::MagnetometerSensor & magnetometer() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1055
std::unique_ptr< const Sensor > ConstSensorUniquePtr
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1245
::ignition::msgs::LogicalCameraSensor * mutable_logical_camera()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:924
Definition: build/ignition-msgs5/include/ignition/msgs/logical_camera_sensor.pb.h:77
void clear_type()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:613
void set_type(const ::std::string &value)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:620
::ignition::msgs::AirPressureSensor * mutable_air_pressure()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1164
::std::string * mutable_name()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:511
::google::protobuf::uint32 parent_id() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:602
Sensor & operator=(const Sensor &from)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:94
bool visualize() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:841
void clear_parent_id()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:599
const ::ignition::msgs::GPSSensor & gps() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:959
bool has_altimeter() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1097
::std::string * release_name()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:516
IGNITION_MSGS_VISIBLE IMUSensorDefaultTypeInternal _IMUSensor_default_instance_
IGNITION_MSGS_VISIBLE ContactSensorDefaultTypeInternal _ContactSensor_default_instance_
void set_topic(const ::std::string &value)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:859
void set_allocated_topic(::std::string *topic)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:894
::ignition::msgs::MagnetometerSensor * mutable_magnetometer()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1068
void set_allocated_pose(::ignition::msgs::Pose *pose)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:722
void set_allocated_name(::std::string *name)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:521
::std::string * release_parent()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:583
::ignition::msgs::Header * mutable_header()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:450
void set_allocated_logical_camera(::ignition::msgs::LogicalCameraSensor *logical_camera)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:933
void set_always_on(bool value)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:673
std::unique_ptr< Sensor > SensorUniquePtr
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1244
Definition: build/ignition-msgs5/include/ignition/msgs/camerasensor.pb.h:79
void set_parent(const ::std::string &value)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:553
const ::ignition::msgs::IMUSensor & imu() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1007
void set_allocated_lidar(::ignition::msgs::LidarSensor *lidar)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1221
void set_allocated_parent(::std::string *parent)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:588
void set_id(::google::protobuf::uint32 value)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:539
double update_rate() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:683
const ::ignition::msgs::AltimeterSensor & altimeter() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1103
bool has_lidar() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1193
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
void clear_name()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:479
void set_visualize(bool value)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:845
const ::ignition::msgs::LidarSensor & lidar() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1199
void clear_id()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:532
void set_update_rate(double value)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:687
STL namespace.
IGNITION_MSGS_VISIBLE AirPressureSensorDefaultTypeInternal _AirPressureSensor_default_instance_
Definition: build/ignition-msgs5/include/ignition/msgs/header.pb.h:215
bool has_air_pressure() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1145
const ::ignition::msgs::CameraSensor & camera() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:748
::ignition::msgs::GPSSensor * release_gps()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:965
IGNITION_MSGS_VISIBLE LidarSensorDefaultTypeInternal _LidarSensor_default_instance_
::std::string * mutable_topic()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:884
void set_allocated_altimeter(::ignition::msgs::AltimeterSensor *altimeter)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1125
Definition: build/ignition-msgs5/include/ignition/msgs/contactsensor.pb.h:77
void clear_visualize()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:838
const ::ignition::msgs::Header & header() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:437
::ignition::msgs::LidarSensor * mutable_lidar()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1212
bool has_camera() const
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:742
STL class.
IGNITION_MSGS_VISIBLE MagnetometerSensorDefaultTypeInternal _MagnetometerSensor_default_instance_
::ignition::msgs::AltimeterSensor * mutable_altimeter()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1116
void set_allocated_magnetometer(::ignition::msgs::MagnetometerSensor *magnetometer)
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1077
::ignition::msgs::GPSSensor * mutable_gps()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:972
Definition: build/ignition-msgs5/include/ignition/msgs/lidar_sensor.pb.h:78
::ignition::msgs::MagnetometerSensor * release_magnetometer()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:1061
Definition: build/ignition-msgs5/include/ignition/msgs/actor.pb.h:78
IGNITION_MSGS_VISIBLE AltimeterSensorDefaultTypeInternal _AltimeterSensor_default_instance_
::std::string * release_type()
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:650
Sensor * New() const final
Definition: build/ignition-msgs5/include/ignition/msgs/sensor.pb.h:131