|
@@ -178,6 +178,28 @@ struct AccuracyDefaultTypeInternal {
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AccuracyDefaultTypeInternal _Accuracy_default_instance_;
|
|
|
template <typename>
|
|
|
+PROTOBUF_CONSTEXPR R_mpc_parameter::R_mpc_parameter(
|
|
|
+ ::_pbi::ConstantInitialized): _impl_{
|
|
|
+ /*decltype(_impl_.dt_)*/ 0
|
|
|
+
|
|
|
+ , /*decltype(_impl_.acc_angular_)*/ 0
|
|
|
+
|
|
|
+ , /*decltype(_impl_.min_)*/ 0
|
|
|
+
|
|
|
+ , /*decltype(_impl_.max_)*/ 0
|
|
|
+
|
|
|
+ , /*decltype(_impl_._cached_size_)*/{}} {}
|
|
|
+struct R_mpc_parameterDefaultTypeInternal {
|
|
|
+ PROTOBUF_CONSTEXPR R_mpc_parameterDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
|
|
|
+ ~R_mpc_parameterDefaultTypeInternal() {}
|
|
|
+ union {
|
|
|
+ R_mpc_parameter _instance;
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
|
+ PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 R_mpc_parameterDefaultTypeInternal _R_mpc_parameter_default_instance_;
|
|
|
+template <typename>
|
|
|
PROTOBUF_CONSTEXPR Navigation_parameter::Navigation_parameter(
|
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
|
/*decltype(_impl_._has_bits_)*/{}
|
|
@@ -194,6 +216,7 @@ PROTOBUF_CONSTEXPR Navigation_parameter::Navigation_parameter(
|
|
|
, /*decltype(_impl_.inoutvlimit_)*/nullptr
|
|
|
, /*decltype(_impl_.nodevelocitylimit_)*/nullptr
|
|
|
, /*decltype(_impl_.nodeangularlimit_)*/nullptr
|
|
|
+ , /*decltype(_impl_.r_mpc_parameter_)*/nullptr
|
|
|
, /*decltype(_impl_.main_agv_)*/ false
|
|
|
} {}
|
|
|
struct Navigation_parameterDefaultTypeInternal {
|
|
@@ -207,7 +230,7 @@ struct Navigation_parameterDefaultTypeInternal {
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
|
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Navigation_parameterDefaultTypeInternal _Navigation_parameter_default_instance_;
|
|
|
} // namespace NavParameter
|
|
|
-static ::_pb::Metadata file_level_metadata_parameter_2eproto[7];
|
|
|
+static ::_pb::Metadata file_level_metadata_parameter_2eproto[8];
|
|
|
static constexpr const ::_pb::EnumDescriptor**
|
|
|
file_level_enum_descriptors_parameter_2eproto = nullptr;
|
|
|
static constexpr const ::_pb::ServiceDescriptor**
|
|
@@ -286,6 +309,18 @@ const ::uint32_t TableStruct_parameter_2eproto::offsets[] PROTOBUF_SECTION_VARIA
|
|
|
~0u, // no sizeof(Split)
|
|
|
PROTOBUF_FIELD_OFFSET(::NavParameter::Accuracy, _impl_.l_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavParameter::Accuracy, _impl_.w_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ PROTOBUF_FIELD_OFFSET(::NavParameter::R_mpc_parameter, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ ~0u, // no _inlined_string_donated_
|
|
|
+ ~0u, // no _split_
|
|
|
+ ~0u, // no sizeof(Split)
|
|
|
+ PROTOBUF_FIELD_OFFSET(::NavParameter::R_mpc_parameter, _impl_.dt_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::NavParameter::R_mpc_parameter, _impl_.acc_angular_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::NavParameter::R_mpc_parameter, _impl_.min_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::NavParameter::R_mpc_parameter, _impl_.max_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_._has_bits_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _internal_metadata_),
|
|
|
~0u, // no _extensions_
|
|
@@ -304,6 +339,7 @@ const ::uint32_t TableStruct_parameter_2eproto::offsets[] PROTOBUF_SECTION_VARIA
|
|
|
PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.nodevelocitylimit_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.nodeangularlimit_),
|
|
|
PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.rpc_ipport_),
|
|
|
+ PROTOBUF_FIELD_OFFSET(::NavParameter::Navigation_parameter, _impl_.r_mpc_parameter_),
|
|
|
~0u,
|
|
|
0,
|
|
|
1,
|
|
@@ -314,6 +350,7 @@ const ::uint32_t TableStruct_parameter_2eproto::offsets[] PROTOBUF_SECTION_VARIA
|
|
|
6,
|
|
|
7,
|
|
|
~0u,
|
|
|
+ 8,
|
|
|
};
|
|
|
|
|
|
static const ::_pbi::MigrationSchema
|
|
@@ -324,7 +361,8 @@ static const ::_pbi::MigrationSchema
|
|
|
{ 40, -1, -1, sizeof(::NavParameter::MPC_parameter)},
|
|
|
{ 52, -1, -1, sizeof(::NavParameter::SpeedLimit)},
|
|
|
{ 62, -1, -1, sizeof(::NavParameter::Accuracy)},
|
|
|
- { 72, 90, -1, sizeof(::NavParameter::Navigation_parameter)},
|
|
|
+ { 72, -1, -1, sizeof(::NavParameter::R_mpc_parameter)},
|
|
|
+ { 84, 103, -1, sizeof(::NavParameter::Navigation_parameter)},
|
|
|
};
|
|
|
|
|
|
static const ::_pb::Message* const file_default_instances[] = {
|
|
@@ -334,6 +372,7 @@ static const ::_pb::Message* const file_default_instances[] = {
|
|
|
&::NavParameter::_MPC_parameter_default_instance_._instance,
|
|
|
&::NavParameter::_SpeedLimit_default_instance_._instance,
|
|
|
&::NavParameter::_Accuracy_default_instance_._instance,
|
|
|
+ &::NavParameter::_R_mpc_parameter_default_instance_._instance,
|
|
|
&::NavParameter::_Navigation_parameter_default_instance_._instance,
|
|
|
};
|
|
|
const char descriptor_table_protodef_parameter_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
@@ -351,31 +390,34 @@ const char descriptor_table_protodef_parameter_2eproto[] PROTOBUF_SECTION_VARIAB
|
|
|
"(\002\022\024\n\014acc_velocity\030\003 \001(\002\022\023\n\013acc_angular\030"
|
|
|
"\004 \001(\002\"&\n\nSpeedLimit\022\013\n\003min\030\001 \001(\002\022\013\n\003max\030"
|
|
|
"\002 \001(\002\" \n\010Accuracy\022\t\n\001l\030\001 \001(\002\022\t\n\001w\030\002 \001(\002\""
|
|
|
- "\331\003\n\024Navigation_parameter\022\020\n\010main_agv\030\001 \001"
|
|
|
- "(\010\0221\n\010Agv_emqx\030\002 \001(\0132\037.NavParameter.AgvE"
|
|
|
- "mqx_parameter\0223\n\rTerminal_emqx\030\003 \001(\0132\034.N"
|
|
|
- "avParameter.Emqx_parameter\022/\n\014brother_em"
|
|
|
- "qx\030\004 \001(\0132\031.NavParameter.BrotherEmqx\0224\n\017x"
|
|
|
- "_mpc_parameter\030\005 \001(\0132\033.NavParameter.MPC_"
|
|
|
- "parameter\0224\n\017y_mpc_parameter\030\006 \001(\0132\033.Nav"
|
|
|
- "Parameter.MPC_parameter\022-\n\013InOutVLimit\030\007"
|
|
|
- " \001(\0132\030.NavParameter.SpeedLimit\0223\n\021NodeVe"
|
|
|
- "locityLimit\030\010 \001(\0132\030.NavParameter.SpeedLi"
|
|
|
- "mit\0222\n\020NodeAngularLimit\030\t \001(\0132\030.NavParam"
|
|
|
- "eter.SpeedLimit\022\022\n\nrpc_ipport\030\n \001(\tb\006pro"
|
|
|
- "to3"
|
|
|
+ "L\n\017R_mpc_parameter\022\n\n\002dt\030\001 \001(\002\022\023\n\013acc_an"
|
|
|
+ "gular\030\002 \001(\002\022\013\n\003min\030\003 \001(\002\022\013\n\003max\030\004 \001(\002\"\221\004"
|
|
|
+ "\n\024Navigation_parameter\022\020\n\010main_agv\030\001 \001(\010"
|
|
|
+ "\0221\n\010Agv_emqx\030\002 \001(\0132\037.NavParameter.AgvEmq"
|
|
|
+ "x_parameter\0223\n\rTerminal_emqx\030\003 \001(\0132\034.Nav"
|
|
|
+ "Parameter.Emqx_parameter\022/\n\014brother_emqx"
|
|
|
+ "\030\004 \001(\0132\031.NavParameter.BrotherEmqx\0224\n\017x_m"
|
|
|
+ "pc_parameter\030\005 \001(\0132\033.NavParameter.MPC_pa"
|
|
|
+ "rameter\0224\n\017y_mpc_parameter\030\006 \001(\0132\033.NavPa"
|
|
|
+ "rameter.MPC_parameter\022-\n\013InOutVLimit\030\007 \001"
|
|
|
+ "(\0132\030.NavParameter.SpeedLimit\0223\n\021NodeVelo"
|
|
|
+ "cityLimit\030\010 \001(\0132\030.NavParameter.SpeedLimi"
|
|
|
+ "t\0222\n\020NodeAngularLimit\030\t \001(\0132\030.NavParamet"
|
|
|
+ "er.SpeedLimit\022\022\n\nrpc_ipport\030\n \001(\t\0226\n\017r_m"
|
|
|
+ "pc_parameter\030\013 \001(\0132\035.NavParameter.R_mpc_"
|
|
|
+ "parameterb\006proto3"
|
|
|
};
|
|
|
static ::absl::once_flag descriptor_table_parameter_2eproto_once;
|
|
|
const ::_pbi::DescriptorTable descriptor_table_parameter_2eproto = {
|
|
|
false,
|
|
|
false,
|
|
|
- 1043,
|
|
|
+ 1177,
|
|
|
descriptor_table_protodef_parameter_2eproto,
|
|
|
"parameter.proto",
|
|
|
&descriptor_table_parameter_2eproto_once,
|
|
|
nullptr,
|
|
|
0,
|
|
|
- 7,
|
|
|
+ 8,
|
|
|
schemas,
|
|
|
file_default_instances,
|
|
|
TableStruct_parameter_2eproto::offsets,
|
|
@@ -2324,6 +2366,311 @@ void Accuracy::InternalSwap(Accuracy* other) {
|
|
|
}
|
|
|
// ===================================================================
|
|
|
|
|
|
+class R_mpc_parameter::_Internal {
|
|
|
+ public:
|
|
|
+};
|
|
|
+
|
|
|
+R_mpc_parameter::R_mpc_parameter(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
+ : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
|
|
+ SharedCtor(arena);
|
|
|
+ // @@protoc_insertion_point(arena_constructor:NavParameter.R_mpc_parameter)
|
|
|
+}
|
|
|
+R_mpc_parameter::R_mpc_parameter(const R_mpc_parameter& from)
|
|
|
+ : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
|
|
|
+ _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
|
|
|
+ from._internal_metadata_);
|
|
|
+ // @@protoc_insertion_point(copy_constructor:NavParameter.R_mpc_parameter)
|
|
|
+}
|
|
|
+
|
|
|
+inline void R_mpc_parameter::SharedCtor(::_pb::Arena* arena) {
|
|
|
+ (void)arena;
|
|
|
+ new (&_impl_) Impl_{
|
|
|
+ decltype(_impl_.dt_) { 0 }
|
|
|
+
|
|
|
+ , decltype(_impl_.acc_angular_) { 0 }
|
|
|
+
|
|
|
+ , decltype(_impl_.min_) { 0 }
|
|
|
+
|
|
|
+ , decltype(_impl_.max_) { 0 }
|
|
|
+
|
|
|
+ , /*decltype(_impl_._cached_size_)*/{}
|
|
|
+ };
|
|
|
+}
|
|
|
+
|
|
|
+R_mpc_parameter::~R_mpc_parameter() {
|
|
|
+ // @@protoc_insertion_point(destructor:NavParameter.R_mpc_parameter)
|
|
|
+ if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
|
|
+ (void)arena;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+inline void R_mpc_parameter::SharedDtor() {
|
|
|
+ ABSL_DCHECK(GetArenaForAllocation() == nullptr);
|
|
|
+}
|
|
|
+
|
|
|
+void R_mpc_parameter::SetCachedSize(int size) const {
|
|
|
+ _impl_._cached_size_.Set(size);
|
|
|
+}
|
|
|
+
|
|
|
+void R_mpc_parameter::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:NavParameter.R_mpc_parameter)
|
|
|
+ ::uint32_t cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ ::memset(&_impl_.dt_, 0, static_cast<::size_t>(
|
|
|
+ reinterpret_cast<char*>(&_impl_.max_) -
|
|
|
+ reinterpret_cast<char*>(&_impl_.dt_)) + sizeof(_impl_.max_));
|
|
|
+ _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
|
+}
|
|
|
+
|
|
|
+const char* R_mpc_parameter::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
|
|
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
|
+ while (!ctx->Done(&ptr)) {
|
|
|
+ ::uint32_t tag;
|
|
|
+ ptr = ::_pbi::ReadTag(ptr, &tag);
|
|
|
+ switch (tag >> 3) {
|
|
|
+ // float dt = 1;
|
|
|
+ case 1:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
|
|
|
+ _impl_.dt_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
|
+ ptr += sizeof(float);
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ continue;
|
|
|
+ // float acc_angular = 2;
|
|
|
+ case 2:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
|
|
|
+ _impl_.acc_angular_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
|
+ ptr += sizeof(float);
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ continue;
|
|
|
+ // float min = 3;
|
|
|
+ case 3:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
|
|
|
+ _impl_.min_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
|
+ ptr += sizeof(float);
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ continue;
|
|
|
+ // float max = 4;
|
|
|
+ case 4:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) {
|
|
|
+ _impl_.max_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
|
|
|
+ ptr += sizeof(float);
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ continue;
|
|
|
+ default:
|
|
|
+ goto handle_unusual;
|
|
|
+ } // switch
|
|
|
+ handle_unusual:
|
|
|
+ if ((tag == 0) || ((tag & 7) == 4)) {
|
|
|
+ CHK_(ptr);
|
|
|
+ ctx->SetLastTag(tag);
|
|
|
+ goto message_done;
|
|
|
+ }
|
|
|
+ ptr = UnknownFieldParse(
|
|
|
+ tag,
|
|
|
+ _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
|
|
+ ptr, ctx);
|
|
|
+ CHK_(ptr != nullptr);
|
|
|
+ } // while
|
|
|
+message_done:
|
|
|
+ return ptr;
|
|
|
+failure:
|
|
|
+ ptr = nullptr;
|
|
|
+ goto message_done;
|
|
|
+#undef CHK_
|
|
|
+}
|
|
|
+
|
|
|
+::uint8_t* R_mpc_parameter::_InternalSerialize(
|
|
|
+ ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:NavParameter.R_mpc_parameter)
|
|
|
+ ::uint32_t cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // float dt = 1;
|
|
|
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
|
|
|
+ float tmp_dt = this->_internal_dt();
|
|
|
+ ::uint32_t raw_dt;
|
|
|
+ memcpy(&raw_dt, &tmp_dt, sizeof(tmp_dt));
|
|
|
+ if (raw_dt != 0) {
|
|
|
+ target = stream->EnsureSpace(target);
|
|
|
+ target = ::_pbi::WireFormatLite::WriteFloatToArray(
|
|
|
+ 1, this->_internal_dt(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // float acc_angular = 2;
|
|
|
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
|
|
|
+ float tmp_acc_angular = this->_internal_acc_angular();
|
|
|
+ ::uint32_t raw_acc_angular;
|
|
|
+ memcpy(&raw_acc_angular, &tmp_acc_angular, sizeof(tmp_acc_angular));
|
|
|
+ if (raw_acc_angular != 0) {
|
|
|
+ target = stream->EnsureSpace(target);
|
|
|
+ target = ::_pbi::WireFormatLite::WriteFloatToArray(
|
|
|
+ 2, this->_internal_acc_angular(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // float min = 3;
|
|
|
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
|
|
|
+ float tmp_min = this->_internal_min();
|
|
|
+ ::uint32_t raw_min;
|
|
|
+ memcpy(&raw_min, &tmp_min, sizeof(tmp_min));
|
|
|
+ if (raw_min != 0) {
|
|
|
+ target = stream->EnsureSpace(target);
|
|
|
+ target = ::_pbi::WireFormatLite::WriteFloatToArray(
|
|
|
+ 3, this->_internal_min(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // float max = 4;
|
|
|
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
|
|
|
+ float tmp_max = this->_internal_max();
|
|
|
+ ::uint32_t raw_max;
|
|
|
+ memcpy(&raw_max, &tmp_max, sizeof(tmp_max));
|
|
|
+ if (raw_max != 0) {
|
|
|
+ target = stream->EnsureSpace(target);
|
|
|
+ target = ::_pbi::WireFormatLite::WriteFloatToArray(
|
|
|
+ 4, this->_internal_max(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
+ target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
|
+ _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:NavParameter.R_mpc_parameter)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+::size_t R_mpc_parameter::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:NavParameter.R_mpc_parameter)
|
|
|
+ ::size_t total_size = 0;
|
|
|
+
|
|
|
+ ::uint32_t cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // float dt = 1;
|
|
|
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
|
|
|
+ float tmp_dt = this->_internal_dt();
|
|
|
+ ::uint32_t raw_dt;
|
|
|
+ memcpy(&raw_dt, &tmp_dt, sizeof(tmp_dt));
|
|
|
+ if (raw_dt != 0) {
|
|
|
+ total_size += 5;
|
|
|
+ }
|
|
|
+
|
|
|
+ // float acc_angular = 2;
|
|
|
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
|
|
|
+ float tmp_acc_angular = this->_internal_acc_angular();
|
|
|
+ ::uint32_t raw_acc_angular;
|
|
|
+ memcpy(&raw_acc_angular, &tmp_acc_angular, sizeof(tmp_acc_angular));
|
|
|
+ if (raw_acc_angular != 0) {
|
|
|
+ total_size += 5;
|
|
|
+ }
|
|
|
+
|
|
|
+ // float min = 3;
|
|
|
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
|
|
|
+ float tmp_min = this->_internal_min();
|
|
|
+ ::uint32_t raw_min;
|
|
|
+ memcpy(&raw_min, &tmp_min, sizeof(tmp_min));
|
|
|
+ if (raw_min != 0) {
|
|
|
+ total_size += 5;
|
|
|
+ }
|
|
|
+
|
|
|
+ // float max = 4;
|
|
|
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
|
|
|
+ float tmp_max = this->_internal_max();
|
|
|
+ ::uint32_t raw_max;
|
|
|
+ memcpy(&raw_max, &tmp_max, sizeof(tmp_max));
|
|
|
+ if (raw_max != 0) {
|
|
|
+ total_size += 5;
|
|
|
+ }
|
|
|
+
|
|
|
+ return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
|
+}
|
|
|
+
|
|
|
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData R_mpc_parameter::_class_data_ = {
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
|
|
+ R_mpc_parameter::MergeImpl
|
|
|
+};
|
|
|
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*R_mpc_parameter::GetClassData() const { return &_class_data_; }
|
|
|
+
|
|
|
+
|
|
|
+void R_mpc_parameter::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
|
|
+ auto* const _this = static_cast<R_mpc_parameter*>(&to_msg);
|
|
|
+ auto& from = static_cast<const R_mpc_parameter&>(from_msg);
|
|
|
+ // @@protoc_insertion_point(class_specific_merge_from_start:NavParameter.R_mpc_parameter)
|
|
|
+ ABSL_DCHECK_NE(&from, _this);
|
|
|
+ ::uint32_t cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
|
|
|
+ float tmp_dt = from._internal_dt();
|
|
|
+ ::uint32_t raw_dt;
|
|
|
+ memcpy(&raw_dt, &tmp_dt, sizeof(tmp_dt));
|
|
|
+ if (raw_dt != 0) {
|
|
|
+ _this->_internal_set_dt(from._internal_dt());
|
|
|
+ }
|
|
|
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
|
|
|
+ float tmp_acc_angular = from._internal_acc_angular();
|
|
|
+ ::uint32_t raw_acc_angular;
|
|
|
+ memcpy(&raw_acc_angular, &tmp_acc_angular, sizeof(tmp_acc_angular));
|
|
|
+ if (raw_acc_angular != 0) {
|
|
|
+ _this->_internal_set_acc_angular(from._internal_acc_angular());
|
|
|
+ }
|
|
|
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
|
|
|
+ float tmp_min = from._internal_min();
|
|
|
+ ::uint32_t raw_min;
|
|
|
+ memcpy(&raw_min, &tmp_min, sizeof(tmp_min));
|
|
|
+ if (raw_min != 0) {
|
|
|
+ _this->_internal_set_min(from._internal_min());
|
|
|
+ }
|
|
|
+ static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
|
|
|
+ float tmp_max = from._internal_max();
|
|
|
+ ::uint32_t raw_max;
|
|
|
+ memcpy(&raw_max, &tmp_max, sizeof(tmp_max));
|
|
|
+ if (raw_max != 0) {
|
|
|
+ _this->_internal_set_max(from._internal_max());
|
|
|
+ }
|
|
|
+ _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+void R_mpc_parameter::CopyFrom(const R_mpc_parameter& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:NavParameter.R_mpc_parameter)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool R_mpc_parameter::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void R_mpc_parameter::InternalSwap(R_mpc_parameter* other) {
|
|
|
+ using std::swap;
|
|
|
+ _internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
|
+ PROTOBUF_FIELD_OFFSET(R_mpc_parameter, _impl_.max_)
|
|
|
+ + sizeof(R_mpc_parameter::_impl_.max_)
|
|
|
+ - PROTOBUF_FIELD_OFFSET(R_mpc_parameter, _impl_.dt_)>(
|
|
|
+ reinterpret_cast<char*>(&_impl_.dt_),
|
|
|
+ reinterpret_cast<char*>(&other->_impl_.dt_));
|
|
|
+}
|
|
|
+
|
|
|
+::PROTOBUF_NAMESPACE_ID::Metadata R_mpc_parameter::GetMetadata() const {
|
|
|
+ return ::_pbi::AssignDescriptors(
|
|
|
+ &descriptor_table_parameter_2eproto_getter, &descriptor_table_parameter_2eproto_once,
|
|
|
+ file_level_metadata_parameter_2eproto[6]);
|
|
|
+}
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
class Navigation_parameter::_Internal {
|
|
|
public:
|
|
|
using HasBits = decltype(std::declval<Navigation_parameter>()._impl_._has_bits_);
|
|
@@ -2361,6 +2708,10 @@ class Navigation_parameter::_Internal {
|
|
|
static void set_has_nodeangularlimit(HasBits* has_bits) {
|
|
|
(*has_bits)[0] |= 128u;
|
|
|
}
|
|
|
+ static const ::NavParameter::R_mpc_parameter& r_mpc_parameter(const Navigation_parameter* msg);
|
|
|
+ static void set_has_r_mpc_parameter(HasBits* has_bits) {
|
|
|
+ (*has_bits)[0] |= 256u;
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
const ::NavParameter::AgvEmqx_parameter&
|
|
@@ -2395,6 +2746,10 @@ const ::NavParameter::SpeedLimit&
|
|
|
Navigation_parameter::_Internal::nodeangularlimit(const Navigation_parameter* msg) {
|
|
|
return *msg->_impl_.nodeangularlimit_;
|
|
|
}
|
|
|
+const ::NavParameter::R_mpc_parameter&
|
|
|
+Navigation_parameter::_Internal::r_mpc_parameter(const Navigation_parameter* msg) {
|
|
|
+ return *msg->_impl_.r_mpc_parameter_;
|
|
|
+}
|
|
|
Navigation_parameter::Navigation_parameter(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
|
|
SharedCtor(arena);
|
|
@@ -2416,6 +2771,7 @@ Navigation_parameter::Navigation_parameter(const Navigation_parameter& from)
|
|
|
, decltype(_impl_.inoutvlimit_){nullptr}
|
|
|
, decltype(_impl_.nodevelocitylimit_){nullptr}
|
|
|
, decltype(_impl_.nodeangularlimit_){nullptr}
|
|
|
+ , decltype(_impl_.r_mpc_parameter_){nullptr}
|
|
|
, decltype(_impl_.main_agv_) {}
|
|
|
};
|
|
|
|
|
@@ -2451,6 +2807,9 @@ Navigation_parameter::Navigation_parameter(const Navigation_parameter& from)
|
|
|
if ((from._impl_._has_bits_[0] & 0x00000080u) != 0) {
|
|
|
_this->_impl_.nodeangularlimit_ = new ::NavParameter::SpeedLimit(*from._impl_.nodeangularlimit_);
|
|
|
}
|
|
|
+ if ((from._impl_._has_bits_[0] & 0x00000100u) != 0) {
|
|
|
+ _this->_impl_.r_mpc_parameter_ = new ::NavParameter::R_mpc_parameter(*from._impl_.r_mpc_parameter_);
|
|
|
+ }
|
|
|
_this->_impl_.main_agv_ = from._impl_.main_agv_;
|
|
|
// @@protoc_insertion_point(copy_constructor:NavParameter.Navigation_parameter)
|
|
|
}
|
|
@@ -2470,6 +2829,7 @@ inline void Navigation_parameter::SharedCtor(::_pb::Arena* arena) {
|
|
|
, decltype(_impl_.inoutvlimit_){nullptr}
|
|
|
, decltype(_impl_.nodevelocitylimit_){nullptr}
|
|
|
, decltype(_impl_.nodeangularlimit_){nullptr}
|
|
|
+ , decltype(_impl_.r_mpc_parameter_){nullptr}
|
|
|
, decltype(_impl_.main_agv_) { false }
|
|
|
|
|
|
};
|
|
@@ -2499,6 +2859,7 @@ inline void Navigation_parameter::SharedDtor() {
|
|
|
if (this != internal_default_instance()) delete _impl_.inoutvlimit_;
|
|
|
if (this != internal_default_instance()) delete _impl_.nodevelocitylimit_;
|
|
|
if (this != internal_default_instance()) delete _impl_.nodeangularlimit_;
|
|
|
+ if (this != internal_default_instance()) delete _impl_.r_mpc_parameter_;
|
|
|
}
|
|
|
|
|
|
void Navigation_parameter::SetCachedSize(int size) const {
|
|
@@ -2547,6 +2908,10 @@ void Navigation_parameter::Clear() {
|
|
|
_impl_.nodeangularlimit_->Clear();
|
|
|
}
|
|
|
}
|
|
|
+ if (cached_has_bits & 0x00000100u) {
|
|
|
+ ABSL_DCHECK(_impl_.r_mpc_parameter_ != nullptr);
|
|
|
+ _impl_.r_mpc_parameter_->Clear();
|
|
|
+ }
|
|
|
_impl_.main_agv_ = false;
|
|
|
_impl_._has_bits_.Clear();
|
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
@@ -2651,6 +3016,15 @@ const char* Navigation_parameter::_InternalParse(const char* ptr, ::_pbi::ParseC
|
|
|
goto handle_unusual;
|
|
|
}
|
|
|
continue;
|
|
|
+ // .NavParameter.R_mpc_parameter r_mpc_parameter = 11;
|
|
|
+ case 11:
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 90)) {
|
|
|
+ ptr = ctx->ParseMessage(_internal_mutable_r_mpc_parameter(), ptr);
|
|
|
+ CHK_(ptr);
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ continue;
|
|
|
default:
|
|
|
goto handle_unusual;
|
|
|
} // switch
|
|
@@ -2753,6 +3127,13 @@ failure:
|
|
|
target = stream->WriteStringMaybeAliased(10, _s, target);
|
|
|
}
|
|
|
|
|
|
+ // .NavParameter.R_mpc_parameter r_mpc_parameter = 11;
|
|
|
+ if (cached_has_bits & 0x00000100u) {
|
|
|
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
|
+ InternalWriteMessage(11, _Internal::r_mpc_parameter(this),
|
|
|
+ _Internal::r_mpc_parameter(this).GetCachedSize(), target, stream);
|
|
|
+ }
|
|
|
+
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
|
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
|
@@ -2834,6 +3215,13 @@ failure:
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+ // .NavParameter.R_mpc_parameter r_mpc_parameter = 11;
|
|
|
+ if (cached_has_bits & 0x00000100u) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
|
+ *_impl_.r_mpc_parameter_);
|
|
|
+ }
|
|
|
+
|
|
|
// bool main_agv = 1;
|
|
|
if (this->_internal_main_agv() != 0) {
|
|
|
total_size += 2;
|
|
@@ -2895,6 +3283,10 @@ void Navigation_parameter::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, c
|
|
|
from._internal_nodeangularlimit());
|
|
|
}
|
|
|
}
|
|
|
+ if (cached_has_bits & 0x00000100u) {
|
|
|
+ _this->_internal_mutable_r_mpc_parameter()->::NavParameter::R_mpc_parameter::MergeFrom(
|
|
|
+ from._internal_r_mpc_parameter());
|
|
|
+ }
|
|
|
if (from._internal_main_agv() != 0) {
|
|
|
_this->_internal_set_main_agv(from._internal_main_agv());
|
|
|
}
|
|
@@ -2931,7 +3323,7 @@ void Navigation_parameter::InternalSwap(Navigation_parameter* other) {
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Navigation_parameter::GetMetadata() const {
|
|
|
return ::_pbi::AssignDescriptors(
|
|
|
&descriptor_table_parameter_2eproto_getter, &descriptor_table_parameter_2eproto_once,
|
|
|
- file_level_metadata_parameter_2eproto[6]);
|
|
|
+ file_level_metadata_parameter_2eproto[7]);
|
|
|
}
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
} // namespace NavParameter
|
|
@@ -2960,6 +3352,10 @@ template<> PROTOBUF_NOINLINE ::NavParameter::Accuracy*
|
|
|
Arena::CreateMaybeMessage< ::NavParameter::Accuracy >(Arena* arena) {
|
|
|
return Arena::CreateMessageInternal< ::NavParameter::Accuracy >(arena);
|
|
|
}
|
|
|
+template<> PROTOBUF_NOINLINE ::NavParameter::R_mpc_parameter*
|
|
|
+Arena::CreateMaybeMessage< ::NavParameter::R_mpc_parameter >(Arena* arena) {
|
|
|
+ return Arena::CreateMessageInternal< ::NavParameter::R_mpc_parameter >(arena);
|
|
|
+}
|
|
|
template<> PROTOBUF_NOINLINE ::NavParameter::Navigation_parameter*
|
|
|
Arena::CreateMaybeMessage< ::NavParameter::Navigation_parameter >(Arena* arena) {
|
|
|
return Arena::CreateMessageInternal< ::NavParameter::Navigation_parameter >(arena);
|