4 #ifndef PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsimulator_2eproto
5 #define PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsimulator_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/unknown_field_set.h>
33 #include "dccl/option_extensions.pb.h"
34 #include <boost/units/quantity.hpp>
35 #include <boost/units/absolute.hpp>
36 #include <boost/units/dimensionless_type.hpp>
37 #include <boost/units/make_scaled_unit.hpp>
39 #include <boost/units/systems/si.hpp>
41 #define PROTOBUF_INTERNAL_EXPORT_protobuf_jaiabot_2fmessages_2fsimulator_2eproto
46 static const ::google::protobuf::internal::ParseTableField
entries[];
47 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
48 static const ::google::protobuf::internal::ParseTable
schema[3];
51 static const ::google::protobuf::uint32
offsets[];
57 class SimulatorCommand;
58 class SimulatorCommandDefaultTypeInternal;
60 class SimulatorCommand_GPSDropOut;
61 class SimulatorCommand_GPSDropOutDefaultTypeInternal;
63 class SimulatorCommand_StopForwardProgress;
64 class SimulatorCommand_StopForwardProgressDefaultTypeInternal;
94 *
this = ::std::move(from);
98 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
99 if (
this != &from) InternalSwap(&from);
107 return _internal_metadata_.unknown_fields();
110 return _internal_metadata_.mutable_unknown_fields();
113 static const ::google::protobuf::Descriptor*
descriptor();
132 return CreateMaybeMessage<SimulatorCommand_GPSDropOut>(NULL);
136 return CreateMaybeMessage<SimulatorCommand_GPSDropOut>(arena);
138 void CopyFrom(const ::google::protobuf::Message& from)
final;
139 void MergeFrom(const ::google::protobuf::Message& from)
final;
147 ::
google::protobuf::io::CodedInputStream* input) final;
149 ::
google::protobuf::io::CodedOutputStream* output) const final;
151 bool deterministic, ::
google::protobuf::uint8* target) const final;
157 void SetCachedSize(
int size)
const final;
160 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
163 inline void* MaybeArenaPtr()
const {
168 ::google::protobuf::Metadata
GetMetadata() const final;
185 template<typename Quantity >
187 {
set_dropout_duration(boost::units::quantity<dropout_duration_unit,double >(value_w_units).value() ); };
189 template<
typename Quantity >
194 {
return dropout_duration_with_units<boost::units::quantity< dropout_duration_unit,double > >(); };
198 void set_has_dropout_duration();
199 void clear_has_dropout_duration();
201 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
202 ::google::protobuf::internal::HasBits<1> _has_bits_;
203 mutable ::google::protobuf::internal::CachedSize _cached_size_;
204 double dropout_duration_;
205 friend struct ::protobuf_jaiabot_2fmessages_2fsimulator_2eproto::TableStruct;
223 *
this = ::std::move(from);
227 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
228 if (
this != &from) InternalSwap(&from);
236 return _internal_metadata_.unknown_fields();
239 return _internal_metadata_.mutable_unknown_fields();
242 static const ::google::protobuf::Descriptor*
descriptor();
261 return CreateMaybeMessage<SimulatorCommand_StopForwardProgress>(NULL);
265 return CreateMaybeMessage<SimulatorCommand_StopForwardProgress>(arena);
267 void CopyFrom(const ::google::protobuf::Message& from)
final;
268 void MergeFrom(const ::google::protobuf::Message& from)
final;
276 ::
google::protobuf::io::CodedInputStream* input) final;
278 ::
google::protobuf::io::CodedOutputStream* output) const final;
280 bool deterministic, ::
google::protobuf::uint8* target) const final;
286 void SetCachedSize(
int size)
const final;
289 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
292 inline void* MaybeArenaPtr()
const {
297 ::google::protobuf::Metadata
GetMetadata() const final;
314 template<typename Quantity >
316 {
set_duration(boost::units::quantity<duration_unit,double >(value_w_units).value() ); };
318 template<
typename Quantity >
323 {
return duration_with_units<boost::units::quantity< duration_unit,double > >(); };
327 void set_has_duration();
328 void clear_has_duration();
330 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
331 ::google::protobuf::internal::HasBits<1> _has_bits_;
332 mutable ::google::protobuf::internal::CachedSize _cached_size_;
334 friend struct ::protobuf_jaiabot_2fmessages_2fsimulator_2eproto::TableStruct;
352 *
this = ::std::move(from);
356 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
357 if (
this != &from) InternalSwap(&from);
365 return _internal_metadata_.unknown_fields();
368 return _internal_metadata_.mutable_unknown_fields();
371 static const ::google::protobuf::Descriptor*
descriptor();
396 return CreateMaybeMessage<SimulatorCommand>(NULL);
400 return CreateMaybeMessage<SimulatorCommand>(arena);
402 void CopyFrom(const ::google::protobuf::Message& from)
final;
403 void MergeFrom(const ::google::protobuf::Message& from)
final;
411 ::
google::protobuf::io::CodedInputStream* input) final;
413 ::
google::protobuf::io::CodedOutputStream* output) const final;
415 bool deterministic, ::
google::protobuf::uint8* target) const final;
421 void SetCachedSize(
int size)
const final;
424 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
427 inline void* MaybeArenaPtr()
const {
432 ::google::protobuf::Metadata
GetMetadata() const final;
469 void set_has_gps_dropout();
470 void set_has_stop_forward_progress();
472 inline
bool has_command() const;
473 inline
void clear_has_command();
475 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
476 ::
google::protobuf::internal::HasBits<1> _has_bits_;
477 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
483 ::google::protobuf::uint32 _oneof_case_[1];
485 friend struct ::protobuf_jaiabot_2fmessages_2fsimulator_2eproto::TableStruct;
493 #pragma GCC diagnostic push
494 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
500 return (_has_bits_[0] & 0x00000001u) != 0;
502 inline void SimulatorCommand_GPSDropOut::set_has_dropout_duration() {
503 _has_bits_[0] |= 0x00000001u;
505 inline void SimulatorCommand_GPSDropOut::clear_has_dropout_duration() {
506 _has_bits_[0] &= ~0x00000001u;
509 dropout_duration_ = 0;
510 clear_has_dropout_duration();
514 return dropout_duration_;
517 set_has_dropout_duration();
518 dropout_duration_ = value;
528 return (_has_bits_[0] & 0x00000001u) != 0;
530 inline void SimulatorCommand_StopForwardProgress::set_has_duration() {
531 _has_bits_[0] |= 0x00000001u;
533 inline void SimulatorCommand_StopForwardProgress::clear_has_duration() {
534 _has_bits_[0] &= ~0x00000001u;
538 clear_has_duration();
558 inline void SimulatorCommand::set_has_gps_dropout() {
563 delete command_.gps_dropout_;
567 inline const ::jaiabot::protobuf::SimulatorCommand_GPSDropOut& SimulatorCommand::_internal_gps_dropout()
const {
568 return *command_.gps_dropout_;
575 command_.gps_dropout_ = NULL;
584 ? *command_.gps_dropout_
590 set_has_gps_dropout();
591 command_.gps_dropout_ = CreateMaybeMessage< ::jaiabot::protobuf::SimulatorCommand_GPSDropOut >(
592 GetArenaNoVirtual());
595 return command_.gps_dropout_;
602 inline void SimulatorCommand::set_has_stop_forward_progress() {
607 delete command_.stop_forward_progress_;
611 inline const ::jaiabot::protobuf::SimulatorCommand_StopForwardProgress& SimulatorCommand::_internal_stop_forward_progress()
const {
612 return *command_.stop_forward_progress_;
619 command_.stop_forward_progress_ = NULL;
628 ? *command_.stop_forward_progress_
634 set_has_stop_forward_progress();
635 command_.stop_forward_progress_ = CreateMaybeMessage< ::jaiabot::protobuf::SimulatorCommand_StopForwardProgress >(
636 GetArenaNoVirtual());
639 return command_.stop_forward_progress_;
642 inline bool SimulatorCommand::has_command()
const {
645 inline void SimulatorCommand::clear_has_command() {
652 #pragma GCC diagnostic pop
666 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsimulator_2eproto