|
@@ -111,8 +111,9 @@ static void InitDefaultsscc_info_NavCmd_message_2eproto() {
|
|
|
::NavMessage::NavCmd::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_NavCmd_message_2eproto =
|
|
|
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_NavCmd_message_2eproto}, {
|
|
|
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_NavCmd_message_2eproto =
|
|
|
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_NavCmd_message_2eproto}, {
|
|
|
+ &scc_info_Pose2d_message_2eproto.base,
|
|
|
&scc_info_Action_message_2eproto.base,}};
|
|
|
|
|
|
static void InitDefaultsscc_info_NavStatu_message_2eproto() {
|
|
@@ -216,6 +217,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_message_2eproto::offsets[] PRO
|
|
|
~0u, // no _oneof_case_
|
|
|
~0u, // no _weak_field_map_
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::Speed, h_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::NavMessage::Speed, m_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::Speed, t_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::Speed, v_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::Speed, w_),
|
|
@@ -260,6 +262,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_message_2eproto::offsets[] PRO
|
|
|
~0u, // no _weak_field_map_
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, action_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, key_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, transform_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, actions_),
|
|
|
~0u, // no _has_bits_
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _internal_metadata_),
|
|
@@ -267,6 +270,8 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_message_2eproto::offsets[] PRO
|
|
|
~0u, // no _oneof_case_
|
|
|
~0u, // no _weak_field_map_
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, statu_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, main_agv_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, move_mode_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, key_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, unfinished_actions_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, selected_traj_),
|
|
@@ -276,12 +281,12 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB
|
|
|
{ 0, -1, sizeof(::NavMessage::AGVStatu)},
|
|
|
{ 10, -1, sizeof(::NavMessage::AGVSpeed)},
|
|
|
{ 17, -1, sizeof(::NavMessage::Speed)},
|
|
|
- { 27, -1, sizeof(::NavMessage::SpeedLimit)},
|
|
|
- { 34, -1, sizeof(::NavMessage::Pose2d)},
|
|
|
- { 42, -1, sizeof(::NavMessage::Trajectory)},
|
|
|
- { 48, -1, sizeof(::NavMessage::Action)},
|
|
|
- { 60, -1, sizeof(::NavMessage::NavCmd)},
|
|
|
- { 68, -1, sizeof(::NavMessage::NavStatu)},
|
|
|
+ { 28, -1, sizeof(::NavMessage::SpeedLimit)},
|
|
|
+ { 35, -1, sizeof(::NavMessage::Pose2d)},
|
|
|
+ { 43, -1, sizeof(::NavMessage::Trajectory)},
|
|
|
+ { 49, -1, sizeof(::NavMessage::Action)},
|
|
|
+ { 61, -1, sizeof(::NavMessage::NavCmd)},
|
|
|
+ { 70, -1, sizeof(::NavMessage::NavStatu)},
|
|
|
};
|
|
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
|
|
@@ -300,25 +305,28 @@ const char descriptor_table_protodef_message_2eproto[] PROTOBUF_SECTION_VARIABLE
|
|
|
"\n\rmessage.proto\022\nNavMessage\"G\n\010AGVStatu\022"
|
|
|
"\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\r\n\005theta\030\003 \001(\002\022\t\n\001"
|
|
|
"v\030\004 \001(\002\022\013\n\003vth\030\005 \001(\002\" \n\010AGVSpeed\022\t\n\001v\030\001 "
|
|
|
- "\001(\002\022\t\n\001w\030\002 \001(\002\"@\n\005Speed\022\t\n\001H\030\001 \001(\005\022\t\n\001T\030"
|
|
|
- "\002 \001(\005\022\t\n\001V\030\003 \001(\002\022\t\n\001W\030\004 \001(\002\022\013\n\003end\030\005 \001(\005"
|
|
|
- "\"&\n\nSpeedLimit\022\013\n\003min\030\001 \001(\002\022\013\n\003max\030\002 \001(\002"
|
|
|
- "\"-\n\006Pose2d\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\r\n\005thet"
|
|
|
- "a\030\003 \001(\002\"/\n\nTrajectory\022!\n\005poses\030\001 \003(\0132\022.N"
|
|
|
- "avMessage.Pose2d\"\223\002\n\006Action\022\014\n\004type\030\001 \001("
|
|
|
- "\005\022!\n\005begin\030\002 \001(\0132\022.NavMessage.Pose2d\022\"\n\006"
|
|
|
- "target\030\003 \001(\0132\022.NavMessage.Pose2d\022\'\n\013targ"
|
|
|
- "et_diff\030\004 \001(\0132\022.NavMessage.Pose2d\022.\n\016vel"
|
|
|
- "ocity_limit\030\005 \001(\0132\026.NavMessage.SpeedLimi"
|
|
|
- "t\022-\n\rangular_limit\030\006 \001(\0132\026.NavMessage.Sp"
|
|
|
- "eedLimit\022,\n\014horize_limit\030\007 \001(\0132\026.NavMess"
|
|
|
- "age.SpeedLimit\"J\n\006NavCmd\022\016\n\006action\030\001 \001(\005"
|
|
|
- "\022\013\n\003key\030\002 \001(\t\022#\n\007actions\030\003 \003(\0132\022.NavMess"
|
|
|
- "age.Action\"\263\001\n\010NavStatu\022\r\n\005statu\030\001 \001(\010\022\013"
|
|
|
- "\n\003key\030\002 \001(\t\022.\n\022unfinished_actions\030\003 \003(\0132"
|
|
|
- "\022.NavMessage.Action\022-\n\rselected_traj\030\004 \001"
|
|
|
- "(\0132\026.NavMessage.Trajectory\022,\n\014predict_tr"
|
|
|
- "aj\030\005 \001(\0132\026.NavMessage.Trajectoryb\006proto3"
|
|
|
+ "\001(\002\022\t\n\001w\030\002 \001(\002\"K\n\005Speed\022\t\n\001H\030\001 \001(\005\022\t\n\001M\030"
|
|
|
+ "\002 \001(\005\022\t\n\001T\030\003 \001(\005\022\t\n\001V\030\004 \001(\002\022\t\n\001W\030\005 \001(\002\022\013"
|
|
|
+ "\n\003end\030\006 \001(\005\"&\n\nSpeedLimit\022\013\n\003min\030\001 \001(\002\022\013"
|
|
|
+ "\n\003max\030\002 \001(\002\"-\n\006Pose2d\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 "
|
|
|
+ "\001(\002\022\r\n\005theta\030\003 \001(\002\"/\n\nTrajectory\022!\n\005pose"
|
|
|
+ "s\030\001 \003(\0132\022.NavMessage.Pose2d\"\223\002\n\006Action\022\014"
|
|
|
+ "\n\004type\030\001 \001(\005\022!\n\005begin\030\002 \001(\0132\022.NavMessage"
|
|
|
+ ".Pose2d\022\"\n\006target\030\003 \001(\0132\022.NavMessage.Pos"
|
|
|
+ "e2d\022\'\n\013target_diff\030\004 \001(\0132\022.NavMessage.Po"
|
|
|
+ "se2d\022.\n\016velocity_limit\030\005 \001(\0132\026.NavMessag"
|
|
|
+ "e.SpeedLimit\022-\n\rangular_limit\030\006 \001(\0132\026.Na"
|
|
|
+ "vMessage.SpeedLimit\022,\n\014horize_limit\030\007 \001("
|
|
|
+ "\0132\026.NavMessage.SpeedLimit\"q\n\006NavCmd\022\016\n\006a"
|
|
|
+ "ction\030\001 \001(\005\022\013\n\003key\030\002 \001(\t\022%\n\ttransform\030\003 "
|
|
|
+ "\001(\0132\022.NavMessage.Pose2d\022#\n\007actions\030\004 \003(\013"
|
|
|
+ "2\022.NavMessage.Action\"\330\001\n\010NavStatu\022\r\n\005sta"
|
|
|
+ "tu\030\001 \001(\010\022\020\n\010main_agv\030\002 \001(\010\022\021\n\tmove_mode\030"
|
|
|
+ "\003 \001(\005\022\013\n\003key\030\004 \001(\t\022.\n\022unfinished_actions"
|
|
|
+ "\030\005 \003(\0132\022.NavMessage.Action\022-\n\rselected_t"
|
|
|
+ "raj\030\006 \001(\0132\026.NavMessage.Trajectory\022,\n\014pre"
|
|
|
+ "dict_traj\030\007 \001(\0132\026.NavMessage.Trajectoryb"
|
|
|
+ "\006proto3"
|
|
|
;
|
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_message_2eproto_deps[1] = {
|
|
|
};
|
|
@@ -335,7 +343,7 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_mes
|
|
|
};
|
|
|
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_message_2eproto_once;
|
|
|
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_message_2eproto = {
|
|
|
- false, false, descriptor_table_protodef_message_2eproto, "message.proto", 880,
|
|
|
+ false, false, descriptor_table_protodef_message_2eproto, "message.proto", 967,
|
|
|
&descriptor_table_message_2eproto_once, descriptor_table_message_2eproto_sccs, descriptor_table_message_2eproto_deps, 9, 0,
|
|
|
schemas, file_default_instances, TableStruct_message_2eproto::offsets,
|
|
|
file_level_metadata_message_2eproto, 9, file_level_enum_descriptors_message_2eproto, file_level_service_descriptors_message_2eproto,
|
|
@@ -943,30 +951,37 @@ const char* Speed::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte
|
|
|
CHK_(ptr);
|
|
|
} else goto handle_unusual;
|
|
|
continue;
|
|
|
- // int32 T = 2;
|
|
|
+ // int32 M = 2;
|
|
|
case 2:
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
|
|
- t_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
+ m_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
CHK_(ptr);
|
|
|
} else goto handle_unusual;
|
|
|
continue;
|
|
|
- // float V = 3;
|
|
|
+ // int32 T = 3;
|
|
|
case 3:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) {
|
|
|
- v_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
|
- ptr += sizeof(float);
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
|
|
|
+ t_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
+ CHK_(ptr);
|
|
|
} else goto handle_unusual;
|
|
|
continue;
|
|
|
- // float W = 4;
|
|
|
+ // float V = 4;
|
|
|
case 4:
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) {
|
|
|
- w_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
|
+ v_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
|
ptr += sizeof(float);
|
|
|
} else goto handle_unusual;
|
|
|
continue;
|
|
|
- // int32 end = 5;
|
|
|
+ // float W = 5;
|
|
|
case 5:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45)) {
|
|
|
+ w_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
|
+ ptr += sizeof(float);
|
|
|
+ } else goto handle_unusual;
|
|
|
+ continue;
|
|
|
+ // int32 end = 6;
|
|
|
+ case 6:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
|
|
|
end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
CHK_(ptr);
|
|
|
} else goto handle_unusual;
|
|
@@ -1005,28 +1020,34 @@ failure:
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_h(), target);
|
|
|
}
|
|
|
|
|
|
- // int32 T = 2;
|
|
|
+ // int32 M = 2;
|
|
|
+ if (this->m() != 0) {
|
|
|
+ target = stream->EnsureSpace(target);
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_m(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // int32 T = 3;
|
|
|
if (this->t() != 0) {
|
|
|
target = stream->EnsureSpace(target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_t(), target);
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_t(), target);
|
|
|
}
|
|
|
|
|
|
- // float V = 3;
|
|
|
+ // float V = 4;
|
|
|
if (!(this->v() <= 0 && this->v() >= 0)) {
|
|
|
target = stream->EnsureSpace(target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_v(), target);
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_v(), target);
|
|
|
}
|
|
|
|
|
|
- // float W = 4;
|
|
|
+ // float W = 5;
|
|
|
if (!(this->w() <= 0 && this->w() >= 0)) {
|
|
|
target = stream->EnsureSpace(target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_w(), target);
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_w(), target);
|
|
|
}
|
|
|
|
|
|
- // int32 end = 5;
|
|
|
+ // int32 end = 6;
|
|
|
if (this->end() != 0) {
|
|
|
target = stream->EnsureSpace(target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_end(), target);
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_end(), target);
|
|
|
}
|
|
|
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
@@ -1052,24 +1073,31 @@ size_t Speed::ByteSizeLong() const {
|
|
|
this->_internal_h());
|
|
|
}
|
|
|
|
|
|
- // int32 T = 2;
|
|
|
+ // int32 M = 2;
|
|
|
+ if (this->m() != 0) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
+ this->_internal_m());
|
|
|
+ }
|
|
|
+
|
|
|
+ // int32 T = 3;
|
|
|
if (this->t() != 0) {
|
|
|
total_size += 1 +
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
this->_internal_t());
|
|
|
}
|
|
|
|
|
|
- // float V = 3;
|
|
|
+ // float V = 4;
|
|
|
if (!(this->v() <= 0 && this->v() >= 0)) {
|
|
|
total_size += 1 + 4;
|
|
|
}
|
|
|
|
|
|
- // float W = 4;
|
|
|
+ // float W = 5;
|
|
|
if (!(this->w() <= 0 && this->w() >= 0)) {
|
|
|
total_size += 1 + 4;
|
|
|
}
|
|
|
|
|
|
- // int32 end = 5;
|
|
|
+ // int32 end = 6;
|
|
|
if (this->end() != 0) {
|
|
|
total_size += 1 +
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
@@ -1110,6 +1138,9 @@ void Speed::MergeFrom(const Speed& from) {
|
|
|
if (from.h() != 0) {
|
|
|
_internal_set_h(from._internal_h());
|
|
|
}
|
|
|
+ if (from.m() != 0) {
|
|
|
+ _internal_set_m(from._internal_m());
|
|
|
+ }
|
|
|
if (from.t() != 0) {
|
|
|
_internal_set_t(from._internal_t());
|
|
|
}
|
|
@@ -2296,11 +2327,18 @@ void Action::InternalSwap(Action* other) {
|
|
|
// ===================================================================
|
|
|
|
|
|
void NavCmd::InitAsDefaultInstance() {
|
|
|
+ ::NavMessage::_NavCmd_default_instance_._instance.get_mutable()->transform_ = const_cast< ::NavMessage::Pose2d*>(
|
|
|
+ ::NavMessage::Pose2d::internal_default_instance());
|
|
|
}
|
|
|
class NavCmd::_Internal {
|
|
|
public:
|
|
|
+ static const ::NavMessage::Pose2d& transform(const NavCmd* msg);
|
|
|
};
|
|
|
|
|
|
+const ::NavMessage::Pose2d&
|
|
|
+NavCmd::_Internal::transform(const NavCmd* msg) {
|
|
|
+ return *msg->transform_;
|
|
|
+}
|
|
|
NavCmd::NavCmd(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena),
|
|
|
actions_(arena) {
|
|
@@ -2317,6 +2355,11 @@ NavCmd::NavCmd(const NavCmd& from)
|
|
|
key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_key(),
|
|
|
GetArena());
|
|
|
}
|
|
|
+ if (from._internal_has_transform()) {
|
|
|
+ transform_ = new ::NavMessage::Pose2d(*from.transform_);
|
|
|
+ } else {
|
|
|
+ transform_ = nullptr;
|
|
|
+ }
|
|
|
action_ = from.action_;
|
|
|
// @@protoc_insertion_point(copy_constructor:NavMessage.NavCmd)
|
|
|
}
|
|
@@ -2324,7 +2367,9 @@ NavCmd::NavCmd(const NavCmd& from)
|
|
|
void NavCmd::SharedCtor() {
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_NavCmd_message_2eproto.base);
|
|
|
key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
- action_ = 0;
|
|
|
+ ::memset(&transform_, 0, static_cast<size_t>(
|
|
|
+ reinterpret_cast<char*>(&action_) -
|
|
|
+ reinterpret_cast<char*>(&transform_)) + sizeof(action_));
|
|
|
}
|
|
|
|
|
|
NavCmd::~NavCmd() {
|
|
@@ -2336,6 +2381,7 @@ NavCmd::~NavCmd() {
|
|
|
void NavCmd::SharedDtor() {
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr);
|
|
|
key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
+ if (this != internal_default_instance()) delete transform_;
|
|
|
}
|
|
|
|
|
|
void NavCmd::ArenaDtor(void* object) {
|
|
@@ -2361,6 +2407,10 @@ void NavCmd::Clear() {
|
|
|
|
|
|
actions_.Clear();
|
|
|
key_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
+ if (GetArena() == nullptr && transform_ != nullptr) {
|
|
|
+ delete transform_;
|
|
|
+ }
|
|
|
+ transform_ = nullptr;
|
|
|
action_ = 0;
|
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
}
|
|
@@ -2389,16 +2439,23 @@ const char* NavCmd::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::int
|
|
|
CHK_(ptr);
|
|
|
} else goto handle_unusual;
|
|
|
continue;
|
|
|
- // repeated .NavMessage.Action actions = 3;
|
|
|
+ // .NavMessage.Pose2d transform = 3;
|
|
|
case 3:
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
|
+ ptr = ctx->ParseMessage(_internal_mutable_transform(), ptr);
|
|
|
+ CHK_(ptr);
|
|
|
+ } else goto handle_unusual;
|
|
|
+ continue;
|
|
|
+ // repeated .NavMessage.Action actions = 4;
|
|
|
+ case 4:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
|
|
ptr -= 1;
|
|
|
do {
|
|
|
ptr += 1;
|
|
|
ptr = ctx->ParseMessage(_internal_add_actions(), ptr);
|
|
|
CHK_(ptr);
|
|
|
if (!ctx->DataAvailable(ptr)) break;
|
|
|
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
|
|
|
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
|
|
|
} else goto handle_unusual;
|
|
|
continue;
|
|
|
default: {
|
|
@@ -2445,12 +2502,20 @@ failure:
|
|
|
2, this->_internal_key(), target);
|
|
|
}
|
|
|
|
|
|
- // repeated .NavMessage.Action actions = 3;
|
|
|
+ // .NavMessage.Pose2d transform = 3;
|
|
|
+ if (this->has_transform()) {
|
|
|
+ target = stream->EnsureSpace(target);
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
+ InternalWriteMessage(
|
|
|
+ 3, _Internal::transform(this), target, stream);
|
|
|
+ }
|
|
|
+
|
|
|
+ // repeated .NavMessage.Action actions = 4;
|
|
|
for (unsigned int i = 0,
|
|
|
n = static_cast<unsigned int>(this->_internal_actions_size()); i < n; i++) {
|
|
|
target = stream->EnsureSpace(target);
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- InternalWriteMessage(3, this->_internal_actions(i), target, stream);
|
|
|
+ InternalWriteMessage(4, this->_internal_actions(i), target, stream);
|
|
|
}
|
|
|
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
@@ -2469,7 +2534,7 @@ size_t NavCmd::ByteSizeLong() const {
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
- // repeated .NavMessage.Action actions = 3;
|
|
|
+ // repeated .NavMessage.Action actions = 4;
|
|
|
total_size += 1UL * this->_internal_actions_size();
|
|
|
for (const auto& msg : this->actions_) {
|
|
|
total_size +=
|
|
@@ -2483,6 +2548,13 @@ size_t NavCmd::ByteSizeLong() const {
|
|
|
this->_internal_key());
|
|
|
}
|
|
|
|
|
|
+ // .NavMessage.Pose2d transform = 3;
|
|
|
+ if (this->has_transform()) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
|
+ *transform_);
|
|
|
+ }
|
|
|
+
|
|
|
// int32 action = 1;
|
|
|
if (this->action() != 0) {
|
|
|
total_size += 1 +
|
|
@@ -2525,6 +2597,9 @@ void NavCmd::MergeFrom(const NavCmd& from) {
|
|
|
if (from.key().size() > 0) {
|
|
|
_internal_set_key(from._internal_key());
|
|
|
}
|
|
|
+ if (from.has_transform()) {
|
|
|
+ _internal_mutable_transform()->::NavMessage::Pose2d::MergeFrom(from._internal_transform());
|
|
|
+ }
|
|
|
if (from.action() != 0) {
|
|
|
_internal_set_action(from._internal_action());
|
|
|
}
|
|
@@ -2553,7 +2628,12 @@ void NavCmd::InternalSwap(NavCmd* other) {
|
|
|
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
|
actions_.InternalSwap(&other->actions_);
|
|
|
key_.Swap(&other->key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
- swap(action_, other->action_);
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
|
+ PROTOBUF_FIELD_OFFSET(NavCmd, action_)
|
|
|
+ + sizeof(NavCmd::action_)
|
|
|
+ - PROTOBUF_FIELD_OFFSET(NavCmd, transform_)>(
|
|
|
+ reinterpret_cast<char*>(&transform_),
|
|
|
+ reinterpret_cast<char*>(&other->transform_));
|
|
|
}
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata NavCmd::GetMetadata() const {
|
|
@@ -2609,7 +2689,9 @@ NavStatu::NavStatu(const NavStatu& from)
|
|
|
} else {
|
|
|
predict_traj_ = nullptr;
|
|
|
}
|
|
|
- statu_ = from.statu_;
|
|
|
+ ::memcpy(&statu_, &from.statu_,
|
|
|
+ static_cast<size_t>(reinterpret_cast<char*>(&move_mode_) -
|
|
|
+ reinterpret_cast<char*>(&statu_)) + sizeof(move_mode_));
|
|
|
// @@protoc_insertion_point(copy_constructor:NavMessage.NavStatu)
|
|
|
}
|
|
|
|
|
@@ -2617,8 +2699,8 @@ void NavStatu::SharedCtor() {
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_NavStatu_message_2eproto.base);
|
|
|
key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
::memset(&selected_traj_, 0, static_cast<size_t>(
|
|
|
- reinterpret_cast<char*>(&statu_) -
|
|
|
- reinterpret_cast<char*>(&selected_traj_)) + sizeof(statu_));
|
|
|
+ reinterpret_cast<char*>(&move_mode_) -
|
|
|
+ reinterpret_cast<char*>(&selected_traj_)) + sizeof(move_mode_));
|
|
|
}
|
|
|
|
|
|
NavStatu::~NavStatu() {
|
|
@@ -2665,7 +2747,9 @@ void NavStatu::Clear() {
|
|
|
delete predict_traj_;
|
|
|
}
|
|
|
predict_traj_ = nullptr;
|
|
|
- statu_ = false;
|
|
|
+ ::memset(&statu_, 0, static_cast<size_t>(
|
|
|
+ reinterpret_cast<char*>(&move_mode_) -
|
|
|
+ reinterpret_cast<char*>(&statu_)) + sizeof(move_mode_));
|
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
}
|
|
|
|
|
@@ -2684,37 +2768,51 @@ const char* NavStatu::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i
|
|
|
CHK_(ptr);
|
|
|
} else goto handle_unusual;
|
|
|
continue;
|
|
|
- // string key = 2;
|
|
|
+ // bool main_agv = 2;
|
|
|
case 2:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
|
|
+ main_agv_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
+ CHK_(ptr);
|
|
|
+ } else goto handle_unusual;
|
|
|
+ continue;
|
|
|
+ // int32 move_mode = 3;
|
|
|
+ case 3:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
|
|
|
+ move_mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
+ CHK_(ptr);
|
|
|
+ } else goto handle_unusual;
|
|
|
+ continue;
|
|
|
+ // string key = 4;
|
|
|
+ case 4:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
|
|
auto str = _internal_mutable_key();
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "NavMessage.NavStatu.key"));
|
|
|
CHK_(ptr);
|
|
|
} else goto handle_unusual;
|
|
|
continue;
|
|
|
- // repeated .NavMessage.Action unfinished_actions = 3;
|
|
|
- case 3:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
|
+ // repeated .NavMessage.Action unfinished_actions = 5;
|
|
|
+ case 5:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
|
|
|
ptr -= 1;
|
|
|
do {
|
|
|
ptr += 1;
|
|
|
ptr = ctx->ParseMessage(_internal_add_unfinished_actions(), ptr);
|
|
|
CHK_(ptr);
|
|
|
if (!ctx->DataAvailable(ptr)) break;
|
|
|
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
|
|
|
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
|
|
|
} else goto handle_unusual;
|
|
|
continue;
|
|
|
- // .NavMessage.Trajectory selected_traj = 4;
|
|
|
- case 4:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
|
|
+ // .NavMessage.Trajectory selected_traj = 6;
|
|
|
+ case 6:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_selected_traj(), ptr);
|
|
|
CHK_(ptr);
|
|
|
} else goto handle_unusual;
|
|
|
continue;
|
|
|
- // .NavMessage.Trajectory predict_traj = 5;
|
|
|
- case 5:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
|
|
|
+ // .NavMessage.Trajectory predict_traj = 7;
|
|
|
+ case 7:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_predict_traj(), ptr);
|
|
|
CHK_(ptr);
|
|
|
} else goto handle_unusual;
|
|
@@ -2753,38 +2851,50 @@ failure:
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_statu(), target);
|
|
|
}
|
|
|
|
|
|
- // string key = 2;
|
|
|
+ // bool main_agv = 2;
|
|
|
+ if (this->main_agv() != 0) {
|
|
|
+ target = stream->EnsureSpace(target);
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_main_agv(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // int32 move_mode = 3;
|
|
|
+ if (this->move_mode() != 0) {
|
|
|
+ target = stream->EnsureSpace(target);
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_move_mode(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // string key = 4;
|
|
|
if (this->key().size() > 0) {
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
|
this->_internal_key().data(), static_cast<int>(this->_internal_key().length()),
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
|
"NavMessage.NavStatu.key");
|
|
|
target = stream->WriteStringMaybeAliased(
|
|
|
- 2, this->_internal_key(), target);
|
|
|
+ 4, this->_internal_key(), target);
|
|
|
}
|
|
|
|
|
|
- // repeated .NavMessage.Action unfinished_actions = 3;
|
|
|
+ // repeated .NavMessage.Action unfinished_actions = 5;
|
|
|
for (unsigned int i = 0,
|
|
|
n = static_cast<unsigned int>(this->_internal_unfinished_actions_size()); i < n; i++) {
|
|
|
target = stream->EnsureSpace(target);
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- InternalWriteMessage(3, this->_internal_unfinished_actions(i), target, stream);
|
|
|
+ InternalWriteMessage(5, this->_internal_unfinished_actions(i), target, stream);
|
|
|
}
|
|
|
|
|
|
- // .NavMessage.Trajectory selected_traj = 4;
|
|
|
+ // .NavMessage.Trajectory selected_traj = 6;
|
|
|
if (this->has_selected_traj()) {
|
|
|
target = stream->EnsureSpace(target);
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
InternalWriteMessage(
|
|
|
- 4, _Internal::selected_traj(this), target, stream);
|
|
|
+ 6, _Internal::selected_traj(this), target, stream);
|
|
|
}
|
|
|
|
|
|
- // .NavMessage.Trajectory predict_traj = 5;
|
|
|
+ // .NavMessage.Trajectory predict_traj = 7;
|
|
|
if (this->has_predict_traj()) {
|
|
|
target = stream->EnsureSpace(target);
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
InternalWriteMessage(
|
|
|
- 5, _Internal::predict_traj(this), target, stream);
|
|
|
+ 7, _Internal::predict_traj(this), target, stream);
|
|
|
}
|
|
|
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
@@ -2803,28 +2913,28 @@ size_t NavStatu::ByteSizeLong() const {
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
- // repeated .NavMessage.Action unfinished_actions = 3;
|
|
|
+ // repeated .NavMessage.Action unfinished_actions = 5;
|
|
|
total_size += 1UL * this->_internal_unfinished_actions_size();
|
|
|
for (const auto& msg : this->unfinished_actions_) {
|
|
|
total_size +=
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
|
|
|
}
|
|
|
|
|
|
- // string key = 2;
|
|
|
+ // string key = 4;
|
|
|
if (this->key().size() > 0) {
|
|
|
total_size += 1 +
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
this->_internal_key());
|
|
|
}
|
|
|
|
|
|
- // .NavMessage.Trajectory selected_traj = 4;
|
|
|
+ // .NavMessage.Trajectory selected_traj = 6;
|
|
|
if (this->has_selected_traj()) {
|
|
|
total_size += 1 +
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
|
*selected_traj_);
|
|
|
}
|
|
|
|
|
|
- // .NavMessage.Trajectory predict_traj = 5;
|
|
|
+ // .NavMessage.Trajectory predict_traj = 7;
|
|
|
if (this->has_predict_traj()) {
|
|
|
total_size += 1 +
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
@@ -2836,6 +2946,18 @@ size_t NavStatu::ByteSizeLong() const {
|
|
|
total_size += 1 + 1;
|
|
|
}
|
|
|
|
|
|
+ // bool main_agv = 2;
|
|
|
+ if (this->main_agv() != 0) {
|
|
|
+ total_size += 1 + 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ // int32 move_mode = 3;
|
|
|
+ if (this->move_mode() != 0) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
+ this->_internal_move_mode());
|
|
|
+ }
|
|
|
+
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
|
|
_internal_metadata_, total_size, &_cached_size_);
|
|
@@ -2880,6 +3002,12 @@ void NavStatu::MergeFrom(const NavStatu& from) {
|
|
|
if (from.statu() != 0) {
|
|
|
_internal_set_statu(from._internal_statu());
|
|
|
}
|
|
|
+ if (from.main_agv() != 0) {
|
|
|
+ _internal_set_main_agv(from._internal_main_agv());
|
|
|
+ }
|
|
|
+ if (from.move_mode() != 0) {
|
|
|
+ _internal_set_move_mode(from._internal_move_mode());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
void NavStatu::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
@@ -2906,8 +3034,8 @@ void NavStatu::InternalSwap(NavStatu* other) {
|
|
|
unfinished_actions_.InternalSwap(&other->unfinished_actions_);
|
|
|
key_.Swap(&other->key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
|
- PROTOBUF_FIELD_OFFSET(NavStatu, statu_)
|
|
|
- + sizeof(NavStatu::statu_)
|
|
|
+ PROTOBUF_FIELD_OFFSET(NavStatu, move_mode_)
|
|
|
+ + sizeof(NavStatu::move_mode_)
|
|
|
- PROTOBUF_FIELD_OFFSET(NavStatu, selected_traj_)>(
|
|
|
reinterpret_cast<char*>(&selected_traj_),
|
|
|
reinterpret_cast<char*>(&other->selected_traj_));
|