|
@@ -84,6 +84,10 @@ PROTOBUF_CONSTEXPR ToAgvCmd::ToAgvCmd(
|
|
|
|
|
|
, /*decltype(_impl_.l_)*/ 0
|
|
|
|
|
|
+ , /*decltype(_impl_.p_)*/ 0
|
|
|
+
|
|
|
+ , /*decltype(_impl_.d_)*/ 0
|
|
|
+
|
|
|
, /*decltype(_impl_.end_)*/ 0
|
|
|
|
|
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
|
@@ -353,6 +357,8 @@ const ::uint32_t TableStruct_message_2eproto::offsets[] PROTOBUF_SECTION_VARIABL
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.v_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.w_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.l_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.p_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.d_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.end_),
|
|
|
~0u, // no _has_bits_
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, _internal_metadata_),
|
|
@@ -491,15 +497,15 @@ static const ::_pbi::MigrationSchema
|
|
|
{ 0, -1, -1, sizeof(::NavMessage::LidarOdomStatu)},
|
|
|
{ 13, -1, -1, sizeof(::NavMessage::AgvStatu)},
|
|
|
{ 27, -1, -1, sizeof(::NavMessage::ToAgvCmd)},
|
|
|
- { 42, -1, -1, sizeof(::NavMessage::Pose2d)},
|
|
|
- { 53, -1, -1, sizeof(::NavMessage::PathNode)},
|
|
|
- { 67, -1, -1, sizeof(::NavMessage::Trajectory)},
|
|
|
- { 76, 91, -1, sizeof(::NavMessage::NewAction)},
|
|
|
- { 98, -1, -1, sizeof(::NavMessage::NavCmd)},
|
|
|
- { 109, -1, -1, sizeof(::NavMessage::NavResponse)},
|
|
|
- { 119, -1, -1, sizeof(::NavMessage::ManualCmd)},
|
|
|
- { 130, 147, -1, sizeof(::NavMessage::NavStatu)},
|
|
|
- { 156, 168, -1, sizeof(::NavMessage::RobotStatu)},
|
|
|
+ { 44, -1, -1, sizeof(::NavMessage::Pose2d)},
|
|
|
+ { 55, -1, -1, sizeof(::NavMessage::PathNode)},
|
|
|
+ { 69, -1, -1, sizeof(::NavMessage::Trajectory)},
|
|
|
+ { 78, 93, -1, sizeof(::NavMessage::NewAction)},
|
|
|
+ { 100, -1, -1, sizeof(::NavMessage::NavCmd)},
|
|
|
+ { 111, -1, -1, sizeof(::NavMessage::NavResponse)},
|
|
|
+ { 121, -1, -1, sizeof(::NavMessage::ManualCmd)},
|
|
|
+ { 132, 149, -1, sizeof(::NavMessage::NavStatu)},
|
|
|
+ { 158, 170, -1, sizeof(::NavMessage::RobotStatu)},
|
|
|
};
|
|
|
|
|
|
static const ::_pb::Message* const file_default_instances[] = {
|
|
@@ -522,44 +528,44 @@ const char descriptor_table_protodef_message_2eproto[] PROTOBUF_SECTION_VARIABLE
|
|
|
"(\002\022\t\n\001v\030\004 \001(\002\022\013\n\003vth\030\005 \001(\002\"j\n\010AgvStatu\022\t"
|
|
|
"\n\001v\030\001 \001(\002\022\t\n\001w\030\002 \001(\002\022\r\n\005clamp\030\003 \001(\005\022\023\n\013c"
|
|
|
"lamp_other\030\004 \001(\005\022\016\n\006lifter\030\005 \001(\005\022\024\n\014lift"
|
|
|
- "er_other\030\006 \001(\005\"Y\n\010ToAgvCmd\022\t\n\001H\030\001 \001(\005\022\t\n"
|
|
|
+ "er_other\030\006 \001(\005\"o\n\010ToAgvCmd\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\t\n\001L\030\006 \001(\002\022\013\n\003end\030\007 \001(\005\"-\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\"Q\n\010Path"
|
|
|
- "Node\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001l\030\003 \001(\002\022\t\n"
|
|
|
- "\001w\030\004 \001(\002\022\r\n\005theta\030\005 \001(\002\022\n\n\002id\030\006 \001(\t\"/\n\nT"
|
|
|
- "rajectory\022!\n\005poses\030\001 \003(\0132\022.NavMessage.Po"
|
|
|
- "se2d\"\345\001\n\tNewAction\022\014\n\004type\030\001 \001(\005\022\'\n\tspac"
|
|
|
- "eNode\030\002 \001(\0132\024.NavMessage.PathNode\022&\n\010pas"
|
|
|
- "sNode\030\003 \001(\0132\024.NavMessage.PathNode\022(\n\nstr"
|
|
|
- "eetNode\030\004 \001(\0132\024.NavMessage.PathNode\022\'\n\tp"
|
|
|
- "athNodes\030\005 \003(\0132\024.NavMessage.PathNode\022\021\n\t"
|
|
|
- "wheelbase\030\006 \001(\002\022\023\n\013changedMode\030\007 \001(\005\"P\n\006"
|
|
|
- "NavCmd\022\016\n\006action\030\001 \001(\005\022\013\n\003key\030\002 \001(\t\022)\n\nn"
|
|
|
- "ewActions\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"
|
|
|
- "\"B\n\tManualCmd\022\013\n\003key\030\001 \001(\t\022\026\n\016operation_"
|
|
|
- "type\030\002 \001(\005\022\020\n\010velocity\030\003 \001(\002\"\366\001\n\010NavStat"
|
|
|
- "u\022\r\n\005statu\030\001 \001(\005\022\020\n\010main_agv\030\002 \001(\010\022\021\n\tmo"
|
|
|
- "ve_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.Trajectory\022,\n\014p"
|
|
|
- "redict_traj\030\007 \001(\0132\026.NavMessage.Trajector"
|
|
|
- "y\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\005the"
|
|
|
- "ta\030\003 \001(\002\022&\n\010agvStatu\030\004 \001(\0132\024.NavMessage."
|
|
|
- "AgvStatu2\302\001\n\nNavExcutor\0226\n\005Start\022\022.NavMe"
|
|
|
- "ssage.NavCmd\032\027.NavMessage.NavResponse\"\000\022"
|
|
|
- "7\n\006Cancel\022\022.NavMessage.NavCmd\032\027.NavMessa"
|
|
|
- "ge.NavResponse\"\000\022C\n\017ManualOperation\022\025.Na"
|
|
|
- "vMessage.ManualCmd\032\027.NavMessage.NavRespo"
|
|
|
- "nse\"\000b\006proto3"
|
|
|
+ "\002\022\t\n\001L\030\006 \001(\002\022\t\n\001P\030\007 \001(\005\022\t\n\001D\030\010 \001(\002\022\013\n\003en"
|
|
|
+ "d\030\t \001(\005\"-\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\"Q\n\010PathNode\022\t\n\001x\030\001 \001(\002\022\t\n"
|
|
|
+ "\001y\030\002 \001(\002\022\t\n\001l\030\003 \001(\002\022\t\n\001w\030\004 \001(\002\022\r\n\005theta\030"
|
|
|
+ "\005 \001(\002\022\n\n\002id\030\006 \001(\t\"/\n\nTrajectory\022!\n\005poses"
|
|
|
+ "\030\001 \003(\0132\022.NavMessage.Pose2d\"\345\001\n\tNewAction"
|
|
|
+ "\022\014\n\004type\030\001 \001(\005\022\'\n\tspaceNode\030\002 \001(\0132\024.NavM"
|
|
|
+ "essage.PathNode\022&\n\010passNode\030\003 \001(\0132\024.NavM"
|
|
|
+ "essage.PathNode\022(\n\nstreetNode\030\004 \001(\0132\024.Na"
|
|
|
+ "vMessage.PathNode\022\'\n\tpathNodes\030\005 \003(\0132\024.N"
|
|
|
+ "avMessage.PathNode\022\021\n\twheelbase\030\006 \001(\002\022\023\n"
|
|
|
+ "\013changedMode\030\007 \001(\005\"P\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\003r"
|
|
|
+ "et\030\001 \001(\005\022\014\n\004info\030\002 \001(\t\"B\n\tManualCmd\022\013\n\003k"
|
|
|
+ "ey\030\001 \001(\t\022\026\n\016operation_type\030\002 \001(\005\022\020\n\010velo"
|
|
|
+ "city\030\003 \001(\002\"\366\001\n\010NavStatu\022\r\n\005statu\030\001 \001(\005\022\020"
|
|
|
+ "\n\010main_agv\030\002 \001(\010\022\021\n\tmove_mode\030\003 \001(\005\022(\n\004o"
|
|
|
+ "dom\030\004 \001(\0132\032.NavMessage.LidarOdomStatu\022\013\n"
|
|
|
+ "\003key\030\005 \001(\t\022-\n\rselected_traj\030\006 \001(\0132\026.NavM"
|
|
|
+ "essage.Trajectory\022,\n\014predict_traj\030\007 \001(\0132"
|
|
|
+ "\026.NavMessage.Trajectory\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\005theta\030\003 \001(\002\022&\n\010agvSta"
|
|
|
+ "tu\030\004 \001(\0132\024.NavMessage.AgvStatu2\302\001\n\nNavEx"
|
|
|
+ "cutor\0226\n\005Start\022\022.NavMessage.NavCmd\032\027.Nav"
|
|
|
+ "Message.NavResponse\"\000\0227\n\006Cancel\022\022.NavMes"
|
|
|
+ "sage.NavCmd\032\027.NavMessage.NavResponse\"\000\022C"
|
|
|
+ "\n\017ManualOperation\022\025.NavMessage.ManualCmd"
|
|
|
+ "\032\027.NavMessage.NavResponse\"\000b\006proto3"
|
|
|
};
|
|
|
static ::absl::once_flag descriptor_table_message_2eproto_once;
|
|
|
const ::_pbi::DescriptorTable descriptor_table_message_2eproto = {
|
|
|
false,
|
|
|
false,
|
|
|
- 1453,
|
|
|
+ 1475,
|
|
|
descriptor_table_protodef_message_2eproto,
|
|
|
"message.proto",
|
|
|
&descriptor_table_message_2eproto_once,
|
|
@@ -1305,6 +1311,10 @@ inline void ToAgvCmd::SharedCtor(::_pb::Arena* arena) {
|
|
|
|
|
|
, decltype(_impl_.l_) { 0 }
|
|
|
|
|
|
+ , decltype(_impl_.p_) { 0 }
|
|
|
+
|
|
|
+ , decltype(_impl_.d_) { 0 }
|
|
|
+
|
|
|
, decltype(_impl_.end_) { 0 }
|
|
|
|
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
@@ -1400,9 +1410,27 @@ const char* ToAgvCmd::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
|
|
|
goto handle_unusual;
|
|
|
}
|
|
|
continue;
|
|
|
- // int32 end = 7;
|
|
|
+ // int32 P = 7;
|
|
|
case 7:
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
|
|
|
+ _impl_.p_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
|
|
+ CHK_(ptr);
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ continue;
|
|
|
+ // float D = 8;
|
|
|
+ case 8:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 69)) {
|
|
|
+ _impl_.d_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
|
+ ptr += sizeof(float);
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ continue;
|
|
|
+ // int32 end = 9;
|
|
|
+ case 9:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 72)) {
|
|
|
_impl_.end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
|
|
CHK_(ptr);
|
|
|
} else {
|
|
@@ -1492,11 +1520,29 @@ failure:
|
|
|
6, this->_internal_l(), target);
|
|
|
}
|
|
|
|
|
|
- // int32 end = 7;
|
|
|
+ // int32 P = 7;
|
|
|
+ if (this->_internal_p() != 0) {
|
|
|
+ target = stream->EnsureSpace(target);
|
|
|
+ target = ::_pbi::WireFormatLite::WriteInt32ToArray(
|
|
|
+ 7, this->_internal_p(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // float D = 8;
|
|
|
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
|
|
|
+ float tmp_d = this->_internal_d();
|
|
|
+ ::uint32_t raw_d;
|
|
|
+ memcpy(&raw_d, &tmp_d, sizeof(tmp_d));
|
|
|
+ if (raw_d != 0) {
|
|
|
+ target = stream->EnsureSpace(target);
|
|
|
+ target = ::_pbi::WireFormatLite::WriteFloatToArray(
|
|
|
+ 8, this->_internal_d(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // int32 end = 9;
|
|
|
if (this->_internal_end() != 0) {
|
|
|
target = stream->EnsureSpace(target);
|
|
|
target = ::_pbi::WireFormatLite::WriteInt32ToArray(
|
|
|
- 7, this->_internal_end(), target);
|
|
|
+ 9, this->_internal_end(), target);
|
|
|
}
|
|
|
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
@@ -1560,7 +1606,22 @@ failure:
|
|
|
total_size += 5;
|
|
|
}
|
|
|
|
|
|
- // int32 end = 7;
|
|
|
+ // int32 P = 7;
|
|
|
+ if (this->_internal_p() != 0) {
|
|
|
+ total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
|
+ this->_internal_p());
|
|
|
+ }
|
|
|
+
|
|
|
+ // float D = 8;
|
|
|
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
|
|
|
+ float tmp_d = this->_internal_d();
|
|
|
+ ::uint32_t raw_d;
|
|
|
+ memcpy(&raw_d, &tmp_d, sizeof(tmp_d));
|
|
|
+ if (raw_d != 0) {
|
|
|
+ total_size += 5;
|
|
|
+ }
|
|
|
+
|
|
|
+ // int32 end = 9;
|
|
|
if (this->_internal_end() != 0) {
|
|
|
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
|
|
|
this->_internal_end());
|
|
@@ -1614,6 +1675,16 @@ void ToAgvCmd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTO
|
|
|
if (raw_l != 0) {
|
|
|
_this->_internal_set_l(from._internal_l());
|
|
|
}
|
|
|
+ if (from._internal_p() != 0) {
|
|
|
+ _this->_internal_set_p(from._internal_p());
|
|
|
+ }
|
|
|
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
|
|
|
+ float tmp_d = from._internal_d();
|
|
|
+ ::uint32_t raw_d;
|
|
|
+ memcpy(&raw_d, &tmp_d, sizeof(tmp_d));
|
|
|
+ if (raw_d != 0) {
|
|
|
+ _this->_internal_set_d(from._internal_d());
|
|
|
+ }
|
|
|
if (from._internal_end() != 0) {
|
|
|
_this->_internal_set_end(from._internal_end());
|
|
|
}
|