|
@@ -118,12 +118,12 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_status_msg, dj_statu2_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_status_msg, dj_statu3_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_status_msg, dj_statu4_),
|
|
|
- 5,
|
|
|
- 0,
|
|
|
1,
|
|
|
+ 0,
|
|
|
2,
|
|
|
3,
|
|
|
4,
|
|
|
+ 5,
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_request_msg, _has_bits_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_request_msg, _internal_metadata_),
|
|
|
~0u, // no _extensions_
|
|
@@ -133,9 +133,9 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_request_msg, cmd_msg_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_request_msg, locate_type_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_request_msg, time_out_),
|
|
|
- 2,
|
|
|
- 0,
|
|
|
1,
|
|
|
+ 0,
|
|
|
+ 2,
|
|
|
3,
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_response_msg, _has_bits_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_response_msg, _internal_metadata_),
|
|
@@ -153,17 +153,17 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_response_msg, x_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_response_msg, y_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Locate_response_msg, theta_),
|
|
|
- 10,
|
|
|
- 1,
|
|
|
2,
|
|
|
- 0,
|
|
|
+ 1,
|
|
|
3,
|
|
|
+ 0,
|
|
|
4,
|
|
|
5,
|
|
|
6,
|
|
|
7,
|
|
|
8,
|
|
|
9,
|
|
|
+ 10,
|
|
|
};
|
|
|
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
{ 0, 11, sizeof(::message::Locate_status_msg)},
|
|
@@ -309,9 +309,9 @@ Locate_status_msg::Locate_status_msg(const Locate_status_msg& from)
|
|
|
} else {
|
|
|
cmd_msg_ = NULL;
|
|
|
}
|
|
|
- ::memcpy(&dj_statu1_, &from.dj_statu1_,
|
|
|
- static_cast<size_t>(reinterpret_cast<char*>(&msg_type_) -
|
|
|
- reinterpret_cast<char*>(&dj_statu1_)) + sizeof(msg_type_));
|
|
|
+ ::memcpy(&msg_type_, &from.msg_type_,
|
|
|
+ static_cast<size_t>(reinterpret_cast<char*>(&dj_statu4_) -
|
|
|
+ reinterpret_cast<char*>(&msg_type_)) + sizeof(dj_statu4_));
|
|
|
// @@protoc_insertion_point(copy_constructor:message.Locate_status_msg)
|
|
|
}
|
|
|
|
|
@@ -320,7 +320,6 @@ void Locate_status_msg::SharedCtor() {
|
|
|
::memset(&cmd_msg_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&dj_statu4_) -
|
|
|
reinterpret_cast<char*>(&cmd_msg_)) + sizeof(dj_statu4_));
|
|
|
- msg_type_ = 1;
|
|
|
}
|
|
|
|
|
|
Locate_status_msg::~Locate_status_msg() {
|
|
@@ -367,10 +366,9 @@ void Locate_status_msg::Clear() {
|
|
|
cmd_msg_->Clear();
|
|
|
}
|
|
|
if (cached_has_bits & 62u) {
|
|
|
- ::memset(&dj_statu1_, 0, static_cast<size_t>(
|
|
|
+ ::memset(&msg_type_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&dj_statu4_) -
|
|
|
- reinterpret_cast<char*>(&dj_statu1_)) + sizeof(dj_statu4_));
|
|
|
- msg_type_ = 1;
|
|
|
+ reinterpret_cast<char*>(&msg_type_)) + sizeof(dj_statu4_));
|
|
|
}
|
|
|
_has_bits_.Clear();
|
|
|
_internal_metadata_.Clear();
|
|
@@ -526,7 +524,7 @@ void Locate_status_msg::SerializeWithCachedSizes(
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
// required .message.Message_type msg_type = 1;
|
|
|
- if (cached_has_bits & 0x00000020u) {
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
|
1, this->msg_type(), output);
|
|
|
}
|
|
@@ -538,25 +536,25 @@ void Locate_status_msg::SerializeWithCachedSizes(
|
|
|
}
|
|
|
|
|
|
// required .message.Lidar_statu dj_statu1 = 3;
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
|
3, this->dj_statu1(), output);
|
|
|
}
|
|
|
|
|
|
// required .message.Lidar_statu dj_statu2 = 4;
|
|
|
- if (cached_has_bits & 0x00000004u) {
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
|
4, this->dj_statu2(), output);
|
|
|
}
|
|
|
|
|
|
// required .message.Lidar_statu dj_statu3 = 5;
|
|
|
- if (cached_has_bits & 0x00000008u) {
|
|
|
+ if (cached_has_bits & 0x00000010u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
|
5, this->dj_statu3(), output);
|
|
|
}
|
|
|
|
|
|
// required .message.Lidar_statu dj_statu4 = 6;
|
|
|
- if (cached_has_bits & 0x00000010u) {
|
|
|
+ if (cached_has_bits & 0x00000020u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
|
6, this->dj_statu4(), output);
|
|
|
}
|
|
@@ -577,7 +575,7 @@ void Locate_status_msg::SerializeWithCachedSizes(
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
// required .message.Message_type msg_type = 1;
|
|
|
- if (cached_has_bits & 0x00000020u) {
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
|
1, this->msg_type(), target);
|
|
|
}
|
|
@@ -590,25 +588,25 @@ void Locate_status_msg::SerializeWithCachedSizes(
|
|
|
}
|
|
|
|
|
|
// required .message.Lidar_statu dj_statu1 = 3;
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
|
3, this->dj_statu1(), target);
|
|
|
}
|
|
|
|
|
|
// required .message.Lidar_statu dj_statu2 = 4;
|
|
|
- if (cached_has_bits & 0x00000004u) {
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
|
4, this->dj_statu2(), target);
|
|
|
}
|
|
|
|
|
|
// required .message.Lidar_statu dj_statu3 = 5;
|
|
|
- if (cached_has_bits & 0x00000008u) {
|
|
|
+ if (cached_has_bits & 0x00000010u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
|
5, this->dj_statu3(), target);
|
|
|
}
|
|
|
|
|
|
// required .message.Lidar_statu dj_statu4 = 6;
|
|
|
- if (cached_has_bits & 0x00000010u) {
|
|
|
+ if (cached_has_bits & 0x00000020u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
|
6, this->dj_statu4(), target);
|
|
|
}
|
|
@@ -625,6 +623,12 @@ size_t Locate_status_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Locate_status_msg)
|
|
|
size_t total_size = 0;
|
|
|
|
|
|
+ if (has_msg_type()) {
|
|
|
+ // required .message.Message_type msg_type = 1;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type());
|
|
|
+ }
|
|
|
+
|
|
|
if (has_dj_statu1()) {
|
|
|
// required .message.Lidar_statu dj_statu1 = 3;
|
|
|
total_size += 1 +
|
|
@@ -649,12 +653,6 @@ size_t Locate_status_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->dj_statu4());
|
|
|
}
|
|
|
|
|
|
- if (has_msg_type()) {
|
|
|
- // required .message.Message_type msg_type = 1;
|
|
|
- total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type());
|
|
|
- }
|
|
|
-
|
|
|
return total_size;
|
|
|
}
|
|
|
size_t Locate_status_msg::ByteSizeLong() const {
|
|
@@ -667,6 +665,10 @@ size_t Locate_status_msg::ByteSizeLong() const {
|
|
|
_internal_metadata_.unknown_fields());
|
|
|
}
|
|
|
if (((_has_bits_[0] & 0x0000003e) ^ 0x0000003e) == 0) { // All required fields are present.
|
|
|
+ // required .message.Message_type msg_type = 1;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type());
|
|
|
+
|
|
|
// required .message.Lidar_statu dj_statu1 = 3;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->dj_statu1());
|
|
@@ -683,10 +685,6 @@ size_t Locate_status_msg::ByteSizeLong() const {
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->dj_statu4());
|
|
|
|
|
|
- // required .message.Message_type msg_type = 1;
|
|
|
- total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type());
|
|
|
-
|
|
|
} else {
|
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
|
}
|
|
@@ -732,19 +730,19 @@ void Locate_status_msg::MergeFrom(const Locate_status_msg& from) {
|
|
|
mutable_cmd_msg()->::message::Command_message::MergeFrom(from.cmd_msg());
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
- dj_statu1_ = from.dj_statu1_;
|
|
|
+ msg_type_ = from.msg_type_;
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
- dj_statu2_ = from.dj_statu2_;
|
|
|
+ dj_statu1_ = from.dj_statu1_;
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000008u) {
|
|
|
- dj_statu3_ = from.dj_statu3_;
|
|
|
+ dj_statu2_ = from.dj_statu2_;
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000010u) {
|
|
|
- dj_statu4_ = from.dj_statu4_;
|
|
|
+ dj_statu3_ = from.dj_statu3_;
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000020u) {
|
|
|
- msg_type_ = from.msg_type_;
|
|
|
+ dj_statu4_ = from.dj_statu4_;
|
|
|
}
|
|
|
_has_bits_[0] |= cached_has_bits;
|
|
|
}
|
|
@@ -779,11 +777,11 @@ void Locate_status_msg::Swap(Locate_status_msg* other) {
|
|
|
void Locate_status_msg::InternalSwap(Locate_status_msg* other) {
|
|
|
using std::swap;
|
|
|
swap(cmd_msg_, other->cmd_msg_);
|
|
|
+ swap(msg_type_, other->msg_type_);
|
|
|
swap(dj_statu1_, other->dj_statu1_);
|
|
|
swap(dj_statu2_, other->dj_statu2_);
|
|
|
swap(dj_statu3_, other->dj_statu3_);
|
|
|
swap(dj_statu4_, other->dj_statu4_);
|
|
|
- swap(msg_type_, other->msg_type_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
swap(_cached_size_, other->_cached_size_);
|
|
@@ -831,9 +829,9 @@ Locate_request_msg::Locate_request_msg(const Locate_request_msg& from)
|
|
|
} else {
|
|
|
cmd_msg_ = NULL;
|
|
|
}
|
|
|
- ::memcpy(&locate_type_, &from.locate_type_,
|
|
|
+ ::memcpy(&msg_type_, &from.msg_type_,
|
|
|
static_cast<size_t>(reinterpret_cast<char*>(&time_out_) -
|
|
|
- reinterpret_cast<char*>(&locate_type_)) + sizeof(time_out_));
|
|
|
+ reinterpret_cast<char*>(&msg_type_)) + sizeof(time_out_));
|
|
|
// @@protoc_insertion_point(copy_constructor:message.Locate_request_msg)
|
|
|
}
|
|
|
|
|
@@ -842,7 +840,6 @@ void Locate_request_msg::SharedCtor() {
|
|
|
::memset(&cmd_msg_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&locate_type_) -
|
|
|
reinterpret_cast<char*>(&cmd_msg_)) + sizeof(locate_type_));
|
|
|
- msg_type_ = 1;
|
|
|
time_out_ = 5000;
|
|
|
}
|
|
|
|
|
@@ -890,8 +887,9 @@ void Locate_request_msg::Clear() {
|
|
|
cmd_msg_->Clear();
|
|
|
}
|
|
|
if (cached_has_bits & 14u) {
|
|
|
- locate_type_ = 0;
|
|
|
- msg_type_ = 1;
|
|
|
+ ::memset(&msg_type_, 0, static_cast<size_t>(
|
|
|
+ reinterpret_cast<char*>(&locate_type_) -
|
|
|
+ reinterpret_cast<char*>(&msg_type_)) + sizeof(locate_type_));
|
|
|
time_out_ = 5000;
|
|
|
}
|
|
|
_has_bits_.Clear();
|
|
@@ -1002,7 +1000,7 @@ void Locate_request_msg::SerializeWithCachedSizes(
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
// required .message.Message_type msg_type = 1;
|
|
|
- if (cached_has_bits & 0x00000004u) {
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
|
1, this->msg_type(), output);
|
|
|
}
|
|
@@ -1014,7 +1012,7 @@ void Locate_request_msg::SerializeWithCachedSizes(
|
|
|
}
|
|
|
|
|
|
// required .message.Locate_type locate_type = 3;
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
|
3, this->locate_type(), output);
|
|
|
}
|
|
@@ -1040,7 +1038,7 @@ void Locate_request_msg::SerializeWithCachedSizes(
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
// required .message.Message_type msg_type = 1;
|
|
|
- if (cached_has_bits & 0x00000004u) {
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
|
1, this->msg_type(), target);
|
|
|
}
|
|
@@ -1053,7 +1051,7 @@ void Locate_request_msg::SerializeWithCachedSizes(
|
|
|
}
|
|
|
|
|
|
// required .message.Locate_type locate_type = 3;
|
|
|
- if (cached_has_bits & 0x00000002u) {
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
|
3, this->locate_type(), target);
|
|
|
}
|
|
@@ -1082,18 +1080,18 @@ size_t Locate_request_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
*this->cmd_msg_);
|
|
|
}
|
|
|
|
|
|
- if (has_locate_type()) {
|
|
|
- // required .message.Locate_type locate_type = 3;
|
|
|
- total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->locate_type());
|
|
|
- }
|
|
|
-
|
|
|
if (has_msg_type()) {
|
|
|
// required .message.Message_type msg_type = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type());
|
|
|
}
|
|
|
|
|
|
+ if (has_locate_type()) {
|
|
|
+ // required .message.Locate_type locate_type = 3;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->locate_type());
|
|
|
+ }
|
|
|
+
|
|
|
return total_size;
|
|
|
}
|
|
|
size_t Locate_request_msg::ByteSizeLong() const {
|
|
@@ -1111,14 +1109,14 @@ size_t Locate_request_msg::ByteSizeLong() const {
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
*this->cmd_msg_);
|
|
|
|
|
|
- // required .message.Locate_type locate_type = 3;
|
|
|
- total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->locate_type());
|
|
|
-
|
|
|
// required .message.Message_type msg_type = 1;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type());
|
|
|
|
|
|
+ // required .message.Locate_type locate_type = 3;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->locate_type());
|
|
|
+
|
|
|
} else {
|
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
|
}
|
|
@@ -1164,10 +1162,10 @@ void Locate_request_msg::MergeFrom(const Locate_request_msg& from) {
|
|
|
mutable_cmd_msg()->::message::Command_message::MergeFrom(from.cmd_msg());
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
- locate_type_ = from.locate_type_;
|
|
|
+ msg_type_ = from.msg_type_;
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
- msg_type_ = from.msg_type_;
|
|
|
+ locate_type_ = from.locate_type_;
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000008u) {
|
|
|
time_out_ = from.time_out_;
|
|
@@ -1205,8 +1203,8 @@ void Locate_request_msg::Swap(Locate_request_msg* other) {
|
|
|
void Locate_request_msg::InternalSwap(Locate_request_msg* other) {
|
|
|
using std::swap;
|
|
|
swap(cmd_msg_, other->cmd_msg_);
|
|
|
- swap(locate_type_, other->locate_type_);
|
|
|
swap(msg_type_, other->msg_type_);
|
|
|
+ swap(locate_type_, other->locate_type_);
|
|
|
swap(time_out_, other->time_out_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
@@ -1266,9 +1264,9 @@ Locate_response_msg::Locate_response_msg(const Locate_response_msg& from)
|
|
|
} else {
|
|
|
cmd_msg_ = NULL;
|
|
|
}
|
|
|
- ::memcpy(&error_code_, &from.error_code_,
|
|
|
- static_cast<size_t>(reinterpret_cast<char*>(&msg_type_) -
|
|
|
- reinterpret_cast<char*>(&error_code_)) + sizeof(msg_type_));
|
|
|
+ ::memcpy(&msg_type_, &from.msg_type_,
|
|
|
+ static_cast<size_t>(reinterpret_cast<char*>(&theta_) -
|
|
|
+ reinterpret_cast<char*>(&msg_type_)) + sizeof(theta_));
|
|
|
// @@protoc_insertion_point(copy_constructor:message.Locate_response_msg)
|
|
|
}
|
|
|
|
|
@@ -1278,7 +1276,6 @@ void Locate_response_msg::SharedCtor() {
|
|
|
::memset(&cmd_msg_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&theta_) -
|
|
|
reinterpret_cast<char*>(&cmd_msg_)) + sizeof(theta_));
|
|
|
- msg_type_ = 1;
|
|
|
}
|
|
|
|
|
|
Locate_response_msg::~Locate_response_msg() {
|
|
@@ -1332,15 +1329,14 @@ void Locate_response_msg::Clear() {
|
|
|
}
|
|
|
}
|
|
|
if (cached_has_bits & 252u) {
|
|
|
- ::memset(&error_code_, 0, static_cast<size_t>(
|
|
|
- reinterpret_cast<char*>(&x_) -
|
|
|
- reinterpret_cast<char*>(&error_code_)) + sizeof(x_));
|
|
|
+ ::memset(&msg_type_, 0, static_cast<size_t>(
|
|
|
+ reinterpret_cast<char*>(&wheel_base_) -
|
|
|
+ reinterpret_cast<char*>(&msg_type_)) + sizeof(wheel_base_));
|
|
|
}
|
|
|
if (cached_has_bits & 1792u) {
|
|
|
- ::memset(&y_, 0, static_cast<size_t>(
|
|
|
+ ::memset(&x_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&theta_) -
|
|
|
- reinterpret_cast<char*>(&y_)) + sizeof(theta_));
|
|
|
- msg_type_ = 1;
|
|
|
+ reinterpret_cast<char*>(&x_)) + sizeof(theta_));
|
|
|
}
|
|
|
_has_bits_.Clear();
|
|
|
_internal_metadata_.Clear();
|
|
@@ -1544,7 +1540,7 @@ void Locate_response_msg::SerializeWithCachedSizes(
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
// required .message.Message_type msg_type = 1;
|
|
|
- if (cached_has_bits & 0x00000400u) {
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
|
1, this->msg_type(), output);
|
|
|
}
|
|
@@ -1556,7 +1552,7 @@ void Locate_response_msg::SerializeWithCachedSizes(
|
|
|
}
|
|
|
|
|
|
// required int32 error_code = 3;
|
|
|
- if (cached_has_bits & 0x00000004u) {
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->error_code(), output);
|
|
|
}
|
|
|
|
|
@@ -1571,37 +1567,37 @@ void Locate_response_msg::SerializeWithCachedSizes(
|
|
|
}
|
|
|
|
|
|
// optional float length = 5;
|
|
|
- if (cached_has_bits & 0x00000008u) {
|
|
|
+ if (cached_has_bits & 0x00000010u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->length(), output);
|
|
|
}
|
|
|
|
|
|
// optional float width = 6;
|
|
|
- if (cached_has_bits & 0x00000010u) {
|
|
|
+ if (cached_has_bits & 0x00000020u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->width(), output);
|
|
|
}
|
|
|
|
|
|
// optional float height = 7;
|
|
|
- if (cached_has_bits & 0x00000020u) {
|
|
|
+ if (cached_has_bits & 0x00000040u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->height(), output);
|
|
|
}
|
|
|
|
|
|
// optional float wheel_base = 8;
|
|
|
- if (cached_has_bits & 0x00000040u) {
|
|
|
+ if (cached_has_bits & 0x00000080u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->wheel_base(), output);
|
|
|
}
|
|
|
|
|
|
// optional float x = 9;
|
|
|
- if (cached_has_bits & 0x00000080u) {
|
|
|
+ if (cached_has_bits & 0x00000100u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->x(), output);
|
|
|
}
|
|
|
|
|
|
// optional float y = 10;
|
|
|
- if (cached_has_bits & 0x00000100u) {
|
|
|
+ if (cached_has_bits & 0x00000200u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteFloat(10, this->y(), output);
|
|
|
}
|
|
|
|
|
|
// optional float theta = 11;
|
|
|
- if (cached_has_bits & 0x00000200u) {
|
|
|
+ if (cached_has_bits & 0x00000400u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->theta(), output);
|
|
|
}
|
|
|
|
|
@@ -1621,7 +1617,7 @@ void Locate_response_msg::SerializeWithCachedSizes(
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
// required .message.Message_type msg_type = 1;
|
|
|
- if (cached_has_bits & 0x00000400u) {
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
|
1, this->msg_type(), target);
|
|
|
}
|
|
@@ -1634,7 +1630,7 @@ void Locate_response_msg::SerializeWithCachedSizes(
|
|
|
}
|
|
|
|
|
|
// required int32 error_code = 3;
|
|
|
- if (cached_has_bits & 0x00000004u) {
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->error_code(), target);
|
|
|
}
|
|
|
|
|
@@ -1650,37 +1646,37 @@ void Locate_response_msg::SerializeWithCachedSizes(
|
|
|
}
|
|
|
|
|
|
// optional float length = 5;
|
|
|
- if (cached_has_bits & 0x00000008u) {
|
|
|
+ if (cached_has_bits & 0x00000010u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->length(), target);
|
|
|
}
|
|
|
|
|
|
// optional float width = 6;
|
|
|
- if (cached_has_bits & 0x00000010u) {
|
|
|
+ if (cached_has_bits & 0x00000020u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->width(), target);
|
|
|
}
|
|
|
|
|
|
// optional float height = 7;
|
|
|
- if (cached_has_bits & 0x00000020u) {
|
|
|
+ if (cached_has_bits & 0x00000040u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->height(), target);
|
|
|
}
|
|
|
|
|
|
// optional float wheel_base = 8;
|
|
|
- if (cached_has_bits & 0x00000040u) {
|
|
|
+ if (cached_has_bits & 0x00000080u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->wheel_base(), target);
|
|
|
}
|
|
|
|
|
|
// optional float x = 9;
|
|
|
- if (cached_has_bits & 0x00000080u) {
|
|
|
+ if (cached_has_bits & 0x00000100u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->x(), target);
|
|
|
}
|
|
|
|
|
|
// optional float y = 10;
|
|
|
- if (cached_has_bits & 0x00000100u) {
|
|
|
+ if (cached_has_bits & 0x00000200u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(10, this->y(), target);
|
|
|
}
|
|
|
|
|
|
// optional float theta = 11;
|
|
|
- if (cached_has_bits & 0x00000200u) {
|
|
|
+ if (cached_has_bits & 0x00000400u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->theta(), target);
|
|
|
}
|
|
|
|
|
@@ -1703,6 +1699,12 @@ size_t Locate_response_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
*this->cmd_msg_);
|
|
|
}
|
|
|
|
|
|
+ if (has_msg_type()) {
|
|
|
+ // required .message.Message_type msg_type = 1;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type());
|
|
|
+ }
|
|
|
+
|
|
|
if (has_error_code()) {
|
|
|
// required int32 error_code = 3;
|
|
|
total_size += 1 +
|
|
@@ -1710,12 +1712,6 @@ size_t Locate_response_msg::RequiredFieldsByteSizeFallback() const {
|
|
|
this->error_code());
|
|
|
}
|
|
|
|
|
|
- if (has_msg_type()) {
|
|
|
- // required .message.Message_type msg_type = 1;
|
|
|
- total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type());
|
|
|
- }
|
|
|
-
|
|
|
return total_size;
|
|
|
}
|
|
|
size_t Locate_response_msg::ByteSizeLong() const {
|
|
@@ -1727,21 +1723,21 @@ size_t Locate_response_msg::ByteSizeLong() const {
|
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
_internal_metadata_.unknown_fields());
|
|
|
}
|
|
|
- if (((_has_bits_[0] & 0x00000406) ^ 0x00000406) == 0) { // All required fields are present.
|
|
|
+ if (((_has_bits_[0] & 0x0000000e) ^ 0x0000000e) == 0) { // All required fields are present.
|
|
|
// required .message.Command_message cmd_msg = 2;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
*this->cmd_msg_);
|
|
|
|
|
|
+ // required .message.Message_type msg_type = 1;
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type());
|
|
|
+
|
|
|
// required int32 error_code = 3;
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
this->error_code());
|
|
|
|
|
|
- // required .message.Message_type msg_type = 1;
|
|
|
- total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->msg_type());
|
|
|
-
|
|
|
} else {
|
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
|
}
|
|
@@ -1752,7 +1748,7 @@ size_t Locate_response_msg::ByteSizeLong() const {
|
|
|
this->error_description());
|
|
|
}
|
|
|
|
|
|
- if (_has_bits_[0 / 32] & 248u) {
|
|
|
+ if (_has_bits_[0 / 32] & 240u) {
|
|
|
// optional float length = 5;
|
|
|
if (has_length()) {
|
|
|
total_size += 1 + 4;
|
|
@@ -1773,13 +1769,13 @@ size_t Locate_response_msg::ByteSizeLong() const {
|
|
|
total_size += 1 + 4;
|
|
|
}
|
|
|
|
|
|
+ }
|
|
|
+ if (_has_bits_[8 / 32] & 1792u) {
|
|
|
// optional float x = 9;
|
|
|
if (has_x()) {
|
|
|
total_size += 1 + 4;
|
|
|
}
|
|
|
|
|
|
- }
|
|
|
- if (_has_bits_[8 / 32] & 768u) {
|
|
|
// optional float y = 10;
|
|
|
if (has_y()) {
|
|
|
total_size += 1 + 4;
|
|
@@ -1830,34 +1826,34 @@ void Locate_response_msg::MergeFrom(const Locate_response_msg& from) {
|
|
|
mutable_cmd_msg()->::message::Command_message::MergeFrom(from.cmd_msg());
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
- error_code_ = from.error_code_;
|
|
|
+ msg_type_ = from.msg_type_;
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000008u) {
|
|
|
- length_ = from.length_;
|
|
|
+ error_code_ = from.error_code_;
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000010u) {
|
|
|
- width_ = from.width_;
|
|
|
+ length_ = from.length_;
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000020u) {
|
|
|
- height_ = from.height_;
|
|
|
+ width_ = from.width_;
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000040u) {
|
|
|
- wheel_base_ = from.wheel_base_;
|
|
|
+ height_ = from.height_;
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000080u) {
|
|
|
- x_ = from.x_;
|
|
|
+ wheel_base_ = from.wheel_base_;
|
|
|
}
|
|
|
_has_bits_[0] |= cached_has_bits;
|
|
|
}
|
|
|
if (cached_has_bits & 1792u) {
|
|
|
if (cached_has_bits & 0x00000100u) {
|
|
|
- y_ = from.y_;
|
|
|
+ x_ = from.x_;
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000200u) {
|
|
|
- theta_ = from.theta_;
|
|
|
+ y_ = from.y_;
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000400u) {
|
|
|
- msg_type_ = from.msg_type_;
|
|
|
+ theta_ = from.theta_;
|
|
|
}
|
|
|
_has_bits_[0] |= cached_has_bits;
|
|
|
}
|
|
@@ -1878,7 +1874,7 @@ void Locate_response_msg::CopyFrom(const Locate_response_msg& from) {
|
|
|
}
|
|
|
|
|
|
bool Locate_response_msg::IsInitialized() const {
|
|
|
- if ((_has_bits_[0] & 0x00000406) != 0x00000406) return false;
|
|
|
+ if ((_has_bits_[0] & 0x0000000e) != 0x0000000e) return false;
|
|
|
if (has_cmd_msg()) {
|
|
|
if (!this->cmd_msg_->IsInitialized()) return false;
|
|
|
}
|
|
@@ -1893,6 +1889,7 @@ void Locate_response_msg::InternalSwap(Locate_response_msg* other) {
|
|
|
using std::swap;
|
|
|
error_description_.Swap(&other->error_description_);
|
|
|
swap(cmd_msg_, other->cmd_msg_);
|
|
|
+ swap(msg_type_, other->msg_type_);
|
|
|
swap(error_code_, other->error_code_);
|
|
|
swap(length_, other->length_);
|
|
|
swap(width_, other->width_);
|
|
@@ -1901,7 +1898,6 @@ void Locate_response_msg::InternalSwap(Locate_response_msg* other) {
|
|
|
swap(x_, other->x_);
|
|
|
swap(y_, other->y_);
|
|
|
swap(theta_, other->theta_);
|
|
|
- swap(msg_type_, other->msg_type_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
swap(_cached_size_, other->_cached_size_);
|