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;
381 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
383 const ::goby::middleware::protobuf::AppConfig&
app()
const;
384 ::goby::middleware::protobuf::AppConfig*
release_app();
385 ::goby::middleware::protobuf::AppConfig*
mutable_app();
393 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess()
const;
395 const ::goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess()
const;
405 const ::goby::apps::moos::protobuf::GobyMOOSGatewayConfig_MOOSConfig& _internal_moos()
const;
407 const ::goby::apps::moos::protobuf::GobyMOOSGatewayConfig_MOOSConfig&
moos()
const;
408 ::goby::apps::moos::protobuf::GobyMOOSGatewayConfig_MOOSConfig*
release_moos();
409 ::goby::apps::moos::protobuf::GobyMOOSGatewayConfig_MOOSConfig*
mutable_moos();
417 const ::goby::middleware::protobuf::UDPPointToPointConfig& _internal_gps_udp_config()
const;
419 const ::goby::middleware::protobuf::UDPPointToPointConfig&
gps_udp_config()
const;
429 const ::goby::middleware::protobuf::UDPPointToPointConfig& _internal_pressure_udp_config()
const;
441 const ::goby::middleware::protobuf::UDPPointToPointConfig& _internal_salinity_udp_config()
const;
453 const ::jaiabot::protobuf::GeographicCoordinate& _internal_start_location()
const;
455 const ::jaiabot::protobuf::GeographicCoordinate&
start_location()
const;
465 const ::jaiabot::config::ArduinoSimThread& _internal_arduino_config()
const;
467 const ::jaiabot::config::ArduinoSimThread&
arduino_config()
const;
581 template<
typename Quantity >
583 {
set_vertical_dive_rate(boost::units::quantity<vertical_dive_rate_unit,double >(value_w_units).value() ); };
585 template<
typename Quantity >
590 {
return vertical_dive_rate_with_units<boost::units::quantity< vertical_dive_rate_unit,double > >(); };
596 template<
typename Quantity >
598 {
set_seafloor_depth(boost::units::quantity<seafloor_depth_unit,double >(value_w_units).value() ); };
600 template<
typename Quantity >
605 {
return seafloor_depth_with_units<boost::units::quantity< seafloor_depth_unit,double > >(); };
611 template<
typename Quantity >
613 {
set_seafloor_wavelength(boost::units::quantity<seafloor_wavelength_unit,double >(value_w_units).value() ); };
615 template<
typename Quantity >
620 {
return seafloor_wavelength_with_units<boost::units::quantity< seafloor_wavelength_unit,double > >(); };
626 template<
typename Quantity >
628 {
set_seafloor_amplitude(boost::units::quantity<seafloor_amplitude_unit,double >(value_w_units).value() ); };
630 template<
typename Quantity >
635 {
return seafloor_amplitude_with_units<boost::units::quantity< seafloor_amplitude_unit,double > >(); };
641 template<
typename Quantity >
643 {
set_pitch_at_rest(boost::units::quantity<pitch_at_rest_unit,double >(value_w_units).value() ); };
645 template<
typename Quantity >
650 {
return pitch_at_rest_with_units<boost::units::quantity< pitch_at_rest_unit,double > >(); };
656 template<
typename Quantity >
658 {
set_temperature_stdev(boost::units::quantity<temperature_stdev_unit,double >(value_w_units).value() ); };
660 template<
typename Quantity >
665 {
return temperature_stdev_with_units<boost::units::quantity< temperature_stdev_unit,double > >(); };
670 void clear_has_app();
671 void set_has_interprocess();
672 void clear_has_interprocess();
674 void clear_has_moos();
675 void set_has_gps_udp_config();
676 void clear_has_gps_udp_config();
677 void set_has_pressure_udp_config();
678 void clear_has_pressure_udp_config();
679 void set_has_salinity_udp_config();
680 void clear_has_salinity_udp_config();
681 void set_has_enable_gps();
682 void clear_has_enable_gps();
683 void set_has_start_location();
684 void clear_has_start_location();
685 void set_has_gps_hdop_rand_max();
686 void clear_has_gps_hdop_rand_max();
687 void set_has_is_bot_sim();
688 void clear_has_is_bot_sim();
689 void set_has_gps_pdop_rand_max();
690 void clear_has_gps_pdop_rand_max();
691 void set_has_heading_rand_max();
692 void clear_has_heading_rand_max();
693 void set_has_vertical_dive_rate();
694 void clear_has_vertical_dive_rate();
695 void set_has_seafloor_depth();
696 void clear_has_seafloor_depth();
697 void set_has_seafloor_wavelength();
698 void clear_has_seafloor_wavelength();
699 void set_has_seafloor_amplitude();
700 void clear_has_seafloor_amplitude();
701 void set_has_gps_hdop_dropout();
702 void clear_has_gps_hdop_dropout();
703 void set_has_gps_pdop_dropout();
704 void clear_has_gps_pdop_dropout();
705 void set_has_minimum_thrust();
706 void clear_has_minimum_thrust();
707 void set_has_pitch_at_rest();
708 void clear_has_pitch_at_rest();
709 void set_has_temperature_stdev();
710 void clear_has_temperature_stdev();
711 void set_has_salinity_stdev();
712 void clear_has_salinity_stdev();
713 void set_has_hub_gpsd_device();
714 void clear_has_hub_gpsd_device();
715 void set_has_arduino_config();
716 void clear_has_arduino_config();
718 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
719 ::google::protobuf::internal::HasBits<1> _has_bits_;
720 mutable ::google::protobuf::internal::CachedSize _cached_size_;
721 ::google::protobuf::RepeatedPtrField< ::jaiabot::config::Simulator_ScalarSample > sample_;
722 ::google::protobuf::internal::ArenaStringPtr hub_gpsd_device_;
723 ::goby::middleware::protobuf::AppConfig* app_;
724 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
725 ::goby::apps::moos::protobuf::GobyMOOSGatewayConfig_MOOSConfig* moos_;
726 ::goby::middleware::protobuf::UDPPointToPointConfig* gps_udp_config_;
727 ::goby::middleware::protobuf::UDPPointToPointConfig* pressure_udp_config_;
728 ::goby::middleware::protobuf::UDPPointToPointConfig* salinity_udp_config_;
731 double heading_rand_max_;
732 double vertical_dive_rate_;
733 double seafloor_depth_;
734 double temperature_stdev_;
735 double salinity_stdev_;
738 double gps_hdop_rand_max_;
739 double gps_pdop_rand_max_;
740 double seafloor_wavelength_;
741 double seafloor_amplitude_;
742 double gps_hdop_dropout_;
743 double gps_pdop_dropout_;
744 double minimum_thrust_;
745 double pitch_at_rest_;
746 friend struct ::protobuf_bin_2fsimulator_2fconfig_2eproto::TableStruct;
764 *
this = ::std::move(from);
768 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
769 if (
this != &from) InternalSwap(&from);
777 return _internal_metadata_.unknown_fields();
780 return _internal_metadata_.mutable_unknown_fields();
783 static const ::google::protobuf::Descriptor*
descriptor();
802 return CreateMaybeMessage<ArduinoSimThread>(NULL);
806 return CreateMaybeMessage<ArduinoSimThread>(arena);
808 void CopyFrom(const ::google::protobuf::Message& from)
final;
809 void MergeFrom(const ::google::protobuf::Message& from)
final;
817 ::
google::protobuf::io::CodedInputStream* input) final;
819 ::
google::protobuf::io::CodedOutputStream* output) const final;
821 bool deterministic, ::
google::protobuf::uint8* target) const final;
827 void SetCachedSize(
int size)
const final;
830 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
833 inline void* MaybeArenaPtr()
const {
838 ::google::protobuf::Metadata
GetMetadata() const final;
874 void set_has_voltage_period();
875 void clear_has_voltage_period();
876 void set_has_voltage_step_decrease();
877 void clear_has_voltage_step_decrease();
878 void set_has_voltage_start();
879 void clear_has_voltage_start();
880 void set_has_reset_voltage_level();
881 void clear_has_reset_voltage_level();
883 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
884 ::
google::protobuf::internal::HasBits<1> _has_bits_;
885 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
886 ::
google::protobuf::int32 voltage_period_;
887 double voltage_step_decrease_;
888 double voltage_start_;
889 double reset_voltage_level_;
898 #pragma GCC diagnostic push
899 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
905 return (_has_bits_[0] & 0x00000001u) != 0;
907 inline void Simulator_ScalarSample::set_has_depth() {
908 _has_bits_[0] |= 0x00000001u;
910 inline void Simulator_ScalarSample::clear_has_depth() {
911 _has_bits_[0] &= ~0x00000001u;
929 return (_has_bits_[0] & 0x00000002u) != 0;
931 inline void Simulator_ScalarSample::set_has_temperature() {
932 _has_bits_[0] |= 0x00000002u;
934 inline void Simulator_ScalarSample::clear_has_temperature() {
935 _has_bits_[0] &= ~0x00000002u;
939 clear_has_temperature();
946 set_has_temperature();
947 temperature_ = value;
953 return (_has_bits_[0] & 0x00000004u) != 0;
955 inline void Simulator_ScalarSample::set_has_salinity() {
956 _has_bits_[0] |= 0x00000004u;
958 inline void Simulator_ScalarSample::clear_has_salinity() {
959 _has_bits_[0] &= ~0x00000004u;
963 clear_has_salinity();
981 return (_has_bits_[0] & 0x00000002u) != 0;
983 inline void Simulator::set_has_app() {
984 _has_bits_[0] |= 0x00000002u;
986 inline void Simulator::clear_has_app() {
987 _has_bits_[0] &= ~0x00000002u;
989 inline const ::goby::middleware::protobuf::AppConfig& Simulator::_internal_app()
const {
993 const ::goby::middleware::protobuf::AppConfig* p = app_;
995 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*
>(
996 &::goby::middleware::protobuf::_AppConfig_default_instance_);
1001 ::goby::middleware::protobuf::AppConfig* temp = app_;
1008 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
1015 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1016 if (message_arena == NULL) {
1017 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(app_);
1020 ::google::protobuf::Arena* submessage_arena = NULL;
1021 if (message_arena != submessage_arena) {
1022 app = ::google::protobuf::internal::GetOwnedMessage(
1023 message_arena, app, submessage_arena);
1035 return (_has_bits_[0] & 0x00000004u) != 0;
1037 inline void Simulator::set_has_interprocess() {
1038 _has_bits_[0] |= 0x00000004u;
1040 inline void Simulator::clear_has_interprocess() {
1041 _has_bits_[0] &= ~0x00000004u;
1043 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& Simulator::_internal_interprocess()
const {
1044 return *interprocess_;
1047 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
1049 return p != NULL ? *p : *
reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig*
>(
1050 &::goby::zeromq::protobuf::_InterProcessPortalConfig_default_instance_);
1054 clear_has_interprocess();
1055 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = interprocess_;
1056 interprocess_ = NULL;
1060 set_has_interprocess();
1061 if (interprocess_ == NULL) {
1062 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
1066 return interprocess_;
1069 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1070 if (message_arena == NULL) {
1071 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(interprocess_);
1074 ::google::protobuf::Arena* submessage_arena = NULL;
1075 if (message_arena != submessage_arena) {
1076 interprocess = ::google::protobuf::internal::GetOwnedMessage(
1077 message_arena, interprocess, submessage_arena);
1079 set_has_interprocess();
1081 clear_has_interprocess();
1083 interprocess_ = interprocess;
1089 return (_has_bits_[0] & 0x00000008u) != 0;
1091 inline void Simulator::set_has_moos() {
1092 _has_bits_[0] |= 0x00000008u;
1094 inline void Simulator::clear_has_moos() {
1095 _has_bits_[0] &= ~0x00000008u;
1097 inline const ::goby::apps::moos::protobuf::GobyMOOSGatewayConfig_MOOSConfig& Simulator::_internal_moos()
const {
1100 inline const ::goby::apps::moos::protobuf::GobyMOOSGatewayConfig_MOOSConfig&
Simulator::moos()
const {
1101 const ::goby::apps::moos::protobuf::GobyMOOSGatewayConfig_MOOSConfig* p = moos_;
1103 return p != NULL ? *p : *
reinterpret_cast<const ::goby::apps::moos::protobuf::GobyMOOSGatewayConfig_MOOSConfig*
>(
1104 &::goby::apps::moos::protobuf::_GobyMOOSGatewayConfig_MOOSConfig_default_instance_);
1109 ::goby::apps::moos::protobuf::GobyMOOSGatewayConfig_MOOSConfig* temp = moos_;
1115 if (moos_ == NULL) {
1116 auto* p = CreateMaybeMessage<::goby::apps::moos::protobuf::GobyMOOSGatewayConfig_MOOSConfig>(GetArenaNoVirtual());
1123 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1124 if (message_arena == NULL) {
1125 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(moos_);
1128 ::google::protobuf::Arena* submessage_arena = NULL;
1129 if (message_arena != submessage_arena) {
1130 moos = ::google::protobuf::internal::GetOwnedMessage(
1131 message_arena,
moos, submessage_arena);
1143 return (_has_bits_[0] & 0x00000010u) != 0;
1145 inline void Simulator::set_has_gps_udp_config() {
1146 _has_bits_[0] |= 0x00000010u;
1148 inline void Simulator::clear_has_gps_udp_config() {
1149 _has_bits_[0] &= ~0x00000010u;
1151 inline const ::goby::middleware::protobuf::UDPPointToPointConfig& Simulator::_internal_gps_udp_config()
const {
1152 return *gps_udp_config_;
1155 const ::goby::middleware::protobuf::UDPPointToPointConfig* p = gps_udp_config_;
1157 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::UDPPointToPointConfig*
>(
1158 &::goby::middleware::protobuf::_UDPPointToPointConfig_default_instance_);
1162 clear_has_gps_udp_config();
1163 ::goby::middleware::protobuf::UDPPointToPointConfig* temp = gps_udp_config_;
1164 gps_udp_config_ = NULL;
1168 set_has_gps_udp_config();
1169 if (gps_udp_config_ == NULL) {
1170 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::UDPPointToPointConfig>(GetArenaNoVirtual());
1171 gps_udp_config_ = p;
1174 return gps_udp_config_;
1177 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1178 if (message_arena == NULL) {
1179 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(gps_udp_config_);
1181 if (gps_udp_config) {
1182 ::google::protobuf::Arena* submessage_arena = NULL;
1183 if (message_arena != submessage_arena) {
1184 gps_udp_config = ::google::protobuf::internal::GetOwnedMessage(
1185 message_arena, gps_udp_config, submessage_arena);
1187 set_has_gps_udp_config();
1189 clear_has_gps_udp_config();
1191 gps_udp_config_ = gps_udp_config;
1197 return (_has_bits_[0] & 0x00000020u) != 0;
1199 inline void Simulator::set_has_pressure_udp_config() {
1200 _has_bits_[0] |= 0x00000020u;
1202 inline void Simulator::clear_has_pressure_udp_config() {
1203 _has_bits_[0] &= ~0x00000020u;
1205 inline const ::goby::middleware::protobuf::UDPPointToPointConfig& Simulator::_internal_pressure_udp_config()
const {
1206 return *pressure_udp_config_;
1209 const ::goby::middleware::protobuf::UDPPointToPointConfig* p = pressure_udp_config_;
1211 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::UDPPointToPointConfig*
>(
1212 &::goby::middleware::protobuf::_UDPPointToPointConfig_default_instance_);
1216 clear_has_pressure_udp_config();
1217 ::goby::middleware::protobuf::UDPPointToPointConfig* temp = pressure_udp_config_;
1218 pressure_udp_config_ = NULL;
1222 set_has_pressure_udp_config();
1223 if (pressure_udp_config_ == NULL) {
1224 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::UDPPointToPointConfig>(GetArenaNoVirtual());
1225 pressure_udp_config_ = p;
1228 return pressure_udp_config_;
1231 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1232 if (message_arena == NULL) {
1233 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(pressure_udp_config_);
1235 if (pressure_udp_config) {
1236 ::google::protobuf::Arena* submessage_arena = NULL;
1237 if (message_arena != submessage_arena) {
1238 pressure_udp_config = ::google::protobuf::internal::GetOwnedMessage(
1239 message_arena, pressure_udp_config, submessage_arena);
1241 set_has_pressure_udp_config();
1243 clear_has_pressure_udp_config();
1245 pressure_udp_config_ = pressure_udp_config;
1251 return (_has_bits_[0] & 0x00000040u) != 0;
1253 inline void Simulator::set_has_salinity_udp_config() {
1254 _has_bits_[0] |= 0x00000040u;
1256 inline void Simulator::clear_has_salinity_udp_config() {
1257 _has_bits_[0] &= ~0x00000040u;
1259 inline const ::goby::middleware::protobuf::UDPPointToPointConfig& Simulator::_internal_salinity_udp_config()
const {
1260 return *salinity_udp_config_;
1263 const ::goby::middleware::protobuf::UDPPointToPointConfig* p = salinity_udp_config_;
1265 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::UDPPointToPointConfig*
>(
1266 &::goby::middleware::protobuf::_UDPPointToPointConfig_default_instance_);
1270 clear_has_salinity_udp_config();
1271 ::goby::middleware::protobuf::UDPPointToPointConfig* temp = salinity_udp_config_;
1272 salinity_udp_config_ = NULL;
1276 set_has_salinity_udp_config();
1277 if (salinity_udp_config_ == NULL) {
1278 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::UDPPointToPointConfig>(GetArenaNoVirtual());
1279 salinity_udp_config_ = p;
1282 return salinity_udp_config_;
1285 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1286 if (message_arena == NULL) {
1287 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(salinity_udp_config_);
1289 if (salinity_udp_config) {
1290 ::google::protobuf::Arena* submessage_arena = NULL;
1291 if (message_arena != submessage_arena) {
1292 salinity_udp_config = ::google::protobuf::internal::GetOwnedMessage(
1293 message_arena, salinity_udp_config, submessage_arena);
1295 set_has_salinity_udp_config();
1297 clear_has_salinity_udp_config();
1299 salinity_udp_config_ = salinity_udp_config;
1305 return (_has_bits_[0] & 0x00004000u) != 0;
1307 inline void Simulator::set_has_enable_gps() {
1308 _has_bits_[0] |= 0x00004000u;
1310 inline void Simulator::clear_has_enable_gps() {
1311 _has_bits_[0] &= ~0x00004000u;
1315 clear_has_enable_gps();
1322 set_has_enable_gps();
1323 enable_gps_ = value;
1329 return (_has_bits_[0] & 0x00000080u) != 0;
1331 inline void Simulator::set_has_start_location() {
1332 _has_bits_[0] |= 0x00000080u;
1334 inline void Simulator::clear_has_start_location() {
1335 _has_bits_[0] &= ~0x00000080u;
1337 inline const ::jaiabot::protobuf::GeographicCoordinate& Simulator::_internal_start_location()
const {
1338 return *start_location_;
1341 const ::jaiabot::protobuf::GeographicCoordinate* p = start_location_;
1348 clear_has_start_location();
1350 start_location_ = NULL;
1354 set_has_start_location();
1355 if (start_location_ == NULL) {
1356 auto* p = CreateMaybeMessage<::jaiabot::protobuf::GeographicCoordinate>(GetArenaNoVirtual());
1357 start_location_ = p;
1360 return start_location_;
1363 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1364 if (message_arena == NULL) {
1365 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(start_location_);
1367 if (start_location) {
1368 ::google::protobuf::Arena* submessage_arena = NULL;
1369 if (message_arena != submessage_arena) {
1370 start_location = ::google::protobuf::internal::GetOwnedMessage(
1371 message_arena, start_location, submessage_arena);
1373 set_has_start_location();
1375 clear_has_start_location();
1377 start_location_ = start_location;
1383 return (_has_bits_[0] & 0x00010000u) != 0;
1385 inline void Simulator::set_has_gps_hdop_rand_max() {
1386 _has_bits_[0] |= 0x00010000u;
1388 inline void Simulator::clear_has_gps_hdop_rand_max() {
1389 _has_bits_[0] &= ~0x00010000u;
1392 gps_hdop_rand_max_ = 1.3;
1393 clear_has_gps_hdop_rand_max();
1397 return gps_hdop_rand_max_;
1400 set_has_gps_hdop_rand_max();
1401 gps_hdop_rand_max_ = value;
1407 return (_has_bits_[0] & 0x00008000u) != 0;
1409 inline void Simulator::set_has_is_bot_sim() {
1410 _has_bits_[0] |= 0x00008000u;
1412 inline void Simulator::clear_has_is_bot_sim() {
1413 _has_bits_[0] &= ~0x00008000u;
1417 clear_has_is_bot_sim();
1424 set_has_is_bot_sim();
1425 is_bot_sim_ = value;
1431 return (_has_bits_[0] & 0x00020000u) != 0;
1433 inline void Simulator::set_has_gps_pdop_rand_max() {
1434 _has_bits_[0] |= 0x00020000u;
1436 inline void Simulator::clear_has_gps_pdop_rand_max() {
1437 _has_bits_[0] &= ~0x00020000u;
1440 gps_pdop_rand_max_ = 2.2;
1441 clear_has_gps_pdop_rand_max();
1445 return gps_pdop_rand_max_;
1448 set_has_gps_pdop_rand_max();
1449 gps_pdop_rand_max_ = value;
1455 return (_has_bits_[0] & 0x00000200u) != 0;
1457 inline void Simulator::set_has_heading_rand_max() {
1458 _has_bits_[0] |= 0x00000200u;
1460 inline void Simulator::clear_has_heading_rand_max() {
1461 _has_bits_[0] &= ~0x00000200u;
1464 heading_rand_max_ = 0;
1465 clear_has_heading_rand_max();
1469 return heading_rand_max_;
1472 set_has_heading_rand_max();
1473 heading_rand_max_ = value;
1479 return (_has_bits_[0] & 0x00000400u) != 0;
1481 inline void Simulator::set_has_vertical_dive_rate() {
1482 _has_bits_[0] |= 0x00000400u;
1484 inline void Simulator::clear_has_vertical_dive_rate() {
1485 _has_bits_[0] &= ~0x00000400u;
1488 vertical_dive_rate_ = 0;
1489 clear_has_vertical_dive_rate();
1493 return vertical_dive_rate_;
1496 set_has_vertical_dive_rate();
1497 vertical_dive_rate_ = value;
1503 return (_has_bits_[0] & 0x00000800u) != 0;
1505 inline void Simulator::set_has_seafloor_depth() {
1506 _has_bits_[0] |= 0x00000800u;
1508 inline void Simulator::clear_has_seafloor_depth() {
1509 _has_bits_[0] &= ~0x00000800u;
1512 seafloor_depth_ = 0;
1513 clear_has_seafloor_depth();
1517 return seafloor_depth_;
1520 set_has_seafloor_depth();
1521 seafloor_depth_ = value;
1527 return (_has_bits_[0] & 0x00040000u) != 0;
1529 inline void Simulator::set_has_seafloor_wavelength() {
1530 _has_bits_[0] |= 0x00040000u;
1532 inline void Simulator::clear_has_seafloor_wavelength() {
1533 _has_bits_[0] &= ~0x00040000u;
1536 seafloor_wavelength_ = 100;
1537 clear_has_seafloor_wavelength();
1541 return seafloor_wavelength_;
1544 set_has_seafloor_wavelength();
1545 seafloor_wavelength_ = value;
1551 return (_has_bits_[0] & 0x00080000u) != 0;
1553 inline void Simulator::set_has_seafloor_amplitude() {
1554 _has_bits_[0] |= 0x00080000u;
1556 inline void Simulator::clear_has_seafloor_amplitude() {
1557 _has_bits_[0] &= ~0x00080000u;
1560 seafloor_amplitude_ = 5;
1561 clear_has_seafloor_amplitude();
1565 return seafloor_amplitude_;
1568 set_has_seafloor_amplitude();
1569 seafloor_amplitude_ = value;
1575 return (_has_bits_[0] & 0x00100000u) != 0;
1577 inline void Simulator::set_has_gps_hdop_dropout() {
1578 _has_bits_[0] |= 0x00100000u;
1580 inline void Simulator::clear_has_gps_hdop_dropout() {
1581 _has_bits_[0] &= ~0x00100000u;
1584 gps_hdop_dropout_ = 20;
1585 clear_has_gps_hdop_dropout();
1589 return gps_hdop_dropout_;
1592 set_has_gps_hdop_dropout();
1593 gps_hdop_dropout_ = value;
1599 return (_has_bits_[0] & 0x00200000u) != 0;
1601 inline void Simulator::set_has_gps_pdop_dropout() {
1602 _has_bits_[0] |= 0x00200000u;
1604 inline void Simulator::clear_has_gps_pdop_dropout() {
1605 _has_bits_[0] &= ~0x00200000u;
1608 gps_pdop_dropout_ = 20;
1609 clear_has_gps_pdop_dropout();
1613 return gps_pdop_dropout_;
1616 set_has_gps_pdop_dropout();
1617 gps_pdop_dropout_ = value;
1623 return (_has_bits_[0] & 0x00400000u) != 0;
1625 inline void Simulator::set_has_minimum_thrust() {
1626 _has_bits_[0] |= 0x00400000u;
1628 inline void Simulator::clear_has_minimum_thrust() {
1629 _has_bits_[0] &= ~0x00400000u;
1632 minimum_thrust_ = 5;
1633 clear_has_minimum_thrust();
1637 return minimum_thrust_;
1640 set_has_minimum_thrust();
1641 minimum_thrust_ = value;
1647 return (_has_bits_[0] & 0x00800000u) != 0;
1649 inline void Simulator::set_has_pitch_at_rest() {
1650 _has_bits_[0] |= 0x00800000u;
1652 inline void Simulator::clear_has_pitch_at_rest() {
1653 _has_bits_[0] &= ~0x00800000u;
1656 pitch_at_rest_ = 85;
1657 clear_has_pitch_at_rest();
1661 return pitch_at_rest_;
1664 set_has_pitch_at_rest();
1665 pitch_at_rest_ = value;
1671 return sample_.size();
1678 return sample_.Mutable(index);
1680 inline ::google::protobuf::RepeatedPtrField< ::jaiabot::config::Simulator_ScalarSample >*
1687 return sample_.Get(index);
1691 return sample_.Add();
1693 inline const ::google::protobuf::RepeatedPtrField< ::jaiabot::config::Simulator_ScalarSample >&
1701 return (_has_bits_[0] & 0x00001000u) != 0;
1703 inline void Simulator::set_has_temperature_stdev() {
1704 _has_bits_[0] |= 0x00001000u;
1706 inline void Simulator::clear_has_temperature_stdev() {
1707 _has_bits_[0] &= ~0x00001000u;
1710 temperature_stdev_ = 0;
1711 clear_has_temperature_stdev();
1715 return temperature_stdev_;
1718 set_has_temperature_stdev();
1719 temperature_stdev_ = value;
1725 return (_has_bits_[0] & 0x00002000u) != 0;
1727 inline void Simulator::set_has_salinity_stdev() {
1728 _has_bits_[0] |= 0x00002000u;
1730 inline void Simulator::clear_has_salinity_stdev() {
1731 _has_bits_[0] &= ~0x00002000u;
1734 salinity_stdev_ = 0;
1735 clear_has_salinity_stdev();
1739 return salinity_stdev_;
1742 set_has_salinity_stdev();
1743 salinity_stdev_ = value;
1749 return (_has_bits_[0] & 0x00000001u) != 0;
1751 inline void Simulator::set_has_hub_gpsd_device() {
1752 _has_bits_[0] |= 0x00000001u;
1754 inline void Simulator::clear_has_hub_gpsd_device() {
1755 _has_bits_[0] &= ~0x00000001u;
1758 hub_gpsd_device_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1759 clear_has_hub_gpsd_device();
1763 return hub_gpsd_device_.GetNoArena();
1766 set_has_hub_gpsd_device();
1767 hub_gpsd_device_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1772 set_has_hub_gpsd_device();
1773 hub_gpsd_device_.SetNoArena(
1774 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1779 GOOGLE_DCHECK(value != NULL);
1780 set_has_hub_gpsd_device();
1781 hub_gpsd_device_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1785 set_has_hub_gpsd_device();
1786 hub_gpsd_device_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1787 ::std::string(
reinterpret_cast<const char*
>(value), size));
1791 set_has_hub_gpsd_device();
1793 return hub_gpsd_device_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1797 if (!has_hub_gpsd_device()) {
1800 clear_has_hub_gpsd_device();
1801 return hub_gpsd_device_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1804 if (hub_gpsd_device != NULL) {
1805 set_has_hub_gpsd_device();
1807 clear_has_hub_gpsd_device();
1809 hub_gpsd_device_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), hub_gpsd_device);
1815 return (_has_bits_[0] & 0x00000100u) != 0;
1817 inline void Simulator::set_has_arduino_config() {
1818 _has_bits_[0] |= 0x00000100u;
1820 inline void Simulator::clear_has_arduino_config() {
1821 _has_bits_[0] &= ~0x00000100u;
1824 if (arduino_config_ != NULL) arduino_config_->Clear();
1825 clear_has_arduino_config();
1827 inline const ::jaiabot::config::ArduinoSimThread& Simulator::_internal_arduino_config()
const {
1828 return *arduino_config_;
1831 const ::jaiabot::config::ArduinoSimThread* p = arduino_config_;
1838 clear_has_arduino_config();
1840 arduino_config_ = NULL;
1844 set_has_arduino_config();
1845 if (arduino_config_ == NULL) {
1846 auto* p = CreateMaybeMessage<::jaiabot::config::ArduinoSimThread>(GetArenaNoVirtual());
1847 arduino_config_ = p;
1850 return arduino_config_;
1853 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1854 if (message_arena == NULL) {
1855 delete arduino_config_;
1857 if (arduino_config) {
1858 ::google::protobuf::Arena* submessage_arena = NULL;
1859 if (message_arena != submessage_arena) {
1860 arduino_config = ::google::protobuf::internal::GetOwnedMessage(
1861 message_arena, arduino_config, submessage_arena);
1863 set_has_arduino_config();
1865 clear_has_arduino_config();
1867 arduino_config_ = arduino_config;
1877 return (_has_bits_[0] & 0x00000001u) != 0;
1879 inline void ArduinoSimThread::set_has_voltage_period() {
1880 _has_bits_[0] |= 0x00000001u;
1882 inline void ArduinoSimThread::clear_has_voltage_period() {
1883 _has_bits_[0] &= ~0x00000001u;
1886 voltage_period_ = 1;
1887 clear_has_voltage_period();
1891 return voltage_period_;
1894 set_has_voltage_period();
1895 voltage_period_ = value;
1901 return (_has_bits_[0] & 0x00000002u) != 0;
1903 inline void ArduinoSimThread::set_has_voltage_step_decrease() {
1904 _has_bits_[0] |= 0x00000002u;
1906 inline void ArduinoSimThread::clear_has_voltage_step_decrease() {
1907 _has_bits_[0] &= ~0x00000002u;
1910 voltage_step_decrease_ = 0.1;
1911 clear_has_voltage_step_decrease();
1915 return voltage_step_decrease_;
1918 set_has_voltage_step_decrease();
1919 voltage_step_decrease_ = value;
1925 return (_has_bits_[0] & 0x00000004u) != 0;
1927 inline void ArduinoSimThread::set_has_voltage_start() {
1928 _has_bits_[0] |= 0x00000004u;
1930 inline void ArduinoSimThread::clear_has_voltage_start() {
1931 _has_bits_[0] &= ~0x00000004u;
1934 voltage_start_ = 24;
1935 clear_has_voltage_start();
1939 return voltage_start_;
1942 set_has_voltage_start();
1943 voltage_start_ = value;
1949 return (_has_bits_[0] & 0x00000008u) != 0;
1951 inline void ArduinoSimThread::set_has_reset_voltage_level() {
1952 _has_bits_[0] |= 0x00000008u;
1954 inline void ArduinoSimThread::clear_has_reset_voltage_level() {
1955 _has_bits_[0] &= ~0x00000008u;
1958 reset_voltage_level_ = 15;
1959 clear_has_reset_voltage_level();
1963 return reset_voltage_level_;
1966 set_has_reset_voltage_level();
1967 reset_voltage_level_ = value;
1972 #pragma GCC diagnostic pop
1986 #endif // PROTOBUF_INCLUDED_bin_2fsimulator_2fconfig_2eproto