4 #ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fhigh_5fcontrol_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fhigh_5fcontrol_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3012000
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 3012004 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/generated_enum_reflection.h>
35 #include <google/protobuf/unknown_field_set.h>
36 #include "dccl/option_extensions.pb.h"
37 #include "goby/middleware/protobuf/frontseat_data.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/si.hpp>
48 #include <google/protobuf/port_def.inc>
49 #define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fhigh_5fcontrol_2eproto
50 PROTOBUF_NAMESPACE_OPEN
54 PROTOBUF_NAMESPACE_CLOSE
58 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
60 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
62 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2]
64 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
66 static const ::PROTOBUF_NAMESPACE_ID::uint32
offsets[];
71 class DesiredSetpoints;
72 class DesiredSetpointsDefaultTypeInternal;
75 class RemoteControlDefaultTypeInternal;
79 PROTOBUF_NAMESPACE_OPEN
80 template<> ::jaiabot::protobuf::DesiredSetpoints* Arena::CreateMaybeMessage<::jaiabot::protobuf::DesiredSetpoints>(Arena*);
81 template<> ::jaiabot::protobuf::RemoteControl* Arena::CreateMaybeMessage<::jaiabot::protobuf::RemoteControl>(Arena*);
82 PROTOBUF_NAMESPACE_CLOSE
102 static_assert(::std::is_same<T, SetpointType>::value ||
103 ::std::is_integral<T>::value,
104 "Incorrect type passed to function SetpointType_Name.");
105 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
110 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<SetpointType>(
115 class RemoteControl PROTOBUF_FINAL :
116 public ::PROTOBUF_NAMESPACE_ID::Message {
124 *
this = ::std::move(from);
127 inline RemoteControl&
operator=(
const RemoteControl& from) {
131 inline RemoteControl&
operator=(RemoteControl&& from) noexcept {
132 if (GetArena() == from.GetArena()) {
133 if (
this != &from) InternalSwap(&from);
141 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
144 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
147 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
148 return GetDescriptor();
151 return GetMetadataStatic().descriptor;
154 return GetMetadataStatic().reflection;
160 return reinterpret_cast<const RemoteControl*
>(
163 static constexpr
int kIndexInFileMessages =
166 friend void swap(RemoteControl& a, RemoteControl& b) {
169 inline void Swap(RemoteControl* other) {
170 if (other ==
this)
return;
171 if (GetArena() == other->GetArena()) {
174 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
178 if (other ==
this)
return;
179 GOOGLE_DCHECK(GetArena() == other->GetArena());
185 inline RemoteControl*
New() const final {
186 return CreateMaybeMessage<RemoteControl>(
nullptr);
189 RemoteControl*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
190 return CreateMaybeMessage<RemoteControl>(arena);
192 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
193 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
196 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
197 bool IsInitialized() const final;
199 size_t ByteSizeLong() const final;
200 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
201 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
202 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
203 int GetCachedSize() const final {
return _cached_size_.Get(); }
206 inline void SharedCtor();
207 inline void SharedDtor();
208 void SetCachedSize(
int size)
const final;
209 void InternalSwap(RemoteControl* other);
210 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
211 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
212 return "jaiabot.protobuf.RemoteControl";
217 static void ArenaDtor(
void*
object);
218 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
223 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
235 kDurationFieldNumber = 1,
236 kHeadingFieldNumber = 10,
237 kSpeedFieldNumber = 11,
242 bool _internal_has_duration()
const;
248 ::PROTOBUF_NAMESPACE_ID::int32 _internal_duration()
const;
249 void _internal_set_duration(::PROTOBUF_NAMESPACE_ID::int32 value);
255 bool _internal_has_heading()
const;
261 double _internal_heading()
const;
262 void _internal_set_heading(
double value);
268 bool _internal_has_speed()
const;
274 double _internal_speed()
const;
275 void _internal_set_speed(
double value);
280 typedef boost::units::unit<duration_dimension,boost::units::si::system>
duration_unit;
282 template<
typename Quantity >
284 { set_duration(boost::units::quantity<duration_unit,google::protobuf::int32 >(value_w_units).value() ); };
286 template<
typename Quantity >
291 {
return duration_with_units<boost::units::quantity< duration_unit,google::protobuf::int32 > >(); };
295 typedef boost::units::unit<heading_dimension,boost::units::degree::system>
heading_unit;
297 template<
typename Quantity >
299 { set_heading(boost::units::quantity<heading_unit,double >(value_w_units).value() ); };
301 template<
typename Quantity >
306 {
return heading_with_units<boost::units::quantity< heading_unit,double > >(); };
308 typedef boost::mpl::divides<boost::units::length_dimension,boost::units::time_dimension>::type
speed_dimension;
310 typedef boost::units::unit<speed_dimension,boost::units::si::system>
speed_unit;
312 template<
typename Quantity >
314 { set_speed(boost::units::quantity<speed_unit,double >(value_w_units).value() ); };
316 template<
typename Quantity >
321 {
return speed_with_units<boost::units::quantity< speed_unit,double > >(); };
327 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
328 typedef void InternalArenaConstructable_;
329 typedef void DestructorSkippable_;
330 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
331 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
332 ::PROTOBUF_NAMESPACE_ID::int32 duration_;
335 friend struct ::TableStruct_jaiabot_2fmessages_2fhigh_5fcontrol_2eproto;
340 public ::PROTOBUF_NAMESPACE_ID::Message {
347 : DesiredSetpoints() {
348 *
this = ::std::move(from);
351 inline DesiredSetpoints&
operator=(
const DesiredSetpoints& from) {
355 inline DesiredSetpoints&
operator=(DesiredSetpoints&& from) noexcept {
356 if (GetArena() == from.GetArena()) {
357 if (
this != &from) InternalSwap(&from);
365 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
368 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
371 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
372 return GetDescriptor();
375 return GetMetadataStatic().descriptor;
378 return GetMetadataStatic().reflection;
387 SETPOINT_DATA_NOT_SET = 0,
392 return reinterpret_cast<const DesiredSetpoints*
>(
395 static constexpr
int kIndexInFileMessages =
398 friend void swap(DesiredSetpoints& a, DesiredSetpoints& b) {
401 inline void Swap(DesiredSetpoints* other) {
402 if (other ==
this)
return;
403 if (GetArena() == other->GetArena()) {
406 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
410 if (other ==
this)
return;
411 GOOGLE_DCHECK(GetArena() == other->GetArena());
417 inline DesiredSetpoints*
New() const final {
418 return CreateMaybeMessage<DesiredSetpoints>(
nullptr);
421 DesiredSetpoints*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
422 return CreateMaybeMessage<DesiredSetpoints>(arena);
424 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
425 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
428 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
429 bool IsInitialized() const final;
431 size_t ByteSizeLong() const final;
432 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
433 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
434 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
435 int GetCachedSize() const final {
return _cached_size_.Get(); }
438 inline void SharedCtor();
439 inline void SharedDtor();
440 void SetCachedSize(
int size)
const final;
441 void InternalSwap(DesiredSetpoints* other);
442 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
443 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
444 return "jaiabot.protobuf.DesiredSetpoints";
449 static void ArenaDtor(
void*
object);
450 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
455 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
467 kTypeFieldNumber = 1,
468 kIsHelmConstantCourseFieldNumber = 2,
469 kHelmCourseFieldNumber = 10,
470 kRemoteControlFieldNumber = 11,
471 kDiveDepthFieldNumber = 12,
472 kThrottleFieldNumber = 13,
477 bool _internal_has_type()
const;
490 bool _internal_has_is_helm_constant_course()
const;
496 bool _internal_is_helm_constant_course()
const;
497 void _internal_set_is_helm_constant_course(
bool value);
503 bool _internal_has_helm_course()
const;
506 const ::goby::middleware::frontseat::protobuf::DesiredCourse&
helm_course()
const;
511 const ::goby::middleware::frontseat::protobuf::DesiredCourse& _internal_helm_course()
const;
512 ::goby::middleware::frontseat::protobuf::DesiredCourse* _internal_mutable_helm_course();
515 ::goby::middleware::frontseat::protobuf::DesiredCourse* helm_course);
521 bool _internal_has_remote_control()
const;
529 const ::jaiabot::protobuf::RemoteControl& _internal_remote_control()
const;
530 ::jaiabot::protobuf::RemoteControl* _internal_mutable_remote_control();
533 ::jaiabot::protobuf::RemoteControl* remote_control);
539 bool _internal_has_dive_depth()
const;
545 double _internal_dive_depth()
const;
546 void _internal_set_dive_depth(
double value);
552 bool _internal_has_throttle()
const;
558 double _internal_throttle()
const;
559 void _internal_set_throttle(
double value);
566 typedef boost::units::unit<dive_depth_dimension,boost::units::si::system>
dive_depth_unit;
568 template<
typename Quantity >
570 { set_dive_depth(boost::units::quantity<dive_depth_unit,double >(value_w_units).value() ); };
572 template<
typename Quantity >
577 {
return dive_depth_with_units<boost::units::quantity< dive_depth_unit,double > >(); };
582 void set_has_helm_course();
583 void set_has_remote_control();
584 void set_has_dive_depth();
585 void set_has_throttle();
587 inline bool has_setpoint_data()
const;
588 inline void clear_has_setpoint_data();
590 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
591 typedef void InternalArenaConstructable_;
592 typedef void DestructorSkippable_;
593 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
594 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
596 bool is_helm_constant_course_;
597 union SetpointDataUnion {
598 SetpointDataUnion() {}
599 ::goby::middleware::frontseat::protobuf::DesiredCourse* helm_course_;
600 ::jaiabot::protobuf::RemoteControl* remote_control_;
604 ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
606 friend struct ::TableStruct_jaiabot_2fmessages_2fhigh_5fcontrol_2eproto;
614 #pragma GCC diagnostic push
615 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
620 inline bool RemoteControl::_internal_has_duration()
const {
621 bool value = (_has_bits_[0] & 0x00000001u) != 0;
624 inline bool RemoteControl::has_duration()
const {
625 return _internal_has_duration();
627 inline void RemoteControl::clear_duration() {
629 _has_bits_[0] &= ~0x00000001u;
631 inline ::PROTOBUF_NAMESPACE_ID::int32 RemoteControl::_internal_duration()
const {
634 inline ::PROTOBUF_NAMESPACE_ID::int32 RemoteControl::duration()
const {
636 return _internal_duration();
638 inline void RemoteControl::_internal_set_duration(::PROTOBUF_NAMESPACE_ID::int32 value) {
639 _has_bits_[0] |= 0x00000001u;
642 inline void RemoteControl::set_duration(::PROTOBUF_NAMESPACE_ID::int32 value) {
643 _internal_set_duration(value);
648 inline bool RemoteControl::_internal_has_heading()
const {
649 bool value = (_has_bits_[0] & 0x00000002u) != 0;
652 inline bool RemoteControl::has_heading()
const {
653 return _internal_has_heading();
655 inline void RemoteControl::clear_heading() {
657 _has_bits_[0] &= ~0x00000002u;
659 inline double RemoteControl::_internal_heading()
const {
662 inline double RemoteControl::heading()
const {
664 return _internal_heading();
666 inline void RemoteControl::_internal_set_heading(
double value) {
667 _has_bits_[0] |= 0x00000002u;
670 inline void RemoteControl::set_heading(
double value) {
671 _internal_set_heading(value);
676 inline bool RemoteControl::_internal_has_speed()
const {
677 bool value = (_has_bits_[0] & 0x00000004u) != 0;
680 inline bool RemoteControl::has_speed()
const {
681 return _internal_has_speed();
683 inline void RemoteControl::clear_speed() {
685 _has_bits_[0] &= ~0x00000004u;
687 inline double RemoteControl::_internal_speed()
const {
690 inline double RemoteControl::speed()
const {
692 return _internal_speed();
694 inline void RemoteControl::_internal_set_speed(
double value) {
695 _has_bits_[0] |= 0x00000004u;
698 inline void RemoteControl::set_speed(
double value) {
699 _internal_set_speed(value);
708 inline bool DesiredSetpoints::_internal_has_type()
const {
709 bool value = (_has_bits_[0] & 0x00000001u) != 0;
712 inline bool DesiredSetpoints::has_type()
const {
713 return _internal_has_type();
715 inline void DesiredSetpoints::clear_type() {
717 _has_bits_[0] &= ~0x00000001u;
724 return _internal_type();
728 _has_bits_[0] |= 0x00000001u;
732 _internal_set_type(value);
737 inline bool DesiredSetpoints::_internal_has_helm_course()
const {
738 return setpoint_data_case() == kHelmCourse;
740 inline bool DesiredSetpoints::has_helm_course()
const {
741 return _internal_has_helm_course();
743 inline void DesiredSetpoints::set_has_helm_course() {
744 _oneof_case_[0] = kHelmCourse;
746 inline ::goby::middleware::frontseat::protobuf::DesiredCourse* DesiredSetpoints::release_helm_course() {
748 if (_internal_has_helm_course()) {
749 clear_has_setpoint_data();
750 ::goby::middleware::frontseat::protobuf::DesiredCourse* temp = setpoint_data_.helm_course_;
751 if (GetArena() !=
nullptr) {
752 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
754 setpoint_data_.helm_course_ =
nullptr;
760 inline const ::goby::middleware::frontseat::protobuf::DesiredCourse& DesiredSetpoints::_internal_helm_course()
const {
761 return _internal_has_helm_course()
762 ? *setpoint_data_.helm_course_
763 : *
reinterpret_cast< ::goby::middleware::frontseat::protobuf::DesiredCourse*
>(&::goby::middleware::frontseat::protobuf::_DesiredCourse_default_instance_);
765 inline const ::goby::middleware::frontseat::protobuf::DesiredCourse& DesiredSetpoints::helm_course()
const {
767 return _internal_helm_course();
769 inline ::goby::middleware::frontseat::protobuf::DesiredCourse* DesiredSetpoints::unsafe_arena_release_helm_course() {
771 if (_internal_has_helm_course()) {
772 clear_has_setpoint_data();
773 ::goby::middleware::frontseat::protobuf::DesiredCourse* temp = setpoint_data_.helm_course_;
774 setpoint_data_.helm_course_ =
nullptr;
780 inline void DesiredSetpoints::unsafe_arena_set_allocated_helm_course(::goby::middleware::frontseat::protobuf::DesiredCourse* helm_course) {
781 clear_setpoint_data();
783 set_has_helm_course();
784 setpoint_data_.helm_course_ = helm_course;
788 inline ::goby::middleware::frontseat::protobuf::DesiredCourse* DesiredSetpoints::_internal_mutable_helm_course() {
789 if (!_internal_has_helm_course()) {
790 clear_setpoint_data();
791 set_has_helm_course();
792 setpoint_data_.helm_course_ = CreateMaybeMessage< ::goby::middleware::frontseat::protobuf::DesiredCourse >(GetArena());
794 return setpoint_data_.helm_course_;
796 inline ::goby::middleware::frontseat::protobuf::DesiredCourse* DesiredSetpoints::mutable_helm_course() {
798 return _internal_mutable_helm_course();
802 inline bool DesiredSetpoints::_internal_has_remote_control()
const {
803 return setpoint_data_case() == kRemoteControl;
805 inline bool DesiredSetpoints::has_remote_control()
const {
806 return _internal_has_remote_control();
808 inline void DesiredSetpoints::set_has_remote_control() {
809 _oneof_case_[0] = kRemoteControl;
811 inline void DesiredSetpoints::clear_remote_control() {
812 if (_internal_has_remote_control()) {
813 if (GetArena() ==
nullptr) {
814 delete setpoint_data_.remote_control_;
816 clear_has_setpoint_data();
819 inline ::jaiabot::protobuf::RemoteControl* DesiredSetpoints::release_remote_control() {
821 if (_internal_has_remote_control()) {
822 clear_has_setpoint_data();
823 ::jaiabot::protobuf::RemoteControl* temp = setpoint_data_.remote_control_;
824 if (GetArena() !=
nullptr) {
825 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
827 setpoint_data_.remote_control_ =
nullptr;
833 inline const ::jaiabot::protobuf::RemoteControl& DesiredSetpoints::_internal_remote_control()
const {
834 return _internal_has_remote_control()
835 ? *setpoint_data_.remote_control_
838 inline const ::jaiabot::protobuf::RemoteControl& DesiredSetpoints::remote_control()
const {
840 return _internal_remote_control();
842 inline ::jaiabot::protobuf::RemoteControl* DesiredSetpoints::unsafe_arena_release_remote_control() {
844 if (_internal_has_remote_control()) {
845 clear_has_setpoint_data();
846 ::jaiabot::protobuf::RemoteControl* temp = setpoint_data_.remote_control_;
847 setpoint_data_.remote_control_ =
nullptr;
853 inline void DesiredSetpoints::unsafe_arena_set_allocated_remote_control(::jaiabot::protobuf::RemoteControl* remote_control) {
854 clear_setpoint_data();
855 if (remote_control) {
856 set_has_remote_control();
857 setpoint_data_.remote_control_ = remote_control;
861 inline ::jaiabot::protobuf::RemoteControl* DesiredSetpoints::_internal_mutable_remote_control() {
862 if (!_internal_has_remote_control()) {
863 clear_setpoint_data();
864 set_has_remote_control();
865 setpoint_data_.remote_control_ = CreateMaybeMessage< ::jaiabot::protobuf::RemoteControl >(GetArena());
867 return setpoint_data_.remote_control_;
869 inline ::jaiabot::protobuf::RemoteControl* DesiredSetpoints::mutable_remote_control() {
871 return _internal_mutable_remote_control();
875 inline bool DesiredSetpoints::_internal_has_dive_depth()
const {
876 return setpoint_data_case() == kDiveDepth;
878 inline bool DesiredSetpoints::has_dive_depth()
const {
879 return _internal_has_dive_depth();
881 inline void DesiredSetpoints::set_has_dive_depth() {
882 _oneof_case_[0] = kDiveDepth;
884 inline void DesiredSetpoints::clear_dive_depth() {
885 if (_internal_has_dive_depth()) {
886 setpoint_data_.dive_depth_ = 0;
887 clear_has_setpoint_data();
890 inline double DesiredSetpoints::_internal_dive_depth()
const {
891 if (_internal_has_dive_depth()) {
892 return setpoint_data_.dive_depth_;
896 inline void DesiredSetpoints::_internal_set_dive_depth(
double value) {
897 if (!_internal_has_dive_depth()) {
898 clear_setpoint_data();
899 set_has_dive_depth();
901 setpoint_data_.dive_depth_ = value;
903 inline double DesiredSetpoints::dive_depth()
const {
905 return _internal_dive_depth();
907 inline void DesiredSetpoints::set_dive_depth(
double value) {
908 _internal_set_dive_depth(value);
913 inline bool DesiredSetpoints::_internal_has_throttle()
const {
914 return setpoint_data_case() == kThrottle;
916 inline bool DesiredSetpoints::has_throttle()
const {
917 return _internal_has_throttle();
919 inline void DesiredSetpoints::set_has_throttle() {
920 _oneof_case_[0] = kThrottle;
922 inline void DesiredSetpoints::clear_throttle() {
923 if (_internal_has_throttle()) {
924 setpoint_data_.throttle_ = 0;
925 clear_has_setpoint_data();
928 inline double DesiredSetpoints::_internal_throttle()
const {
929 if (_internal_has_throttle()) {
930 return setpoint_data_.throttle_;
934 inline void DesiredSetpoints::_internal_set_throttle(
double value) {
935 if (!_internal_has_throttle()) {
936 clear_setpoint_data();
939 setpoint_data_.throttle_ = value;
941 inline double DesiredSetpoints::throttle()
const {
943 return _internal_throttle();
945 inline void DesiredSetpoints::set_throttle(
double value) {
946 _internal_set_throttle(value);
951 inline bool DesiredSetpoints::_internal_has_is_helm_constant_course()
const {
952 bool value = (_has_bits_[0] & 0x00000002u) != 0;
955 inline bool DesiredSetpoints::has_is_helm_constant_course()
const {
956 return _internal_has_is_helm_constant_course();
958 inline void DesiredSetpoints::clear_is_helm_constant_course() {
959 is_helm_constant_course_ =
false;
960 _has_bits_[0] &= ~0x00000002u;
962 inline bool DesiredSetpoints::_internal_is_helm_constant_course()
const {
963 return is_helm_constant_course_;
965 inline bool DesiredSetpoints::is_helm_constant_course()
const {
967 return _internal_is_helm_constant_course();
969 inline void DesiredSetpoints::_internal_set_is_helm_constant_course(
bool value) {
970 _has_bits_[0] |= 0x00000002u;
971 is_helm_constant_course_ = value;
973 inline void DesiredSetpoints::set_is_helm_constant_course(
bool value) {
974 _internal_set_is_helm_constant_course(value);
978 inline bool DesiredSetpoints::has_setpoint_data()
const {
979 return setpoint_data_case() != SETPOINT_DATA_NOT_SET;
981 inline void DesiredSetpoints::clear_has_setpoint_data() {
982 _oneof_case_[0] = SETPOINT_DATA_NOT_SET;
984 inline DesiredSetpoints::SetpointDataCase DesiredSetpoints::setpoint_data_case()
const {
985 return DesiredSetpoints::SetpointDataCase(_oneof_case_[0]);
988 #pragma GCC diagnostic pop
998 PROTOBUF_NAMESPACE_OPEN
1002 inline const EnumDescriptor* GetEnumDescriptor< ::jaiabot::protobuf::SetpointType>() {
1006 PROTOBUF_NAMESPACE_CLOSE
1010 #include <google/protobuf/port_undef.inc>
void set_throttle(double value)
boost::mpl::divides< boost::units::length_dimension, boost::units::time_dimension >::type speed_dimension
void clear_setpoint_data()
void UnsafeArenaSwap(RemoteControl *other)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
DesiredSetpoints(DesiredSetpoints &&from) noexcept
void set_allocated_helm_course(::goby::middleware::frontseat::protobuf::DesiredCourse *helm_course)
void set_duration(::PROTOBUF_NAMESPACE_ID::int32 value)
boost::units::quantity< heading_unit, double > heading_with_units() const
void set_duration_with_units(Quantity value_w_units)
RemoteControl(const RemoteControl &from)
bool has_is_helm_constant_course() const
const ::goby::middleware::frontseat::protobuf::DesiredCourse & helm_course() const
::goby::middleware::frontseat::protobuf::DesiredCourse * unsafe_arena_release_helm_course()
void CopyFrom(const RemoteControl &from)
::goby::middleware::frontseat::protobuf::DesiredCourse * release_helm_course()
static const DesiredSetpoints * internal_default_instance()
DesiredSetpoints * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
::PROTOBUF_NAMESPACE_ID::int32 duration() const
::goby::middleware::frontseat::protobuf::DesiredCourse * mutable_helm_course()
bool has_helm_course() const
DesiredSetpoints(::PROTOBUF_NAMESPACE_ID::Arena *arena)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void set_heading_with_units(Quantity value_w_units)
void set_dive_depth_with_units(Quantity value_w_units)
void unsafe_arena_set_allocated_remote_control(::jaiabot::protobuf::RemoteControl *remote_control)
double dive_depth() const
static const DesiredSetpoints & default_instance()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
boost::units::unit< dive_depth_dimension, boost::units::si::system > dive_depth_unit
bool has_remote_control() const
::jaiabot::protobuf::SetpointType type() const
void set_speed(double value)
void UnsafeArenaSwap(DesiredSetpoints *other)
boost::units::plane_angle_dimension heading_dimension
SetpointDataCase setpoint_data_case() const
::jaiabot::protobuf::RemoteControl * release_remote_control()
Quantity speed_with_units() const
void CopyFrom(const DesiredSetpoints &from)
void MergeFrom(const DesiredSetpoints &from)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void unsafe_arena_set_allocated_helm_course(::goby::middleware::frontseat::protobuf::DesiredCourse *helm_course)
DesiredSetpoints & operator=(const DesiredSetpoints &from)
void set_type(::jaiabot::protobuf::SetpointType value)
virtual ~DesiredSetpoints()
void set_heading(double value)
boost::units::unit< duration_dimension, boost::units::si::system > duration_unit
::jaiabot::protobuf::RemoteControl * mutable_remote_control()
Quantity dive_depth_with_units() const
void Swap(DesiredSetpoints *other)
Quantity heading_with_units() const
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
RemoteControl * New() const final
static const RemoteControl & default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
DesiredSetpoints * New() const final
void clear_remote_control()
DesiredSetpoints & operator=(DesiredSetpoints &&from) noexcept
boost::units::length_dimension dive_depth_dimension
::jaiabot::protobuf::RemoteControl * unsafe_arena_release_remote_control()
RemoteControl(::PROTOBUF_NAMESPACE_ID::Arena *arena)
bool has_throttle() const
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
boost::units::unit< heading_dimension, boost::units::degree::system > heading_unit
static void InitAsDefaultInstance()
DesiredSetpoints(const DesiredSetpoints &from)
friend void swap(DesiredSetpoints &a, DesiredSetpoints &b)
boost::units::quantity< dive_depth_unit, double > dive_depth_with_units() const
bool is_helm_constant_course() const
bool has_duration() const
static const RemoteControl * internal_default_instance()
bool has_dive_depth() const
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void set_is_helm_constant_course(bool value)
boost::units::unit< speed_dimension, boost::units::si::system > speed_unit
void set_allocated_remote_control(::jaiabot::protobuf::RemoteControl *remote_control)
void set_dive_depth(double value)
void clear_is_helm_constant_course()
void set_speed_with_units(Quantity value_w_units)
RemoteControl(RemoteControl &&from) noexcept
boost::units::time_dimension duration_dimension
boost::units::quantity< duration_unit, google::protobuf::int32 > duration_with_units() const
void MergeFrom(const RemoteControl &from)
RemoteControl & operator=(RemoteControl &&from) noexcept
RemoteControl * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
friend void swap(RemoteControl &a, RemoteControl &b)
const ::jaiabot::protobuf::RemoteControl & remote_control() const
boost::units::quantity< speed_unit, double > speed_with_units() const
RemoteControl & operator=(const RemoteControl &from)
Quantity duration_with_units() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void Swap(RemoteControl *other)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fhigh_5fcontrol_2eproto
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * SetpointType_descriptor()
DesiredSetpointsDefaultTypeInternal _DesiredSetpoints_default_instance_
RemoteControlDefaultTypeInternal _RemoteControl_default_instance_
bool SetpointType_Parse(const std::string &name, SetpointType *value)
constexpr int SetpointType_ARRAYSIZE
const std::string & SetpointType_Name(T enum_t_value)
constexpr SetpointType SetpointType_MIN
bool SetpointType_IsValid(int value)
constexpr SetpointType SetpointType_MAX
@ SETPOINT_POWERED_ASCENT
@ SETPOINT_REMOTE_CONTROL
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)