|
@@ -15,6 +15,7 @@
|
|
|
// @@protoc_insertion_point(includes)
|
|
|
#include <google/protobuf/port_def.inc>
|
|
|
extern PROTOBUF_INTERNAL_EXPORT_message_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AgvStatu_message_2eproto;
|
|
|
+extern PROTOBUF_INTERNAL_EXPORT_message_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LidarOdomStatu_message_2eproto;
|
|
|
extern PROTOBUF_INTERNAL_EXPORT_message_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_NewAction_message_2eproto;
|
|
|
extern PROTOBUF_INTERNAL_EXPORT_message_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PathNode_message_2eproto;
|
|
|
extern PROTOBUF_INTERNAL_EXPORT_message_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Pose2d_message_2eproto;
|
|
@@ -120,8 +121,9 @@ static void InitDefaultsscc_info_NavStatu_message_2eproto() {
|
|
|
::NavMessage::NavStatu::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_NavStatu_message_2eproto =
|
|
|
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_NavStatu_message_2eproto}, {
|
|
|
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_NavStatu_message_2eproto =
|
|
|
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_NavStatu_message_2eproto}, {
|
|
|
+ &scc_info_LidarOdomStatu_message_2eproto.base,
|
|
|
&scc_info_Trajectory_message_2eproto.base,}};
|
|
|
|
|
|
static void InitDefaultsscc_info_NewAction_message_2eproto() {
|
|
@@ -287,6 +289,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_message_2eproto::offsets[] PRO
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, l_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, w_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, theta_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, id_),
|
|
|
~0u, // no _has_bits_
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::Trajectory, _internal_metadata_),
|
|
|
~0u, // no _extensions_
|
|
@@ -326,9 +329,12 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_message_2eproto::offsets[] PRO
|
|
|
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, odom_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, key_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, selected_traj_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, predict_traj_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, in_space_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, space_id_),
|
|
|
~0u, // no _has_bits_
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _internal_metadata_),
|
|
|
~0u, // no _extensions_
|
|
@@ -346,11 +352,11 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB
|
|
|
{ 31, -1, sizeof(::NavMessage::SpeedLimit)},
|
|
|
{ 38, -1, sizeof(::NavMessage::Pose2d)},
|
|
|
{ 46, -1, sizeof(::NavMessage::PathNode)},
|
|
|
- { 56, -1, sizeof(::NavMessage::Trajectory)},
|
|
|
- { 62, -1, sizeof(::NavMessage::NewAction)},
|
|
|
- { 79, -1, sizeof(::NavMessage::NavCmd)},
|
|
|
- { 87, -1, sizeof(::NavMessage::NavStatu)},
|
|
|
- { 98, -1, sizeof(::NavMessage::RobotStatu)},
|
|
|
+ { 57, -1, sizeof(::NavMessage::Trajectory)},
|
|
|
+ { 63, -1, sizeof(::NavMessage::NewAction)},
|
|
|
+ { 80, -1, sizeof(::NavMessage::NavCmd)},
|
|
|
+ { 88, -1, sizeof(::NavMessage::NavStatu)},
|
|
|
+ { 102, -1, sizeof(::NavMessage::RobotStatu)},
|
|
|
};
|
|
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
|
|
@@ -376,31 +382,33 @@ const char descriptor_table_protodef_message_2eproto[] PROTOBUF_SECTION_VARIABLE
|
|
|
"\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\nSpeedLimi"
|
|
|
"t\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\"E\n\010Pa"
|
|
|
+ "\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\r\n\005theta\030\003 \001(\002\"Q\n\010Pa"
|
|
|
"thNode\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\"/\n\nTrajectory\022"
|
|
|
- "!\n\005poses\030\001 \003(\0132\022.NavMessage.Pose2d\"\340\003\n\tN"
|
|
|
- "ewAction\022\014\n\004type\030\001 \001(\005\022\'\n\tspaceNode\030\002 \001("
|
|
|
- "\0132\024.NavMessage.PathNode\022&\n\010passNode\030\003 \001("
|
|
|
- "\0132\024.NavMessage.PathNode\022(\n\nstreetNode\030\004 "
|
|
|
- "\001(\0132\024.NavMessage.PathNode\022\'\n\tpathNodes\030\005"
|
|
|
- " \003(\0132\024.NavMessage.PathNode\022+\n\013InOutVLimi"
|
|
|
- "t\030\006 \001(\0132\026.NavMessage.SpeedLimit\0221\n\021NodeV"
|
|
|
- "elocityLimit\030\007 \001(\0132\026.NavMessage.SpeedLim"
|
|
|
- "it\0220\n\020NodeAngularLimit\030\010 \001(\0132\026.NavMessag"
|
|
|
- "e.SpeedLimit\0223\n\023adjustVelocitylimit\030\t \001("
|
|
|
- "\0132\026.NavMessage.SpeedLimit\0222\n\022adjustHoriz"
|
|
|
- "onLimit\030\n \001(\0132\026.NavMessage.SpeedLimit\022\021\n"
|
|
|
- "\twheelbase\030\013 \001(\002\022\023\n\013changedMode\030\014 \001(\005\"P\n"
|
|
|
- "\006NavCmd\022\016\n\006action\030\001 \001(\005\022\013\n\003key\030\002 \001(\t\022)\n\n"
|
|
|
- "newActions\030\005 \003(\0132\025.NavMessage.NewAction\""
|
|
|
- "\250\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\013\n\003key\030\004 \001(\t\022-\n"
|
|
|
- "\rselected_traj\030\006 \001(\0132\026.NavMessage.Trajec"
|
|
|
- "tory\022,\n\014predict_traj\030\007 \001(\0132\026.NavMessage."
|
|
|
- "Trajectory\"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\010agvStatu\030\004 \001(\0132"
|
|
|
- "\024.NavMessage.AgvStatub\006proto3"
|
|
|
+ "\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\"\340\003\n\tNewAction\022\014\n\004type\030\001 \001(\005\022\'\n\tsp"
|
|
|
+ "aceNode\030\002 \001(\0132\024.NavMessage.PathNode\022&\n\010p"
|
|
|
+ "assNode\030\003 \001(\0132\024.NavMessage.PathNode\022(\n\ns"
|
|
|
+ "treetNode\030\004 \001(\0132\024.NavMessage.PathNode\022\'\n"
|
|
|
+ "\tpathNodes\030\005 \003(\0132\024.NavMessage.PathNode\022+"
|
|
|
+ "\n\013InOutVLimit\030\006 \001(\0132\026.NavMessage.SpeedLi"
|
|
|
+ "mit\0221\n\021NodeVelocityLimit\030\007 \001(\0132\026.NavMess"
|
|
|
+ "age.SpeedLimit\0220\n\020NodeAngularLimit\030\010 \001(\013"
|
|
|
+ "2\026.NavMessage.SpeedLimit\0223\n\023adjustVeloci"
|
|
|
+ "tylimit\030\t \001(\0132\026.NavMessage.SpeedLimit\0222\n"
|
|
|
+ "\022adjustHorizonLimit\030\n \001(\0132\026.NavMessage.S"
|
|
|
+ "peedLimit\022\021\n\twheelbase\030\013 \001(\002\022\023\n\013changedM"
|
|
|
+ "ode\030\014 \001(\005\"P\n\006NavCmd\022\016\n\006action\030\001 \001(\005\022\013\n\003k"
|
|
|
+ "ey\030\002 \001(\t\022)\n\nnewActions\030\005 \003(\0132\025.NavMessag"
|
|
|
+ "e.NewAction\"\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\004"
|
|
|
+ "odom\030\004 \001(\0132\032.NavMessage.LidarOdomStatu\022\013"
|
|
|
+ "\n\003key\030\005 \001(\t\022-\n\rselected_traj\030\006 \001(\0132\026.Nav"
|
|
|
+ "Message.Trajectory\022,\n\014predict_traj\030\007 \001(\013"
|
|
|
+ "2\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\010agvSt"
|
|
|
+ "atu\030\004 \001(\0132\024.NavMessage.AgvStatub\006proto3"
|
|
|
;
|
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_message_2eproto_deps[1] = {
|
|
|
};
|
|
@@ -419,7 +427,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", 1309,
|
|
|
+ false, false, descriptor_table_protodef_message_2eproto, "message.proto", 1399,
|
|
|
&descriptor_table_message_2eproto_once, descriptor_table_message_2eproto_sccs, descriptor_table_message_2eproto_deps, 11, 0,
|
|
|
schemas, file_default_instances, TableStruct_message_2eproto::offsets,
|
|
|
file_level_metadata_message_2eproto, 11, file_level_enum_descriptors_message_2eproto, file_level_service_descriptors_message_2eproto,
|
|
@@ -1824,6 +1832,11 @@ PathNode::PathNode(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
PathNode::PathNode(const PathNode& from)
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
+ id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
+ if (!from._internal_id().empty()) {
|
|
|
+ id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_id(),
|
|
|
+ GetArena());
|
|
|
+ }
|
|
|
::memcpy(&x_, &from.x_,
|
|
|
static_cast<size_t>(reinterpret_cast<char*>(&theta_) -
|
|
|
reinterpret_cast<char*>(&x_)) + sizeof(theta_));
|
|
@@ -1831,6 +1844,8 @@ PathNode::PathNode(const PathNode& from)
|
|
|
}
|
|
|
|
|
|
void PathNode::SharedCtor() {
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PathNode_message_2eproto.base);
|
|
|
+ id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
::memset(&x_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&theta_) -
|
|
|
reinterpret_cast<char*>(&x_)) + sizeof(theta_));
|
|
@@ -1844,6 +1859,7 @@ PathNode::~PathNode() {
|
|
|
|
|
|
void PathNode::SharedDtor() {
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr);
|
|
|
+ id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
}
|
|
|
|
|
|
void PathNode::ArenaDtor(void* object) {
|
|
@@ -1867,6 +1883,7 @@ void PathNode::Clear() {
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
+ id_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
::memset(&x_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&theta_) -
|
|
|
reinterpret_cast<char*>(&x_)) + sizeof(theta_));
|
|
@@ -1916,6 +1933,15 @@ const char* PathNode::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i
|
|
|
ptr += sizeof(float);
|
|
|
} else goto handle_unusual;
|
|
|
continue;
|
|
|
+ // string id = 6;
|
|
|
+ case 6:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
|
|
|
+ auto str = _internal_mutable_id();
|
|
|
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "NavMessage.PathNode.id"));
|
|
|
+ CHK_(ptr);
|
|
|
+ } else goto handle_unusual;
|
|
|
+ continue;
|
|
|
default: {
|
|
|
handle_unusual:
|
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
@@ -1974,6 +2000,16 @@ failure:
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_theta(), target);
|
|
|
}
|
|
|
|
|
|
+ // string id = 6;
|
|
|
+ if (this->id().size() > 0) {
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
|
+ this->_internal_id().data(), static_cast<int>(this->_internal_id().length()),
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
|
+ "NavMessage.PathNode.id");
|
|
|
+ target = stream->WriteStringMaybeAliased(
|
|
|
+ 6, this->_internal_id(), target);
|
|
|
+ }
|
|
|
+
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
|
@@ -1990,6 +2026,13 @@ size_t PathNode::ByteSizeLong() const {
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
+ // string id = 6;
|
|
|
+ if (this->id().size() > 0) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
+ this->_internal_id());
|
|
|
+ }
|
|
|
+
|
|
|
// float x = 1;
|
|
|
if (!(this->x() <= 0 && this->x() >= 0)) {
|
|
|
total_size += 1 + 4;
|
|
@@ -2046,6 +2089,9 @@ void PathNode::MergeFrom(const PathNode& from) {
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
+ if (from.id().size() > 0) {
|
|
|
+ _internal_set_id(from._internal_id());
|
|
|
+ }
|
|
|
if (!(from.x() <= 0 && from.x() >= 0)) {
|
|
|
_internal_set_x(from._internal_x());
|
|
|
}
|
|
@@ -2084,6 +2130,7 @@ bool PathNode::IsInitialized() const {
|
|
|
void PathNode::InternalSwap(PathNode* other) {
|
|
|
using std::swap;
|
|
|
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
|
+ id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
|
PROTOBUF_FIELD_OFFSET(PathNode, theta_)
|
|
|
+ sizeof(PathNode::theta_)
|
|
@@ -3192,6 +3239,8 @@ void NavCmd::InternalSwap(NavCmd* other) {
|
|
|
// ===================================================================
|
|
|
|
|
|
void NavStatu::InitAsDefaultInstance() {
|
|
|
+ ::NavMessage::_NavStatu_default_instance_._instance.get_mutable()->odom_ = const_cast< ::NavMessage::LidarOdomStatu*>(
|
|
|
+ ::NavMessage::LidarOdomStatu::internal_default_instance());
|
|
|
::NavMessage::_NavStatu_default_instance_._instance.get_mutable()->selected_traj_ = const_cast< ::NavMessage::Trajectory*>(
|
|
|
::NavMessage::Trajectory::internal_default_instance());
|
|
|
::NavMessage::_NavStatu_default_instance_._instance.get_mutable()->predict_traj_ = const_cast< ::NavMessage::Trajectory*>(
|
|
@@ -3199,10 +3248,15 @@ void NavStatu::InitAsDefaultInstance() {
|
|
|
}
|
|
|
class NavStatu::_Internal {
|
|
|
public:
|
|
|
+ static const ::NavMessage::LidarOdomStatu& odom(const NavStatu* msg);
|
|
|
static const ::NavMessage::Trajectory& selected_traj(const NavStatu* msg);
|
|
|
static const ::NavMessage::Trajectory& predict_traj(const NavStatu* msg);
|
|
|
};
|
|
|
|
|
|
+const ::NavMessage::LidarOdomStatu&
|
|
|
+NavStatu::_Internal::odom(const NavStatu* msg) {
|
|
|
+ return *msg->odom_;
|
|
|
+}
|
|
|
const ::NavMessage::Trajectory&
|
|
|
NavStatu::_Internal::selected_traj(const NavStatu* msg) {
|
|
|
return *msg->selected_traj_;
|
|
@@ -3225,6 +3279,16 @@ NavStatu::NavStatu(const NavStatu& from)
|
|
|
key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_key(),
|
|
|
GetArena());
|
|
|
}
|
|
|
+ space_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
+ if (!from._internal_space_id().empty()) {
|
|
|
+ space_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_space_id(),
|
|
|
+ GetArena());
|
|
|
+ }
|
|
|
+ if (from._internal_has_odom()) {
|
|
|
+ odom_ = new ::NavMessage::LidarOdomStatu(*from.odom_);
|
|
|
+ } else {
|
|
|
+ odom_ = nullptr;
|
|
|
+ }
|
|
|
if (from._internal_has_selected_traj()) {
|
|
|
selected_traj_ = new ::NavMessage::Trajectory(*from.selected_traj_);
|
|
|
} else {
|
|
@@ -3236,17 +3300,18 @@ NavStatu::NavStatu(const NavStatu& from)
|
|
|
predict_traj_ = nullptr;
|
|
|
}
|
|
|
::memcpy(&statu_, &from.statu_,
|
|
|
- static_cast<size_t>(reinterpret_cast<char*>(&move_mode_) -
|
|
|
- reinterpret_cast<char*>(&statu_)) + sizeof(move_mode_));
|
|
|
+ static_cast<size_t>(reinterpret_cast<char*>(&in_space_) -
|
|
|
+ reinterpret_cast<char*>(&statu_)) + sizeof(in_space_));
|
|
|
// @@protoc_insertion_point(copy_constructor:NavMessage.NavStatu)
|
|
|
}
|
|
|
|
|
|
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*>(&move_mode_) -
|
|
|
- reinterpret_cast<char*>(&selected_traj_)) + sizeof(move_mode_));
|
|
|
+ space_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
+ ::memset(&odom_, 0, static_cast<size_t>(
|
|
|
+ reinterpret_cast<char*>(&in_space_) -
|
|
|
+ reinterpret_cast<char*>(&odom_)) + sizeof(in_space_));
|
|
|
}
|
|
|
|
|
|
NavStatu::~NavStatu() {
|
|
@@ -3258,6 +3323,8 @@ NavStatu::~NavStatu() {
|
|
|
void NavStatu::SharedDtor() {
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr);
|
|
|
key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
+ space_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
+ if (this != internal_default_instance()) delete odom_;
|
|
|
if (this != internal_default_instance()) delete selected_traj_;
|
|
|
if (this != internal_default_instance()) delete predict_traj_;
|
|
|
}
|
|
@@ -3284,6 +3351,11 @@ void NavStatu::Clear() {
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
key_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
+ space_id_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
+ if (GetArena() == nullptr && odom_ != nullptr) {
|
|
|
+ delete odom_;
|
|
|
+ }
|
|
|
+ odom_ = nullptr;
|
|
|
if (GetArena() == nullptr && selected_traj_ != nullptr) {
|
|
|
delete selected_traj_;
|
|
|
}
|
|
@@ -3293,8 +3365,8 @@ void NavStatu::Clear() {
|
|
|
}
|
|
|
predict_traj_ = nullptr;
|
|
|
::memset(&statu_, 0, static_cast<size_t>(
|
|
|
- reinterpret_cast<char*>(&move_mode_) -
|
|
|
- reinterpret_cast<char*>(&statu_)) + sizeof(move_mode_));
|
|
|
+ reinterpret_cast<char*>(&in_space_) -
|
|
|
+ reinterpret_cast<char*>(&statu_)) + sizeof(in_space_));
|
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
}
|
|
|
|
|
@@ -3327,9 +3399,16 @@ const char* NavStatu::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i
|
|
|
CHK_(ptr);
|
|
|
} else goto handle_unusual;
|
|
|
continue;
|
|
|
- // string key = 4;
|
|
|
+ // .NavMessage.LidarOdomStatu odom = 4;
|
|
|
case 4:
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
|
|
+ ptr = ctx->ParseMessage(_internal_mutable_odom(), ptr);
|
|
|
+ CHK_(ptr);
|
|
|
+ } else goto handle_unusual;
|
|
|
+ continue;
|
|
|
+ // string key = 5;
|
|
|
+ case 5:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
|
|
|
auto str = _internal_mutable_key();
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "NavMessage.NavStatu.key"));
|
|
@@ -3350,6 +3429,22 @@ const char* NavStatu::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i
|
|
|
CHK_(ptr);
|
|
|
} else goto handle_unusual;
|
|
|
continue;
|
|
|
+ // bool in_space = 8;
|
|
|
+ case 8:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) {
|
|
|
+ in_space_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
+ CHK_(ptr);
|
|
|
+ } else goto handle_unusual;
|
|
|
+ continue;
|
|
|
+ // string space_id = 9;
|
|
|
+ case 9:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
|
|
|
+ auto str = _internal_mutable_space_id();
|
|
|
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
|
+ CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "NavMessage.NavStatu.space_id"));
|
|
|
+ CHK_(ptr);
|
|
|
+ } else goto handle_unusual;
|
|
|
+ continue;
|
|
|
default: {
|
|
|
handle_unusual:
|
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
@@ -3396,14 +3491,22 @@ failure:
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_move_mode(), target);
|
|
|
}
|
|
|
|
|
|
- // string key = 4;
|
|
|
+ // .NavMessage.LidarOdomStatu odom = 4;
|
|
|
+ if (this->has_odom()) {
|
|
|
+ target = stream->EnsureSpace(target);
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
+ InternalWriteMessage(
|
|
|
+ 4, _Internal::odom(this), target, stream);
|
|
|
+ }
|
|
|
+
|
|
|
+ // string key = 5;
|
|
|
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(
|
|
|
- 4, this->_internal_key(), target);
|
|
|
+ 5, this->_internal_key(), target);
|
|
|
}
|
|
|
|
|
|
// .NavMessage.Trajectory selected_traj = 6;
|
|
@@ -3422,6 +3525,22 @@ failure:
|
|
|
7, _Internal::predict_traj(this), target, stream);
|
|
|
}
|
|
|
|
|
|
+ // bool in_space = 8;
|
|
|
+ if (this->in_space() != 0) {
|
|
|
+ target = stream->EnsureSpace(target);
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(8, this->_internal_in_space(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // string space_id = 9;
|
|
|
+ if (this->space_id().size() > 0) {
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
|
+ this->_internal_space_id().data(), static_cast<int>(this->_internal_space_id().length()),
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
|
+ "NavMessage.NavStatu.space_id");
|
|
|
+ target = stream->WriteStringMaybeAliased(
|
|
|
+ 9, this->_internal_space_id(), target);
|
|
|
+ }
|
|
|
+
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
|
@@ -3438,13 +3557,27 @@ size_t NavStatu::ByteSizeLong() const {
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
- // string key = 4;
|
|
|
+ // string key = 5;
|
|
|
if (this->key().size() > 0) {
|
|
|
total_size += 1 +
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
this->_internal_key());
|
|
|
}
|
|
|
|
|
|
+ // string space_id = 9;
|
|
|
+ if (this->space_id().size() > 0) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
+ this->_internal_space_id());
|
|
|
+ }
|
|
|
+
|
|
|
+ // .NavMessage.LidarOdomStatu odom = 4;
|
|
|
+ if (this->has_odom()) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
|
+ *odom_);
|
|
|
+ }
|
|
|
+
|
|
|
// .NavMessage.Trajectory selected_traj = 6;
|
|
|
if (this->has_selected_traj()) {
|
|
|
total_size += 1 +
|
|
@@ -3466,11 +3599,6 @@ size_t NavStatu::ByteSizeLong() const {
|
|
|
this->_internal_statu());
|
|
|
}
|
|
|
|
|
|
- // 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 +
|
|
@@ -3478,6 +3606,16 @@ size_t NavStatu::ByteSizeLong() const {
|
|
|
this->_internal_move_mode());
|
|
|
}
|
|
|
|
|
|
+ // bool main_agv = 2;
|
|
|
+ if (this->main_agv() != 0) {
|
|
|
+ total_size += 1 + 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ // bool in_space = 8;
|
|
|
+ if (this->in_space() != 0) {
|
|
|
+ total_size += 1 + 1;
|
|
|
+ }
|
|
|
+
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
|
|
_internal_metadata_, total_size, &_cached_size_);
|
|
@@ -3512,6 +3650,12 @@ void NavStatu::MergeFrom(const NavStatu& from) {
|
|
|
if (from.key().size() > 0) {
|
|
|
_internal_set_key(from._internal_key());
|
|
|
}
|
|
|
+ if (from.space_id().size() > 0) {
|
|
|
+ _internal_set_space_id(from._internal_space_id());
|
|
|
+ }
|
|
|
+ if (from.has_odom()) {
|
|
|
+ _internal_mutable_odom()->::NavMessage::LidarOdomStatu::MergeFrom(from._internal_odom());
|
|
|
+ }
|
|
|
if (from.has_selected_traj()) {
|
|
|
_internal_mutable_selected_traj()->::NavMessage::Trajectory::MergeFrom(from._internal_selected_traj());
|
|
|
}
|
|
@@ -3521,11 +3665,14 @@ void NavStatu::MergeFrom(const NavStatu& from) {
|
|
|
if (from.statu() != 0) {
|
|
|
_internal_set_statu(from._internal_statu());
|
|
|
}
|
|
|
+ if (from.move_mode() != 0) {
|
|
|
+ _internal_set_move_mode(from._internal_move_mode());
|
|
|
+ }
|
|
|
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());
|
|
|
+ if (from.in_space() != 0) {
|
|
|
+ _internal_set_in_space(from._internal_in_space());
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -3551,12 +3698,13 @@ void NavStatu::InternalSwap(NavStatu* other) {
|
|
|
using std::swap;
|
|
|
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
|
key_.Swap(&other->key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
+ space_id_.Swap(&other->space_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
|
- 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_));
|
|
|
+ PROTOBUF_FIELD_OFFSET(NavStatu, in_space_)
|
|
|
+ + sizeof(NavStatu::in_space_)
|
|
|
+ - PROTOBUF_FIELD_OFFSET(NavStatu, odom_)>(
|
|
|
+ reinterpret_cast<char*>(&odom_),
|
|
|
+ reinterpret_cast<char*>(&other->odom_));
|
|
|
}
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata NavStatu::GetMetadata() const {
|