4 #ifndef PROTOBUF_INCLUDED_bin_2fsimulator_2fconfig_2eproto
5 #define PROTOBUF_INCLUDED_bin_2fsimulator_2fconfig_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 "goby/middleware/protobuf/app_config.pb.h"
35 #include "goby/zeromq/protobuf/interprocess_config.pb.h"
36 #include "goby/moos/protobuf/moos_gateway_config.pb.h"
37 #include "goby/middleware/protobuf/udp_config.pb.h"
39 #include <boost/units/quantity.hpp>
40 #include <boost/units/absolute.hpp>
41 #include <boost/units/dimensionless_type.hpp>
42 #include <boost/units/make_scaled_unit.hpp>
44 #include <boost/units/systems/angle/degrees.hpp>
46 #include <boost/units/systems/temperature/celsius.hpp>
48 #include <boost/units/systems/si.hpp>
50 #define PROTOBUF_INTERNAL_EXPORT_protobuf_bin_2fsimulator_2fconfig_2eproto
55 static const ::google::protobuf::internal::ParseTableField
entries[];
56 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
57 static const ::google::protobuf::internal::ParseTable
schema[3];
60 static const ::google::protobuf::uint32
offsets[];
66 class ArduinoSimThread;
67 class ArduinoSimThreadDefaultTypeInternal;
70 class SimulatorDefaultTypeInternal;
72 class Simulator_ScalarSample;
73 class Simulator_ScalarSampleDefaultTypeInternal;
103 *
this = ::std::move(from);
107 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
108 if (
this != &from) InternalSwap(&from);
116 return _internal_metadata_.unknown_fields();
119 return _internal_metadata_.mutable_unknown_fields();
122 static const ::google::protobuf::Descriptor*
descriptor();
141 return CreateMaybeMessage<Simulator_ScalarSample>(NULL);
145 return CreateMaybeMessage<Simulator_ScalarSample>(arena);
147 void CopyFrom(const ::google::protobuf::Message& from)
final;
148 void MergeFrom(const ::google::protobuf::Message& from)
final;
156 ::
google::protobuf::io::CodedInputStream* input) final;
158 ::
google::protobuf::io::CodedOutputStream* output) const final;
160 bool deterministic, ::
google::protobuf::uint8* target) const final;
166 void SetCachedSize(
int size)
const final;
169 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
172 inline void* MaybeArenaPtr()
const {
177 ::google::protobuf::Metadata
GetMetadata() const final;
187 double depth() const;
208 template<typename Quantity >
210 {
set_depth(boost::units::quantity<depth_unit,double >(value_w_units).value() ); };
212 template<
typename Quantity >
217 {
return depth_with_units<boost::units::quantity< depth_unit,double > >(); };
221 typedef boost::units::absolute<boost::units::unit<temperature_dimension,boost::units::celsius::system> >
temperature_unit;
223 template<
typename Quantity >
225 {
set_temperature(boost::units::quantity<temperature_unit,double >(value_w_units).value() ); };
227 template<
typename Quantity >
232 {
return temperature_with_units<boost::units::quantity< temperature_unit,double > >(); };
236 void set_has_depth();
237 void clear_has_depth();
238 void set_has_temperature();
239 void clear_has_temperature();
240 void set_has_salinity();
241 void clear_has_salinity();
243 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
244 ::google::protobuf::internal::HasBits<1> _has_bits_;
245 mutable ::google::protobuf::internal::CachedSize _cached_size_;
249 friend struct ::protobuf_bin_2fsimulator_2fconfig_2eproto::TableStruct;
267 *
this = ::std::move(from);
271 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
272 if (
this != &from) InternalSwap(&from);
280 return _internal_metadata_.unknown_fields();
283 return _internal_metadata_.mutable_unknown_fields();
286 static const ::google::protobuf::Descriptor*
descriptor();
291 return reinterpret_cast<const Simulator*
>(
305 return CreateMaybeMessage<Simulator>(NULL);
309 return CreateMaybeMessage<Simulator>(arena);
311 void CopyFrom(const ::google::protobuf::Message& from)
final;
312 void MergeFrom(const ::google::protobuf::Message& from)
final;
320 ::
google::protobuf::io::CodedInputStream* input) final;
322 ::
google::protobuf::io::CodedOutputStream* output) const final;
324 bool deterministic, ::
google::protobuf::uint8* target) const final;
330 void SetCachedSize(
int size)
const final;
333 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
336 inline void* MaybeArenaPtr()
const {
341 ::google::protobuf::Metadata
GetMetadata() const final;
366 const ::
goby::middleware::protobuf::AppConfig& _internal_app() const;
368 const ::
goby::middleware::protobuf::AppConfig&
app() const;
378 const ::
goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
380 const ::
goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess() const;
390 const ::
goby::apps::
moos::protobuf::GobyMOOSGatewayConfig_MOOSConfig& _internal_moos() const;
392 const ::
goby::apps::
moos::protobuf::GobyMOOSGatewayConfig_MOOSConfig&
moos() const;
402 const ::
goby::middleware::protobuf::UDPPointToPointConfig& _internal_gps_udp_config() const;
414 const ::
goby::middleware::protobuf::UDPPointToPointConfig& _internal_pressure_udp_config() const;
426 const ::
goby::middleware::protobuf::UDPPointToPointConfig& _internal_salinity_udp_config() const;
438 const ::
jaiabot::protobuf::GeographicCoordinate& _internal_start_location() const;
566 template<typename Quantity >
568 {
set_vertical_dive_rate(boost::units::quantity<vertical_dive_rate_unit,double >(value_w_units).value() ); };
570 template<
typename Quantity >
575 {
return vertical_dive_rate_with_units<boost::units::quantity< vertical_dive_rate_unit,double > >(); };
581 template<
typename Quantity >
583 {
set_seafloor_depth(boost::units::quantity<seafloor_depth_unit,double >(value_w_units).value() ); };
585 template<
typename Quantity >
590 {
return seafloor_depth_with_units<boost::units::quantity< seafloor_depth_unit,double > >(); };
596 template<
typename Quantity >
598 {
set_seafloor_wavelength(boost::units::quantity<seafloor_wavelength_unit,double >(value_w_units).value() ); };
600 template<
typename Quantity >
605 {
return seafloor_wavelength_with_units<boost::units::quantity< seafloor_wavelength_unit,double > >(); };
611 template<
typename Quantity >
613 {
set_seafloor_amplitude(boost::units::quantity<seafloor_amplitude_unit,double >(value_w_units).value() ); };
615 template<
typename Quantity >
620 {
return seafloor_amplitude_with_units<boost::units::quantity< seafloor_amplitude_unit,double > >(); };
626 template<
typename Quantity >
628 {
set_pitch_at_rest(boost::units::quantity<pitch_at_rest_unit,double >(value_w_units).value() ); };
630 template<
typename Quantity >
635 {
return pitch_at_rest_with_units<boost::units::quantity< pitch_at_rest_unit,double > >(); };
641 template<
typename Quantity >
643 {
set_temperature_stdev(boost::units::quantity<temperature_stdev_unit,double >(value_w_units).value() ); };
645 template<
typename Quantity >
650 {
return temperature_stdev_with_units<boost::units::quantity< temperature_stdev_unit,double > >(); };
655 void clear_has_app();
656 void set_has_interprocess();
657 void clear_has_interprocess();
659 void clear_has_moos();
660 void set_has_gps_udp_config();
661 void clear_has_gps_udp_config();
662 void set_has_pressure_udp_config();
663 void clear_has_pressure_udp_config();
664 void set_has_salinity_udp_config();
665 void clear_has_salinity_udp_config();
666 void set_has_enable_gps();
667 void clear_has_enable_gps();
668 void set_has_start_location();
669 void clear_has_start_location();
670 void set_has_gps_hdop_rand_max();
671 void clear_has_gps_hdop_rand_max();
672 void set_has_is_bot_sim();
673 void clear_has_is_bot_sim();
674 void set_has_gps_pdop_rand_max();
675 void clear_has_gps_pdop_rand_max();
676 void set_has_heading_rand_max();
677 void clear_has_heading_rand_max();
678 void set_has_vertical_dive_rate();
679 void clear_has_vertical_dive_rate();
680 void set_has_seafloor_depth();
681 void clear_has_seafloor_depth();
682 void set_has_seafloor_wavelength();
683 void clear_has_seafloor_wavelength();
684 void set_has_seafloor_amplitude();
685 void clear_has_seafloor_amplitude();
686 void set_has_gps_hdop_dropout();
687 void clear_has_gps_hdop_dropout();
688 void set_has_gps_pdop_dropout();
689 void clear_has_gps_pdop_dropout();
690 void set_has_minimum_thrust();
691 void clear_has_minimum_thrust();
692 void set_has_pitch_at_rest();
693 void clear_has_pitch_at_rest();
694 void set_has_temperature_stdev();
695 void clear_has_temperature_stdev();
696 void set_has_salinity_stdev();
697 void clear_has_salinity_stdev();
698 void set_has_arduino_config();
699 void clear_has_arduino_config();
701 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
702 ::google::protobuf::internal::HasBits<1> _has_bits_;
703 mutable ::google::protobuf::internal::CachedSize _cached_size_;
704 ::google::protobuf::RepeatedPtrField< ::jaiabot::config::Simulator_ScalarSample > sample_;
705 ::goby::middleware::protobuf::AppConfig* app_;
706 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
707 ::goby::apps::moos::protobuf::GobyMOOSGatewayConfig_MOOSConfig* moos_;
708 ::goby::middleware::protobuf::UDPPointToPointConfig* gps_udp_config_;
709 ::goby::middleware::protobuf::UDPPointToPointConfig* pressure_udp_config_;
710 ::goby::middleware::protobuf::UDPPointToPointConfig* salinity_udp_config_;
713 double heading_rand_max_;
714 double vertical_dive_rate_;
715 double seafloor_depth_;
716 double temperature_stdev_;
717 double salinity_stdev_;
720 double gps_hdop_rand_max_;
721 double gps_pdop_rand_max_;
722 double seafloor_wavelength_;
723 double seafloor_amplitude_;
724 double gps_hdop_dropout_;
725 double gps_pdop_dropout_;
726 double minimum_thrust_;
727 double pitch_at_rest_;
728 friend struct ::protobuf_bin_2fsimulator_2fconfig_2eproto::TableStruct;
746 *
this = ::std::move(from);
750 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
751 if (
this != &from) InternalSwap(&from);
759 return _internal_metadata_.unknown_fields();
762 return _internal_metadata_.mutable_unknown_fields();
765 static const ::google::protobuf::Descriptor*
descriptor();
784 return CreateMaybeMessage<ArduinoSimThread>(NULL);
788 return CreateMaybeMessage<ArduinoSimThread>(arena);
790 void CopyFrom(const ::google::protobuf::Message& from)
final;
791 void MergeFrom(const ::google::protobuf::Message& from)
final;
799 ::
google::protobuf::io::CodedInputStream* input) final;
801 ::
google::protobuf::io::CodedOutputStream* output) const final;
803 bool deterministic, ::
google::protobuf::uint8* target) const final;
809 void SetCachedSize(
int size)
const final;
812 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
815 inline void* MaybeArenaPtr()
const {
820 ::google::protobuf::Metadata
GetMetadata() const final;
856 void set_has_voltage_period();
857 void clear_has_voltage_period();
858 void set_has_voltage_step_decrease();
859 void clear_has_voltage_step_decrease();
860 void set_has_voltage_start();
861 void clear_has_voltage_start();
862 void set_has_reset_voltage_level();
863 void clear_has_reset_voltage_level();
865 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
866 ::
google::protobuf::internal::HasBits<1> _has_bits_;
867 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
868 ::
google::protobuf::int32 voltage_period_;
869 double voltage_step_decrease_;
870 double voltage_start_;
871 double reset_voltage_level_;
880 #pragma GCC diagnostic push
881 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
887 return (_has_bits_[0] & 0x00000001u) != 0;
889 inline void Simulator_ScalarSample::set_has_depth() {
890 _has_bits_[0] |= 0x00000001u;
892 inline void Simulator_ScalarSample::clear_has_depth() {
893 _has_bits_[0] &= ~0x00000001u;
911 return (_has_bits_[0] & 0x00000002u) != 0;
913 inline void Simulator_ScalarSample::set_has_temperature() {
914 _has_bits_[0] |= 0x00000002u;
916 inline void Simulator_ScalarSample::clear_has_temperature() {
917 _has_bits_[0] &= ~0x00000002u;
921 clear_has_temperature();
928 set_has_temperature();
929 temperature_ = value;
935 return (_has_bits_[0] & 0x00000004u) != 0;
937 inline void Simulator_ScalarSample::set_has_salinity() {
938 _has_bits_[0] |= 0x00000004u;
940 inline void Simulator_ScalarSample::clear_has_salinity() {
941 _has_bits_[0] &= ~0x00000004u;
945 clear_has_salinity();
963 return (_has_bits_[0] & 0x00000001u) != 0;
965 inline void Simulator::set_has_app() {
966 _has_bits_[0] |= 0x00000001u;
968 inline void Simulator::clear_has_app() {
969 _has_bits_[0] &= ~0x00000001u;
971 inline const ::goby::middleware::protobuf::AppConfig& Simulator::_internal_app()
const {
975 const ::goby::middleware::protobuf::AppConfig* p = app_;
977 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*
>(
978 &::goby::middleware::protobuf::_AppConfig_default_instance_);
983 ::goby::middleware::protobuf::AppConfig* temp = app_;
990 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
997 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
998 if (message_arena == NULL) {
999 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(app_);
1002 ::google::protobuf::Arena* submessage_arena = NULL;
1003 if (message_arena != submessage_arena) {
1004 app = ::google::protobuf::internal::GetOwnedMessage(
1005 message_arena, app, submessage_arena);
1017 return (_has_bits_[0] & 0x00000002u) != 0;
1019 inline void Simulator::set_has_interprocess() {
1020 _has_bits_[0] |= 0x00000002u;
1022 inline void Simulator::clear_has_interprocess() {
1023 _has_bits_[0] &= ~0x00000002u;
1025 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& Simulator::_internal_interprocess()
const {
1026 return *interprocess_;
1029 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
1031 return p != NULL ? *p : *
reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig*
>(
1032 &::goby::zeromq::protobuf::_InterProcessPortalConfig_default_instance_);
1036 clear_has_interprocess();
1037 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = interprocess_;
1038 interprocess_ = NULL;
1042 set_has_interprocess();
1043 if (interprocess_ == NULL) {
1044 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
1048 return interprocess_;
1051 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1052 if (message_arena == NULL) {
1053 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(interprocess_);
1056 ::google::protobuf::Arena* submessage_arena = NULL;
1057 if (message_arena != submessage_arena) {
1058 interprocess = ::google::protobuf::internal::GetOwnedMessage(
1059 message_arena, interprocess, submessage_arena);
1061 set_has_interprocess();
1063 clear_has_interprocess();
1065 interprocess_ = interprocess;
1071 return (_has_bits_[0] & 0x00000004u) != 0;
1073 inline void Simulator::set_has_moos() {
1074 _has_bits_[0] |= 0x00000004u;
1076 inline void Simulator::clear_has_moos() {
1077 _has_bits_[0] &= ~0x00000004u;
1079 inline const ::goby::apps::moos::protobuf::GobyMOOSGatewayConfig_MOOSConfig& Simulator::_internal_moos()
const {
1082 inline const ::goby::apps::moos::protobuf::GobyMOOSGatewayConfig_MOOSConfig&
Simulator::moos()
const {
1083 const ::goby::apps::moos::protobuf::GobyMOOSGatewayConfig_MOOSConfig* p = moos_;
1085 return p != NULL ? *p : *
reinterpret_cast<const ::goby::apps::moos::protobuf::GobyMOOSGatewayConfig_MOOSConfig*
>(
1086 &::goby::apps::moos::protobuf::_GobyMOOSGatewayConfig_MOOSConfig_default_instance_);
1091 ::goby::apps::moos::protobuf::GobyMOOSGatewayConfig_MOOSConfig* temp = moos_;
1097 if (moos_ == NULL) {
1098 auto* p = CreateMaybeMessage<::goby::apps::moos::protobuf::GobyMOOSGatewayConfig_MOOSConfig>(GetArenaNoVirtual());
1105 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1106 if (message_arena == NULL) {
1107 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(moos_);
1110 ::google::protobuf::Arena* submessage_arena = NULL;
1111 if (message_arena != submessage_arena) {
1112 moos = ::google::protobuf::internal::GetOwnedMessage(
1113 message_arena,
moos, submessage_arena);
1125 return (_has_bits_[0] & 0x00000008u) != 0;
1127 inline void Simulator::set_has_gps_udp_config() {
1128 _has_bits_[0] |= 0x00000008u;
1130 inline void Simulator::clear_has_gps_udp_config() {
1131 _has_bits_[0] &= ~0x00000008u;
1133 inline const ::goby::middleware::protobuf::UDPPointToPointConfig& Simulator::_internal_gps_udp_config()
const {
1134 return *gps_udp_config_;
1137 const ::goby::middleware::protobuf::UDPPointToPointConfig* p = gps_udp_config_;
1139 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::UDPPointToPointConfig*
>(
1140 &::goby::middleware::protobuf::_UDPPointToPointConfig_default_instance_);
1144 clear_has_gps_udp_config();
1145 ::goby::middleware::protobuf::UDPPointToPointConfig* temp = gps_udp_config_;
1146 gps_udp_config_ = NULL;
1150 set_has_gps_udp_config();
1151 if (gps_udp_config_ == NULL) {
1152 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::UDPPointToPointConfig>(GetArenaNoVirtual());
1153 gps_udp_config_ = p;
1156 return gps_udp_config_;
1159 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1160 if (message_arena == NULL) {
1161 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(gps_udp_config_);
1163 if (gps_udp_config) {
1164 ::google::protobuf::Arena* submessage_arena = NULL;
1165 if (message_arena != submessage_arena) {
1166 gps_udp_config = ::google::protobuf::internal::GetOwnedMessage(
1167 message_arena, gps_udp_config, submessage_arena);
1169 set_has_gps_udp_config();
1171 clear_has_gps_udp_config();
1173 gps_udp_config_ = gps_udp_config;
1179 return (_has_bits_[0] & 0x00000010u) != 0;
1181 inline void Simulator::set_has_pressure_udp_config() {
1182 _has_bits_[0] |= 0x00000010u;
1184 inline void Simulator::clear_has_pressure_udp_config() {
1185 _has_bits_[0] &= ~0x00000010u;
1187 inline const ::goby::middleware::protobuf::UDPPointToPointConfig& Simulator::_internal_pressure_udp_config()
const {
1188 return *pressure_udp_config_;
1191 const ::goby::middleware::protobuf::UDPPointToPointConfig* p = pressure_udp_config_;
1193 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::UDPPointToPointConfig*
>(
1194 &::goby::middleware::protobuf::_UDPPointToPointConfig_default_instance_);
1198 clear_has_pressure_udp_config();
1199 ::goby::middleware::protobuf::UDPPointToPointConfig* temp = pressure_udp_config_;
1200 pressure_udp_config_ = NULL;
1204 set_has_pressure_udp_config();
1205 if (pressure_udp_config_ == NULL) {
1206 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::UDPPointToPointConfig>(GetArenaNoVirtual());
1207 pressure_udp_config_ = p;
1210 return pressure_udp_config_;
1213 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1214 if (message_arena == NULL) {
1215 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(pressure_udp_config_);
1217 if (pressure_udp_config) {
1218 ::google::protobuf::Arena* submessage_arena = NULL;
1219 if (message_arena != submessage_arena) {
1220 pressure_udp_config = ::google::protobuf::internal::GetOwnedMessage(
1221 message_arena, pressure_udp_config, submessage_arena);
1223 set_has_pressure_udp_config();
1225 clear_has_pressure_udp_config();
1227 pressure_udp_config_ = pressure_udp_config;
1233 return (_has_bits_[0] & 0x00000020u) != 0;
1235 inline void Simulator::set_has_salinity_udp_config() {
1236 _has_bits_[0] |= 0x00000020u;
1238 inline void Simulator::clear_has_salinity_udp_config() {
1239 _has_bits_[0] &= ~0x00000020u;
1241 inline const ::goby::middleware::protobuf::UDPPointToPointConfig& Simulator::_internal_salinity_udp_config()
const {
1242 return *salinity_udp_config_;
1245 const ::goby::middleware::protobuf::UDPPointToPointConfig* p = salinity_udp_config_;
1247 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::UDPPointToPointConfig*
>(
1248 &::goby::middleware::protobuf::_UDPPointToPointConfig_default_instance_);
1252 clear_has_salinity_udp_config();
1253 ::goby::middleware::protobuf::UDPPointToPointConfig* temp = salinity_udp_config_;
1254 salinity_udp_config_ = NULL;
1258 set_has_salinity_udp_config();
1259 if (salinity_udp_config_ == NULL) {
1260 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::UDPPointToPointConfig>(GetArenaNoVirtual());
1261 salinity_udp_config_ = p;
1264 return salinity_udp_config_;
1267 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1268 if (message_arena == NULL) {
1269 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(salinity_udp_config_);
1271 if (salinity_udp_config) {
1272 ::google::protobuf::Arena* submessage_arena = NULL;
1273 if (message_arena != submessage_arena) {
1274 salinity_udp_config = ::google::protobuf::internal::GetOwnedMessage(
1275 message_arena, salinity_udp_config, submessage_arena);
1277 set_has_salinity_udp_config();
1279 clear_has_salinity_udp_config();
1281 salinity_udp_config_ = salinity_udp_config;
1287 return (_has_bits_[0] & 0x00002000u) != 0;
1289 inline void Simulator::set_has_enable_gps() {
1290 _has_bits_[0] |= 0x00002000u;
1292 inline void Simulator::clear_has_enable_gps() {
1293 _has_bits_[0] &= ~0x00002000u;
1297 clear_has_enable_gps();
1304 set_has_enable_gps();
1305 enable_gps_ = value;
1311 return (_has_bits_[0] & 0x00000040u) != 0;
1313 inline void Simulator::set_has_start_location() {
1314 _has_bits_[0] |= 0x00000040u;
1316 inline void Simulator::clear_has_start_location() {
1317 _has_bits_[0] &= ~0x00000040u;
1319 inline const ::jaiabot::protobuf::GeographicCoordinate& Simulator::_internal_start_location()
const {
1320 return *start_location_;
1323 const ::jaiabot::protobuf::GeographicCoordinate* p = start_location_;
1330 clear_has_start_location();
1332 start_location_ = NULL;
1336 set_has_start_location();
1337 if (start_location_ == NULL) {
1338 auto* p = CreateMaybeMessage<::jaiabot::protobuf::GeographicCoordinate>(GetArenaNoVirtual());
1339 start_location_ = p;
1342 return start_location_;
1345 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1346 if (message_arena == NULL) {
1347 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(start_location_);
1349 if (start_location) {
1350 ::google::protobuf::Arena* submessage_arena = NULL;
1351 if (message_arena != submessage_arena) {
1352 start_location = ::google::protobuf::internal::GetOwnedMessage(
1353 message_arena, start_location, submessage_arena);
1355 set_has_start_location();
1357 clear_has_start_location();
1359 start_location_ = start_location;
1365 return (_has_bits_[0] & 0x00008000u) != 0;
1367 inline void Simulator::set_has_gps_hdop_rand_max() {
1368 _has_bits_[0] |= 0x00008000u;
1370 inline void Simulator::clear_has_gps_hdop_rand_max() {
1371 _has_bits_[0] &= ~0x00008000u;
1374 gps_hdop_rand_max_ = 1.3;
1375 clear_has_gps_hdop_rand_max();
1379 return gps_hdop_rand_max_;
1382 set_has_gps_hdop_rand_max();
1383 gps_hdop_rand_max_ = value;
1389 return (_has_bits_[0] & 0x00004000u) != 0;
1391 inline void Simulator::set_has_is_bot_sim() {
1392 _has_bits_[0] |= 0x00004000u;
1394 inline void Simulator::clear_has_is_bot_sim() {
1395 _has_bits_[0] &= ~0x00004000u;
1399 clear_has_is_bot_sim();
1406 set_has_is_bot_sim();
1407 is_bot_sim_ = value;
1413 return (_has_bits_[0] & 0x00010000u) != 0;
1415 inline void Simulator::set_has_gps_pdop_rand_max() {
1416 _has_bits_[0] |= 0x00010000u;
1418 inline void Simulator::clear_has_gps_pdop_rand_max() {
1419 _has_bits_[0] &= ~0x00010000u;
1422 gps_pdop_rand_max_ = 2.2;
1423 clear_has_gps_pdop_rand_max();
1427 return gps_pdop_rand_max_;
1430 set_has_gps_pdop_rand_max();
1431 gps_pdop_rand_max_ = value;
1437 return (_has_bits_[0] & 0x00000100u) != 0;
1439 inline void Simulator::set_has_heading_rand_max() {
1440 _has_bits_[0] |= 0x00000100u;
1442 inline void Simulator::clear_has_heading_rand_max() {
1443 _has_bits_[0] &= ~0x00000100u;
1446 heading_rand_max_ = 0;
1447 clear_has_heading_rand_max();
1451 return heading_rand_max_;
1454 set_has_heading_rand_max();
1455 heading_rand_max_ = value;
1461 return (_has_bits_[0] & 0x00000200u) != 0;
1463 inline void Simulator::set_has_vertical_dive_rate() {
1464 _has_bits_[0] |= 0x00000200u;
1466 inline void Simulator::clear_has_vertical_dive_rate() {
1467 _has_bits_[0] &= ~0x00000200u;
1470 vertical_dive_rate_ = 0;
1471 clear_has_vertical_dive_rate();
1475 return vertical_dive_rate_;
1478 set_has_vertical_dive_rate();
1479 vertical_dive_rate_ = value;
1485 return (_has_bits_[0] & 0x00000400u) != 0;
1487 inline void Simulator::set_has_seafloor_depth() {
1488 _has_bits_[0] |= 0x00000400u;
1490 inline void Simulator::clear_has_seafloor_depth() {
1491 _has_bits_[0] &= ~0x00000400u;
1494 seafloor_depth_ = 0;
1495 clear_has_seafloor_depth();
1499 return seafloor_depth_;
1502 set_has_seafloor_depth();
1503 seafloor_depth_ = value;
1509 return (_has_bits_[0] & 0x00020000u) != 0;
1511 inline void Simulator::set_has_seafloor_wavelength() {
1512 _has_bits_[0] |= 0x00020000u;
1514 inline void Simulator::clear_has_seafloor_wavelength() {
1515 _has_bits_[0] &= ~0x00020000u;
1518 seafloor_wavelength_ = 100;
1519 clear_has_seafloor_wavelength();
1523 return seafloor_wavelength_;
1526 set_has_seafloor_wavelength();
1527 seafloor_wavelength_ = value;
1533 return (_has_bits_[0] & 0x00040000u) != 0;
1535 inline void Simulator::set_has_seafloor_amplitude() {
1536 _has_bits_[0] |= 0x00040000u;
1538 inline void Simulator::clear_has_seafloor_amplitude() {
1539 _has_bits_[0] &= ~0x00040000u;
1542 seafloor_amplitude_ = 5;
1543 clear_has_seafloor_amplitude();
1547 return seafloor_amplitude_;
1550 set_has_seafloor_amplitude();
1551 seafloor_amplitude_ = value;
1557 return (_has_bits_[0] & 0x00080000u) != 0;
1559 inline void Simulator::set_has_gps_hdop_dropout() {
1560 _has_bits_[0] |= 0x00080000u;
1562 inline void Simulator::clear_has_gps_hdop_dropout() {
1563 _has_bits_[0] &= ~0x00080000u;
1566 gps_hdop_dropout_ = 20;
1567 clear_has_gps_hdop_dropout();
1571 return gps_hdop_dropout_;
1574 set_has_gps_hdop_dropout();
1575 gps_hdop_dropout_ = value;
1581 return (_has_bits_[0] & 0x00100000u) != 0;
1583 inline void Simulator::set_has_gps_pdop_dropout() {
1584 _has_bits_[0] |= 0x00100000u;
1586 inline void Simulator::clear_has_gps_pdop_dropout() {
1587 _has_bits_[0] &= ~0x00100000u;
1590 gps_pdop_dropout_ = 20;
1591 clear_has_gps_pdop_dropout();
1595 return gps_pdop_dropout_;
1598 set_has_gps_pdop_dropout();
1599 gps_pdop_dropout_ = value;
1605 return (_has_bits_[0] & 0x00200000u) != 0;
1607 inline void Simulator::set_has_minimum_thrust() {
1608 _has_bits_[0] |= 0x00200000u;
1610 inline void Simulator::clear_has_minimum_thrust() {
1611 _has_bits_[0] &= ~0x00200000u;
1614 minimum_thrust_ = 5;
1615 clear_has_minimum_thrust();
1619 return minimum_thrust_;
1622 set_has_minimum_thrust();
1623 minimum_thrust_ = value;
1629 return (_has_bits_[0] & 0x00400000u) != 0;
1631 inline void Simulator::set_has_pitch_at_rest() {
1632 _has_bits_[0] |= 0x00400000u;
1634 inline void Simulator::clear_has_pitch_at_rest() {
1635 _has_bits_[0] &= ~0x00400000u;
1638 pitch_at_rest_ = 85;
1639 clear_has_pitch_at_rest();
1643 return pitch_at_rest_;
1646 set_has_pitch_at_rest();
1647 pitch_at_rest_ = value;
1653 return sample_.size();
1660 return sample_.Mutable(index);
1662 inline ::google::protobuf::RepeatedPtrField< ::jaiabot::config::Simulator_ScalarSample >*
1669 return sample_.Get(index);
1673 return sample_.Add();
1675 inline const ::google::protobuf::RepeatedPtrField< ::jaiabot::config::Simulator_ScalarSample >&
1683 return (_has_bits_[0] & 0x00000800u) != 0;
1685 inline void Simulator::set_has_temperature_stdev() {
1686 _has_bits_[0] |= 0x00000800u;
1688 inline void Simulator::clear_has_temperature_stdev() {
1689 _has_bits_[0] &= ~0x00000800u;
1692 temperature_stdev_ = 0;
1693 clear_has_temperature_stdev();
1697 return temperature_stdev_;
1700 set_has_temperature_stdev();
1701 temperature_stdev_ = value;
1707 return (_has_bits_[0] & 0x00001000u) != 0;
1709 inline void Simulator::set_has_salinity_stdev() {
1710 _has_bits_[0] |= 0x00001000u;
1712 inline void Simulator::clear_has_salinity_stdev() {
1713 _has_bits_[0] &= ~0x00001000u;
1716 salinity_stdev_ = 0;
1717 clear_has_salinity_stdev();
1721 return salinity_stdev_;
1724 set_has_salinity_stdev();
1725 salinity_stdev_ = value;
1731 return (_has_bits_[0] & 0x00000080u) != 0;
1733 inline void Simulator::set_has_arduino_config() {
1734 _has_bits_[0] |= 0x00000080u;
1736 inline void Simulator::clear_has_arduino_config() {
1737 _has_bits_[0] &= ~0x00000080u;
1740 if (arduino_config_ != NULL) arduino_config_->Clear();
1741 clear_has_arduino_config();
1743 inline const ::jaiabot::config::ArduinoSimThread& Simulator::_internal_arduino_config()
const {
1744 return *arduino_config_;
1747 const ::jaiabot::config::ArduinoSimThread* p = arduino_config_;
1754 clear_has_arduino_config();
1756 arduino_config_ = NULL;
1760 set_has_arduino_config();
1761 if (arduino_config_ == NULL) {
1762 auto* p = CreateMaybeMessage<::jaiabot::config::ArduinoSimThread>(GetArenaNoVirtual());
1763 arduino_config_ = p;
1766 return arduino_config_;
1769 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1770 if (message_arena == NULL) {
1771 delete arduino_config_;
1773 if (arduino_config) {
1774 ::google::protobuf::Arena* submessage_arena = NULL;
1775 if (message_arena != submessage_arena) {
1776 arduino_config = ::google::protobuf::internal::GetOwnedMessage(
1777 message_arena, arduino_config, submessage_arena);
1779 set_has_arduino_config();
1781 clear_has_arduino_config();
1783 arduino_config_ = arduino_config;
1793 return (_has_bits_[0] & 0x00000001u) != 0;
1795 inline void ArduinoSimThread::set_has_voltage_period() {
1796 _has_bits_[0] |= 0x00000001u;
1798 inline void ArduinoSimThread::clear_has_voltage_period() {
1799 _has_bits_[0] &= ~0x00000001u;
1802 voltage_period_ = 1;
1803 clear_has_voltage_period();
1807 return voltage_period_;
1810 set_has_voltage_period();
1811 voltage_period_ = value;
1817 return (_has_bits_[0] & 0x00000002u) != 0;
1819 inline void ArduinoSimThread::set_has_voltage_step_decrease() {
1820 _has_bits_[0] |= 0x00000002u;
1822 inline void ArduinoSimThread::clear_has_voltage_step_decrease() {
1823 _has_bits_[0] &= ~0x00000002u;
1826 voltage_step_decrease_ = 0.1;
1827 clear_has_voltage_step_decrease();
1831 return voltage_step_decrease_;
1834 set_has_voltage_step_decrease();
1835 voltage_step_decrease_ = value;
1841 return (_has_bits_[0] & 0x00000004u) != 0;
1843 inline void ArduinoSimThread::set_has_voltage_start() {
1844 _has_bits_[0] |= 0x00000004u;
1846 inline void ArduinoSimThread::clear_has_voltage_start() {
1847 _has_bits_[0] &= ~0x00000004u;
1850 voltage_start_ = 24;
1851 clear_has_voltage_start();
1855 return voltage_start_;
1858 set_has_voltage_start();
1859 voltage_start_ = value;
1865 return (_has_bits_[0] & 0x00000008u) != 0;
1867 inline void ArduinoSimThread::set_has_reset_voltage_level() {
1868 _has_bits_[0] |= 0x00000008u;
1870 inline void ArduinoSimThread::clear_has_reset_voltage_level() {
1871 _has_bits_[0] &= ~0x00000008u;
1874 reset_voltage_level_ = 15;
1875 clear_has_reset_voltage_level();
1879 return reset_voltage_level_;
1882 set_has_reset_voltage_level();
1883 reset_voltage_level_ = value;
1888 #pragma GCC diagnostic pop
1902 #endif // PROTOBUF_INCLUDED_bin_2fsimulator_2fconfig_2eproto