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
101 static_assert(::std::is_same<T, SetpointType>::value ||
102 ::std::is_integral<T>::value,
103 "Incorrect type passed to function SetpointType_Name.");
104 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
109 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<SetpointType>(
114 class RemoteControl PROTOBUF_FINAL :
115 public ::PROTOBUF_NAMESPACE_ID::Message {
123 *
this = ::std::move(from);
126 inline RemoteControl&
operator=(
const RemoteControl& from) {
130 inline RemoteControl&
operator=(RemoteControl&& from) noexcept {
131 if (GetArena() == from.GetArena()) {
132 if (
this != &from) InternalSwap(&from);
140 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
143 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
146 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
147 return GetDescriptor();
150 return GetMetadataStatic().descriptor;
153 return GetMetadataStatic().reflection;
159 return reinterpret_cast<const RemoteControl*
>(
162 static constexpr
int kIndexInFileMessages =
165 friend void swap(RemoteControl& a, RemoteControl& b) {
168 inline void Swap(RemoteControl* other) {
169 if (other ==
this)
return;
170 if (GetArena() == other->GetArena()) {
173 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
177 if (other ==
this)
return;
178 GOOGLE_DCHECK(GetArena() == other->GetArena());
184 inline RemoteControl*
New() const final {
185 return CreateMaybeMessage<RemoteControl>(
nullptr);
188 RemoteControl*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
189 return CreateMaybeMessage<RemoteControl>(arena);
191 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
192 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
195 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
196 bool IsInitialized() const final;
198 size_t ByteSizeLong() const final;
199 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
200 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
201 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
202 int GetCachedSize() const final {
return _cached_size_.Get(); }
205 inline void SharedCtor();
206 inline void SharedDtor();
207 void SetCachedSize(
int size)
const final;
208 void InternalSwap(RemoteControl* other);
209 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
210 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
211 return "jaiabot.protobuf.RemoteControl";
216 static void ArenaDtor(
void*
object);
217 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
222 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
234 kDurationFieldNumber = 1,
235 kHeadingFieldNumber = 10,
236 kSpeedFieldNumber = 11,
241 bool _internal_has_duration()
const;
247 ::PROTOBUF_NAMESPACE_ID::int32 _internal_duration()
const;
248 void _internal_set_duration(::PROTOBUF_NAMESPACE_ID::int32 value);
254 bool _internal_has_heading()
const;
260 double _internal_heading()
const;
261 void _internal_set_heading(
double value);
267 bool _internal_has_speed()
const;
273 double _internal_speed()
const;
274 void _internal_set_speed(
double value);
279 typedef boost::units::unit<duration_dimension,boost::units::si::system>
duration_unit;
281 template<
typename Quantity >
283 { set_duration(boost::units::quantity<duration_unit,google::protobuf::int32 >(value_w_units).value() ); };
285 template<
typename Quantity >
290 {
return duration_with_units<boost::units::quantity< duration_unit,google::protobuf::int32 > >(); };
294 typedef boost::units::unit<heading_dimension,boost::units::degree::system>
heading_unit;
296 template<
typename Quantity >
298 { set_heading(boost::units::quantity<heading_unit,double >(value_w_units).value() ); };
300 template<
typename Quantity >
305 {
return heading_with_units<boost::units::quantity< heading_unit,double > >(); };
307 typedef boost::mpl::divides<boost::units::length_dimension,boost::units::time_dimension>::type
speed_dimension;
309 typedef boost::units::unit<speed_dimension,boost::units::si::system>
speed_unit;
311 template<
typename Quantity >
313 { set_speed(boost::units::quantity<speed_unit,double >(value_w_units).value() ); };
315 template<
typename Quantity >
320 {
return speed_with_units<boost::units::quantity< speed_unit,double > >(); };
326 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
327 typedef void InternalArenaConstructable_;
328 typedef void DestructorSkippable_;
329 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
330 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
331 ::PROTOBUF_NAMESPACE_ID::int32 duration_;
334 friend struct ::TableStruct_jaiabot_2fmessages_2fhigh_5fcontrol_2eproto;
339 public ::PROTOBUF_NAMESPACE_ID::Message {
346 : DesiredSetpoints() {
347 *
this = ::std::move(from);
350 inline DesiredSetpoints&
operator=(
const DesiredSetpoints& from) {
354 inline DesiredSetpoints&
operator=(DesiredSetpoints&& from) noexcept {
355 if (GetArena() == from.GetArena()) {
356 if (
this != &from) InternalSwap(&from);
364 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
367 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
370 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
371 return GetDescriptor();
374 return GetMetadataStatic().descriptor;
377 return GetMetadataStatic().reflection;
386 SETPOINT_DATA_NOT_SET = 0,
391 return reinterpret_cast<const DesiredSetpoints*
>(
394 static constexpr
int kIndexInFileMessages =
397 friend void swap(DesiredSetpoints& a, DesiredSetpoints& b) {
400 inline void Swap(DesiredSetpoints* other) {
401 if (other ==
this)
return;
402 if (GetArena() == other->GetArena()) {
405 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
409 if (other ==
this)
return;
410 GOOGLE_DCHECK(GetArena() == other->GetArena());
416 inline DesiredSetpoints*
New() const final {
417 return CreateMaybeMessage<DesiredSetpoints>(
nullptr);
420 DesiredSetpoints*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
421 return CreateMaybeMessage<DesiredSetpoints>(arena);
423 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
424 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
427 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
428 bool IsInitialized() const final;
430 size_t ByteSizeLong() const final;
431 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
432 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
433 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
434 int GetCachedSize() const final {
return _cached_size_.Get(); }
437 inline void SharedCtor();
438 inline void SharedDtor();
439 void SetCachedSize(
int size)
const final;
440 void InternalSwap(DesiredSetpoints* other);
441 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
442 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
443 return "jaiabot.protobuf.DesiredSetpoints";
448 static void ArenaDtor(
void*
object);
449 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
454 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
466 kTypeFieldNumber = 1,
467 kIsHelmConstantCourseFieldNumber = 2,
468 kHelmCourseFieldNumber = 10,
469 kRemoteControlFieldNumber = 11,
470 kDiveDepthFieldNumber = 12,
471 kThrottleFieldNumber = 13,
476 bool _internal_has_type()
const;
489 bool _internal_has_is_helm_constant_course()
const;
495 bool _internal_is_helm_constant_course()
const;
496 void _internal_set_is_helm_constant_course(
bool value);
502 bool _internal_has_helm_course()
const;
505 const ::goby::middleware::frontseat::protobuf::DesiredCourse&
helm_course()
const;
510 const ::goby::middleware::frontseat::protobuf::DesiredCourse& _internal_helm_course()
const;
511 ::goby::middleware::frontseat::protobuf::DesiredCourse* _internal_mutable_helm_course();
514 ::goby::middleware::frontseat::protobuf::DesiredCourse* helm_course);
520 bool _internal_has_remote_control()
const;
528 const ::jaiabot::protobuf::RemoteControl& _internal_remote_control()
const;
529 ::jaiabot::protobuf::RemoteControl* _internal_mutable_remote_control();
532 ::jaiabot::protobuf::RemoteControl* remote_control);
538 bool _internal_has_dive_depth()
const;
544 double _internal_dive_depth()
const;
545 void _internal_set_dive_depth(
double value);
551 bool _internal_has_throttle()
const;
557 double _internal_throttle()
const;
558 void _internal_set_throttle(
double value);
565 typedef boost::units::unit<dive_depth_dimension,boost::units::si::system>
dive_depth_unit;
567 template<
typename Quantity >
569 { set_dive_depth(boost::units::quantity<dive_depth_unit,double >(value_w_units).value() ); };
571 template<
typename Quantity >
576 {
return dive_depth_with_units<boost::units::quantity< dive_depth_unit,double > >(); };
581 void set_has_helm_course();
582 void set_has_remote_control();
583 void set_has_dive_depth();
584 void set_has_throttle();
586 inline bool has_setpoint_data()
const;
587 inline void clear_has_setpoint_data();
589 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
590 typedef void InternalArenaConstructable_;
591 typedef void DestructorSkippable_;
592 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
593 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
595 bool is_helm_constant_course_;
596 union SetpointDataUnion {
597 SetpointDataUnion() {}
598 ::goby::middleware::frontseat::protobuf::DesiredCourse* helm_course_;
599 ::jaiabot::protobuf::RemoteControl* remote_control_;
603 ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
605 friend struct ::TableStruct_jaiabot_2fmessages_2fhigh_5fcontrol_2eproto;
613 #pragma GCC diagnostic push
614 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
619 inline bool RemoteControl::_internal_has_duration()
const {
620 bool value = (_has_bits_[0] & 0x00000001u) != 0;
623 inline bool RemoteControl::has_duration()
const {
624 return _internal_has_duration();
626 inline void RemoteControl::clear_duration() {
628 _has_bits_[0] &= ~0x00000001u;
630 inline ::PROTOBUF_NAMESPACE_ID::int32 RemoteControl::_internal_duration()
const {
633 inline ::PROTOBUF_NAMESPACE_ID::int32 RemoteControl::duration()
const {
635 return _internal_duration();
637 inline void RemoteControl::_internal_set_duration(::PROTOBUF_NAMESPACE_ID::int32 value) {
638 _has_bits_[0] |= 0x00000001u;
641 inline void RemoteControl::set_duration(::PROTOBUF_NAMESPACE_ID::int32 value) {
642 _internal_set_duration(value);
647 inline bool RemoteControl::_internal_has_heading()
const {
648 bool value = (_has_bits_[0] & 0x00000002u) != 0;
651 inline bool RemoteControl::has_heading()
const {
652 return _internal_has_heading();
654 inline void RemoteControl::clear_heading() {
656 _has_bits_[0] &= ~0x00000002u;
658 inline double RemoteControl::_internal_heading()
const {
661 inline double RemoteControl::heading()
const {
663 return _internal_heading();
665 inline void RemoteControl::_internal_set_heading(
double value) {
666 _has_bits_[0] |= 0x00000002u;
669 inline void RemoteControl::set_heading(
double value) {
670 _internal_set_heading(value);
675 inline bool RemoteControl::_internal_has_speed()
const {
676 bool value = (_has_bits_[0] & 0x00000004u) != 0;
679 inline bool RemoteControl::has_speed()
const {
680 return _internal_has_speed();
682 inline void RemoteControl::clear_speed() {
684 _has_bits_[0] &= ~0x00000004u;
686 inline double RemoteControl::_internal_speed()
const {
689 inline double RemoteControl::speed()
const {
691 return _internal_speed();
693 inline void RemoteControl::_internal_set_speed(
double value) {
694 _has_bits_[0] |= 0x00000004u;
697 inline void RemoteControl::set_speed(
double value) {
698 _internal_set_speed(value);
707 inline bool DesiredSetpoints::_internal_has_type()
const {
708 bool value = (_has_bits_[0] & 0x00000001u) != 0;
711 inline bool DesiredSetpoints::has_type()
const {
712 return _internal_has_type();
714 inline void DesiredSetpoints::clear_type() {
716 _has_bits_[0] &= ~0x00000001u;
723 return _internal_type();
727 _has_bits_[0] |= 0x00000001u;
731 _internal_set_type(value);
736 inline bool DesiredSetpoints::_internal_has_helm_course()
const {
737 return setpoint_data_case() == kHelmCourse;
739 inline bool DesiredSetpoints::has_helm_course()
const {
740 return _internal_has_helm_course();
742 inline void DesiredSetpoints::set_has_helm_course() {
743 _oneof_case_[0] = kHelmCourse;
745 inline ::goby::middleware::frontseat::protobuf::DesiredCourse* DesiredSetpoints::release_helm_course() {
747 if (_internal_has_helm_course()) {
748 clear_has_setpoint_data();
749 ::goby::middleware::frontseat::protobuf::DesiredCourse* temp = setpoint_data_.helm_course_;
750 if (GetArena() !=
nullptr) {
751 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
753 setpoint_data_.helm_course_ =
nullptr;
759 inline const ::goby::middleware::frontseat::protobuf::DesiredCourse& DesiredSetpoints::_internal_helm_course()
const {
760 return _internal_has_helm_course()
761 ? *setpoint_data_.helm_course_
762 : *
reinterpret_cast< ::goby::middleware::frontseat::protobuf::DesiredCourse*
>(&::goby::middleware::frontseat::protobuf::_DesiredCourse_default_instance_);
764 inline const ::goby::middleware::frontseat::protobuf::DesiredCourse& DesiredSetpoints::helm_course()
const {
766 return _internal_helm_course();
768 inline ::goby::middleware::frontseat::protobuf::DesiredCourse* DesiredSetpoints::unsafe_arena_release_helm_course() {
770 if (_internal_has_helm_course()) {
771 clear_has_setpoint_data();
772 ::goby::middleware::frontseat::protobuf::DesiredCourse* temp = setpoint_data_.helm_course_;
773 setpoint_data_.helm_course_ =
nullptr;
779 inline void DesiredSetpoints::unsafe_arena_set_allocated_helm_course(::goby::middleware::frontseat::protobuf::DesiredCourse* helm_course) {
780 clear_setpoint_data();
782 set_has_helm_course();
783 setpoint_data_.helm_course_ = helm_course;
787 inline ::goby::middleware::frontseat::protobuf::DesiredCourse* DesiredSetpoints::_internal_mutable_helm_course() {
788 if (!_internal_has_helm_course()) {
789 clear_setpoint_data();
790 set_has_helm_course();
791 setpoint_data_.helm_course_ = CreateMaybeMessage< ::goby::middleware::frontseat::protobuf::DesiredCourse >(GetArena());
793 return setpoint_data_.helm_course_;
795 inline ::goby::middleware::frontseat::protobuf::DesiredCourse* DesiredSetpoints::mutable_helm_course() {
797 return _internal_mutable_helm_course();
801 inline bool DesiredSetpoints::_internal_has_remote_control()
const {
802 return setpoint_data_case() == kRemoteControl;
804 inline bool DesiredSetpoints::has_remote_control()
const {
805 return _internal_has_remote_control();
807 inline void DesiredSetpoints::set_has_remote_control() {
808 _oneof_case_[0] = kRemoteControl;
810 inline void DesiredSetpoints::clear_remote_control() {
811 if (_internal_has_remote_control()) {
812 if (GetArena() ==
nullptr) {
813 delete setpoint_data_.remote_control_;
815 clear_has_setpoint_data();
818 inline ::jaiabot::protobuf::RemoteControl* DesiredSetpoints::release_remote_control() {
820 if (_internal_has_remote_control()) {
821 clear_has_setpoint_data();
822 ::jaiabot::protobuf::RemoteControl* temp = setpoint_data_.remote_control_;
823 if (GetArena() !=
nullptr) {
824 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
826 setpoint_data_.remote_control_ =
nullptr;
832 inline const ::jaiabot::protobuf::RemoteControl& DesiredSetpoints::_internal_remote_control()
const {
833 return _internal_has_remote_control()
834 ? *setpoint_data_.remote_control_
837 inline const ::jaiabot::protobuf::RemoteControl& DesiredSetpoints::remote_control()
const {
839 return _internal_remote_control();
841 inline ::jaiabot::protobuf::RemoteControl* DesiredSetpoints::unsafe_arena_release_remote_control() {
843 if (_internal_has_remote_control()) {
844 clear_has_setpoint_data();
845 ::jaiabot::protobuf::RemoteControl* temp = setpoint_data_.remote_control_;
846 setpoint_data_.remote_control_ =
nullptr;
852 inline void DesiredSetpoints::unsafe_arena_set_allocated_remote_control(::jaiabot::protobuf::RemoteControl* remote_control) {
853 clear_setpoint_data();
854 if (remote_control) {
855 set_has_remote_control();
856 setpoint_data_.remote_control_ = remote_control;
860 inline ::jaiabot::protobuf::RemoteControl* DesiredSetpoints::_internal_mutable_remote_control() {
861 if (!_internal_has_remote_control()) {
862 clear_setpoint_data();
863 set_has_remote_control();
864 setpoint_data_.remote_control_ = CreateMaybeMessage< ::jaiabot::protobuf::RemoteControl >(GetArena());
866 return setpoint_data_.remote_control_;
868 inline ::jaiabot::protobuf::RemoteControl* DesiredSetpoints::mutable_remote_control() {
870 return _internal_mutable_remote_control();
874 inline bool DesiredSetpoints::_internal_has_dive_depth()
const {
875 return setpoint_data_case() == kDiveDepth;
877 inline bool DesiredSetpoints::has_dive_depth()
const {
878 return _internal_has_dive_depth();
880 inline void DesiredSetpoints::set_has_dive_depth() {
881 _oneof_case_[0] = kDiveDepth;
883 inline void DesiredSetpoints::clear_dive_depth() {
884 if (_internal_has_dive_depth()) {
885 setpoint_data_.dive_depth_ = 0;
886 clear_has_setpoint_data();
889 inline double DesiredSetpoints::_internal_dive_depth()
const {
890 if (_internal_has_dive_depth()) {
891 return setpoint_data_.dive_depth_;
895 inline void DesiredSetpoints::_internal_set_dive_depth(
double value) {
896 if (!_internal_has_dive_depth()) {
897 clear_setpoint_data();
898 set_has_dive_depth();
900 setpoint_data_.dive_depth_ = value;
902 inline double DesiredSetpoints::dive_depth()
const {
904 return _internal_dive_depth();
906 inline void DesiredSetpoints::set_dive_depth(
double value) {
907 _internal_set_dive_depth(value);
912 inline bool DesiredSetpoints::_internal_has_throttle()
const {
913 return setpoint_data_case() == kThrottle;
915 inline bool DesiredSetpoints::has_throttle()
const {
916 return _internal_has_throttle();
918 inline void DesiredSetpoints::set_has_throttle() {
919 _oneof_case_[0] = kThrottle;
921 inline void DesiredSetpoints::clear_throttle() {
922 if (_internal_has_throttle()) {
923 setpoint_data_.throttle_ = 0;
924 clear_has_setpoint_data();
927 inline double DesiredSetpoints::_internal_throttle()
const {
928 if (_internal_has_throttle()) {
929 return setpoint_data_.throttle_;
933 inline void DesiredSetpoints::_internal_set_throttle(
double value) {
934 if (!_internal_has_throttle()) {
935 clear_setpoint_data();
938 setpoint_data_.throttle_ = value;
940 inline double DesiredSetpoints::throttle()
const {
942 return _internal_throttle();
944 inline void DesiredSetpoints::set_throttle(
double value) {
945 _internal_set_throttle(value);
950 inline bool DesiredSetpoints::_internal_has_is_helm_constant_course()
const {
951 bool value = (_has_bits_[0] & 0x00000002u) != 0;
954 inline bool DesiredSetpoints::has_is_helm_constant_course()
const {
955 return _internal_has_is_helm_constant_course();
957 inline void DesiredSetpoints::clear_is_helm_constant_course() {
958 is_helm_constant_course_ =
false;
959 _has_bits_[0] &= ~0x00000002u;
961 inline bool DesiredSetpoints::_internal_is_helm_constant_course()
const {
962 return is_helm_constant_course_;
964 inline bool DesiredSetpoints::is_helm_constant_course()
const {
966 return _internal_is_helm_constant_course();
968 inline void DesiredSetpoints::_internal_set_is_helm_constant_course(
bool value) {
969 _has_bits_[0] |= 0x00000002u;
970 is_helm_constant_course_ = value;
972 inline void DesiredSetpoints::set_is_helm_constant_course(
bool value) {
973 _internal_set_is_helm_constant_course(value);
977 inline bool DesiredSetpoints::has_setpoint_data()
const {
978 return setpoint_data_case() != SETPOINT_DATA_NOT_SET;
980 inline void DesiredSetpoints::clear_has_setpoint_data() {
981 _oneof_case_[0] = SETPOINT_DATA_NOT_SET;
983 inline DesiredSetpoints::SetpointDataCase DesiredSetpoints::setpoint_data_case()
const {
984 return DesiredSetpoints::SetpointDataCase(_oneof_case_[0]);
987 #pragma GCC diagnostic pop
997 PROTOBUF_NAMESPACE_OPEN
1001 inline const EnumDescriptor* GetEnumDescriptor< ::jaiabot::protobuf::SetpointType>() {
1005 PROTOBUF_NAMESPACE_CLOSE
1009 #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)