Goby v2
iver_driver.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/moos/frontseat/iver/iver_driver.proto
3 
4 #ifndef PROTOBUF_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_2eproto__INCLUDED
5 #define PROTOBUF_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 2006000
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 2006001 < 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/generated_message_util.h>
23 #include <google/protobuf/message.h>
24 #include <google/protobuf/repeated_field.h>
25 #include <google/protobuf/extension_set.h>
26 #include <google/protobuf/generated_enum_reflection.h>
27 #include <google/protobuf/unknown_field_set.h>
28 #include "goby/moos/protobuf/frontseat.pb.h"
29 #include <boost/units/quantity.hpp>
30 #include <boost/units/absolute.hpp>
31 #include <boost/units/dimensionless_type.hpp>
32 #include <boost/units/make_scaled_unit.hpp>
33 // @@protoc_insertion_point(includes)
34 
35 namespace goby {
36 namespace moos {
37 namespace protobuf {
38 
39 // Internal implementation detail -- do not call these.
40 void protobuf_AddDesc_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_2eproto();
41 void protobuf_AssignDesc_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_2eproto();
42 void protobuf_ShutdownFile_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_2eproto();
43 
44 class IverState;
45 class IverExtraCommands;
46 
47 enum IverState_IverMissionMode {
48  IverState_IverMissionMode_IVER_MODE_UNKNOWN = -1,
49  IverState_IverMissionMode_IVER_MODE_NORMAL = 78,
50  IverState_IverMissionMode_IVER_MODE_STOPPED = 83,
51  IverState_IverMissionMode_IVER_MODE_PARKING = 80,
52  IverState_IverMissionMode_IVER_MODE_MANUAL_OVERRIDE = 77,
53  IverState_IverMissionMode_IVER_MODE_MANUAL_PARKING = 109,
54  IverState_IverMissionMode_IVER_MODE_SERVO_MODE = 65,
55  IverState_IverMissionMode_IVER_MODE_MISSION_MODE = 87
56 };
57 bool IverState_IverMissionMode_IsValid(int value);
58 const IverState_IverMissionMode IverState_IverMissionMode_IverMissionMode_MIN = IverState_IverMissionMode_IVER_MODE_UNKNOWN;
59 const IverState_IverMissionMode IverState_IverMissionMode_IverMissionMode_MAX = IverState_IverMissionMode_IVER_MODE_MANUAL_PARKING;
60 const int IverState_IverMissionMode_IverMissionMode_ARRAYSIZE = IverState_IverMissionMode_IverMissionMode_MAX + 1;
61 
62 const ::google::protobuf::EnumDescriptor* IverState_IverMissionMode_descriptor();
63 inline const ::std::string& IverState_IverMissionMode_Name(IverState_IverMissionMode value) {
64  return ::google::protobuf::internal::NameOfEnum(
65  IverState_IverMissionMode_descriptor(), value);
66 }
67 inline bool IverState_IverMissionMode_Parse(
68  const ::std::string& name, IverState_IverMissionMode* value) {
69  return ::google::protobuf::internal::ParseNamedEnum<IverState_IverMissionMode>(
70  IverState_IverMissionMode_descriptor(), name, value);
71 }
72 enum IverExtraCommands_IverCommand {
73  IverExtraCommands_IverCommand_UNKNOWN_COMMAND = 0,
74  IverExtraCommands_IverCommand_START_MISSION = 1,
75  IverExtraCommands_IverCommand_STOP_MISSION = 2
76 };
77 bool IverExtraCommands_IverCommand_IsValid(int value);
78 const IverExtraCommands_IverCommand IverExtraCommands_IverCommand_IverCommand_MIN = IverExtraCommands_IverCommand_UNKNOWN_COMMAND;
79 const IverExtraCommands_IverCommand IverExtraCommands_IverCommand_IverCommand_MAX = IverExtraCommands_IverCommand_STOP_MISSION;
80 const int IverExtraCommands_IverCommand_IverCommand_ARRAYSIZE = IverExtraCommands_IverCommand_IverCommand_MAX + 1;
81 
82 const ::google::protobuf::EnumDescriptor* IverExtraCommands_IverCommand_descriptor();
83 inline const ::std::string& IverExtraCommands_IverCommand_Name(IverExtraCommands_IverCommand value) {
84  return ::google::protobuf::internal::NameOfEnum(
85  IverExtraCommands_IverCommand_descriptor(), value);
86 }
87 inline bool IverExtraCommands_IverCommand_Parse(
88  const ::std::string& name, IverExtraCommands_IverCommand* value) {
89  return ::google::protobuf::internal::ParseNamedEnum<IverExtraCommands_IverCommand>(
90  IverExtraCommands_IverCommand_descriptor(), name, value);
91 }
92 // ===================================================================
93 
94 class IverState : public ::google::protobuf::Message {
95  public:
96  IverState();
97  virtual ~IverState();
98 
99  IverState(const IverState& from);
100 
101  inline IverState& operator=(const IverState& from) {
102  CopyFrom(from);
103  return *this;
104  }
105 
106  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
107  return _unknown_fields_;
108  }
109 
110  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
111  return &_unknown_fields_;
112  }
113 
114  static const ::google::protobuf::Descriptor* descriptor();
115  static const IverState& default_instance();
116 
117  void Swap(IverState* other);
118 
119  // implements Message ----------------------------------------------
120 
121  IverState* New() const;
122  void CopyFrom(const ::google::protobuf::Message& from);
123  void MergeFrom(const ::google::protobuf::Message& from);
124  void CopyFrom(const IverState& from);
125  void MergeFrom(const IverState& from);
126  void Clear();
127  bool IsInitialized() const;
128 
129  int ByteSize() const;
130  bool MergePartialFromCodedStream(
131  ::google::protobuf::io::CodedInputStream* input);
132  void SerializeWithCachedSizes(
133  ::google::protobuf::io::CodedOutputStream* output) const;
134  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
135  int GetCachedSize() const { return _cached_size_; }
136  private:
137  void SharedCtor();
138  void SharedDtor();
139  void SetCachedSize(int size) const;
140  public:
141  ::google::protobuf::Metadata GetMetadata() const;
142 
143  // nested types ----------------------------------------------------
144 
145  typedef IverState_IverMissionMode IverMissionMode;
146  static const IverMissionMode IVER_MODE_UNKNOWN = IverState_IverMissionMode_IVER_MODE_UNKNOWN;
147  static const IverMissionMode IVER_MODE_NORMAL = IverState_IverMissionMode_IVER_MODE_NORMAL;
148  static const IverMissionMode IVER_MODE_STOPPED = IverState_IverMissionMode_IVER_MODE_STOPPED;
149  static const IverMissionMode IVER_MODE_PARKING = IverState_IverMissionMode_IVER_MODE_PARKING;
150  static const IverMissionMode IVER_MODE_MANUAL_OVERRIDE = IverState_IverMissionMode_IVER_MODE_MANUAL_OVERRIDE;
151  static const IverMissionMode IVER_MODE_MANUAL_PARKING = IverState_IverMissionMode_IVER_MODE_MANUAL_PARKING;
152  static const IverMissionMode IVER_MODE_SERVO_MODE = IverState_IverMissionMode_IVER_MODE_SERVO_MODE;
153  static const IverMissionMode IVER_MODE_MISSION_MODE = IverState_IverMissionMode_IVER_MODE_MISSION_MODE;
154  static inline bool IverMissionMode_IsValid(int value) {
155  return IverState_IverMissionMode_IsValid(value);
156  }
157  static const IverMissionMode IverMissionMode_MIN =
158  IverState_IverMissionMode_IverMissionMode_MIN;
159  static const IverMissionMode IverMissionMode_MAX =
160  IverState_IverMissionMode_IverMissionMode_MAX;
161  static const int IverMissionMode_ARRAYSIZE =
162  IverState_IverMissionMode_IverMissionMode_ARRAYSIZE;
163  static inline const ::google::protobuf::EnumDescriptor*
164  IverMissionMode_descriptor() {
165  return IverState_IverMissionMode_descriptor();
166  }
167  static inline const ::std::string& IverMissionMode_Name(IverMissionMode value) {
168  return IverState_IverMissionMode_Name(value);
169  }
170  static inline bool IverMissionMode_Parse(const ::std::string& name,
171  IverMissionMode* value) {
172  return IverState_IverMissionMode_Parse(name, value);
173  }
174 
175  // accessors -------------------------------------------------------
176 
177  // optional .goby.moos.protobuf.IverState.IverMissionMode mode = 1 [default = IVER_MODE_UNKNOWN];
178  inline bool has_mode() const;
179  inline void clear_mode();
180  static const int kModeFieldNumber = 1;
181  inline ::goby::moos::protobuf::IverState_IverMissionMode mode() const;
182  inline void set_mode(::goby::moos::protobuf::IverState_IverMissionMode value);
183 
184  // @@protoc_insertion_point(class_scope:goby.moos.protobuf.IverState)
185  private:
186  inline void set_has_mode();
187  inline void clear_has_mode();
188 
189  ::google::protobuf::UnknownFieldSet _unknown_fields_;
190 
191  ::google::protobuf::uint32 _has_bits_[1];
192  mutable int _cached_size_;
193  int mode_;
194  friend void protobuf_AddDesc_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_2eproto();
195  friend void protobuf_AssignDesc_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_2eproto();
196  friend void protobuf_ShutdownFile_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_2eproto();
197 
198  void InitAsDefaultInstance();
199  static IverState* default_instance_;
200 };
201 // -------------------------------------------------------------------
202 
203 class IverExtraCommands : public ::google::protobuf::Message {
204  public:
206  virtual ~IverExtraCommands();
207 
209 
210  inline IverExtraCommands& operator=(const IverExtraCommands& from) {
211  CopyFrom(from);
212  return *this;
213  }
214 
215  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
216  return _unknown_fields_;
217  }
218 
219  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
220  return &_unknown_fields_;
221  }
222 
223  static const ::google::protobuf::Descriptor* descriptor();
224  static const IverExtraCommands& default_instance();
225 
226  void Swap(IverExtraCommands* other);
227 
228  // implements Message ----------------------------------------------
229 
230  IverExtraCommands* New() const;
231  void CopyFrom(const ::google::protobuf::Message& from);
232  void MergeFrom(const ::google::protobuf::Message& from);
233  void CopyFrom(const IverExtraCommands& from);
234  void MergeFrom(const IverExtraCommands& from);
235  void Clear();
236  bool IsInitialized() const;
237 
238  int ByteSize() const;
239  bool MergePartialFromCodedStream(
240  ::google::protobuf::io::CodedInputStream* input);
241  void SerializeWithCachedSizes(
242  ::google::protobuf::io::CodedOutputStream* output) const;
243  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
244  int GetCachedSize() const { return _cached_size_; }
245  private:
246  void SharedCtor();
247  void SharedDtor();
248  void SetCachedSize(int size) const;
249  public:
250  ::google::protobuf::Metadata GetMetadata() const;
251 
252  // nested types ----------------------------------------------------
253 
254  typedef IverExtraCommands_IverCommand IverCommand;
255  static const IverCommand UNKNOWN_COMMAND = IverExtraCommands_IverCommand_UNKNOWN_COMMAND;
256  static const IverCommand START_MISSION = IverExtraCommands_IverCommand_START_MISSION;
257  static const IverCommand STOP_MISSION = IverExtraCommands_IverCommand_STOP_MISSION;
258  static inline bool IverCommand_IsValid(int value) {
259  return IverExtraCommands_IverCommand_IsValid(value);
260  }
261  static const IverCommand IverCommand_MIN =
262  IverExtraCommands_IverCommand_IverCommand_MIN;
263  static const IverCommand IverCommand_MAX =
264  IverExtraCommands_IverCommand_IverCommand_MAX;
265  static const int IverCommand_ARRAYSIZE =
266  IverExtraCommands_IverCommand_IverCommand_ARRAYSIZE;
267  static inline const ::google::protobuf::EnumDescriptor*
268  IverCommand_descriptor() {
269  return IverExtraCommands_IverCommand_descriptor();
270  }
271  static inline const ::std::string& IverCommand_Name(IverCommand value) {
272  return IverExtraCommands_IverCommand_Name(value);
273  }
274  static inline bool IverCommand_Parse(const ::std::string& name,
275  IverCommand* value) {
276  return IverExtraCommands_IverCommand_Parse(name, value);
277  }
278 
279  // accessors -------------------------------------------------------
280 
281  // optional .goby.moos.protobuf.IverExtraCommands.IverCommand command = 1 [default = UNKNOWN_COMMAND];
282  inline bool has_command() const;
283  inline void clear_command();
284  static const int kCommandFieldNumber = 1;
285  inline ::goby::moos::protobuf::IverExtraCommands_IverCommand command() const;
286  inline void set_command(::goby::moos::protobuf::IverExtraCommands_IverCommand value);
287 
288  // optional string mission = 2;
289  inline bool has_mission() const;
290  inline void clear_mission();
291  static const int kMissionFieldNumber = 2;
292  inline const ::std::string& mission() const;
293  inline void set_mission(const ::std::string& value);
294  inline void set_mission(const char* value);
295  inline void set_mission(const char* value, size_t size);
296  inline ::std::string* mutable_mission();
297  inline ::std::string* release_mission();
298  inline void set_allocated_mission(::std::string* mission);
299 
300  // @@protoc_insertion_point(class_scope:goby.moos.protobuf.IverExtraCommands)
301  private:
302  inline void set_has_command();
303  inline void clear_has_command();
304  inline void set_has_mission();
305  inline void clear_has_mission();
306 
307  ::google::protobuf::UnknownFieldSet _unknown_fields_;
308 
309  ::google::protobuf::uint32 _has_bits_[1];
310  mutable int _cached_size_;
311  ::std::string* mission_;
312  int command_;
313  friend void protobuf_AddDesc_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_2eproto();
314  friend void protobuf_AssignDesc_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_2eproto();
315  friend void protobuf_ShutdownFile_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_2eproto();
316 
317  void InitAsDefaultInstance();
318  static IverExtraCommands* default_instance_;
319 };
320 // ===================================================================
321 
322 static const int kIverCommandFieldNumber = 1001;
323 extern ::google::protobuf::internal::ExtensionIdentifier< ::goby::moos::protobuf::CommandRequest,
324  ::google::protobuf::internal::MessageTypeTraits< ::goby::moos::protobuf::IverExtraCommands >, 11, false >
325  iver_command;
326 static const int kIverStateFieldNumber = 1001;
327 extern ::google::protobuf::internal::ExtensionIdentifier< ::goby::moos::protobuf::FrontSeatInterfaceData,
328  ::google::protobuf::internal::MessageTypeTraits< ::goby::moos::protobuf::IverState >, 11, false >
329  iver_state;
330 
331 // ===================================================================
332 
333 // IverState
334 
335 // optional .goby.moos.protobuf.IverState.IverMissionMode mode = 1 [default = IVER_MODE_UNKNOWN];
336 inline bool IverState::has_mode() const {
337  return (_has_bits_[0] & 0x00000001u) != 0;
338 }
339 inline void IverState::set_has_mode() {
340  _has_bits_[0] |= 0x00000001u;
341 }
342 inline void IverState::clear_has_mode() {
343  _has_bits_[0] &= ~0x00000001u;
344 }
345 inline void IverState::clear_mode() {
346  mode_ = -1;
347  clear_has_mode();
348 }
349 inline ::goby::moos::protobuf::IverState_IverMissionMode IverState::mode() const {
350  // @@protoc_insertion_point(field_get:goby.moos.protobuf.IverState.mode)
351  return static_cast< ::goby::moos::protobuf::IverState_IverMissionMode >(mode_);
352 }
353 inline void IverState::set_mode(::goby::moos::protobuf::IverState_IverMissionMode value) {
354  assert(::goby::moos::protobuf::IverState_IverMissionMode_IsValid(value));
355  set_has_mode();
356  mode_ = value;
357  // @@protoc_insertion_point(field_set:goby.moos.protobuf.IverState.mode)
358 }
359 
360 // -------------------------------------------------------------------
361 
362 // IverExtraCommands
363 
364 // optional .goby.moos.protobuf.IverExtraCommands.IverCommand command = 1 [default = UNKNOWN_COMMAND];
365 inline bool IverExtraCommands::has_command() const {
366  return (_has_bits_[0] & 0x00000001u) != 0;
367 }
368 inline void IverExtraCommands::set_has_command() {
369  _has_bits_[0] |= 0x00000001u;
370 }
371 inline void IverExtraCommands::clear_has_command() {
372  _has_bits_[0] &= ~0x00000001u;
373 }
374 inline void IverExtraCommands::clear_command() {
375  command_ = 0;
376  clear_has_command();
377 }
378 inline ::goby::moos::protobuf::IverExtraCommands_IverCommand IverExtraCommands::command() const {
379  // @@protoc_insertion_point(field_get:goby.moos.protobuf.IverExtraCommands.command)
380  return static_cast< ::goby::moos::protobuf::IverExtraCommands_IverCommand >(command_);
381 }
382 inline void IverExtraCommands::set_command(::goby::moos::protobuf::IverExtraCommands_IverCommand value) {
383  assert(::goby::moos::protobuf::IverExtraCommands_IverCommand_IsValid(value));
384  set_has_command();
385  command_ = value;
386  // @@protoc_insertion_point(field_set:goby.moos.protobuf.IverExtraCommands.command)
387 }
388 
389 // optional string mission = 2;
390 inline bool IverExtraCommands::has_mission() const {
391  return (_has_bits_[0] & 0x00000002u) != 0;
392 }
393 inline void IverExtraCommands::set_has_mission() {
394  _has_bits_[0] |= 0x00000002u;
395 }
396 inline void IverExtraCommands::clear_has_mission() {
397  _has_bits_[0] &= ~0x00000002u;
398 }
399 inline void IverExtraCommands::clear_mission() {
400  if (mission_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
401  mission_->clear();
402  }
403  clear_has_mission();
404 }
405 inline const ::std::string& IverExtraCommands::mission() const {
406  // @@protoc_insertion_point(field_get:goby.moos.protobuf.IverExtraCommands.mission)
407  return *mission_;
408 }
409 inline void IverExtraCommands::set_mission(const ::std::string& value) {
410  set_has_mission();
411  if (mission_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
412  mission_ = new ::std::string;
413  }
414  mission_->assign(value);
415  // @@protoc_insertion_point(field_set:goby.moos.protobuf.IverExtraCommands.mission)
416 }
417 inline void IverExtraCommands::set_mission(const char* value) {
418  set_has_mission();
419  if (mission_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
420  mission_ = new ::std::string;
421  }
422  mission_->assign(value);
423  // @@protoc_insertion_point(field_set_char:goby.moos.protobuf.IverExtraCommands.mission)
424 }
425 inline void IverExtraCommands::set_mission(const char* value, size_t size) {
426  set_has_mission();
427  if (mission_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
428  mission_ = new ::std::string;
429  }
430  mission_->assign(reinterpret_cast<const char*>(value), size);
431  // @@protoc_insertion_point(field_set_pointer:goby.moos.protobuf.IverExtraCommands.mission)
432 }
433 inline ::std::string* IverExtraCommands::mutable_mission() {
434  set_has_mission();
435  if (mission_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
436  mission_ = new ::std::string;
437  }
438  // @@protoc_insertion_point(field_mutable:goby.moos.protobuf.IverExtraCommands.mission)
439  return mission_;
440 }
441 inline ::std::string* IverExtraCommands::release_mission() {
442  clear_has_mission();
443  if (mission_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
444  return NULL;
445  } else {
446  ::std::string* temp = mission_;
447  mission_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
448  return temp;
449  }
450 }
451 inline void IverExtraCommands::set_allocated_mission(::std::string* mission) {
452  if (mission_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
453  delete mission_;
454  }
455  if (mission) {
456  set_has_mission();
457  mission_ = mission;
458  } else {
459  clear_has_mission();
460  mission_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
461  }
462  // @@protoc_insertion_point(field_set_allocated:goby.moos.protobuf.IverExtraCommands.mission)
463 }
464 
465 
466 // @@protoc_insertion_point(namespace_scope)
467 
468 } // namespace protobuf
469 } // namespace moos
470 } // namespace goby
471 
472 #ifndef SWIG
473 namespace google {
474 namespace protobuf {
475 
476 template <> struct is_proto_enum< ::goby::moos::protobuf::IverState_IverMissionMode> : ::google::protobuf::internal::true_type {};
477 template <>
478 inline const EnumDescriptor* GetEnumDescriptor< ::goby::moos::protobuf::IverState_IverMissionMode>() {
479  return ::goby::moos::protobuf::IverState_IverMissionMode_descriptor();
480 }
481 template <> struct is_proto_enum< ::goby::moos::protobuf::IverExtraCommands_IverCommand> : ::google::protobuf::internal::true_type {};
482 template <>
483 inline const EnumDescriptor* GetEnumDescriptor< ::goby::moos::protobuf::IverExtraCommands_IverCommand>() {
484  return ::goby::moos::protobuf::IverExtraCommands_IverCommand_descriptor();
485 }
486 
487 } // namespace google
488 } // namespace protobuf
489 #endif // SWIG
490 
491 // @@protoc_insertion_point(global_scope)
492 
493 #endif // PROTOBUF_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_2eproto__INCLUDED
The global namespace for the Goby project.