4 #ifndef PROTOBUF_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_2eproto__INCLUDED 5 #define PROTOBUF_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 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 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. 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> 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();
45 class IverExtraCommands;
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
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;
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);
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);
72 enum IverExtraCommands_IverCommand {
73 IverExtraCommands_IverCommand_UNKNOWN_COMMAND = 0,
74 IverExtraCommands_IverCommand_START_MISSION = 1,
75 IverExtraCommands_IverCommand_STOP_MISSION = 2
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;
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);
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);
94 class IverState :
public ::google::protobuf::Message {
106 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
107 return _unknown_fields_;
110 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
111 return &_unknown_fields_;
114 static const ::google::protobuf::Descriptor* descriptor();
115 static const IverState& default_instance();
122 void CopyFrom(const ::google::protobuf::Message& from);
123 void MergeFrom(const ::google::protobuf::Message& from);
127 bool IsInitialized()
const;
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_; }
139 void SetCachedSize(
int size)
const;
141 ::google::protobuf::Metadata GetMetadata()
const;
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);
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();
167 static inline const ::std::string& IverMissionMode_Name(IverMissionMode value) {
168 return IverState_IverMissionMode_Name(value);
170 static inline bool IverMissionMode_Parse(const ::std::string& name,
171 IverMissionMode* value) {
172 return IverState_IverMissionMode_Parse(name, value);
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);
186 inline void set_has_mode();
187 inline void clear_has_mode();
189 ::google::protobuf::UnknownFieldSet _unknown_fields_;
191 ::google::protobuf::uint32 _has_bits_[1];
192 mutable int _cached_size_;
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();
198 void InitAsDefaultInstance();
215 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
216 return _unknown_fields_;
219 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
220 return &_unknown_fields_;
223 static const ::google::protobuf::Descriptor* descriptor();
231 void CopyFrom(const ::google::protobuf::Message& from);
232 void MergeFrom(const ::google::protobuf::Message& from);
236 bool IsInitialized()
const;
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_; }
248 void SetCachedSize(
int size)
const;
250 ::google::protobuf::Metadata GetMetadata()
const;
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);
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();
271 static inline const ::std::string& IverCommand_Name(IverCommand value) {
272 return IverExtraCommands_IverCommand_Name(value);
274 static inline bool IverCommand_Parse(const ::std::string& name,
275 IverCommand* value) {
276 return IverExtraCommands_IverCommand_Parse(name, value);
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);
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);
302 inline void set_has_command();
303 inline void clear_has_command();
304 inline void set_has_mission();
305 inline void clear_has_mission();
307 ::google::protobuf::UnknownFieldSet _unknown_fields_;
309 ::google::protobuf::uint32 _has_bits_[1];
310 mutable int _cached_size_;
311 ::std::string* mission_;
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();
317 void InitAsDefaultInstance();
322 static const int kIverCommandFieldNumber = 1001;
324 ::google::protobuf::internal::MessageTypeTraits< ::goby::moos::protobuf::IverExtraCommands >, 11,
false >
326 static const int kIverStateFieldNumber = 1001;
328 ::google::protobuf::internal::MessageTypeTraits< ::goby::moos::protobuf::IverState >, 11,
false >
336 inline bool IverState::has_mode()
const {
337 return (_has_bits_[0] & 0x00000001u) != 0;
339 inline void IverState::set_has_mode() {
340 _has_bits_[0] |= 0x00000001u;
342 inline void IverState::clear_has_mode() {
343 _has_bits_[0] &= ~0x00000001u;
345 inline void IverState::clear_mode() {
349 inline ::goby::moos::protobuf::IverState_IverMissionMode IverState::mode()
const {
351 return static_cast< ::goby::moos::protobuf::IverState_IverMissionMode
>(mode_);
353 inline void IverState::set_mode(::goby::moos::protobuf::IverState_IverMissionMode value) {
354 assert(::goby::moos::protobuf::IverState_IverMissionMode_IsValid(value));
365 inline bool IverExtraCommands::has_command()
const {
366 return (_has_bits_[0] & 0x00000001u) != 0;
368 inline void IverExtraCommands::set_has_command() {
369 _has_bits_[0] |= 0x00000001u;
371 inline void IverExtraCommands::clear_has_command() {
372 _has_bits_[0] &= ~0x00000001u;
374 inline void IverExtraCommands::clear_command() {
378 inline ::goby::moos::protobuf::IverExtraCommands_IverCommand IverExtraCommands::command()
const {
380 return static_cast< ::goby::moos::protobuf::IverExtraCommands_IverCommand
>(command_);
382 inline void IverExtraCommands::set_command(::goby::moos::protobuf::IverExtraCommands_IverCommand value) {
383 assert(::goby::moos::protobuf::IverExtraCommands_IverCommand_IsValid(value));
390 inline bool IverExtraCommands::has_mission()
const {
391 return (_has_bits_[0] & 0x00000002u) != 0;
393 inline void IverExtraCommands::set_has_mission() {
394 _has_bits_[0] |= 0x00000002u;
396 inline void IverExtraCommands::clear_has_mission() {
397 _has_bits_[0] &= ~0x00000002u;
399 inline void IverExtraCommands::clear_mission() {
400 if (mission_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
405 inline const ::std::string& IverExtraCommands::mission()
const {
409 inline void IverExtraCommands::set_mission(const ::std::string& value) {
411 if (mission_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
412 mission_ = new ::std::string;
414 mission_->assign(value);
417 inline void IverExtraCommands::set_mission(
const char* value) {
419 if (mission_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
420 mission_ = new ::std::string;
422 mission_->assign(value);
425 inline void IverExtraCommands::set_mission(
const char* value,
size_t size) {
427 if (mission_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
428 mission_ = new ::std::string;
430 mission_->assign(reinterpret_cast<const char*>(value), size);
433 inline ::std::string* IverExtraCommands::mutable_mission() {
435 if (mission_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
436 mission_ = new ::std::string;
441 inline ::std::string* IverExtraCommands::release_mission() {
443 if (mission_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
446 ::std::string* temp = mission_;
447 mission_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
451 inline void IverExtraCommands::set_allocated_mission(::std::string* mission) {
452 if (mission_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
460 mission_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
476 template <>
struct is_proto_enum< ::goby::moos::protobuf::IverState_IverMissionMode> : ::google::protobuf::internal::true_type {};
478 inline const EnumDescriptor* GetEnumDescriptor< ::goby::moos::protobuf::IverState_IverMissionMode>() {
479 return ::goby::moos::protobuf::IverState_IverMissionMode_descriptor();
481 template <>
struct is_proto_enum< ::goby::moos::protobuf::IverExtraCommands_IverCommand> : ::google::protobuf::internal::true_type {};
483 inline const EnumDescriptor* GetEnumDescriptor< ::goby::moos::protobuf::IverExtraCommands_IverCommand>() {
484 return ::goby::moos::protobuf::IverExtraCommands_IverCommand_descriptor();
493 #endif // PROTOBUF_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_2eproto__INCLUDED
The global namespace for the Goby project.