|
@@ -62,6 +62,10 @@ void InitDefaultswjManagerParamsImpl() {
|
|
|
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
protobuf_wj_5flidar_5fconf_2eproto::InitDefaultswjLidarParams();
|
|
|
protobuf_wj_5flidar_5fconf_2eproto::InitDefaultsRegion();
|
|
|
+ ::wj::wjManagerParams::_default_plc_ip_address_.DefaultConstruct();
|
|
|
+ *::wj::wjManagerParams::_default_plc_ip_address_.get_mutable() = ::std::string("192.168.0.1", 11);
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyString(
|
|
|
+ ::wj::wjManagerParams::_default_plc_ip_address_.get_mutable());
|
|
|
{
|
|
|
void* ptr = &::wj::_wjManagerParams_default_instance_;
|
|
|
new (ptr) ::wj::wjManagerParams();
|
|
@@ -195,10 +199,12 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, regions_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, fence_data_path_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, fence_log_path_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, plc_ip_address_),
|
|
|
~0u,
|
|
|
~0u,
|
|
|
0,
|
|
|
1,
|
|
|
+ 2,
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, _has_bits_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, _internal_metadata_),
|
|
|
~0u, // no _extensions_
|
|
@@ -278,12 +284,12 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
0,
|
|
|
};
|
|
|
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
- { 0, 9, sizeof(::wj::wjManagerParams)},
|
|
|
- { 13, 22, sizeof(::wj::Region)},
|
|
|
- { 26, 40, sizeof(::wj::wjLidarParams)},
|
|
|
- { 49, 56, sizeof(::wj::netConfig)},
|
|
|
- { 58, 69, sizeof(::wj::Transform2d)},
|
|
|
- { 75, 85, sizeof(::wj::scanLimit)},
|
|
|
+ { 0, 10, sizeof(::wj::wjManagerParams)},
|
|
|
+ { 15, 24, sizeof(::wj::Region)},
|
|
|
+ { 28, 42, sizeof(::wj::wjLidarParams)},
|
|
|
+ { 51, 58, sizeof(::wj::netConfig)},
|
|
|
+ { 60, 71, sizeof(::wj::Transform2d)},
|
|
|
+ { 77, 87, sizeof(::wj::scanLimit)},
|
|
|
};
|
|
|
|
|
|
static ::google::protobuf::Message const * const file_default_instances[] = {
|
|
@@ -317,30 +323,31 @@ void protobuf_RegisterTypes(const ::std::string&) {
|
|
|
void AddDescriptorsImpl() {
|
|
|
InitDefaults();
|
|
|
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
- "\n\023wj_lidar_conf.proto\022\002wj\"\210\001\n\017wjManagerP"
|
|
|
+ "\n\023wj_lidar_conf.proto\022\002wj\"\255\001\n\017wjManagerP"
|
|
|
"arams\022#\n\010wj_lidar\030\001 \003(\0132\021.wj.wjLidarPara"
|
|
|
"ms\022\033\n\007regions\030\002 \003(\0132\n.wj.Region\022\031\n\017fence"
|
|
|
"_data_path\030\003 \001(\t:\000\022\030\n\016fence_log_path\030\004 \001"
|
|
|
- "(\t:\000\"@\n\006Region\022\014\n\004minx\030\001 \002(\002\022\014\n\004maxx\030\002 \002"
|
|
|
- "(\002\022\014\n\004miny\030\003 \002(\002\022\014\n\004maxy\030\004 \002(\002\"\246\002\n\rwjLid"
|
|
|
- "arParams\022\035\n\tangle_min\030\001 \001(\002:\n-2.3561945\022"
|
|
|
- "\034\n\tangle_max\030\002 \001(\002:\t2.3561945\022 \n\017angle_i"
|
|
|
- "ncrement\030\003 \001(\002:\0070.00582\022\037\n\016time_incremen"
|
|
|
- "t\030\004 \001(\002:\0076.2e-05\022\024\n\trange_min\030\005 \001(\005:\0010\022\025"
|
|
|
- "\n\trange_max\030\006 \001(\005:\00230\022!\n\nnet_config\030\007 \002("
|
|
|
- "\0132\r.wj.netConfig\022\"\n\ttransform\030\010 \002(\0132\017.wj"
|
|
|
- ".Transform2d\022!\n\nscan_limit\030\t \002(\0132\r.wj.sc"
|
|
|
- "anLimit\"5\n\tnetConfig\022\024\n\nip_address\030\001 \001(\t"
|
|
|
- ":\000\022\022\n\004port\030\002 \001(\005:\0048000\"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\003m10\030\004 \001(\002:\0010\022\016\n\003m11\030\005 \001(\002:\0011\022\016\n"
|
|
|
- "\003m12\030\006 \001(\002:\0010\"o\n\tscanLimit\022\025\n\ndist_limit"
|
|
|
- "\030\001 \001(\002:\0018\022\020\n\004minx\030\002 \001(\002:\002-6\022\022\n\004maxx\030\003 \001("
|
|
|
- "\002:\004-0.2\022\022\n\004miny\030\004 \001(\002:\004-3.5\022\021\n\004maxy\030\005 \001("
|
|
|
- "\002:\0033.5"
|
|
|
+ "(\t:\000\022#\n\016plc_ip_address\030\005 \001(\t:\013192.168.0."
|
|
|
+ "1\"@\n\006Region\022\014\n\004minx\030\001 \002(\002\022\014\n\004maxx\030\002 \002(\002\022"
|
|
|
+ "\014\n\004miny\030\003 \002(\002\022\014\n\004maxy\030\004 \002(\002\"\246\002\n\rwjLidarP"
|
|
|
+ "arams\022\035\n\tangle_min\030\001 \001(\002:\n-2.3561945\022\034\n\t"
|
|
|
+ "angle_max\030\002 \001(\002:\t2.3561945\022 \n\017angle_incr"
|
|
|
+ "ement\030\003 \001(\002:\0070.00582\022\037\n\016time_increment\030\004"
|
|
|
+ " \001(\002:\0076.2e-05\022\024\n\trange_min\030\005 \001(\005:\0010\022\025\n\tr"
|
|
|
+ "ange_max\030\006 \001(\005:\00230\022!\n\nnet_config\030\007 \002(\0132\r"
|
|
|
+ ".wj.netConfig\022\"\n\ttransform\030\010 \002(\0132\017.wj.Tr"
|
|
|
+ "ansform2d\022!\n\nscan_limit\030\t \002(\0132\r.wj.scanL"
|
|
|
+ "imit\"5\n\tnetConfig\022\024\n\nip_address\030\001 \001(\t:\000\022"
|
|
|
+ "\022\n\004port\030\002 \001(\005:\0048000\"m\n\013Transform2d\022\016\n\003m0"
|
|
|
+ "0\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\003m10\030\004 \001(\002:\0010\022\016\n\003m11\030\005 \001(\002:\0011\022\016\n\003m1"
|
|
|
+ "2\030\006 \001(\002:\0010\"o\n\tscanLimit\022\025\n\ndist_limit\030\001 "
|
|
|
+ "\001(\002:\0018\022\020\n\004minx\030\002 \001(\002:\002-6\022\022\n\004maxx\030\003 \001(\002:\004"
|
|
|
+ "-0.2\022\022\n\004miny\030\004 \001(\002:\004-3.5\022\021\n\004maxy\030\005 \001(\002:\003"
|
|
|
+ "3.5"
|
|
|
};
|
|
|
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
|
|
- descriptor, 806);
|
|
|
+ descriptor, 843);
|
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
|
|
"wj_lidar_conf.proto", &protobuf_RegisterTypes);
|
|
|
}
|
|
@@ -362,11 +369,13 @@ namespace wj {
|
|
|
|
|
|
void wjManagerParams::InitAsDefaultInstance() {
|
|
|
}
|
|
|
+::google::protobuf::internal::ExplicitlyConstructed< ::std::string> wjManagerParams::_default_plc_ip_address_;
|
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
const int wjManagerParams::kWjLidarFieldNumber;
|
|
|
const int wjManagerParams::kRegionsFieldNumber;
|
|
|
const int wjManagerParams::kFenceDataPathFieldNumber;
|
|
|
const int wjManagerParams::kFenceLogPathFieldNumber;
|
|
|
+const int wjManagerParams::kPlcIpAddressFieldNumber;
|
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
|
|
wjManagerParams::wjManagerParams()
|
|
@@ -393,6 +402,10 @@ wjManagerParams::wjManagerParams(const wjManagerParams& from)
|
|
|
if (from.has_fence_log_path()) {
|
|
|
fence_log_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_log_path_);
|
|
|
}
|
|
|
+ plc_ip_address_.UnsafeSetDefault(&::wj::wjManagerParams::_default_plc_ip_address_.get());
|
|
|
+ if (from.has_plc_ip_address()) {
|
|
|
+ plc_ip_address_.AssignWithDefault(&::wj::wjManagerParams::_default_plc_ip_address_.get(), from.plc_ip_address_);
|
|
|
+ }
|
|
|
// @@protoc_insertion_point(copy_constructor:wj.wjManagerParams)
|
|
|
}
|
|
|
|
|
@@ -400,6 +413,7 @@ void wjManagerParams::SharedCtor() {
|
|
|
_cached_size_ = 0;
|
|
|
fence_data_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
fence_log_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
+ plc_ip_address_.UnsafeSetDefault(&::wj::wjManagerParams::_default_plc_ip_address_.get());
|
|
|
}
|
|
|
|
|
|
wjManagerParams::~wjManagerParams() {
|
|
@@ -410,6 +424,7 @@ wjManagerParams::~wjManagerParams() {
|
|
|
void wjManagerParams::SharedDtor() {
|
|
|
fence_data_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
fence_log_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
+ plc_ip_address_.DestroyNoArena(&::wj::wjManagerParams::_default_plc_ip_address_.get());
|
|
|
}
|
|
|
|
|
|
void wjManagerParams::SetCachedSize(int size) const {
|
|
@@ -444,7 +459,7 @@ void wjManagerParams::Clear() {
|
|
|
wj_lidar_.Clear();
|
|
|
regions_.Clear();
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
- if (cached_has_bits & 3u) {
|
|
|
+ if (cached_has_bits & 7u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
GOOGLE_DCHECK(!fence_data_path_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
(*fence_data_path_.UnsafeRawStringPointer())->clear();
|
|
@@ -453,6 +468,10 @@ void wjManagerParams::Clear() {
|
|
|
GOOGLE_DCHECK(!fence_log_path_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
(*fence_log_path_.UnsafeRawStringPointer())->clear();
|
|
|
}
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ GOOGLE_DCHECK(!plc_ip_address_.IsDefault(&::wj::wjManagerParams::_default_plc_ip_address_.get()));
|
|
|
+ (*plc_ip_address_.UnsafeRawStringPointer())->assign(*&::wj::wjManagerParams::_default_plc_ip_address_.get());
|
|
|
+ }
|
|
|
}
|
|
|
_has_bits_.Clear();
|
|
|
_internal_metadata_.Clear();
|
|
@@ -522,6 +541,22 @@ bool wjManagerParams::MergePartialFromCodedStream(
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
+ // optional string plc_ip_address = 5 [default = "192.168.0.1"];
|
|
|
+ case 5: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
|
+ input, this->mutable_plc_ip_address()));
|
|
|
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
+ this->plc_ip_address().data(), static_cast<int>(this->plc_ip_address().length()),
|
|
|
+ ::google::protobuf::internal::WireFormat::PARSE,
|
|
|
+ "wj.wjManagerParams.plc_ip_address");
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
default: {
|
|
|
handle_unusual:
|
|
|
if (tag == 0) {
|
|
@@ -583,6 +618,16 @@ void wjManagerParams::SerializeWithCachedSizes(
|
|
|
4, this->fence_log_path(), output);
|
|
|
}
|
|
|
|
|
|
+ // optional string plc_ip_address = 5 [default = "192.168.0.1"];
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
+ this->plc_ip_address().data(), static_cast<int>(this->plc_ip_address().length()),
|
|
|
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
|
+ "wj.wjManagerParams.plc_ip_address");
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
|
+ 5, this->plc_ip_address(), output);
|
|
|
+ }
|
|
|
+
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
_internal_metadata_.unknown_fields(), output);
|
|
@@ -636,6 +681,17 @@ void wjManagerParams::SerializeWithCachedSizes(
|
|
|
4, this->fence_log_path(), target);
|
|
|
}
|
|
|
|
|
|
+ // optional string plc_ip_address = 5 [default = "192.168.0.1"];
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
|
+ this->plc_ip_address().data(), static_cast<int>(this->plc_ip_address().length()),
|
|
|
+ ::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
|
+ "wj.wjManagerParams.plc_ip_address");
|
|
|
+ target =
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
|
+ 5, this->plc_ip_address(), target);
|
|
|
+ }
|
|
|
+
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
_internal_metadata_.unknown_fields(), target);
|
|
@@ -675,7 +731,7 @@ size_t wjManagerParams::ByteSizeLong() const {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (_has_bits_[0 / 32] & 3u) {
|
|
|
+ if (_has_bits_[0 / 32] & 7u) {
|
|
|
// optional string fence_data_path = 3 [default = ""];
|
|
|
if (has_fence_data_path()) {
|
|
|
total_size += 1 +
|
|
@@ -690,6 +746,13 @@ size_t wjManagerParams::ByteSizeLong() const {
|
|
|
this->fence_log_path());
|
|
|
}
|
|
|
|
|
|
+ // optional string plc_ip_address = 5 [default = "192.168.0.1"];
|
|
|
+ if (has_plc_ip_address()) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
|
+ this->plc_ip_address());
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
@@ -723,7 +786,7 @@ void wjManagerParams::MergeFrom(const wjManagerParams& from) {
|
|
|
wj_lidar_.MergeFrom(from.wj_lidar_);
|
|
|
regions_.MergeFrom(from.regions_);
|
|
|
cached_has_bits = from._has_bits_[0];
|
|
|
- if (cached_has_bits & 3u) {
|
|
|
+ if (cached_has_bits & 7u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
set_has_fence_data_path();
|
|
|
fence_data_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_data_path_);
|
|
@@ -732,6 +795,10 @@ void wjManagerParams::MergeFrom(const wjManagerParams& from) {
|
|
|
set_has_fence_log_path();
|
|
|
fence_log_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_log_path_);
|
|
|
}
|
|
|
+ if (cached_has_bits & 0x00000004u) {
|
|
|
+ set_has_plc_ip_address();
|
|
|
+ plc_ip_address_.AssignWithDefault(&::wj::wjManagerParams::_default_plc_ip_address_.get(), from.plc_ip_address_);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -765,6 +832,7 @@ void wjManagerParams::InternalSwap(wjManagerParams* other) {
|
|
|
regions_.InternalSwap(&other->regions_);
|
|
|
fence_data_path_.Swap(&other->fence_data_path_);
|
|
|
fence_log_path_.Swap(&other->fence_log_path_);
|
|
|
+ plc_ip_address_.Swap(&other->plc_ip_address_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
swap(_cached_size_, other->_cached_size_);
|