|
@@ -14,7 +14,6 @@
|
|
|
#include <google/protobuf/wire_format.h>
|
|
|
// @@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<1> scc_info_Action_message_2eproto;
|
|
|
extern PROTOBUF_INTERNAL_EXPORT_message_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Pose2d_message_2eproto;
|
|
|
extern PROTOBUF_INTERNAL_EXPORT_message_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Trajectory_message_2eproto;
|
|
@@ -103,10 +102,9 @@ static void InitDefaultsscc_info_NavStatu_message_2eproto() {
|
|
|
::NavMessage::NavStatu::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_NavStatu_message_2eproto =
|
|
|
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, 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_Action_message_2eproto.base,
|
|
|
- &scc_info_AGVStatu_message_2eproto.base,
|
|
|
&scc_info_Trajectory_message_2eproto.base,}};
|
|
|
|
|
|
static void InitDefaultsscc_info_Pose2d_message_2eproto() {
|
|
@@ -172,9 +170,10 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_message_2eproto::offsets[] PRO
|
|
|
~0u, // no _extensions_
|
|
|
~0u, // no _oneof_case_
|
|
|
~0u, // no _weak_field_map_
|
|
|
- PROTOBUF_FIELD_OFFSET(::NavMessage::Speed, type_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::NavMessage::Speed, h_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::NavMessage::Speed, t_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::Speed, v_),
|
|
|
- PROTOBUF_FIELD_OFFSET(::NavMessage::Speed, vth_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::NavMessage::Speed, w_),
|
|
|
~0u, // no _has_bits_
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, _internal_metadata_),
|
|
|
~0u, // no _extensions_
|
|
@@ -213,20 +212,17 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_message_2eproto::offsets[] PRO
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, statu_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, key_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, unfinished_actions_),
|
|
|
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, current_pose_),
|
|
|
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, pose_timeout_),
|
|
|
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, twist_timeout_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, selected_traj_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, predict_traj_),
|
|
|
};
|
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
{ 0, -1, sizeof(::NavMessage::AGVStatu)},
|
|
|
{ 10, -1, sizeof(::NavMessage::Speed)},
|
|
|
- { 18, -1, sizeof(::NavMessage::Pose2d)},
|
|
|
- { 26, -1, sizeof(::NavMessage::Trajectory)},
|
|
|
- { 32, -1, sizeof(::NavMessage::Action)},
|
|
|
- { 40, -1, sizeof(::NavMessage::NavCmd)},
|
|
|
- { 48, -1, sizeof(::NavMessage::NavStatu)},
|
|
|
+ { 19, -1, sizeof(::NavMessage::Pose2d)},
|
|
|
+ { 27, -1, sizeof(::NavMessage::Trajectory)},
|
|
|
+ { 33, -1, sizeof(::NavMessage::Action)},
|
|
|
+ { 41, -1, sizeof(::NavMessage::NavCmd)},
|
|
|
+ { 49, -1, sizeof(::NavMessage::NavStatu)},
|
|
|
};
|
|
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
|
|
@@ -242,22 +238,20 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] =
|
|
|
const char descriptor_table_protodef_message_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
|
|
"\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\005Speed\022\014\n\004type\030\001 "
|
|
|
- "\001(\005\022\t\n\001v\030\002 \001(\002\022\013\n\003vth\030\003 \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\nTr"
|
|
|
- "ajectory\022!\n\005poses\030\001 \003(\0132\022.NavMessage.Pos"
|
|
|
- "e2d\"c\n\006Action\022\014\n\004type\030\001 \001(\005\022\"\n\006target\030\002 "
|
|
|
- "\001(\0132\022.NavMessage.Pose2d\022\'\n\013target_diff\030\003"
|
|
|
- " \001(\0132\022.NavMessage.Pose2d\"J\n\006NavCmd\022\016\n\006ac"
|
|
|
- "tion\030\001 \001(\005\022\013\n\003key\030\002 \001(\t\022#\n\007actions\030\003 \003(\013"
|
|
|
- "2\022.NavMessage.Action\"\214\002\n\010NavStatu\022\r\n\005sta"
|
|
|
- "tu\030\001 \001(\010\022\013\n\003key\030\002 \001(\t\022.\n\022unfinished_acti"
|
|
|
- "ons\030\003 \003(\0132\022.NavMessage.Action\022*\n\014current"
|
|
|
- "_pose\030\004 \001(\0132\024.NavMessage.AGVStatu\022\024\n\014pos"
|
|
|
- "e_timeout\030\005 \001(\010\022\025\n\rtwist_timeout\030\006 \001(\010\022-"
|
|
|
- "\n\rselected_traj\030\007 \001(\0132\026.NavMessage.Traje"
|
|
|
- "ctory\022,\n\014predict_traj\030\010 \001(\0132\026.NavMessage"
|
|
|
- ".Trajectoryb\006proto3"
|
|
|
+ "v\030\004 \001(\002\022\013\n\003vth\030\005 \001(\002\"3\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\"-\n\006Pos"
|
|
|
+ "e2d\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\005poses\030\001 \003(\0132\022.NavMessa"
|
|
|
+ "ge.Pose2d\"c\n\006Action\022\014\n\004type\030\001 \001(\005\022\"\n\006tar"
|
|
|
+ "get\030\002 \001(\0132\022.NavMessage.Pose2d\022\'\n\013target_"
|
|
|
+ "diff\030\003 \001(\0132\022.NavMessage.Pose2d\"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.NavMessage.Action\"\263\001\n\010NavStatu\022"
|
|
|
+ "\r\n\005statu\030\001 \001(\010\022\013\n\003key\030\002 \001(\t\022.\n\022unfinishe"
|
|
|
+ "d_actions\030\003 \003(\0132\022.NavMessage.Action\022-\n\rs"
|
|
|
+ "elected_traj\030\004 \001(\0132\026.NavMessage.Trajecto"
|
|
|
+ "ry\022,\n\014predict_traj\030\005 \001(\0132\026.NavMessage.Tr"
|
|
|
+ "ajectoryb\006proto3"
|
|
|
;
|
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_message_2eproto_deps[1] = {
|
|
|
};
|
|
@@ -272,7 +266,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", 699,
|
|
|
+ false, false, descriptor_table_protodef_message_2eproto, "message.proto", 616,
|
|
|
&descriptor_table_message_2eproto_once, descriptor_table_message_2eproto_sccs, descriptor_table_message_2eproto_deps, 7, 0,
|
|
|
schemas, file_default_instances, TableStruct_message_2eproto::offsets,
|
|
|
file_level_metadata_message_2eproto, 7, file_level_enum_descriptors_message_2eproto, file_level_service_descriptors_message_2eproto,
|
|
@@ -589,16 +583,16 @@ Speed::Speed(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
Speed::Speed(const Speed& from)
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
- ::memcpy(&type_, &from.type_,
|
|
|
- static_cast<size_t>(reinterpret_cast<char*>(&vth_) -
|
|
|
- reinterpret_cast<char*>(&type_)) + sizeof(vth_));
|
|
|
+ ::memcpy(&h_, &from.h_,
|
|
|
+ static_cast<size_t>(reinterpret_cast<char*>(&w_) -
|
|
|
+ reinterpret_cast<char*>(&h_)) + sizeof(w_));
|
|
|
// @@protoc_insertion_point(copy_constructor:NavMessage.Speed)
|
|
|
}
|
|
|
|
|
|
void Speed::SharedCtor() {
|
|
|
- ::memset(&type_, 0, static_cast<size_t>(
|
|
|
- reinterpret_cast<char*>(&vth_) -
|
|
|
- reinterpret_cast<char*>(&type_)) + sizeof(vth_));
|
|
|
+ ::memset(&h_, 0, static_cast<size_t>(
|
|
|
+ reinterpret_cast<char*>(&w_) -
|
|
|
+ reinterpret_cast<char*>(&h_)) + sizeof(w_));
|
|
|
}
|
|
|
|
|
|
Speed::~Speed() {
|
|
@@ -632,9 +626,9 @@ void Speed::Clear() {
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
- ::memset(&type_, 0, static_cast<size_t>(
|
|
|
- reinterpret_cast<char*>(&vth_) -
|
|
|
- reinterpret_cast<char*>(&type_)) + sizeof(vth_));
|
|
|
+ ::memset(&h_, 0, static_cast<size_t>(
|
|
|
+ reinterpret_cast<char*>(&w_) -
|
|
|
+ reinterpret_cast<char*>(&h_)) + sizeof(w_));
|
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
}
|
|
|
|
|
@@ -646,24 +640,31 @@ const char* Speed::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
|
CHK_(ptr);
|
|
|
switch (tag >> 3) {
|
|
|
- // int32 type = 1;
|
|
|
+ // int32 H = 1;
|
|
|
case 1:
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
|
|
- type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
+ h_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
CHK_(ptr);
|
|
|
} else goto handle_unusual;
|
|
|
continue;
|
|
|
- // float v = 2;
|
|
|
+ // int32 T = 2;
|
|
|
case 2:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) {
|
|
|
- v_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
|
- ptr += sizeof(float);
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
|
|
+ t_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
+ CHK_(ptr);
|
|
|
} else goto handle_unusual;
|
|
|
continue;
|
|
|
- // float vth = 3;
|
|
|
+ // float V = 3;
|
|
|
case 3:
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) {
|
|
|
- vth_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
|
+ v_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
|
+ ptr += sizeof(float);
|
|
|
+ } else goto handle_unusual;
|
|
|
+ continue;
|
|
|
+ // float W = 4;
|
|
|
+ case 4:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) {
|
|
|
+ w_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
|
ptr += sizeof(float);
|
|
|
} else goto handle_unusual;
|
|
|
continue;
|
|
@@ -695,22 +696,28 @@ failure:
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
- // int32 type = 1;
|
|
|
- if (this->type() != 0) {
|
|
|
+ // int32 H = 1;
|
|
|
+ if (this->h() != 0) {
|
|
|
target = stream->EnsureSpace(target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_type(), target);
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_h(), target);
|
|
|
}
|
|
|
|
|
|
- // float v = 2;
|
|
|
+ // int32 T = 2;
|
|
|
+ if (this->t() != 0) {
|
|
|
+ target = stream->EnsureSpace(target);
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_t(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // float V = 3;
|
|
|
if (!(this->v() <= 0 && this->v() >= 0)) {
|
|
|
target = stream->EnsureSpace(target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_v(), target);
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_v(), target);
|
|
|
}
|
|
|
|
|
|
- // float vth = 3;
|
|
|
- if (!(this->vth() <= 0 && this->vth() >= 0)) {
|
|
|
+ // float W = 4;
|
|
|
+ if (!(this->w() <= 0 && this->w() >= 0)) {
|
|
|
target = stream->EnsureSpace(target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_vth(), target);
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_w(), target);
|
|
|
}
|
|
|
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
@@ -729,20 +736,27 @@ size_t Speed::ByteSizeLong() const {
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
- // int32 type = 1;
|
|
|
- if (this->type() != 0) {
|
|
|
+ // int32 H = 1;
|
|
|
+ if (this->h() != 0) {
|
|
|
total_size += 1 +
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
- this->_internal_type());
|
|
|
+ this->_internal_h());
|
|
|
}
|
|
|
|
|
|
- // float v = 2;
|
|
|
+ // int32 T = 2;
|
|
|
+ if (this->t() != 0) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
|
|
+ this->_internal_t());
|
|
|
+ }
|
|
|
+
|
|
|
+ // float V = 3;
|
|
|
if (!(this->v() <= 0 && this->v() >= 0)) {
|
|
|
total_size += 1 + 4;
|
|
|
}
|
|
|
|
|
|
- // float vth = 3;
|
|
|
- if (!(this->vth() <= 0 && this->vth() >= 0)) {
|
|
|
+ // float W = 4;
|
|
|
+ if (!(this->w() <= 0 && this->w() >= 0)) {
|
|
|
total_size += 1 + 4;
|
|
|
}
|
|
|
|
|
@@ -777,14 +791,17 @@ void Speed::MergeFrom(const Speed& from) {
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
- if (from.type() != 0) {
|
|
|
- _internal_set_type(from._internal_type());
|
|
|
+ if (from.h() != 0) {
|
|
|
+ _internal_set_h(from._internal_h());
|
|
|
+ }
|
|
|
+ if (from.t() != 0) {
|
|
|
+ _internal_set_t(from._internal_t());
|
|
|
}
|
|
|
if (!(from.v() <= 0 && from.v() >= 0)) {
|
|
|
_internal_set_v(from._internal_v());
|
|
|
}
|
|
|
- if (!(from.vth() <= 0 && from.vth() >= 0)) {
|
|
|
- _internal_set_vth(from._internal_vth());
|
|
|
+ if (!(from.w() <= 0 && from.w() >= 0)) {
|
|
|
+ _internal_set_w(from._internal_w());
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -810,11 +827,11 @@ void Speed::InternalSwap(Speed* other) {
|
|
|
using std::swap;
|
|
|
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
|
- PROTOBUF_FIELD_OFFSET(Speed, vth_)
|
|
|
- + sizeof(Speed::vth_)
|
|
|
- - PROTOBUF_FIELD_OFFSET(Speed, type_)>(
|
|
|
- reinterpret_cast<char*>(&type_),
|
|
|
- reinterpret_cast<char*>(&other->type_));
|
|
|
+ PROTOBUF_FIELD_OFFSET(Speed, w_)
|
|
|
+ + sizeof(Speed::w_)
|
|
|
+ - PROTOBUF_FIELD_OFFSET(Speed, h_)>(
|
|
|
+ reinterpret_cast<char*>(&h_),
|
|
|
+ reinterpret_cast<char*>(&other->h_));
|
|
|
}
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Speed::GetMetadata() const {
|
|
@@ -1833,8 +1850,6 @@ void NavCmd::InternalSwap(NavCmd* other) {
|
|
|
// ===================================================================
|
|
|
|
|
|
void NavStatu::InitAsDefaultInstance() {
|
|
|
- ::NavMessage::_NavStatu_default_instance_._instance.get_mutable()->current_pose_ = const_cast< ::NavMessage::AGVStatu*>(
|
|
|
- ::NavMessage::AGVStatu::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*>(
|
|
@@ -1842,15 +1857,10 @@ void NavStatu::InitAsDefaultInstance() {
|
|
|
}
|
|
|
class NavStatu::_Internal {
|
|
|
public:
|
|
|
- static const ::NavMessage::AGVStatu& current_pose(const NavStatu* msg);
|
|
|
static const ::NavMessage::Trajectory& selected_traj(const NavStatu* msg);
|
|
|
static const ::NavMessage::Trajectory& predict_traj(const NavStatu* msg);
|
|
|
};
|
|
|
|
|
|
-const ::NavMessage::AGVStatu&
|
|
|
-NavStatu::_Internal::current_pose(const NavStatu* msg) {
|
|
|
- return *msg->current_pose_;
|
|
|
-}
|
|
|
const ::NavMessage::Trajectory&
|
|
|
NavStatu::_Internal::selected_traj(const NavStatu* msg) {
|
|
|
return *msg->selected_traj_;
|
|
@@ -1875,11 +1885,6 @@ NavStatu::NavStatu(const NavStatu& from)
|
|
|
key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_key(),
|
|
|
GetArena());
|
|
|
}
|
|
|
- if (from._internal_has_current_pose()) {
|
|
|
- current_pose_ = new ::NavMessage::AGVStatu(*from.current_pose_);
|
|
|
- } else {
|
|
|
- current_pose_ = nullptr;
|
|
|
- }
|
|
|
if (from._internal_has_selected_traj()) {
|
|
|
selected_traj_ = new ::NavMessage::Trajectory(*from.selected_traj_);
|
|
|
} else {
|
|
@@ -1890,18 +1895,16 @@ NavStatu::NavStatu(const NavStatu& from)
|
|
|
} else {
|
|
|
predict_traj_ = nullptr;
|
|
|
}
|
|
|
- ::memcpy(&statu_, &from.statu_,
|
|
|
- static_cast<size_t>(reinterpret_cast<char*>(&twist_timeout_) -
|
|
|
- reinterpret_cast<char*>(&statu_)) + sizeof(twist_timeout_));
|
|
|
+ statu_ = from.statu_;
|
|
|
// @@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(¤t_pose_, 0, static_cast<size_t>(
|
|
|
- reinterpret_cast<char*>(&twist_timeout_) -
|
|
|
- reinterpret_cast<char*>(¤t_pose_)) + sizeof(twist_timeout_));
|
|
|
+ ::memset(&selected_traj_, 0, static_cast<size_t>(
|
|
|
+ reinterpret_cast<char*>(&statu_) -
|
|
|
+ reinterpret_cast<char*>(&selected_traj_)) + sizeof(statu_));
|
|
|
}
|
|
|
|
|
|
NavStatu::~NavStatu() {
|
|
@@ -1913,7 +1916,6 @@ NavStatu::~NavStatu() {
|
|
|
void NavStatu::SharedDtor() {
|
|
|
GOOGLE_DCHECK(GetArena() == nullptr);
|
|
|
key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
|
- if (this != internal_default_instance()) delete current_pose_;
|
|
|
if (this != internal_default_instance()) delete selected_traj_;
|
|
|
if (this != internal_default_instance()) delete predict_traj_;
|
|
|
}
|
|
@@ -1941,10 +1943,6 @@ void NavStatu::Clear() {
|
|
|
|
|
|
unfinished_actions_.Clear();
|
|
|
key_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
|
- if (GetArena() == nullptr && current_pose_ != nullptr) {
|
|
|
- delete current_pose_;
|
|
|
- }
|
|
|
- current_pose_ = nullptr;
|
|
|
if (GetArena() == nullptr && selected_traj_ != nullptr) {
|
|
|
delete selected_traj_;
|
|
|
}
|
|
@@ -1953,9 +1951,7 @@ void NavStatu::Clear() {
|
|
|
delete predict_traj_;
|
|
|
}
|
|
|
predict_traj_ = nullptr;
|
|
|
- ::memset(&statu_, 0, static_cast<size_t>(
|
|
|
- reinterpret_cast<char*>(&twist_timeout_) -
|
|
|
- reinterpret_cast<char*>(&statu_)) + sizeof(twist_timeout_));
|
|
|
+ statu_ = false;
|
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
}
|
|
|
|
|
@@ -1995,37 +1991,16 @@ const char* NavStatu::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i
|
|
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
|
|
|
} else goto handle_unusual;
|
|
|
continue;
|
|
|
- // .NavMessage.AGVStatu current_pose = 4;
|
|
|
+ // .NavMessage.Trajectory selected_traj = 4;
|
|
|
case 4:
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
|
|
- ptr = ctx->ParseMessage(_internal_mutable_current_pose(), ptr);
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // bool pose_timeout = 5;
|
|
|
- case 5:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
|
|
|
- pose_timeout_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // bool twist_timeout = 6;
|
|
|
- case 6:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
|
|
|
- twist_timeout_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
|
- CHK_(ptr);
|
|
|
- } else goto handle_unusual;
|
|
|
- continue;
|
|
|
- // .NavMessage.Trajectory selected_traj = 7;
|
|
|
- case 7:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_selected_traj(), ptr);
|
|
|
CHK_(ptr);
|
|
|
} else goto handle_unusual;
|
|
|
continue;
|
|
|
- // .NavMessage.Trajectory predict_traj = 8;
|
|
|
- case 8:
|
|
|
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
|
|
|
+ // .NavMessage.Trajectory predict_traj = 5;
|
|
|
+ case 5:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_predict_traj(), ptr);
|
|
|
CHK_(ptr);
|
|
|
} else goto handle_unusual;
|
|
@@ -2082,40 +2057,20 @@ failure:
|
|
|
InternalWriteMessage(3, this->_internal_unfinished_actions(i), target, stream);
|
|
|
}
|
|
|
|
|
|
- // .NavMessage.AGVStatu current_pose = 4;
|
|
|
- if (this->has_current_pose()) {
|
|
|
- target = stream->EnsureSpace(target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
- InternalWriteMessage(
|
|
|
- 4, _Internal::current_pose(this), target, stream);
|
|
|
- }
|
|
|
-
|
|
|
- // bool pose_timeout = 5;
|
|
|
- if (this->pose_timeout() != 0) {
|
|
|
- target = stream->EnsureSpace(target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_pose_timeout(), target);
|
|
|
- }
|
|
|
-
|
|
|
- // bool twist_timeout = 6;
|
|
|
- if (this->twist_timeout() != 0) {
|
|
|
- target = stream->EnsureSpace(target);
|
|
|
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_twist_timeout(), target);
|
|
|
- }
|
|
|
-
|
|
|
- // .NavMessage.Trajectory selected_traj = 7;
|
|
|
+ // .NavMessage.Trajectory selected_traj = 4;
|
|
|
if (this->has_selected_traj()) {
|
|
|
target = stream->EnsureSpace(target);
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
InternalWriteMessage(
|
|
|
- 7, _Internal::selected_traj(this), target, stream);
|
|
|
+ 4, _Internal::selected_traj(this), target, stream);
|
|
|
}
|
|
|
|
|
|
- // .NavMessage.Trajectory predict_traj = 8;
|
|
|
+ // .NavMessage.Trajectory predict_traj = 5;
|
|
|
if (this->has_predict_traj()) {
|
|
|
target = stream->EnsureSpace(target);
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
InternalWriteMessage(
|
|
|
- 8, _Internal::predict_traj(this), target, stream);
|
|
|
+ 5, _Internal::predict_traj(this), target, stream);
|
|
|
}
|
|
|
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
@@ -2148,21 +2103,14 @@ size_t NavStatu::ByteSizeLong() const {
|
|
|
this->_internal_key());
|
|
|
}
|
|
|
|
|
|
- // .NavMessage.AGVStatu current_pose = 4;
|
|
|
- if (this->has_current_pose()) {
|
|
|
- total_size += 1 +
|
|
|
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
|
- *current_pose_);
|
|
|
- }
|
|
|
-
|
|
|
- // .NavMessage.Trajectory selected_traj = 7;
|
|
|
+ // .NavMessage.Trajectory selected_traj = 4;
|
|
|
if (this->has_selected_traj()) {
|
|
|
total_size += 1 +
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
|
*selected_traj_);
|
|
|
}
|
|
|
|
|
|
- // .NavMessage.Trajectory predict_traj = 8;
|
|
|
+ // .NavMessage.Trajectory predict_traj = 5;
|
|
|
if (this->has_predict_traj()) {
|
|
|
total_size += 1 +
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
@@ -2174,16 +2122,6 @@ size_t NavStatu::ByteSizeLong() const {
|
|
|
total_size += 1 + 1;
|
|
|
}
|
|
|
|
|
|
- // bool pose_timeout = 5;
|
|
|
- if (this->pose_timeout() != 0) {
|
|
|
- total_size += 1 + 1;
|
|
|
- }
|
|
|
-
|
|
|
- // bool twist_timeout = 6;
|
|
|
- if (this->twist_timeout() != 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_);
|
|
@@ -2219,9 +2157,6 @@ void NavStatu::MergeFrom(const NavStatu& from) {
|
|
|
if (from.key().size() > 0) {
|
|
|
_internal_set_key(from._internal_key());
|
|
|
}
|
|
|
- if (from.has_current_pose()) {
|
|
|
- _internal_mutable_current_pose()->::NavMessage::AGVStatu::MergeFrom(from._internal_current_pose());
|
|
|
- }
|
|
|
if (from.has_selected_traj()) {
|
|
|
_internal_mutable_selected_traj()->::NavMessage::Trajectory::MergeFrom(from._internal_selected_traj());
|
|
|
}
|
|
@@ -2231,12 +2166,6 @@ void NavStatu::MergeFrom(const NavStatu& from) {
|
|
|
if (from.statu() != 0) {
|
|
|
_internal_set_statu(from._internal_statu());
|
|
|
}
|
|
|
- if (from.pose_timeout() != 0) {
|
|
|
- _internal_set_pose_timeout(from._internal_pose_timeout());
|
|
|
- }
|
|
|
- if (from.twist_timeout() != 0) {
|
|
|
- _internal_set_twist_timeout(from._internal_twist_timeout());
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
void NavStatu::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
@@ -2263,11 +2192,11 @@ 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, twist_timeout_)
|
|
|
- + sizeof(NavStatu::twist_timeout_)
|
|
|
- - PROTOBUF_FIELD_OFFSET(NavStatu, current_pose_)>(
|
|
|
- reinterpret_cast<char*>(¤t_pose_),
|
|
|
- reinterpret_cast<char*>(&other->current_pose_));
|
|
|
+ PROTOBUF_FIELD_OFFSET(NavStatu, statu_)
|
|
|
+ + sizeof(NavStatu::statu_)
|
|
|
+ - PROTOBUF_FIELD_OFFSET(NavStatu, selected_traj_)>(
|
|
|
+ reinterpret_cast<char*>(&selected_traj_),
|
|
|
+ reinterpret_cast<char*>(&other->selected_traj_));
|
|
|
}
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata NavStatu::GetMetadata() const {
|