|
@@ -223,6 +223,28 @@ struct NavResponseDefaultTypeInternal {
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NavResponseDefaultTypeInternal _NavResponse_default_instance_;
|
|
|
template <typename>
|
|
|
+PROTOBUF_CONSTEXPR ManualCmd::ManualCmd(
|
|
|
+ ::_pbi::ConstantInitialized): _impl_{
|
|
|
+ /*decltype(_impl_.key_)*/ {
|
|
|
+ &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
|
|
|
+ }
|
|
|
+
|
|
|
+ , /*decltype(_impl_.operation_type_)*/ 0
|
|
|
+
|
|
|
+ , /*decltype(_impl_.velocity_)*/ 0
|
|
|
+
|
|
|
+ , /*decltype(_impl_._cached_size_)*/{}} {}
|
|
|
+struct ManualCmdDefaultTypeInternal {
|
|
|
+ PROTOBUF_CONSTEXPR ManualCmdDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
|
+ ~ManualCmdDefaultTypeInternal() {}
|
|
|
+ union {
|
|
|
+ ManualCmd _instance;
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
|
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ManualCmdDefaultTypeInternal _ManualCmd_default_instance_;
|
|
|
+template <typename>
|
|
|
PROTOBUF_CONSTEXPR NavStatu::NavStatu(
|
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
|
/*decltype(_impl_._has_bits_)*/{}
|
|
@@ -279,7 +301,7 @@ struct RobotStatuDefaultTypeInternal {
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RobotStatuDefaultTypeInternal _RobotStatu_default_instance_;
|
|
|
} // namespace NavMessage
|
|
|
-static ::_pb::Metadata file_level_metadata_message_2eproto[11];
|
|
|
+static ::_pb::Metadata file_level_metadata_message_2eproto[12];
|
|
|
static constexpr const ::_pb::EnumDescriptor**
|
|
|
file_level_enum_descriptors_message_2eproto = nullptr;
|
|
|
static constexpr const ::_pb::ServiceDescriptor**
|
|
@@ -403,6 +425,17 @@ const ::uint32_t TableStruct_message_2eproto::offsets[] PROTOBUF_SECTION_VARIABL
|
|
|
~0u, // no sizeof(Split)
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::NavResponse, _impl_.ret_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::NavResponse, _impl_.info_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ PROTOBUF_FIELD_OFFSET(::NavMessage::ManualCmd, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ ~0u, // no _inlined_string_donated_
|
|
|
+ ~0u, // no _split_
|
|
|
+ ~0u, // no sizeof(Split)
|
|
|
+ PROTOBUF_FIELD_OFFSET(::NavMessage::ManualCmd, _impl_.key_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::NavMessage::ManualCmd, _impl_.operation_type_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::NavMessage::ManualCmd, _impl_.velocity_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_._has_bits_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _internal_metadata_),
|
|
|
~0u, // no _extensions_
|
|
@@ -458,8 +491,9 @@ static const ::_pbi::MigrationSchema
|
|
|
{ 74, 89, -1, sizeof(::NavMessage::NewAction)},
|
|
|
{ 96, -1, -1, sizeof(::NavMessage::NavCmd)},
|
|
|
{ 107, -1, -1, sizeof(::NavMessage::NavResponse)},
|
|
|
- { 117, 134, -1, sizeof(::NavMessage::NavStatu)},
|
|
|
- { 143, 155, -1, sizeof(::NavMessage::RobotStatu)},
|
|
|
+ { 117, -1, -1, sizeof(::NavMessage::ManualCmd)},
|
|
|
+ { 128, 145, -1, sizeof(::NavMessage::NavStatu)},
|
|
|
+ { 154, 166, -1, sizeof(::NavMessage::RobotStatu)},
|
|
|
};
|
|
|
|
|
|
static const ::_pb::Message* const file_default_instances[] = {
|
|
@@ -472,6 +506,7 @@ static const ::_pb::Message* const file_default_instances[] = {
|
|
|
&::NavMessage::_NewAction_default_instance_._instance,
|
|
|
&::NavMessage::_NavCmd_default_instance_._instance,
|
|
|
&::NavMessage::_NavResponse_default_instance_._instance,
|
|
|
+ &::NavMessage::_ManualCmd_default_instance_._instance,
|
|
|
&::NavMessage::_NavStatu_default_instance_._instance,
|
|
|
&::NavMessage::_RobotStatu_default_instance_._instance,
|
|
|
};
|
|
@@ -496,30 +531,34 @@ const char descriptor_table_protodef_message_2eproto[] PROTOBUF_SECTION_VARIABLE
|
|
|
"\n\006NavCmd\022\016\n\006action\030\001 \001(\005\022\013\n\003key\030\002 \001(\t\022)\n"
|
|
|
"\nnewActions\030\005 \003(\0132\025.NavMessage.NewAction"
|
|
|
"\"(\n\013NavResponse\022\013\n\003ret\030\001 \001(\005\022\014\n\004info\030\002 \001"
|
|
|
- "(\t\"\366\001\n\010NavStatu\022\r\n\005statu\030\001 \001(\005\022\020\n\010main_a"
|
|
|
- "gv\030\002 \001(\010\022\021\n\tmove_mode\030\003 \001(\005\022(\n\004odom\030\004 \001("
|
|
|
- "\0132\032.NavMessage.LidarOdomStatu\022\013\n\003key\030\005 \001"
|
|
|
- "(\t\022-\n\rselected_traj\030\006 \001(\0132\026.NavMessage.T"
|
|
|
- "rajectory\022,\n\014predict_traj\030\007 \001(\0132\026.NavMes"
|
|
|
- "sage.Trajectory\022\020\n\010in_space\030\010 \001(\010\022\020\n\010spa"
|
|
|
- "ce_id\030\t \001(\t\"Y\n\nRobotStatu\022\t\n\001x\030\001 \001(\002\022\t\n\001"
|
|
|
- "y\030\002 \001(\002\022\r\n\005theta\030\003 \001(\002\022&\n\010agvStatu\030\004 \001(\013"
|
|
|
- "2\024.NavMessage.AgvStatu2}\n\nNavExcutor\0226\n\005"
|
|
|
- "Start\022\022.NavMessage.NavCmd\032\027.NavMessage.N"
|
|
|
- "avResponse\"\000\0227\n\006Cancel\022\022.NavMessage.NavC"
|
|
|
- "md\032\027.NavMessage.NavResponse\"\000b\006proto3"
|
|
|
+ "(\t\"B\n\tManualCmd\022\013\n\003key\030\001 \001(\t\022\026\n\016operatio"
|
|
|
+ "n_type\030\002 \001(\005\022\020\n\010velocity\030\003 \001(\002\"\366\001\n\010NavSt"
|
|
|
+ "atu\022\r\n\005statu\030\001 \001(\005\022\020\n\010main_agv\030\002 \001(\010\022\021\n\t"
|
|
|
+ "move_mode\030\003 \001(\005\022(\n\004odom\030\004 \001(\0132\032.NavMessa"
|
|
|
+ "ge.LidarOdomStatu\022\013\n\003key\030\005 \001(\t\022-\n\rselect"
|
|
|
+ "ed_traj\030\006 \001(\0132\026.NavMessage.Trajectory\022,\n"
|
|
|
+ "\014predict_traj\030\007 \001(\0132\026.NavMessage.Traject"
|
|
|
+ "ory\022\020\n\010in_space\030\010 \001(\010\022\020\n\010space_id\030\t \001(\t\""
|
|
|
+ "Y\n\nRobotStatu\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\r\n\005t"
|
|
|
+ "heta\030\003 \001(\002\022&\n\010agvStatu\030\004 \001(\0132\024.NavMessag"
|
|
|
+ "e.AgvStatu2\302\001\n\nNavExcutor\0226\n\005Start\022\022.Nav"
|
|
|
+ "Message.NavCmd\032\027.NavMessage.NavResponse\""
|
|
|
+ "\000\0227\n\006Cancel\022\022.NavMessage.NavCmd\032\027.NavMes"
|
|
|
+ "sage.NavResponse\"\000\022C\n\017ManualOperation\022\025."
|
|
|
+ "NavMessage.ManualCmd\032\027.NavMessage.NavRes"
|
|
|
+ "ponse\"\000b\006proto3"
|
|
|
};
|
|
|
static ::absl::once_flag descriptor_table_message_2eproto_once;
|
|
|
const ::_pbi::DescriptorTable descriptor_table_message_2eproto = {
|
|
|
false,
|
|
|
false,
|
|
|
- 1277,
|
|
|
+ 1415,
|
|
|
descriptor_table_protodef_message_2eproto,
|
|
|
"message.proto",
|
|
|
&descriptor_table_message_2eproto_once,
|
|
|
nullptr,
|
|
|
0,
|
|
|
- 11,
|
|
|
+ 12,
|
|
|
schemas,
|
|
|
file_default_instances,
|
|
|
TableStruct_message_2eproto::offsets,
|
|
@@ -3345,6 +3384,283 @@ void NavResponse::InternalSwap(NavResponse* other) {
|
|
|
}
|
|
|
// ===================================================================
|
|
|
|
|
|
+class ManualCmd::_Internal {
|
|
|
+ public:
|
|
|
+};
|
|
|
+
|
|
|
+ManualCmd::ManualCmd(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
|
|
+ SharedCtor(arena);
|
|
|
+ // @@protoc_insertion_point(arena_constructor:NavMessage.ManualCmd)
|
|
|
+}
|
|
|
+ManualCmd::ManualCmd(const ManualCmd& from)
|
|
|
+ : ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
|
+ ManualCmd* const _this = this; (void)_this;
|
|
|
+ new (&_impl_) Impl_{
|
|
|
+ decltype(_impl_.key_) {}
|
|
|
+
|
|
|
+ , decltype(_impl_.operation_type_) {}
|
|
|
+
|
|
|
+ , decltype(_impl_.velocity_) {}
|
|
|
+
|
|
|
+ , /*decltype(_impl_._cached_size_)*/{}};
|
|
|
+
|
|
|
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
+ _impl_.key_.InitDefault();
|
|
|
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
+ _impl_.key_.Set("", GetArenaForAllocation());
|
|
|
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
+ if (!from._internal_key().empty()) {
|
|
|
+ _this->_impl_.key_.Set(from._internal_key(), _this->GetArenaForAllocation());
|
|
|
+ }
|
|
|
+ ::memcpy(&_impl_.operation_type_, &from._impl_.operation_type_,
|
|
|
+ static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.velocity_) -
|
|
|
+ reinterpret_cast<char*>(&_impl_.operation_type_)) + sizeof(_impl_.velocity_));
|
|
|
+ // @@protoc_insertion_point(copy_constructor:NavMessage.ManualCmd)
|
|
|
+}
|
|
|
+
|
|
|
+inline void ManualCmd::SharedCtor(::_pb::Arena* arena) {
|
|
|
+ (void)arena;
|
|
|
+ new (&_impl_) Impl_{
|
|
|
+ decltype(_impl_.key_) {}
|
|
|
+
|
|
|
+ , decltype(_impl_.operation_type_) { 0 }
|
|
|
+
|
|
|
+ , decltype(_impl_.velocity_) { 0 }
|
|
|
+
|
|
|
+ , /*decltype(_impl_._cached_size_)*/{}
|
|
|
+ };
|
|
|
+ _impl_.key_.InitDefault();
|
|
|
+ #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
+ _impl_.key_.Set("", GetArenaForAllocation());
|
|
|
+ #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
+}
|
|
|
+
|
|
|
+ManualCmd::~ManualCmd() {
|
|
|
+ // @@protoc_insertion_point(destructor:NavMessage.ManualCmd)
|
|
|
+ if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
|
|
+ (void)arena;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+inline void ManualCmd::SharedDtor() {
|
|
|
+ ABSL_DCHECK(GetArenaForAllocation() == nullptr);
|
|
|
+ _impl_.key_.Destroy();
|
|
|
+}
|
|
|
+
|
|
|
+void ManualCmd::SetCachedSize(int size) const {
|
|
|
+ _impl_._cached_size_.Set(size);
|
|
|
+}
|
|
|
+
|
|
|
+void ManualCmd::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:NavMessage.ManualCmd)
|
|
|
+ ::uint32_t cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ _impl_.key_.ClearToEmpty();
|
|
|
+ ::memset(&_impl_.operation_type_, 0, static_cast<::size_t>(
|
|
|
+ reinterpret_cast<char*>(&_impl_.velocity_) -
|
|
|
+ reinterpret_cast<char*>(&_impl_.operation_type_)) + sizeof(_impl_.velocity_));
|
|
|
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
+}
|
|
|
+
|
|
|
+const char* ManualCmd::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
|
|
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
+ while (!ctx->Done(&ptr)) {
|
|
|
+ ::uint32_t tag;
|
|
|
+ ptr = ::_pbi::ReadTag(ptr, &tag);
|
|
|
+ switch (tag >> 3) {
|
|
|
+ // string key = 1;
|
|
|
+ case 1:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
|
|
|
+ auto str = _internal_mutable_key();
|
|
|
+ ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
+ CHK_(ptr);
|
|
|
+ CHK_(::_pbi::VerifyUTF8(str, "NavMessage.ManualCmd.key"));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ continue;
|
|
|
+ // int32 operation_type = 2;
|
|
|
+ case 2:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
|
|
|
+ _impl_.operation_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
|
|
+ CHK_(ptr);
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ continue;
|
|
|
+ // float velocity = 3;
|
|
|
+ case 3:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
|
|
|
+ _impl_.velocity_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
|
+ ptr += sizeof(float);
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ continue;
|
|
|
+ default:
|
|
|
+ goto handle_unusual;
|
|
|
+ } // switch
|
|
|
+ handle_unusual:
|
|
|
+ if ((tag == 0) || ((tag & 7) == 4)) {
|
|
|
+ CHK_(ptr);
|
|
|
+ ctx->SetLastTag(tag);
|
|
|
+ goto message_done;
|
|
|
+ }
|
|
|
+ ptr = UnknownFieldParse(
|
|
|
+ tag,
|
|
|
+ _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
|
|
+ ptr, ctx);
|
|
|
+ CHK_(ptr != nullptr);
|
|
|
+ } // while
|
|
|
+message_done:
|
|
|
+ return ptr;
|
|
|
+failure:
|
|
|
+ ptr = nullptr;
|
|
|
+ goto message_done;
|
|
|
+#undef CHK_
|
|
|
+}
|
|
|
+
|
|
|
+::uint8_t* ManualCmd::_InternalSerialize(
|
|
|
+ ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:NavMessage.ManualCmd)
|
|
|
+ ::uint32_t cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // string key = 1;
|
|
|
+ if (!this->_internal_key().empty()) {
|
|
|
+ const std::string& _s = this->_internal_key();
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
|
+ _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.ManualCmd.key");
|
|
|
+ target = stream->WriteStringMaybeAliased(1, _s, target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // int32 operation_type = 2;
|
|
|
+ if (this->_internal_operation_type() != 0) {
|
|
|
+ target = stream->EnsureSpace(target);
|
|
|
+ target = ::_pbi::WireFormatLite::WriteInt32ToArray(
|
|
|
+ 2, this->_internal_operation_type(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // float velocity = 3;
|
|
|
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
|
|
|
+ float tmp_velocity = this->_internal_velocity();
|
|
|
+ ::uint32_t raw_velocity;
|
|
|
+ memcpy(&raw_velocity, &tmp_velocity, sizeof(tmp_velocity));
|
|
|
+ if (raw_velocity != 0) {
|
|
|
+ target = stream->EnsureSpace(target);
|
|
|
+ target = ::_pbi::WireFormatLite::WriteFloatToArray(
|
|
|
+ 3, this->_internal_velocity(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
+ target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
|
+ _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:NavMessage.ManualCmd)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+::size_t ManualCmd::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:NavMessage.ManualCmd)
|
|
|
+ ::size_t total_size = 0;
|
|
|
+
|
|
|
+ ::uint32_t cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // string key = 1;
|
|
|
+ if (!this->_internal_key().empty()) {
|
|
|
+ total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
+ this->_internal_key());
|
|
|
+ }
|
|
|
+
|
|
|
+ // int32 operation_type = 2;
|
|
|
+ if (this->_internal_operation_type() != 0) {
|
|
|
+ total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
|
+ this->_internal_operation_type());
|
|
|
+ }
|
|
|
+
|
|
|
+ // float velocity = 3;
|
|
|
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
|
|
|
+ float tmp_velocity = this->_internal_velocity();
|
|
|
+ ::uint32_t raw_velocity;
|
|
|
+ memcpy(&raw_velocity, &tmp_velocity, sizeof(tmp_velocity));
|
|
|
+ if (raw_velocity != 0) {
|
|
|
+ total_size += 5;
|
|
|
+ }
|
|
|
+
|
|
|
+ return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
|
+}
|
|
|
+
|
|
|
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ManualCmd::_class_data_ = {
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
|
|
+ ManualCmd::MergeImpl
|
|
|
+};
|
|
|
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ManualCmd::GetClassData() const { return &_class_data_; }
|
|
|
+
|
|
|
+
|
|
|
+void ManualCmd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
|
|
+ auto* const _this = static_cast<ManualCmd*>(&to_msg);
|
|
|
+ auto& from = static_cast<const ManualCmd&>(from_msg);
|
|
|
+ // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.ManualCmd)
|
|
|
+ ABSL_DCHECK_NE(&from, _this);
|
|
|
+ ::uint32_t cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ if (!from._internal_key().empty()) {
|
|
|
+ _this->_internal_set_key(from._internal_key());
|
|
|
+ }
|
|
|
+ if (from._internal_operation_type() != 0) {
|
|
|
+ _this->_internal_set_operation_type(from._internal_operation_type());
|
|
|
+ }
|
|
|
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
|
|
|
+ float tmp_velocity = from._internal_velocity();
|
|
|
+ ::uint32_t raw_velocity;
|
|
|
+ memcpy(&raw_velocity, &tmp_velocity, sizeof(tmp_velocity));
|
|
|
+ if (raw_velocity != 0) {
|
|
|
+ _this->_internal_set_velocity(from._internal_velocity());
|
|
|
+ }
|
|
|
+ _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+void ManualCmd::CopyFrom(const ManualCmd& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.ManualCmd)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool ManualCmd::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void ManualCmd::InternalSwap(ManualCmd* other) {
|
|
|
+ using std::swap;
|
|
|
+ auto* lhs_arena = GetArenaForAllocation();
|
|
|
+ auto* rhs_arena = other->GetArenaForAllocation();
|
|
|
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
|
+ ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, lhs_arena,
|
|
|
+ &other->_impl_.key_, rhs_arena);
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
|
+ PROTOBUF_FIELD_OFFSET(ManualCmd, _impl_.velocity_)
|
|
|
+ + sizeof(ManualCmd::_impl_.velocity_)
|
|
|
+ - PROTOBUF_FIELD_OFFSET(ManualCmd, _impl_.operation_type_)>(
|
|
|
+ reinterpret_cast<char*>(&_impl_.operation_type_),
|
|
|
+ reinterpret_cast<char*>(&other->_impl_.operation_type_));
|
|
|
+}
|
|
|
+
|
|
|
+::PROTOBUF_NAMESPACE_ID::Metadata ManualCmd::GetMetadata() const {
|
|
|
+ return ::_pbi::AssignDescriptors(
|
|
|
+ &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
|
|
|
+ file_level_metadata_message_2eproto[9]);
|
|
|
+}
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
class NavStatu::_Internal {
|
|
|
public:
|
|
|
using HasBits = decltype(std::declval<NavStatu>()._impl_._has_bits_);
|
|
@@ -3864,7 +4180,7 @@ void NavStatu::InternalSwap(NavStatu* other) {
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata NavStatu::GetMetadata() const {
|
|
|
return ::_pbi::AssignDescriptors(
|
|
|
&descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
|
|
|
- file_level_metadata_message_2eproto[9]);
|
|
|
+ file_level_metadata_message_2eproto[10]);
|
|
|
}
|
|
|
// ===================================================================
|
|
|
|
|
@@ -4200,7 +4516,7 @@ void RobotStatu::InternalSwap(RobotStatu* other) {
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata RobotStatu::GetMetadata() const {
|
|
|
return ::_pbi::AssignDescriptors(
|
|
|
&descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
|
|
|
- file_level_metadata_message_2eproto[10]);
|
|
|
+ file_level_metadata_message_2eproto[11]);
|
|
|
}
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
} // namespace NavMessage
|
|
@@ -4241,6 +4557,10 @@ template<> PROTOBUF_NOINLINE ::NavMessage::NavResponse*
|
|
|
Arena::CreateMaybeMessage< ::NavMessage::NavResponse >(Arena* arena) {
|
|
|
return Arena::CreateMessageInternal< ::NavMessage::NavResponse >(arena);
|
|
|
}
|
|
|
+template<> PROTOBUF_NOINLINE ::NavMessage::ManualCmd*
|
|
|
+Arena::CreateMaybeMessage< ::NavMessage::ManualCmd >(Arena* arena) {
|
|
|
+ return Arena::CreateMessageInternal< ::NavMessage::ManualCmd >(arena);
|
|
|
+}
|
|
|
template<> PROTOBUF_NOINLINE ::NavMessage::NavStatu*
|
|
|
Arena::CreateMaybeMessage< ::NavMessage::NavStatu >(Arena* arena) {
|
|
|
return Arena::CreateMessageInternal< ::NavMessage::NavStatu >(arena);
|