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 < 3021000
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 3021012 < 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_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.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/generated_enum_reflection.h>
33#include <google/protobuf/unknown_field_set.h>
35#include "goby/middleware/protobuf/frontseat_data.pb.h"
37#include <boost/units/quantity.hpp>
38#include <boost/units/absolute.hpp>
39#include <boost/units/dimensionless_type.hpp>
40#include <boost/units/make_scaled_unit.hpp>
42#include <boost/units/systems/angle/degrees.hpp>
44#include <boost/units/systems/si.hpp>
46#include <google/protobuf/port_def.inc>
47#define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fhigh_5fcontrol_2eproto
48PROTOBUF_NAMESPACE_OPEN
52PROTOBUF_NAMESPACE_CLOSE
61class DesiredSetpoints;
62struct DesiredSetpointsDefaultTypeInternal;
65struct RemoteControlDefaultTypeInternal;
69PROTOBUF_NAMESPACE_OPEN
72PROTOBUF_NAMESPACE_CLOSE
92 static_assert(::std::is_same<T, SetpointType>::value ||
93 ::std::is_integral<T>::value,
94 "Incorrect type passed to function SetpointType_Name.");
95 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
99 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
SetpointType* value) {
100 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<SetpointType>(
106 public ::PROTOBUF_NAMESPACE_ID::Message {
110 explicit PROTOBUF_CONSTEXPR
RemoteControl(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
115 *
this = ::std::move(from);
123 if (
this == &from)
return *
this;
124 if (GetOwningArena() == from.GetOwningArena()
125 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
126 && GetOwningArena() !=
nullptr
137 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
140 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
143 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
166 if (other ==
this)
return;
167 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
168 if (GetOwningArena() !=
nullptr &&
169 GetOwningArena() == other->GetOwningArena()) {
171 if (GetOwningArena() == other->GetOwningArena()) {
175 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
179 if (other ==
this)
return;
180 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
187 return CreateMaybeMessage<RemoteControl>(arena);
189 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
191 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
193 RemoteControl::MergeImpl(*
this, from);
196 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
198 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
204 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
208 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
210 void SetCachedSize(
int size)
const final;
214 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
215 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
216 return "jaiabot.protobuf.RemoteControl";
220 bool is_message_owned =
false);
224 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
240 bool _internal_has_heading()
const;
246 double _internal_heading()
const;
247 void _internal_set_heading(
double value);
253 bool _internal_has_speed()
const;
256 double speed()
const;
259 double _internal_speed()
const;
260 void _internal_set_speed(
double value);
266 bool _internal_has_duration()
const;
272 int32_t _internal_duration()
const;
273 void _internal_set_duration(int32_t value);
278 typedef boost::units::unit<duration_dimension,boost::units::si::system>
duration_unit;
280 template<
typename Quantity >
282 {
set_duration(boost::units::quantity<duration_unit,google::protobuf::int32 >(value_w_units).value() ); };
284 template<
typename Quantity >
289 {
return duration_with_units<boost::units::quantity< duration_unit,google::protobuf::int32 > >(); };
293 typedef boost::units::unit<heading_dimension,boost::units::degree::system>
heading_unit;
295 template<
typename Quantity >
297 {
set_heading(boost::units::quantity<heading_unit,double >(value_w_units).value() ); };
299 template<
typename Quantity >
304 {
return heading_with_units<boost::units::quantity< heading_unit,double > >(); };
306 typedef boost::mpl::divides<boost::units::length_dimension,boost::units::time_dimension>::type
speed_dimension;
308 typedef boost::units::unit<speed_dimension,boost::units::si::system>
speed_unit;
310 template<
typename Quantity >
312 {
set_speed(boost::units::quantity<speed_unit,double >(value_w_units).value() ); };
314 template<
typename Quantity >
319 {
return speed_with_units<boost::units::quantity< speed_unit,double > >(); };
325 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
326 typedef void InternalArenaConstructable_;
327 typedef void DestructorSkippable_;
329 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
330 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
336 friend struct ::TableStruct_jaiabot_2fmessages_2fhigh_5fcontrol_2eproto;
341 public ::PROTOBUF_NAMESPACE_ID::Message {
345 explicit PROTOBUF_CONSTEXPR
DesiredSetpoints(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
350 *
this = ::std::move(from);
358 if (
this == &from)
return *
this;
359 if (GetOwningArena() == from.GetOwningArena()
360 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
361 && GetOwningArena() !=
nullptr
372 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
375 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
378 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
379 return GetDescriptor();
382 return default_instance().GetMetadata().descriptor;
385 return default_instance().GetMetadata().reflection;
388 return *internal_default_instance();
395 SETPOINT_DATA_NOT_SET = 0,
402 static constexpr int kIndexInFileMessages =
409 if (other ==
this)
return;
410 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
411 if (GetOwningArena() !=
nullptr &&
412 GetOwningArena() == other->GetOwningArena()) {
414 if (GetOwningArena() == other->GetOwningArena()) {
418 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
422 if (other ==
this)
return;
423 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
430 return CreateMaybeMessage<DesiredSetpoints>(arena);
432 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
434 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
436 DesiredSetpoints::MergeImpl(*
this, from);
439 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
441 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
442 bool IsInitialized() const final;
444 size_t ByteSizeLong() const final;
445 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
446 uint8_t* _InternalSerialize(
447 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
448 int GetCachedSize() const final {
return _impl_._cached_size_.Get(); }
451 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
453 void SetCachedSize(
int size)
const final;
457 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
458 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
459 return "jaiabot.protobuf.DesiredSetpoints";
463 bool is_message_owned =
false);
467 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
469 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
476 kTypeFieldNumber = 1,
477 kIsHelmConstantCourseFieldNumber = 2,
478 kHelmCourseFieldNumber = 10,
479 kRemoteControlFieldNumber = 11,
480 kDiveDepthFieldNumber = 12,
481 kThrottleFieldNumber = 13,
484 bool has_type()
const;
486 bool _internal_has_type()
const;
497 bool has_is_helm_constant_course()
const;
499 bool _internal_has_is_helm_constant_course()
const;
501 void clear_is_helm_constant_course();
502 bool is_helm_constant_course()
const;
503 void set_is_helm_constant_course(
bool value);
505 bool _internal_is_helm_constant_course()
const;
506 void _internal_set_is_helm_constant_course(
bool value);
510 bool has_helm_course()
const;
512 bool _internal_has_helm_course()
const;
515 const ::goby::middleware::frontseat::protobuf::DesiredCourse& helm_course()
const;
516 PROTOBUF_NODISCARD ::goby::middleware::frontseat::protobuf::DesiredCourse* release_helm_course();
517 ::goby::middleware::frontseat::protobuf::DesiredCourse* mutable_helm_course();
520 const ::goby::middleware::frontseat::protobuf::DesiredCourse& _internal_helm_course()
const;
521 ::goby::middleware::frontseat::protobuf::DesiredCourse* _internal_mutable_helm_course();
523 void unsafe_arena_set_allocated_helm_course(
524 ::goby::middleware::frontseat::protobuf::DesiredCourse* helm_course);
525 ::goby::middleware::frontseat::protobuf::DesiredCourse* unsafe_arena_release_helm_course();
528 bool has_remote_control()
const;
530 bool _internal_has_remote_control()
const;
532 void clear_remote_control();
533 const ::jaiabot::protobuf::RemoteControl& remote_control()
const;
534 PROTOBUF_NODISCARD ::jaiabot::protobuf::RemoteControl* release_remote_control();
538 const ::jaiabot::protobuf::RemoteControl& _internal_remote_control()
const;
541 void unsafe_arena_set_allocated_remote_control(
546 bool has_dive_depth()
const;
548 bool _internal_has_dive_depth()
const;
550 void clear_dive_depth();
551 double dive_depth()
const;
552 void set_dive_depth(
double value);
554 double _internal_dive_depth()
const;
555 void _internal_set_dive_depth(
double value);
559 bool has_throttle()
const;
561 bool _internal_has_throttle()
const;
563 void clear_throttle();
564 double throttle()
const;
565 void set_throttle(
double value);
567 double _internal_throttle()
const;
568 void _internal_set_throttle(
double value);
575 typedef boost::units::unit<dive_depth_dimension,boost::units::si::system>
dive_depth_unit;
577 template<
typename Quantity >
579 { set_dive_depth(boost::units::quantity<dive_depth_unit,double >(value_w_units).value() ); };
581 template<
typename Quantity >
586 {
return dive_depth_with_units<boost::units::quantity< dive_depth_unit,double > >(); };
591 void set_has_helm_course();
592 void set_has_remote_control();
593 void set_has_dive_depth();
594 void set_has_throttle();
596 inline bool has_setpoint_data()
const;
597 inline void clear_has_setpoint_data();
599 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
600 typedef void InternalArenaConstructable_;
601 typedef void DestructorSkippable_;
603 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
604 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
606 bool is_helm_constant_course_;
609 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
_constinit_;
615 uint32_t _oneof_case_[1];
619 friend struct ::TableStruct_jaiabot_2fmessages_2fhigh_5fcontrol_2eproto;
627 #pragma GCC diagnostic push
628 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
633inline bool RemoteControl::_internal_has_duration()
const {
634 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
637inline bool RemoteControl::has_duration()
const {
638 return _internal_has_duration();
640inline void RemoteControl::clear_duration() {
641 _impl_.duration_ = 0;
642 _impl_._has_bits_[0] &= ~0x00000004u;
644inline int32_t RemoteControl::_internal_duration()
const {
645 return _impl_.duration_;
647inline int32_t RemoteControl::duration()
const {
649 return _internal_duration();
651inline void RemoteControl::_internal_set_duration(int32_t value) {
652 _impl_._has_bits_[0] |= 0x00000004u;
653 _impl_.duration_ = value;
655inline void RemoteControl::set_duration(int32_t value) {
656 _internal_set_duration(value);
661inline bool RemoteControl::_internal_has_heading()
const {
662 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
665inline bool RemoteControl::has_heading()
const {
666 return _internal_has_heading();
668inline void RemoteControl::clear_heading() {
670 _impl_._has_bits_[0] &= ~0x00000001u;
672inline double RemoteControl::_internal_heading()
const {
673 return _impl_.heading_;
675inline double RemoteControl::heading()
const {
677 return _internal_heading();
679inline void RemoteControl::_internal_set_heading(
double value) {
680 _impl_._has_bits_[0] |= 0x00000001u;
681 _impl_.heading_ = value;
683inline void RemoteControl::set_heading(
double value) {
684 _internal_set_heading(value);
689inline bool RemoteControl::_internal_has_speed()
const {
690 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
693inline bool RemoteControl::has_speed()
const {
694 return _internal_has_speed();
696inline void RemoteControl::clear_speed() {
698 _impl_._has_bits_[0] &= ~0x00000002u;
700inline double RemoteControl::_internal_speed()
const {
701 return _impl_.speed_;
703inline double RemoteControl::speed()
const {
705 return _internal_speed();
707inline void RemoteControl::_internal_set_speed(
double value) {
708 _impl_._has_bits_[0] |= 0x00000002u;
709 _impl_.speed_ = value;
711inline void RemoteControl::set_speed(
double value) {
712 _internal_set_speed(value);
721inline bool DesiredSetpoints::_internal_has_type()
const {
722 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
725inline bool DesiredSetpoints::has_type()
const {
726 return _internal_has_type();
728inline void DesiredSetpoints::clear_type() {
730 _impl_._has_bits_[0] &= ~0x00000001u;
732inline ::jaiabot::protobuf::SetpointType DesiredSetpoints::_internal_type()
const {
735inline ::jaiabot::protobuf::SetpointType DesiredSetpoints::type()
const {
737 return _internal_type();
741 _impl_._has_bits_[0] |= 0x00000001u;
742 _impl_.type_ = value;
745 _internal_set_type(value);
750inline bool DesiredSetpoints::_internal_has_helm_course()
const {
751 return setpoint_data_case() == kHelmCourse;
753inline bool DesiredSetpoints::has_helm_course()
const {
754 return _internal_has_helm_course();
756inline void DesiredSetpoints::set_has_helm_course() {
757 _impl_._oneof_case_[0] = kHelmCourse;
759inline ::goby::middleware::frontseat::protobuf::DesiredCourse* DesiredSetpoints::release_helm_course() {
761 if (_internal_has_helm_course()) {
762 clear_has_setpoint_data();
763 ::goby::middleware::frontseat::protobuf::DesiredCourse* temp = _impl_.setpoint_data_.helm_course_;
764 if (GetArenaForAllocation() !=
nullptr) {
765 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
767 _impl_.setpoint_data_.helm_course_ =
nullptr;
773inline const ::goby::middleware::frontseat::protobuf::DesiredCourse& DesiredSetpoints::_internal_helm_course()
const {
774 return _internal_has_helm_course()
775 ? *_impl_.setpoint_data_.helm_course_
776 :
reinterpret_cast< ::goby::middleware::frontseat::protobuf::DesiredCourse&
>(::goby::middleware::frontseat::protobuf::_DesiredCourse_default_instance_);
778inline const ::goby::middleware::frontseat::protobuf::DesiredCourse& DesiredSetpoints::helm_course()
const {
780 return _internal_helm_course();
782inline ::goby::middleware::frontseat::protobuf::DesiredCourse* DesiredSetpoints::unsafe_arena_release_helm_course() {
784 if (_internal_has_helm_course()) {
785 clear_has_setpoint_data();
786 ::goby::middleware::frontseat::protobuf::DesiredCourse* temp = _impl_.setpoint_data_.helm_course_;
787 _impl_.setpoint_data_.helm_course_ =
nullptr;
793inline void DesiredSetpoints::unsafe_arena_set_allocated_helm_course(::goby::middleware::frontseat::protobuf::DesiredCourse* helm_course) {
794 clear_setpoint_data();
796 set_has_helm_course();
797 _impl_.setpoint_data_.helm_course_ = helm_course;
801inline ::goby::middleware::frontseat::protobuf::DesiredCourse* DesiredSetpoints::_internal_mutable_helm_course() {
802 if (!_internal_has_helm_course()) {
803 clear_setpoint_data();
804 set_has_helm_course();
805 _impl_.setpoint_data_.helm_course_ = CreateMaybeMessage< ::goby::middleware::frontseat::protobuf::DesiredCourse >(GetArenaForAllocation());
807 return _impl_.setpoint_data_.helm_course_;
809inline ::goby::middleware::frontseat::protobuf::DesiredCourse* DesiredSetpoints::mutable_helm_course() {
810 ::goby::middleware::frontseat::protobuf::DesiredCourse* _msg = _internal_mutable_helm_course();
816inline bool DesiredSetpoints::_internal_has_remote_control()
const {
817 return setpoint_data_case() == kRemoteControl;
819inline bool DesiredSetpoints::has_remote_control()
const {
820 return _internal_has_remote_control();
822inline void DesiredSetpoints::set_has_remote_control() {
823 _impl_._oneof_case_[0] = kRemoteControl;
825inline void DesiredSetpoints::clear_remote_control() {
826 if (_internal_has_remote_control()) {
827 if (GetArenaForAllocation() ==
nullptr) {
828 delete _impl_.setpoint_data_.remote_control_;
830 clear_has_setpoint_data();
833inline ::jaiabot::protobuf::RemoteControl* DesiredSetpoints::release_remote_control() {
835 if (_internal_has_remote_control()) {
836 clear_has_setpoint_data();
838 if (GetArenaForAllocation() !=
nullptr) {
839 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
841 _impl_.setpoint_data_.remote_control_ =
nullptr;
847inline const ::jaiabot::protobuf::RemoteControl& DesiredSetpoints::_internal_remote_control()
const {
848 return _internal_has_remote_control()
849 ? *_impl_.setpoint_data_.remote_control_
852inline const ::jaiabot::protobuf::RemoteControl& DesiredSetpoints::remote_control()
const {
854 return _internal_remote_control();
856inline ::jaiabot::protobuf::RemoteControl* DesiredSetpoints::unsafe_arena_release_remote_control() {
858 if (_internal_has_remote_control()) {
859 clear_has_setpoint_data();
861 _impl_.setpoint_data_.remote_control_ =
nullptr;
868 clear_setpoint_data();
869 if (remote_control) {
870 set_has_remote_control();
871 _impl_.setpoint_data_.remote_control_ = remote_control;
875inline ::jaiabot::protobuf::RemoteControl* DesiredSetpoints::_internal_mutable_remote_control() {
876 if (!_internal_has_remote_control()) {
877 clear_setpoint_data();
878 set_has_remote_control();
879 _impl_.setpoint_data_.remote_control_ = CreateMaybeMessage< ::jaiabot::protobuf::RemoteControl >(GetArenaForAllocation());
881 return _impl_.setpoint_data_.remote_control_;
883inline ::jaiabot::protobuf::RemoteControl* DesiredSetpoints::mutable_remote_control() {
890inline bool DesiredSetpoints::_internal_has_dive_depth()
const {
891 return setpoint_data_case() == kDiveDepth;
893inline bool DesiredSetpoints::has_dive_depth()
const {
894 return _internal_has_dive_depth();
896inline void DesiredSetpoints::set_has_dive_depth() {
897 _impl_._oneof_case_[0] = kDiveDepth;
899inline void DesiredSetpoints::clear_dive_depth() {
900 if (_internal_has_dive_depth()) {
901 _impl_.setpoint_data_.dive_depth_ = 0;
902 clear_has_setpoint_data();
905inline double DesiredSetpoints::_internal_dive_depth()
const {
906 if (_internal_has_dive_depth()) {
907 return _impl_.setpoint_data_.dive_depth_;
911inline void DesiredSetpoints::_internal_set_dive_depth(
double value) {
912 if (!_internal_has_dive_depth()) {
913 clear_setpoint_data();
914 set_has_dive_depth();
916 _impl_.setpoint_data_.dive_depth_ = value;
918inline double DesiredSetpoints::dive_depth()
const {
920 return _internal_dive_depth();
922inline void DesiredSetpoints::set_dive_depth(
double value) {
923 _internal_set_dive_depth(value);
928inline bool DesiredSetpoints::_internal_has_throttle()
const {
929 return setpoint_data_case() == kThrottle;
931inline bool DesiredSetpoints::has_throttle()
const {
932 return _internal_has_throttle();
934inline void DesiredSetpoints::set_has_throttle() {
935 _impl_._oneof_case_[0] = kThrottle;
937inline void DesiredSetpoints::clear_throttle() {
938 if (_internal_has_throttle()) {
939 _impl_.setpoint_data_.throttle_ = 0;
940 clear_has_setpoint_data();
943inline double DesiredSetpoints::_internal_throttle()
const {
944 if (_internal_has_throttle()) {
945 return _impl_.setpoint_data_.throttle_;
949inline void DesiredSetpoints::_internal_set_throttle(
double value) {
950 if (!_internal_has_throttle()) {
951 clear_setpoint_data();
954 _impl_.setpoint_data_.throttle_ = value;
956inline double DesiredSetpoints::throttle()
const {
958 return _internal_throttle();
960inline void DesiredSetpoints::set_throttle(
double value) {
961 _internal_set_throttle(value);
966inline bool DesiredSetpoints::_internal_has_is_helm_constant_course()
const {
967 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
970inline bool DesiredSetpoints::has_is_helm_constant_course()
const {
971 return _internal_has_is_helm_constant_course();
973inline void DesiredSetpoints::clear_is_helm_constant_course() {
974 _impl_.is_helm_constant_course_ =
false;
975 _impl_._has_bits_[0] &= ~0x00000002u;
977inline bool DesiredSetpoints::_internal_is_helm_constant_course()
const {
978 return _impl_.is_helm_constant_course_;
980inline bool DesiredSetpoints::is_helm_constant_course()
const {
982 return _internal_is_helm_constant_course();
984inline void DesiredSetpoints::_internal_set_is_helm_constant_course(
bool value) {
985 _impl_._has_bits_[0] |= 0x00000002u;
986 _impl_.is_helm_constant_course_ = value;
988inline void DesiredSetpoints::set_is_helm_constant_course(
bool value) {
989 _internal_set_is_helm_constant_course(value);
993inline bool DesiredSetpoints::has_setpoint_data()
const {
994 return setpoint_data_case() != SETPOINT_DATA_NOT_SET;
996inline void DesiredSetpoints::clear_has_setpoint_data() {
997 _impl_._oneof_case_[0] = SETPOINT_DATA_NOT_SET;
1003 #pragma GCC diagnostic pop
1013PROTOBUF_NAMESPACE_OPEN
1018 return ::jaiabot::protobuf::SetpointType_descriptor();
1021PROTOBUF_NAMESPACE_CLOSE
1025#include <google/protobuf/port_undef.inc>
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
DesiredSetpoints(const DesiredSetpoints &from)
void set_dive_depth_with_units(Quantity value_w_units)
void set_allocated_remote_control(::jaiabot::protobuf::RemoteControl *remote_control)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
static const DesiredSetpoints & default_instance()
~DesiredSetpoints() override
void MergeFrom(const DesiredSetpoints &from)
boost::units::length_dimension dive_depth_dimension
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
DesiredSetpoints & operator=(const DesiredSetpoints &from)
DesiredSetpoints(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
DesiredSetpoints(DesiredSetpoints &&from) noexcept
void UnsafeArenaSwap(DesiredSetpoints *other)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void CopyFrom(const DesiredSetpoints &from)
static const DesiredSetpoints * internal_default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void Swap(DesiredSetpoints *other)
boost::units::unit< dive_depth_dimension, boost::units::si::system > dive_depth_unit
Quantity dive_depth_with_units() const
void set_allocated_helm_course(::goby::middleware::frontseat::protobuf::DesiredCourse *helm_course)
void clear_setpoint_data()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
friend void swap(DesiredSetpoints &a, DesiredSetpoints &b)
PROTOBUF_CONSTEXPR DesiredSetpoints(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
DesiredSetpoints * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
boost::units::quantity< dive_depth_unit, double > dive_depth_with_units() const
DesiredSetpoints & operator=(DesiredSetpoints &&from) noexcept
static const ClassData _class_data_
void set_speed_with_units(Quantity value_w_units)
boost::units::quantity< speed_unit, double > speed_with_units() const
void UnsafeArenaSwap(RemoteControl *other)
static const RemoteControl & default_instance()
boost::units::unit< speed_dimension, boost::units::si::system > speed_unit
PROTOBUF_CONSTEXPR RemoteControl(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
Quantity speed_with_units() const
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
int GetCachedSize() const final
~RemoteControl() override
RemoteControl(const RemoteControl &from)
void MergeFrom(const RemoteControl &from)
void set_heading_with_units(Quantity value_w_units)
void set_duration(int32_t value)
static const ClassData _class_data_
void Swap(RemoteControl *other)
RemoteControl(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
RemoteControl & operator=(const RemoteControl &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void set_duration_with_units(Quantity value_w_units)
bool IsInitialized() const final
RemoteControl * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
boost::units::quantity< heading_unit, double > heading_with_units() const
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
boost::units::unit< duration_dimension, boost::units::si::system > duration_unit
void CopyFrom(const RemoteControl &from)
boost::units::quantity< duration_unit, google::protobuf::int32 > duration_with_units() const
boost::mpl::divides< boost::units::length_dimension, boost::units::time_dimension >::type speed_dimension
boost::units::plane_angle_dimension heading_dimension
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
size_t ByteSizeLong() const final
boost::units::unit< heading_dimension, boost::units::degree::system > heading_unit
Quantity duration_with_units() const
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
RemoteControl & operator=(RemoteControl &&from) noexcept
static const RemoteControl * internal_default_instance()
bool has_duration() const
RemoteControl(RemoteControl &&from) noexcept
void set_speed(double value)
void set_heading(double value)
static constexpr int kIndexInFileMessages
boost::units::time_dimension duration_dimension
Quantity heading_with_units() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
friend void swap(RemoteControl &a, RemoteControl &b)
const EnumDescriptor * GetEnumDescriptor< ::jaiabot::protobuf::SetpointType >()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fhigh_5fcontrol_2eproto
DesiredSetpointsDefaultTypeInternal _DesiredSetpoints_default_instance_
bool SetpointType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SetpointType *value)
RemoteControlDefaultTypeInternal _RemoteControl_default_instance_
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * SetpointType_descriptor()
constexpr int SetpointType_ARRAYSIZE
constexpr SetpointType SetpointType_MIN
bool SetpointType_IsValid(int value)
const std::string & SetpointType_Name(T enum_t_value)
constexpr SetpointType SetpointType_MAX
@ SETPOINT_POWERED_ASCENT
@ SETPOINT_REMOTE_CONTROL
static const uint32_t offsets[]
::goby::middleware::frontseat::protobuf::DesiredCourse * helm_course_
constexpr SetpointDataUnion()
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_
::jaiabot::protobuf::RemoteControl * remote_control_