|
@@ -143,7 +143,9 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
|
template <typename>
|
|
|
PROTOBUF_CONSTEXPR PathNode::PathNode(
|
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
|
- /*decltype(_impl_.id_)*/ {
|
|
|
+ /*decltype(_impl_._has_bits_)*/{}
|
|
|
+ , /*decltype(_impl_._cached_size_)*/{}
|
|
|
+ , /*decltype(_impl_.id_)*/ {
|
|
|
&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
|
|
|
}
|
|
|
|
|
@@ -156,8 +158,7 @@ PROTOBUF_CONSTEXPR PathNode::PathNode(
|
|
|
, /*decltype(_impl_.w_)*/ 0
|
|
|
|
|
|
, /*decltype(_impl_.theta_)*/ 0
|
|
|
-
|
|
|
- , /*decltype(_impl_._cached_size_)*/{}} {}
|
|
|
+} {}
|
|
|
struct PathNodeDefaultTypeInternal {
|
|
|
PROTOBUF_CONSTEXPR PathNodeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
|
~PathNodeDefaultTypeInternal() {}
|
|
@@ -399,7 +400,7 @@ const ::uint32_t TableStruct_message_2eproto::offsets[] PROTOBUF_SECTION_VARIABL
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, _impl_.x_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, _impl_.y_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, _impl_.theta_),
|
|
|
- ~0u, // no _has_bits_
|
|
|
+ PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_._has_bits_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _internal_metadata_),
|
|
|
~0u, // no _extensions_
|
|
|
~0u, // no _oneof_case_
|
|
@@ -413,6 +414,12 @@ const ::uint32_t TableStruct_message_2eproto::offsets[] PROTOBUF_SECTION_VARIABL
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.w_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.theta_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.id_),
|
|
|
+ ~0u,
|
|
|
+ ~0u,
|
|
|
+ ~0u,
|
|
|
+ ~0u,
|
|
|
+ ~0u,
|
|
|
+ 0,
|
|
|
~0u, // no _has_bits_
|
|
|
PROTOBUF_FIELD_OFFSET(::NavMessage::Trajectory, _internal_metadata_),
|
|
|
~0u, // no _extensions_
|
|
@@ -526,14 +533,14 @@ static const ::_pbi::MigrationSchema
|
|
|
{ 13, -1, -1, sizeof(::NavMessage::AgvStatu)},
|
|
|
{ 29, -1, -1, sizeof(::NavMessage::ToAgvCmd)},
|
|
|
{ 53, -1, -1, sizeof(::NavMessage::Pose2d)},
|
|
|
- { 64, -1, -1, sizeof(::NavMessage::PathNode)},
|
|
|
- { 78, -1, -1, sizeof(::NavMessage::Trajectory)},
|
|
|
- { 87, 102, -1, sizeof(::NavMessage::NewAction)},
|
|
|
- { 109, -1, -1, sizeof(::NavMessage::NavCmd)},
|
|
|
- { 120, -1, -1, sizeof(::NavMessage::NavResponse)},
|
|
|
- { 130, -1, -1, sizeof(::NavMessage::ManualCmd)},
|
|
|
- { 141, 158, -1, sizeof(::NavMessage::NavStatu)},
|
|
|
- { 167, 179, -1, sizeof(::NavMessage::RobotStatu)},
|
|
|
+ { 64, 78, -1, sizeof(::NavMessage::PathNode)},
|
|
|
+ { 84, -1, -1, sizeof(::NavMessage::Trajectory)},
|
|
|
+ { 93, 108, -1, sizeof(::NavMessage::NewAction)},
|
|
|
+ { 115, -1, -1, sizeof(::NavMessage::NavCmd)},
|
|
|
+ { 126, -1, -1, sizeof(::NavMessage::NavResponse)},
|
|
|
+ { 136, -1, -1, sizeof(::NavMessage::ManualCmd)},
|
|
|
+ { 147, 164, -1, sizeof(::NavMessage::NavStatu)},
|
|
|
+ { 173, 185, -1, sizeof(::NavMessage::RobotStatu)},
|
|
|
};
|
|
|
|
|
|
static const ::_pb::Message* const file_default_instances[] = {
|
|
@@ -563,40 +570,41 @@ const char descriptor_table_protodef_message_2eproto[] PROTOBUF_SECTION_VARIABLE
|
|
|
"\001(\002\022\n\n\002L1\030\n \001(\002\022\n\n\002P1\030\013 \001(\005\022\n\n\002D1\030\014 \001(\002\022"
|
|
|
"\n\n\002Y1\030\r \001(\002\022\n\n\002Y2\030\016 \001(\002\022\n\n\002CL\030\017 \001(\005\022\013\n\003e"
|
|
|
"nd\030\020 \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"
|
|
|
+ "\022\r\n\005theta\030\003 \001(\002\"]\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\005pose"
|
|
|
- "s\030\001 \003(\0132\022.NavMessage.Pose2d\"\345\001\n\tNewActio"
|
|
|
- "n\022\014\n\004type\030\001 \001(\005\022\'\n\tspaceNode\030\002 \001(\0132\024.Nav"
|
|
|
- "Message.PathNode\022&\n\010passNode\030\003 \001(\0132\024.Nav"
|
|
|
- "Message.PathNode\022(\n\nstreetNode\030\004 \001(\0132\024.N"
|
|
|
- "avMessage.PathNode\022\'\n\tpathNodes\030\005 \003(\0132\024."
|
|
|
- "NavMessage.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\003"
|
|
|
- "ret\030\001 \001(\005\022\014\n\004info\030\002 \001(\t\"B\n\tManualCmd\022\013\n\003"
|
|
|
- "key\030\001 \001(\t\022\026\n\016operation_type\030\002 \001(\005\022\020\n\010vel"
|
|
|
- "ocity\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\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.AgvStatu2\302\001\n\nNavE"
|
|
|
- "xcutor\0226\n\005Start\022\022.NavMessage.NavCmd\032\027.Na"
|
|
|
- "vMessage.NavResponse\"\000\0227\n\006Cancel\022\022.NavMe"
|
|
|
- "ssage.NavCmd\032\027.NavMessage.NavResponse\"\000\022"
|
|
|
- "C\n\017ManualOperation\022\025.NavMessage.ManualCm"
|
|
|
- "d\032\027.NavMessage.NavResponse\"\000b\006proto3"
|
|
|
+ "\030\005 \001(\002\022\017\n\002id\030\006 \001(\tH\000\210\001\001B\005\n\003_id\"/\n\nTrajec"
|
|
|
+ "tory\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.NavMessage.PathNode\022&\n\010passNode"
|
|
|
+ "\030\003 \001(\0132\024.NavMessage.PathNode\022(\n\nstreetNo"
|
|
|
+ "de\030\004 \001(\0132\024.NavMessage.PathNode\022\'\n\tpathNo"
|
|
|
+ "des\030\005 \003(\0132\024.NavMessage.PathNode\022\021\n\twheel"
|
|
|
+ "base\030\006 \001(\002\022\023\n\013changedMode\030\007 \001(\005\"P\n\006NavCm"
|
|
|
+ "d\022\016\n\006action\030\001 \001(\005\022\013\n\003key\030\002 \001(\t\022)\n\nnewAct"
|
|
|
+ "ions\030\005 \003(\0132\025.NavMessage.NewAction\"(\n\013Nav"
|
|
|
+ "Response\022\013\n\003ret\030\001 \001(\005\022\014\n\004info\030\002 \001(\t\"B\n\tM"
|
|
|
+ "anualCmd\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\010NavStatu\022\r\n\005"
|
|
|
+ "statu\030\001 \001(\005\022\020\n\010main_agv\030\002 \001(\010\022\021\n\tmove_mo"
|
|
|
+ "de\030\003 \001(\005\022(\n\004odom\030\004 \001(\0132\032.NavMessage.Lida"
|
|
|
+ "rOdomStatu\022\013\n\003key\030\005 \001(\t\022-\n\rselected_traj"
|
|
|
+ "\030\006 \001(\0132\026.NavMessage.Trajectory\022,\n\014predic"
|
|
|
+ "t_traj\030\007 \001(\0132\026.NavMessage.Trajectory\022\020\n\010"
|
|
|
+ "in_space\030\010 \001(\010\022\020\n\010space_id\030\t \001(\t\"Y\n\nRobo"
|
|
|
+ "tStatu\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.AgvSt"
|
|
|
+ "atu2\302\001\n\nNavExcutor\0226\n\005Start\022\022.NavMessage"
|
|
|
+ ".NavCmd\032\027.NavMessage.NavResponse\"\000\0227\n\006Ca"
|
|
|
+ "ncel\022\022.NavMessage.NavCmd\032\027.NavMessage.Na"
|
|
|
+ "vResponse\"\000\022C\n\017ManualOperation\022\025.NavMess"
|
|
|
+ "age.ManualCmd\032\027.NavMessage.NavResponse\"\000"
|
|
|
+ "b\006proto3"
|
|
|
};
|
|
|
static ::absl::once_flag descriptor_table_message_2eproto_once;
|
|
|
const ::_pbi::DescriptorTable descriptor_table_message_2eproto = {
|
|
|
false,
|
|
|
false,
|
|
|
- 1596,
|
|
|
+ 1608,
|
|
|
descriptor_table_protodef_message_2eproto,
|
|
|
"message.proto",
|
|
|
&descriptor_table_message_2eproto_once,
|
|
@@ -2367,6 +2375,12 @@ void Pose2d::InternalSwap(Pose2d* other) {
|
|
|
|
|
|
class PathNode::_Internal {
|
|
|
public:
|
|
|
+ using HasBits = decltype(std::declval<PathNode>()._impl_._has_bits_);
|
|
|
+ static constexpr ::int32_t kHasBitsOffset =
|
|
|
+ 8 * PROTOBUF_FIELD_OFFSET(PathNode, _impl_._has_bits_);
|
|
|
+ static void set_has_id(HasBits* has_bits) {
|
|
|
+ (*has_bits)[0] |= 1u;
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
PathNode::PathNode(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
@@ -2378,7 +2392,9 @@ PathNode::PathNode(const PathNode& from)
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
|
PathNode* const _this = this; (void)_this;
|
|
|
new (&_impl_) Impl_{
|
|
|
- decltype(_impl_.id_) {}
|
|
|
+ decltype(_impl_._has_bits_){from._impl_._has_bits_}
|
|
|
+ , /*decltype(_impl_._cached_size_)*/{}
|
|
|
+ , decltype(_impl_.id_) {}
|
|
|
|
|
|
, decltype(_impl_.x_) {}
|
|
|
|
|
@@ -2389,15 +2405,14 @@ PathNode::PathNode(const PathNode& from)
|
|
|
, decltype(_impl_.w_) {}
|
|
|
|
|
|
, decltype(_impl_.theta_) {}
|
|
|
-
|
|
|
- , /*decltype(_impl_._cached_size_)*/{}};
|
|
|
+ };
|
|
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
_impl_.id_.InitDefault();
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
_impl_.id_.Set("", GetArenaForAllocation());
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
- if (!from._internal_id().empty()) {
|
|
|
+ if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
|
|
|
_this->_impl_.id_.Set(from._internal_id(), _this->GetArenaForAllocation());
|
|
|
}
|
|
|
::memcpy(&_impl_.x_, &from._impl_.x_,
|
|
@@ -2409,7 +2424,9 @@ PathNode::PathNode(const PathNode& from)
|
|
|
inline void PathNode::SharedCtor(::_pb::Arena* arena) {
|
|
|
(void)arena;
|
|
|
new (&_impl_) Impl_{
|
|
|
- decltype(_impl_.id_) {}
|
|
|
+ decltype(_impl_._has_bits_){}
|
|
|
+ , /*decltype(_impl_._cached_size_)*/{}
|
|
|
+ , decltype(_impl_.id_) {}
|
|
|
|
|
|
, decltype(_impl_.x_) { 0 }
|
|
|
|
|
@@ -2421,7 +2438,6 @@ inline void PathNode::SharedCtor(::_pb::Arena* arena) {
|
|
|
|
|
|
, decltype(_impl_.theta_) { 0 }
|
|
|
|
|
|
- , /*decltype(_impl_._cached_size_)*/{}
|
|
|
};
|
|
|
_impl_.id_.InitDefault();
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
@@ -2453,15 +2469,20 @@ void PathNode::Clear() {
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
- _impl_.id_.ClearToEmpty();
|
|
|
+ cached_has_bits = _impl_._has_bits_[0];
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ _impl_.id_.ClearNonDefaultToEmpty();
|
|
|
+ }
|
|
|
::memset(&_impl_.x_, 0, static_cast<::size_t>(
|
|
|
reinterpret_cast<char*>(&_impl_.theta_) -
|
|
|
reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.theta_));
|
|
|
+ _impl_._has_bits_.Clear();
|
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
}
|
|
|
|
|
|
const char* PathNode::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
+ _Internal::HasBits has_bits{};
|
|
|
while (!ctx->Done(&ptr)) {
|
|
|
::uint32_t tag;
|
|
|
ptr = ::_pbi::ReadTag(ptr, &tag);
|
|
@@ -2511,7 +2532,7 @@ const char* PathNode::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
|
|
|
goto handle_unusual;
|
|
|
}
|
|
|
continue;
|
|
|
- // string id = 6;
|
|
|
+ // optional string id = 6;
|
|
|
case 6:
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
|
|
|
auto str = _internal_mutable_id();
|
|
@@ -2538,6 +2559,7 @@ const char* PathNode::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
|
|
|
CHK_(ptr != nullptr);
|
|
|
} // while
|
|
|
message_done:
|
|
|
+ _impl_._has_bits_.Or(has_bits);
|
|
|
return ptr;
|
|
|
failure:
|
|
|
ptr = nullptr;
|
|
@@ -2606,8 +2628,9 @@ failure:
|
|
|
5, this->_internal_theta(), target);
|
|
|
}
|
|
|
|
|
|
- // string id = 6;
|
|
|
- if (!this->_internal_id().empty()) {
|
|
|
+ cached_has_bits = _impl_._has_bits_[0];
|
|
|
+ // optional string id = 6;
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
const std::string& _s = this->_internal_id();
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
|
_s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.PathNode.id");
|
|
@@ -2630,8 +2653,9 @@ failure:
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
- // string id = 6;
|
|
|
- if (!this->_internal_id().empty()) {
|
|
|
+ // optional string id = 6;
|
|
|
+ cached_has_bits = _impl_._has_bits_[0];
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
|
this->_internal_id());
|
|
|
}
|
|
@@ -2699,7 +2723,7 @@ void PathNode::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTO
|
|
|
::uint32_t cached_has_bits = 0;
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
- if (!from._internal_id().empty()) {
|
|
|
+ if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
|
|
|
_this->_internal_set_id(from._internal_id());
|
|
|
}
|
|
|
static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
|
|
@@ -2756,6 +2780,7 @@ void PathNode::InternalSwap(PathNode* other) {
|
|
|
auto* lhs_arena = GetArenaForAllocation();
|
|
|
auto* rhs_arena = other->GetArenaForAllocation();
|
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
|
+ swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, lhs_arena,
|
|
|
&other->_impl_.id_, rhs_arena);
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|