|
@@ -1,7 +1,7 @@
|
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
// source: EleFence.proto
|
|
|
|
|
|
-#include "include/EleFence.pb.h"
|
|
|
+#include "EleFence.pb.h"
|
|
|
|
|
|
#include <algorithm>
|
|
|
|
|
@@ -170,8 +170,16 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::EleFence::lidarParam, topic_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::EleFence::lidarParam, transform_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::EleFence::lidarParam, dist_limit_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::EleFence::lidarParam, minx_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::EleFence::lidarParam, maxx_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::EleFence::lidarParam, miny_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::EleFence::lidarParam, maxy_),
|
|
|
0,
|
|
|
1,
|
|
|
+ 3,
|
|
|
+ 4,
|
|
|
+ 5,
|
|
|
+ 6,
|
|
|
2,
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::EleFence::globalParam, _has_bits_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::EleFence::globalParam, _internal_metadata_),
|
|
@@ -186,8 +194,8 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
{ 0, 9, sizeof(::EleFence::Region)},
|
|
|
{ 13, 24, sizeof(::EleFence::Transform2d)},
|
|
|
- { 30, 38, sizeof(::EleFence::lidarParam)},
|
|
|
- { 41, 48, sizeof(::EleFence::globalParam)},
|
|
|
+ { 30, 42, sizeof(::EleFence::lidarParam)},
|
|
|
+ { 49, 56, sizeof(::EleFence::globalParam)},
|
|
|
};
|
|
|
|
|
|
static ::google::protobuf::Message const * const file_default_instances[] = {
|
|
@@ -224,14 +232,16 @@ void AddDescriptorsImpl() {
|
|
|
"\n\004maxy\030\004 \002(\002\"m\n\013Transform2d\022\016\n\003m00\030\001 \001(\002"
|
|
|
":\0011\022\016\n\003m01\030\002 \001(\002:\0010\022\016\n\003m02\030\003 \001(\002:\0010\022\016\n\003m"
|
|
|
"10\030\004 \001(\002:\0010\022\016\n\003m11\030\005 \001(\002:\0011\022\016\n\003m12\030\006 \001(\002"
|
|
|
- ":\0010\"\\\n\nlidarParam\022\r\n\005topic\030\001 \001(\t\022(\n\ttran"
|
|
|
- "sform\030\002 \001(\0132\025.EleFence.Transform2d\022\025\n\ndi"
|
|
|
- "st_limit\030\003 \001(\002:\0018\"\\\n\013globalParam\022*\n\014lida"
|
|
|
- "r_params\030\001 \003(\0132\024.EleFence.lidarParam\022!\n\007"
|
|
|
- "regions\030\002 \003(\0132\020.EleFence.Region"
|
|
|
+ ":\0010\"\251\001\n\nlidarParam\022\r\n\005topic\030\001 \001(\t\022(\n\ttra"
|
|
|
+ "nsform\030\002 \001(\0132\025.EleFence.Transform2d\022\025\n\nd"
|
|
|
+ "ist_limit\030\003 \001(\002:\0018\022\020\n\004minx\030\004 \001(\002:\002-6\022\022\n\004"
|
|
|
+ "maxx\030\005 \001(\002:\004-0.2\022\022\n\004miny\030\006 \001(\002:\004-3.5\022\021\n\004"
|
|
|
+ "maxy\030\007 \001(\002:\0033.5\"\\\n\013globalParam\022*\n\014lidar_"
|
|
|
+ "params\030\001 \003(\0132\024.EleFence.lidarParam\022!\n\007re"
|
|
|
+ "gions\030\002 \003(\0132\020.EleFence.Region"
|
|
|
};
|
|
|
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
|
|
- descriptor, 391);
|
|
|
+ descriptor, 469);
|
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
|
|
"EleFence.proto", &protobuf_RegisterTypes);
|
|
|
}
|
|
@@ -1068,6 +1078,10 @@ void lidarParam::InitAsDefaultInstance() {
|
|
|
const int lidarParam::kTopicFieldNumber;
|
|
|
const int lidarParam::kTransformFieldNumber;
|
|
|
const int lidarParam::kDistLimitFieldNumber;
|
|
|
+const int lidarParam::kMinxFieldNumber;
|
|
|
+const int lidarParam::kMaxxFieldNumber;
|
|
|
+const int lidarParam::kMinyFieldNumber;
|
|
|
+const int lidarParam::kMaxyFieldNumber;
|
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
|
|
lidarParam::lidarParam()
|
|
@@ -1093,7 +1107,9 @@ lidarParam::lidarParam(const lidarParam& from)
|
|
|
} else {
|
|
|
transform_ = NULL;
|
|
|
}
|
|
|
- dist_limit_ = from.dist_limit_;
|
|
|
+ ::memcpy(&maxy_, &from.maxy_,
|
|
|
+ static_cast<size_t>(reinterpret_cast<char*>(&miny_) -
|
|
|
+ reinterpret_cast<char*>(&maxy_)) + sizeof(miny_));
|
|
|
// @@protoc_insertion_point(copy_constructor:EleFence.lidarParam)
|
|
|
}
|
|
|
|
|
@@ -1101,7 +1117,11 @@ void lidarParam::SharedCtor() {
|
|
|
_cached_size_ = 0;
|
|
|
topic_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
transform_ = NULL;
|
|
|
+ maxy_ = 3.5f;
|
|
|
dist_limit_ = 8;
|
|
|
+ minx_ = -6;
|
|
|
+ maxx_ = -0.2f;
|
|
|
+ miny_ = -3.5f;
|
|
|
}
|
|
|
|
|
|
lidarParam::~lidarParam() {
|
|
@@ -1144,7 +1164,7 @@ void lidarParam::Clear() {
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
- if (cached_has_bits & 7u) {
|
|
|
+ if (cached_has_bits & 127u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
GOOGLE_DCHECK(!topic_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
(*topic_.UnsafeRawStringPointer())->clear();
|
|
@@ -1153,7 +1173,11 @@ void lidarParam::Clear() {
|
|
|
GOOGLE_DCHECK(transform_ != NULL);
|
|
|
transform_->Clear();
|
|
|
}
|
|
|
+ maxy_ = 3.5f;
|
|
|
dist_limit_ = 8;
|
|
|
+ minx_ = -6;
|
|
|
+ maxx_ = -0.2f;
|
|
|
+ miny_ = -3.5f;
|
|
|
}
|
|
|
_has_bits_.Clear();
|
|
|
_internal_metadata_.Clear();
|
|
@@ -1211,6 +1235,62 @@ bool lidarParam::MergePartialFromCodedStream(
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
+ // optional float minx = 4 [default = -6];
|
|
|
+ case 4: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
|
|
|
+ set_has_minx();
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
|
|
|
+ input, &minx_)));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ // optional float maxx = 5 [default = -0.2];
|
|
|
+ case 5: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
|
|
|
+ set_has_maxx();
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
|
|
|
+ input, &maxx_)));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ // optional float miny = 6 [default = -3.5];
|
|
|
+ case 6: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
|
|
|
+ set_has_miny();
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
|
|
|
+ input, &miny_)));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ // optional float maxy = 7 [default = 3.5];
|
|
|
+ case 7: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
|
|
|
+ set_has_maxy();
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
|
|
|
+ input, &maxy_)));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
default: {
|
|
|
handle_unusual:
|
|
|
if (tag == 0) {
|
|
@@ -1255,10 +1335,30 @@ void lidarParam::SerializeWithCachedSizes(
|
|
|
}
|
|
|
|
|
|
// optional float dist_limit = 3 [default = 8];
|
|
|
- if (cached_has_bits & 0x00000004u) {
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->dist_limit(), output);
|
|
|
}
|
|
|
|
|
|
+ // optional float minx = 4 [default = -6];
|
|
|
+ if (cached_has_bits & 0x00000010u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->minx(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ // optional float maxx = 5 [default = -0.2];
|
|
|
+ if (cached_has_bits & 0x00000020u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->maxx(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ // optional float miny = 6 [default = -3.5];
|
|
|
+ if (cached_has_bits & 0x00000040u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->miny(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ // optional float maxy = 7 [default = 3.5];
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->maxy(), output);
|
|
|
+ }
|
|
|
+
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
_internal_metadata_.unknown_fields(), output);
|
|
@@ -1293,10 +1393,30 @@ void lidarParam::SerializeWithCachedSizes(
|
|
|
}
|
|
|
|
|
|
// optional float dist_limit = 3 [default = 8];
|
|
|
- if (cached_has_bits & 0x00000004u) {
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->dist_limit(), target);
|
|
|
}
|
|
|
|
|
|
+ // optional float minx = 4 [default = -6];
|
|
|
+ if (cached_has_bits & 0x00000010u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->minx(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // optional float maxx = 5 [default = -0.2];
|
|
|
+ if (cached_has_bits & 0x00000020u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->maxx(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // optional float miny = 6 [default = -3.5];
|
|
|
+ if (cached_has_bits & 0x00000040u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->miny(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // optional float maxy = 7 [default = 3.5];
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->maxy(), target);
|
|
|
+ }
|
|
|
+
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
_internal_metadata_.unknown_fields(), target);
|
|
@@ -1314,7 +1434,7 @@ size_t lidarParam::ByteSizeLong() const {
|
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
_internal_metadata_.unknown_fields());
|
|
|
}
|
|
|
- if (_has_bits_[0 / 32] & 7u) {
|
|
|
+ if (_has_bits_[0 / 32] & 127u) {
|
|
|
// optional string topic = 1;
|
|
|
if (has_topic()) {
|
|
|
total_size += 1 +
|
|
@@ -1329,11 +1449,31 @@ size_t lidarParam::ByteSizeLong() const {
|
|
|
*this->transform_);
|
|
|
}
|
|
|
|
|
|
+ // optional float maxy = 7 [default = 3.5];
|
|
|
+ if (has_maxy()) {
|
|
|
+ total_size += 1 + 4;
|
|
|
+ }
|
|
|
+
|
|
|
// optional float dist_limit = 3 [default = 8];
|
|
|
if (has_dist_limit()) {
|
|
|
total_size += 1 + 4;
|
|
|
}
|
|
|
|
|
|
+ // optional float minx = 4 [default = -6];
|
|
|
+ if (has_minx()) {
|
|
|
+ total_size += 1 + 4;
|
|
|
+ }
|
|
|
+
|
|
|
+ // optional float maxx = 5 [default = -0.2];
|
|
|
+ if (has_maxx()) {
|
|
|
+ total_size += 1 + 4;
|
|
|
+ }
|
|
|
+
|
|
|
+ // optional float miny = 6 [default = -3.5];
|
|
|
+ if (has_miny()) {
|
|
|
+ total_size += 1 + 4;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
@@ -1365,7 +1505,7 @@ void lidarParam::MergeFrom(const lidarParam& from) {
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
cached_has_bits = from._has_bits_[0];
|
|
|
- if (cached_has_bits & 7u) {
|
|
|
+ if (cached_has_bits & 127u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
set_has_topic();
|
|
|
topic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.topic_);
|
|
@@ -1374,8 +1514,20 @@ void lidarParam::MergeFrom(const lidarParam& from) {
|
|
|
mutable_transform()->::EleFence::Transform2d::MergeFrom(from.transform());
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
+ maxy_ = from.maxy_;
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000008u) {
|
|
|
dist_limit_ = from.dist_limit_;
|
|
|
}
|
|
|
+ if (cached_has_bits & 0x00000010u) {
|
|
|
+ minx_ = from.minx_;
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000020u) {
|
|
|
+ maxx_ = from.maxx_;
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000040u) {
|
|
|
+ miny_ = from.miny_;
|
|
|
+ }
|
|
|
_has_bits_[0] |= cached_has_bits;
|
|
|
}
|
|
|
}
|
|
@@ -1406,7 +1558,11 @@ void lidarParam::InternalSwap(lidarParam* other) {
|
|
|
using std::swap;
|
|
|
topic_.Swap(&other->topic_);
|
|
|
swap(transform_, other->transform_);
|
|
|
+ swap(maxy_, other->maxy_);
|
|
|
swap(dist_limit_, other->dist_limit_);
|
|
|
+ swap(minx_, other->minx_);
|
|
|
+ swap(maxx_, other->maxx_);
|
|
|
+ swap(miny_, other->miny_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
swap(_cached_size_, other->_cached_size_);
|