4 #ifndef PROTOBUF_INCLUDED_bin_2ffusion_2fconfig_2eproto
5 #define PROTOBUF_INCLUDED_bin_2ffusion_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 "goby/middleware/protobuf/app_config.pb.h"
34 #include "goby/zeromq/protobuf/interprocess_config.pb.h"
38 #include "dccl/option_extensions.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/si.hpp>
46 #define PROTOBUF_INTERNAL_EXPORT_protobuf_bin_2ffusion_2fconfig_2eproto
51 static const ::google::protobuf::internal::ParseTableField
entries[];
52 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
53 static const ::google::protobuf::internal::ParseTable
schema[1];
56 static const ::google::protobuf::uint32
offsets[];
63 class FusionDefaultTypeInternal;
77 class Fusion :
public ::google::protobuf::Message {
91 *
this = ::std::move(from);
95 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
96 if (
this != &from) InternalSwap(&from);
104 return _internal_metadata_.unknown_fields();
107 return _internal_metadata_.mutable_unknown_fields();
110 static const ::google::protobuf::Descriptor*
descriptor();
115 return reinterpret_cast<const Fusion*
>(
129 return CreateMaybeMessage<Fusion>(NULL);
132 Fusion*
New(::google::protobuf::Arena* arena)
const final {
133 return CreateMaybeMessage<Fusion>(arena);
135 void CopyFrom(const ::google::protobuf::Message& from)
final;
136 void MergeFrom(const ::google::protobuf::Message& from)
final;
144 ::
google::protobuf::io::CodedInputStream* input) final;
146 ::
google::protobuf::io::CodedOutputStream* output) const final;
148 bool deterministic, ::
google::protobuf::uint8* target) const final;
154 void SetCachedSize(
int size)
const final;
155 void InternalSwap(
Fusion* other);
157 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
160 inline void* MaybeArenaPtr()
const {
165 ::google::protobuf::Metadata
GetMetadata() const final;
216 const ::
goby::middleware::protobuf::AppConfig& _internal_app() const;
218 const ::
goby::middleware::protobuf::AppConfig&
app() const;
228 const ::
goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
230 const ::
goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess() const;
393 template<typename Quantity >
397 template<
typename Quantity >
402 {
return imu_issue_detect_horizontal_pitch_min_time_with_units<boost::units::quantity< imu_issue_detect_horizontal_pitch_min_time_unit,double > >(); };
407 void clear_has_app();
408 void set_has_interprocess();
409 void clear_has_interprocess();
410 void set_has_bot_id();
411 void clear_has_bot_id();
412 void set_has_bot_type();
413 void clear_has_bot_type();
414 void set_has_health_report_timeout_seconds();
415 void clear_has_health_report_timeout_seconds();
416 void set_has_init_data_health_timeout_seconds();
417 void clear_has_init_data_health_timeout_seconds();
418 void set_has_data_timeout_seconds();
419 void clear_has_data_timeout_seconds();
420 void set_has_heading_timeout_seconds();
421 void clear_has_heading_timeout_seconds();
422 void set_has_imu_heading_course_max_diff();
423 void clear_has_imu_heading_course_max_diff();
424 void set_has_course_over_ground_timeout();
425 void clear_has_course_over_ground_timeout();
426 void set_has_imu_issue_solution();
427 void clear_has_imu_issue_solution();
428 void set_has_is_sim();
429 void clear_has_is_sim();
430 void set_has_total_imu_issue_checks();
431 void clear_has_total_imu_issue_checks();
432 void set_has_imu_detect_timeout();
433 void clear_has_imu_detect_timeout();
434 void set_has_bot_status_period_ms();
435 void clear_has_bot_status_period_ms();
436 void set_has_watch_battery_percentage();
437 void clear_has_watch_battery_percentage();
438 void set_has_battery_percentage_low_level();
439 void clear_has_battery_percentage_low_level();
440 void set_has_battery_percentage_very_low_level();
441 void clear_has_battery_percentage_very_low_level();
442 void set_has_battery_percentage_critically_low_level();
443 void clear_has_battery_percentage_critically_low_level();
444 void set_has_imu_detect_period();
445 void clear_has_imu_detect_period();
446 void set_has_imu_issue_detect_horizontal_pitch_checks();
447 void clear_has_imu_issue_detect_horizontal_pitch_checks();
448 void set_has_imu_issue_detect_horizontal_pitch_min_time();
449 void clear_has_imu_issue_detect_horizontal_pitch_min_time();
450 void set_has_imu_detect_horizontal_pitch();
451 void clear_has_imu_detect_horizontal_pitch();
452 void set_has_imu_detect_desired_heading_vs_current_max_diff();
453 void clear_has_imu_detect_desired_heading_vs_current_max_diff();
456 size_t RequiredFieldsByteSizeFallback()
const;
458 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
459 ::google::protobuf::internal::HasBits<1> _has_bits_;
460 mutable ::google::protobuf::internal::CachedSize _cached_size_;
461 ::google::protobuf::RepeatedField<int> discard_location_states_;
462 ::google::protobuf::RepeatedField<int> include_course_error_detection_states_;
463 ::google::protobuf::RepeatedField<int> include_imu_detection_states_;
464 ::google::protobuf::RepeatedField<int> diving_states_;
465 ::goby::middleware::protobuf::AppConfig* app_;
466 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
467 ::google::protobuf::int32 bot_id_;
470 ::google::protobuf::int32 health_report_timeout_seconds_;
471 ::google::protobuf::int32 init_data_health_timeout_seconds_;
472 ::google::protobuf::int32 data_timeout_seconds_;
473 ::google::protobuf::int32 heading_timeout_seconds_;
474 ::google::protobuf::int32 course_over_ground_timeout_;
475 double imu_heading_course_max_diff_;
476 int imu_issue_solution_;
477 ::google::protobuf::int32 total_imu_issue_checks_;
478 ::google::protobuf::int32 imu_detect_timeout_;
479 ::google::protobuf::int32 bot_status_period_ms_;
480 bool watch_battery_percentage_;
481 float battery_percentage_low_level_;
482 float battery_percentage_very_low_level_;
483 float battery_percentage_critically_low_level_;
484 ::google::protobuf::int32 imu_detect_period_;
485 ::google::protobuf::int32 imu_issue_detect_horizontal_pitch_checks_;
486 double imu_issue_detect_horizontal_pitch_min_time_;
487 double imu_detect_horizontal_pitch_;
488 double imu_detect_desired_heading_vs_current_max_diff_;
489 friend struct ::protobuf_bin_2ffusion_2fconfig_2eproto::TableStruct;
497 #pragma GCC diagnostic push
498 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
504 return (_has_bits_[0] & 0x00000001u) != 0;
506 inline void Fusion::set_has_app() {
507 _has_bits_[0] |= 0x00000001u;
509 inline void Fusion::clear_has_app() {
510 _has_bits_[0] &= ~0x00000001u;
512 inline const ::goby::middleware::protobuf::AppConfig& Fusion::_internal_app()
const {
515 inline const ::goby::middleware::protobuf::AppConfig&
Fusion::app()
const {
516 const ::goby::middleware::protobuf::AppConfig* p = app_;
518 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*
>(
519 &::goby::middleware::protobuf::_AppConfig_default_instance_);
524 ::goby::middleware::protobuf::AppConfig* temp = app_;
531 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
538 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
539 if (message_arena == NULL) {
540 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(app_);
543 ::google::protobuf::Arena* submessage_arena = NULL;
544 if (message_arena != submessage_arena) {
545 app = ::google::protobuf::internal::GetOwnedMessage(
546 message_arena,
app, submessage_arena);
558 return (_has_bits_[0] & 0x00000002u) != 0;
560 inline void Fusion::set_has_interprocess() {
561 _has_bits_[0] |= 0x00000002u;
563 inline void Fusion::clear_has_interprocess() {
564 _has_bits_[0] &= ~0x00000002u;
566 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& Fusion::_internal_interprocess()
const {
567 return *interprocess_;
570 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
572 return p != NULL ? *p : *
reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig*
>(
573 &::goby::zeromq::protobuf::_InterProcessPortalConfig_default_instance_);
577 clear_has_interprocess();
578 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = interprocess_;
579 interprocess_ = NULL;
583 set_has_interprocess();
584 if (interprocess_ == NULL) {
585 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
589 return interprocess_;
592 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
593 if (message_arena == NULL) {
594 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(interprocess_);
597 ::google::protobuf::Arena* submessage_arena = NULL;
598 if (message_arena != submessage_arena) {
599 interprocess = ::google::protobuf::internal::GetOwnedMessage(
602 set_has_interprocess();
604 clear_has_interprocess();
612 return (_has_bits_[0] & 0x00000004u) != 0;
614 inline void Fusion::set_has_bot_id() {
615 _has_bits_[0] |= 0x00000004u;
617 inline void Fusion::clear_has_bot_id() {
618 _has_bits_[0] &= ~0x00000004u;
636 return (_has_bits_[0] & 0x00000010u) != 0;
638 inline void Fusion::set_has_bot_type() {
639 _has_bits_[0] |= 0x00000010u;
641 inline void Fusion::clear_has_bot_type() {
642 _has_bits_[0] &= ~0x00000010u;
646 clear_has_bot_type();
661 return (_has_bits_[0] & 0x00000020u) != 0;
663 inline void Fusion::set_has_health_report_timeout_seconds() {
664 _has_bits_[0] |= 0x00000020u;
666 inline void Fusion::clear_has_health_report_timeout_seconds() {
667 _has_bits_[0] &= ~0x00000020u;
670 health_report_timeout_seconds_ = 20;
671 clear_has_health_report_timeout_seconds();
675 return health_report_timeout_seconds_;
678 set_has_health_report_timeout_seconds();
679 health_report_timeout_seconds_ = value;
685 return (_has_bits_[0] & 0x00000040u) != 0;
687 inline void Fusion::set_has_init_data_health_timeout_seconds() {
688 _has_bits_[0] |= 0x00000040u;
690 inline void Fusion::clear_has_init_data_health_timeout_seconds() {
691 _has_bits_[0] &= ~0x00000040u;
694 init_data_health_timeout_seconds_ = 20;
695 clear_has_init_data_health_timeout_seconds();
699 return init_data_health_timeout_seconds_;
702 set_has_init_data_health_timeout_seconds();
703 init_data_health_timeout_seconds_ = value;
709 return (_has_bits_[0] & 0x00000080u) != 0;
711 inline void Fusion::set_has_data_timeout_seconds() {
712 _has_bits_[0] |= 0x00000080u;
714 inline void Fusion::clear_has_data_timeout_seconds() {
715 _has_bits_[0] &= ~0x00000080u;
718 data_timeout_seconds_ = 20;
719 clear_has_data_timeout_seconds();
723 return data_timeout_seconds_;
726 set_has_data_timeout_seconds();
727 data_timeout_seconds_ = value;
733 return (_has_bits_[0] & 0x00000100u) != 0;
735 inline void Fusion::set_has_heading_timeout_seconds() {
736 _has_bits_[0] |= 0x00000100u;
738 inline void Fusion::clear_has_heading_timeout_seconds() {
739 _has_bits_[0] &= ~0x00000100u;
742 heading_timeout_seconds_ = 15;
743 clear_has_heading_timeout_seconds();
747 return heading_timeout_seconds_;
750 set_has_heading_timeout_seconds();
751 heading_timeout_seconds_ = value;
757 return discard_location_states_.size();
760 discard_location_states_.Clear();
768 discard_location_states_.Set(index, value);
773 discard_location_states_.Add(value);
776 inline const ::google::protobuf::RepeatedField<int>&
779 return discard_location_states_;
781 inline ::google::protobuf::RepeatedField<int>*
784 return &discard_location_states_;
789 return (_has_bits_[0] & 0x00000400u) != 0;
791 inline void Fusion::set_has_imu_heading_course_max_diff() {
792 _has_bits_[0] |= 0x00000400u;
794 inline void Fusion::clear_has_imu_heading_course_max_diff() {
795 _has_bits_[0] &= ~0x00000400u;
798 imu_heading_course_max_diff_ = 45;
799 clear_has_imu_heading_course_max_diff();
803 return imu_heading_course_max_diff_;
806 set_has_imu_heading_course_max_diff();
807 imu_heading_course_max_diff_ = value;
813 return (_has_bits_[0] & 0x00000200u) != 0;
815 inline void Fusion::set_has_course_over_ground_timeout() {
816 _has_bits_[0] |= 0x00000200u;
818 inline void Fusion::clear_has_course_over_ground_timeout() {
819 _has_bits_[0] &= ~0x00000200u;
822 course_over_ground_timeout_ = 3;
823 clear_has_course_over_ground_timeout();
827 return course_over_ground_timeout_;
830 set_has_course_over_ground_timeout();
831 course_over_ground_timeout_ = value;
837 return (_has_bits_[0] & 0x00000800u) != 0;
839 inline void Fusion::set_has_imu_issue_solution() {
840 _has_bits_[0] |= 0x00000800u;
842 inline void Fusion::clear_has_imu_issue_solution() {
843 _has_bits_[0] &= ~0x00000800u;
846 imu_issue_solution_ = 5;
847 clear_has_imu_issue_solution();
855 set_has_imu_issue_solution();
856 imu_issue_solution_ = value;
862 return (_has_bits_[0] & 0x00000008u) != 0;
864 inline void Fusion::set_has_is_sim() {
865 _has_bits_[0] |= 0x00000008u;
867 inline void Fusion::clear_has_is_sim() {
868 _has_bits_[0] &= ~0x00000008u;
886 return (_has_bits_[0] & 0x00001000u) != 0;
888 inline void Fusion::set_has_total_imu_issue_checks() {
889 _has_bits_[0] |= 0x00001000u;
891 inline void Fusion::clear_has_total_imu_issue_checks() {
892 _has_bits_[0] &= ~0x00001000u;
895 total_imu_issue_checks_ = 4;
896 clear_has_total_imu_issue_checks();
900 return total_imu_issue_checks_;
903 set_has_total_imu_issue_checks();
904 total_imu_issue_checks_ = value;
910 return (_has_bits_[0] & 0x00002000u) != 0;
912 inline void Fusion::set_has_imu_detect_timeout() {
913 _has_bits_[0] |= 0x00002000u;
915 inline void Fusion::clear_has_imu_detect_timeout() {
916 _has_bits_[0] &= ~0x00002000u;
919 imu_detect_timeout_ = 20;
920 clear_has_imu_detect_timeout();
924 return imu_detect_timeout_;
927 set_has_imu_detect_timeout();
928 imu_detect_timeout_ = value;
934 return (_has_bits_[0] & 0x00004000u) != 0;
936 inline void Fusion::set_has_bot_status_period_ms() {
937 _has_bits_[0] |= 0x00004000u;
939 inline void Fusion::clear_has_bot_status_period_ms() {
940 _has_bits_[0] &= ~0x00004000u;
943 bot_status_period_ms_ = 1000;
944 clear_has_bot_status_period_ms();
948 return bot_status_period_ms_;
951 set_has_bot_status_period_ms();
952 bot_status_period_ms_ = value;
958 return include_course_error_detection_states_.size();
961 include_course_error_detection_states_.Clear();
969 include_course_error_detection_states_.Set(index, value);
974 include_course_error_detection_states_.Add(value);
977 inline const ::google::protobuf::RepeatedField<int>&
980 return include_course_error_detection_states_;
982 inline ::google::protobuf::RepeatedField<int>*
985 return &include_course_error_detection_states_;
990 return include_imu_detection_states_.size();
993 include_imu_detection_states_.Clear();
1001 include_imu_detection_states_.Set(index, value);
1006 include_imu_detection_states_.Add(value);
1009 inline const ::google::protobuf::RepeatedField<int>&
1012 return include_imu_detection_states_;
1014 inline ::google::protobuf::RepeatedField<int>*
1017 return &include_imu_detection_states_;
1022 return (_has_bits_[0] & 0x00008000u) != 0;
1024 inline void Fusion::set_has_watch_battery_percentage() {
1025 _has_bits_[0] |= 0x00008000u;
1027 inline void Fusion::clear_has_watch_battery_percentage() {
1028 _has_bits_[0] &= ~0x00008000u;
1031 watch_battery_percentage_ =
true;
1032 clear_has_watch_battery_percentage();
1036 return watch_battery_percentage_;
1039 set_has_watch_battery_percentage();
1040 watch_battery_percentage_ = value;
1046 return (_has_bits_[0] & 0x00010000u) != 0;
1048 inline void Fusion::set_has_battery_percentage_low_level() {
1049 _has_bits_[0] |= 0x00010000u;
1051 inline void Fusion::clear_has_battery_percentage_low_level() {
1052 _has_bits_[0] &= ~0x00010000u;
1055 battery_percentage_low_level_ = 50;
1056 clear_has_battery_percentage_low_level();
1060 return battery_percentage_low_level_;
1063 set_has_battery_percentage_low_level();
1064 battery_percentage_low_level_ = value;
1070 return (_has_bits_[0] & 0x00020000u) != 0;
1072 inline void Fusion::set_has_battery_percentage_very_low_level() {
1073 _has_bits_[0] |= 0x00020000u;
1075 inline void Fusion::clear_has_battery_percentage_very_low_level() {
1076 _has_bits_[0] &= ~0x00020000u;
1079 battery_percentage_very_low_level_ = 20;
1080 clear_has_battery_percentage_very_low_level();
1084 return battery_percentage_very_low_level_;
1087 set_has_battery_percentage_very_low_level();
1088 battery_percentage_very_low_level_ = value;
1094 return (_has_bits_[0] & 0x00040000u) != 0;
1096 inline void Fusion::set_has_battery_percentage_critically_low_level() {
1097 _has_bits_[0] |= 0x00040000u;
1099 inline void Fusion::clear_has_battery_percentage_critically_low_level() {
1100 _has_bits_[0] &= ~0x00040000u;
1103 battery_percentage_critically_low_level_ = 10;
1104 clear_has_battery_percentage_critically_low_level();
1108 return battery_percentage_critically_low_level_;
1111 set_has_battery_percentage_critically_low_level();
1112 battery_percentage_critically_low_level_ = value;
1118 return (_has_bits_[0] & 0x00080000u) != 0;
1120 inline void Fusion::set_has_imu_detect_period() {
1121 _has_bits_[0] |= 0x00080000u;
1123 inline void Fusion::clear_has_imu_detect_period() {
1124 _has_bits_[0] &= ~0x00080000u;
1127 imu_detect_period_ = 1;
1128 clear_has_imu_detect_period();
1132 return imu_detect_period_;
1135 set_has_imu_detect_period();
1136 imu_detect_period_ = value;
1142 return (_has_bits_[0] & 0x00100000u) != 0;
1144 inline void Fusion::set_has_imu_issue_detect_horizontal_pitch_checks() {
1145 _has_bits_[0] |= 0x00100000u;
1147 inline void Fusion::clear_has_imu_issue_detect_horizontal_pitch_checks() {
1148 _has_bits_[0] &= ~0x00100000u;
1151 imu_issue_detect_horizontal_pitch_checks_ = 3;
1152 clear_has_imu_issue_detect_horizontal_pitch_checks();
1156 return imu_issue_detect_horizontal_pitch_checks_;
1159 set_has_imu_issue_detect_horizontal_pitch_checks();
1160 imu_issue_detect_horizontal_pitch_checks_ = value;
1166 return (_has_bits_[0] & 0x00200000u) != 0;
1168 inline void Fusion::set_has_imu_issue_detect_horizontal_pitch_min_time() {
1169 _has_bits_[0] |= 0x00200000u;
1171 inline void Fusion::clear_has_imu_issue_detect_horizontal_pitch_min_time() {
1172 _has_bits_[0] &= ~0x00200000u;
1175 imu_issue_detect_horizontal_pitch_min_time_ = 1;
1176 clear_has_imu_issue_detect_horizontal_pitch_min_time();
1180 return imu_issue_detect_horizontal_pitch_min_time_;
1183 set_has_imu_issue_detect_horizontal_pitch_min_time();
1184 imu_issue_detect_horizontal_pitch_min_time_ = value;
1190 return (_has_bits_[0] & 0x00400000u) != 0;
1192 inline void Fusion::set_has_imu_detect_horizontal_pitch() {
1193 _has_bits_[0] |= 0x00400000u;
1195 inline void Fusion::clear_has_imu_detect_horizontal_pitch() {
1196 _has_bits_[0] &= ~0x00400000u;
1199 imu_detect_horizontal_pitch_ = 45;
1200 clear_has_imu_detect_horizontal_pitch();
1204 return imu_detect_horizontal_pitch_;
1207 set_has_imu_detect_horizontal_pitch();
1208 imu_detect_horizontal_pitch_ = value;
1214 return (_has_bits_[0] & 0x00800000u) != 0;
1216 inline void Fusion::set_has_imu_detect_desired_heading_vs_current_max_diff() {
1217 _has_bits_[0] |= 0x00800000u;
1219 inline void Fusion::clear_has_imu_detect_desired_heading_vs_current_max_diff() {
1220 _has_bits_[0] &= ~0x00800000u;
1223 imu_detect_desired_heading_vs_current_max_diff_ = 45;
1224 clear_has_imu_detect_desired_heading_vs_current_max_diff();
1228 return imu_detect_desired_heading_vs_current_max_diff_;
1231 set_has_imu_detect_desired_heading_vs_current_max_diff();
1232 imu_detect_desired_heading_vs_current_max_diff_ = value;
1238 return diving_states_.size();
1241 diving_states_.Clear();
1249 diving_states_.Set(index, value);
1254 diving_states_.Add(value);
1257 inline const ::google::protobuf::RepeatedField<int>&
1260 return diving_states_;
1262 inline ::google::protobuf::RepeatedField<int>*
1265 return &diving_states_;
1269 #pragma GCC diagnostic pop
1279 #endif // PROTOBUF_INCLUDED_bin_2ffusion_2fconfig_2eproto