|
|
@@ -30,11 +30,16 @@ class velodyneLidarParamsDefaultTypeInternal {
|
|
|
::google::protobuf::internal::ExplicitlyConstructed<velodyneLidarParams>
|
|
|
_instance;
|
|
|
} _velodyneLidarParams_default_instance_;
|
|
|
-class Calib_parameterDefaultTypeInternal {
|
|
|
+class CalibParameterDefaultTypeInternal {
|
|
|
public:
|
|
|
- ::google::protobuf::internal::ExplicitlyConstructed<Calib_parameter>
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<CalibParameter>
|
|
|
_instance;
|
|
|
-} _Calib_parameter_default_instance_;
|
|
|
+} _CalibParameter_default_instance_;
|
|
|
+class lidarExtrinsicDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<lidarExtrinsic>
|
|
|
+ _instance;
|
|
|
+} _lidarExtrinsic_default_instance_;
|
|
|
class RegionDefaultTypeInternal {
|
|
|
public:
|
|
|
::google::protobuf::internal::ExplicitlyConstructed<Region>
|
|
|
@@ -73,7 +78,7 @@ void InitDefaultsvelodyneLidarParamsImpl() {
|
|
|
#else
|
|
|
::google::protobuf::internal::InitProtobufDefaults();
|
|
|
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- protobuf_velodyne_5fconfig_2eproto::InitDefaultsCalib_parameter();
|
|
|
+ protobuf_velodyne_5fconfig_2eproto::InitDefaultsCalibParameter();
|
|
|
::velodyne::velodyneLidarParams::_default_model_.DefaultConstruct();
|
|
|
*::velodyne::velodyneLidarParams::_default_model_.get_mutable() = ::std::string("VLP16", 5);
|
|
|
::google::protobuf::internal::OnShutdownDestroyString(
|
|
|
@@ -91,7 +96,28 @@ void InitDefaultsvelodyneLidarParams() {
|
|
|
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsvelodyneLidarParamsImpl);
|
|
|
}
|
|
|
|
|
|
-void InitDefaultsCalib_parameterImpl() {
|
|
|
+void InitDefaultsCalibParameterImpl() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
+#else
|
|
|
+ ::google::protobuf::internal::InitProtobufDefaults();
|
|
|
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
+ {
|
|
|
+ void* ptr = &::velodyne::_CalibParameter_default_instance_;
|
|
|
+ new (ptr) ::velodyne::CalibParameter();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::velodyne::CalibParameter::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+void InitDefaultsCalibParameter() {
|
|
|
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCalibParameterImpl);
|
|
|
+}
|
|
|
+
|
|
|
+void InitDefaultslidarExtrinsicImpl() {
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
|
|
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
@@ -99,17 +125,18 @@ void InitDefaultsCalib_parameterImpl() {
|
|
|
#else
|
|
|
::google::protobuf::internal::InitProtobufDefaults();
|
|
|
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
+ protobuf_velodyne_5fconfig_2eproto::InitDefaultsCalibParameter();
|
|
|
{
|
|
|
- void* ptr = &::velodyne::_Calib_parameter_default_instance_;
|
|
|
- new (ptr) ::velodyne::Calib_parameter();
|
|
|
+ void* ptr = &::velodyne::_lidarExtrinsic_default_instance_;
|
|
|
+ new (ptr) ::velodyne::lidarExtrinsic();
|
|
|
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
}
|
|
|
- ::velodyne::Calib_parameter::InitAsDefaultInstance();
|
|
|
+ ::velodyne::lidarExtrinsic::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-void InitDefaultsCalib_parameter() {
|
|
|
+void InitDefaultslidarExtrinsic() {
|
|
|
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCalib_parameterImpl);
|
|
|
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultslidarExtrinsicImpl);
|
|
|
}
|
|
|
|
|
|
void InitDefaultsRegionImpl() {
|
|
|
@@ -120,6 +147,7 @@ void InitDefaultsRegionImpl() {
|
|
|
#else
|
|
|
::google::protobuf::internal::InitProtobufDefaults();
|
|
|
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
+ protobuf_velodyne_5fconfig_2eproto::InitDefaultslidarExtrinsic();
|
|
|
{
|
|
|
void* ptr = &::velodyne::_Region_default_instance_;
|
|
|
new (ptr) ::velodyne::Region();
|
|
|
@@ -133,7 +161,7 @@ void InitDefaultsRegion() {
|
|
|
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRegionImpl);
|
|
|
}
|
|
|
|
|
|
-::google::protobuf::Metadata file_level_metadata[4];
|
|
|
+::google::protobuf::Metadata file_level_metadata[5];
|
|
|
|
|
|
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, _has_bits_),
|
|
|
@@ -182,23 +210,32 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
10,
|
|
|
6,
|
|
|
3,
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Calib_parameter, _has_bits_),
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Calib_parameter, _internal_metadata_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, _has_bits_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, _internal_metadata_),
|
|
|
~0u, // no _extensions_
|
|
|
~0u, // no _oneof_case_
|
|
|
~0u, // no _weak_field_map_
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Calib_parameter, r_),
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Calib_parameter, p_),
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Calib_parameter, y_),
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Calib_parameter, cx_),
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Calib_parameter, cy_),
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Calib_parameter, cz_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, r_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, p_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, y_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, cx_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, cy_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, cz_),
|
|
|
0,
|
|
|
1,
|
|
|
2,
|
|
|
3,
|
|
|
4,
|
|
|
5,
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::lidarExtrinsic, _has_bits_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::lidarExtrinsic, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::lidarExtrinsic, lidar_id_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::lidarExtrinsic, calib_),
|
|
|
+ 1,
|
|
|
+ 0,
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, _has_bits_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, _internal_metadata_),
|
|
|
~0u, // no _extensions_
|
|
|
@@ -211,7 +248,7 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, minz_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, maxz_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, region_id_),
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, lidar_ids_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, lidar_exts_),
|
|
|
0,
|
|
|
1,
|
|
|
2,
|
|
|
@@ -224,14 +261,16 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
{ 0, 12, sizeof(::velodyne::velodyneManagerParams)},
|
|
|
{ 19, 35, sizeof(::velodyne::velodyneLidarParams)},
|
|
|
- { 46, 57, sizeof(::velodyne::Calib_parameter)},
|
|
|
- { 63, 76, sizeof(::velodyne::Region)},
|
|
|
+ { 46, 57, sizeof(::velodyne::CalibParameter)},
|
|
|
+ { 63, 70, sizeof(::velodyne::lidarExtrinsic)},
|
|
|
+ { 72, 85, sizeof(::velodyne::Region)},
|
|
|
};
|
|
|
|
|
|
static ::google::protobuf::Message const * const file_default_instances[] = {
|
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::velodyne::_velodyneManagerParams_default_instance_),
|
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::velodyne::_velodyneLidarParams_default_instance_),
|
|
|
- reinterpret_cast<const ::google::protobuf::Message*>(&::velodyne::_Calib_parameter_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::velodyne::_CalibParameter_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::velodyne::_lidarExtrinsic_default_instance_),
|
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::velodyne::_Region_default_instance_),
|
|
|
};
|
|
|
|
|
|
@@ -251,7 +290,7 @@ void protobuf_AssignDescriptorsOnce() {
|
|
|
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
|
|
|
void protobuf_RegisterTypes(const ::std::string&) {
|
|
|
protobuf_AssignDescriptorsOnce();
|
|
|
- ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4);
|
|
|
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 5);
|
|
|
}
|
|
|
|
|
|
void AddDescriptorsImpl() {
|
|
|
@@ -264,23 +303,25 @@ void AddDescriptorsImpl() {
|
|
|
"ata_path\030\003 \001(\t:\000\022\030\n\016fence_log_path\030\004 \001(\t"
|
|
|
":\000\022\031\n\017left_model_path\030\005 \001(\t:\000\022\032\n\020right_m"
|
|
|
"odel_path\030\006 \001(\t:\000\022 \n\021distribution_mode\030\007"
|
|
|
- " \002(\010:\005false\"\227\002\n\023velodyneLidarParams\022\014\n\002i"
|
|
|
+ " \002(\010:\005false\"\226\002\n\023velodyneLidarParams\022\014\n\002i"
|
|
|
"p\030\001 \002(\t:\000\022\022\n\004port\030\002 \002(\005:\0042368\022\024\n\005model\030\003"
|
|
|
" \002(\t:\005VLP16\022\031\n\017calibrationFile\030\004 \002(\t:\000\022\023"
|
|
|
"\n\010lidar_id\030\005 \002(\005:\0010\022\025\n\tmax_range\030\006 \001(\002:\002"
|
|
|
"10\022\027\n\tmin_range\030\007 \001(\002:\0040.15\022\024\n\tmin_angle"
|
|
|
"\030\010 \001(\005:\0010\022\026\n\tmax_angle\030\t \001(\005:\003360\022\020\n\003rpm"
|
|
|
- "\030\n \001(\005:\003600\022(\n\005calib\030\013 \001(\0132\031.velodyne.Ca"
|
|
|
- "lib_parameter\"h\n\017Calib_parameter\022\014\n\001r\030\001 "
|
|
|
- "\001(\002:\0010\022\014\n\001p\030\002 \001(\002:\0010\022\014\n\001y\030\003 \001(\002:\0010\022\r\n\002cx"
|
|
|
- "\030\004 \001(\002:\0010\022\r\n\002cy\030\005 \001(\002:\0010\022\r\n\002cz\030\006 \001(\002:\0010\""
|
|
|
- "\202\001\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\022\014\n\004minz\030\005 \002(\002"
|
|
|
- "\022\014\n\004maxz\030\006 \002(\002\022\021\n\tregion_id\030\007 \002(\005\022\021\n\tlid"
|
|
|
- "ar_ids\030\010 \003(\005"
|
|
|
+ "\030\n \001(\005:\003600\022\'\n\005calib\030\013 \001(\0132\030.velodyne.Ca"
|
|
|
+ "libParameter\"g\n\016CalibParameter\022\014\n\001r\030\001 \001("
|
|
|
+ "\002:\0010\022\014\n\001p\030\002 \001(\002:\0010\022\014\n\001y\030\003 \001(\002:\0010\022\r\n\002cx\030\004"
|
|
|
+ " \001(\002:\0010\022\r\n\002cy\030\005 \001(\002:\0010\022\r\n\002cz\030\006 \001(\002:\0010\"K\n"
|
|
|
+ "\016lidarExtrinsic\022\020\n\010lidar_id\030\001 \002(\005\022\'\n\005cal"
|
|
|
+ "ib\030\002 \001(\0132\030.velodyne.CalibParameter\"\235\001\n\006R"
|
|
|
+ "egion\022\014\n\004minx\030\001 \002(\002\022\014\n\004maxx\030\002 \002(\002\022\014\n\004min"
|
|
|
+ "y\030\003 \002(\002\022\014\n\004maxy\030\004 \002(\002\022\014\n\004minz\030\005 \002(\002\022\014\n\004m"
|
|
|
+ "axz\030\006 \002(\002\022\021\n\tregion_id\030\007 \002(\005\022,\n\nlidar_ex"
|
|
|
+ "ts\030\010 \003(\0132\030.velodyne.lidarExtrinsic"
|
|
|
};
|
|
|
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
|
|
- descriptor, 812);
|
|
|
+ descriptor, 914);
|
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
|
|
"velodyne_config.proto", &protobuf_RegisterTypes);
|
|
|
}
|
|
|
@@ -877,8 +918,8 @@ void velodyneManagerParams::InternalSwap(velodyneManagerParams* other) {
|
|
|
// ===================================================================
|
|
|
|
|
|
void velodyneLidarParams::InitAsDefaultInstance() {
|
|
|
- ::velodyne::_velodyneLidarParams_default_instance_._instance.get_mutable()->calib_ = const_cast< ::velodyne::Calib_parameter*>(
|
|
|
- ::velodyne::Calib_parameter::internal_default_instance());
|
|
|
+ ::velodyne::_velodyneLidarParams_default_instance_._instance.get_mutable()->calib_ = const_cast< ::velodyne::CalibParameter*>(
|
|
|
+ ::velodyne::CalibParameter::internal_default_instance());
|
|
|
}
|
|
|
::google::protobuf::internal::ExplicitlyConstructed< ::std::string> velodyneLidarParams::_default_model_;
|
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
@@ -922,7 +963,7 @@ velodyneLidarParams::velodyneLidarParams(const velodyneLidarParams& from)
|
|
|
calibrationfile_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.calibrationfile_);
|
|
|
}
|
|
|
if (from.has_calib()) {
|
|
|
- calib_ = new ::velodyne::Calib_parameter(*from.calib_);
|
|
|
+ calib_ = new ::velodyne::CalibParameter(*from.calib_);
|
|
|
} else {
|
|
|
calib_ = NULL;
|
|
|
}
|
|
|
@@ -1179,7 +1220,7 @@ bool velodyneLidarParams::MergePartialFromCodedStream(
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- // optional .velodyne.Calib_parameter calib = 11;
|
|
|
+ // optional .velodyne.CalibParameter calib = 11;
|
|
|
case 11: {
|
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
|
|
|
@@ -1283,7 +1324,7 @@ void velodyneLidarParams::SerializeWithCachedSizes(
|
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->rpm(), output);
|
|
|
}
|
|
|
|
|
|
- // optional .velodyne.Calib_parameter calib = 11;
|
|
|
+ // optional .velodyne.CalibParameter calib = 11;
|
|
|
if (cached_has_bits & 0x00000008u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
11, *this->calib_, output);
|
|
|
@@ -1372,7 +1413,7 @@ void velodyneLidarParams::SerializeWithCachedSizes(
|
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->rpm(), target);
|
|
|
}
|
|
|
|
|
|
- // optional .velodyne.Calib_parameter calib = 11;
|
|
|
+ // optional .velodyne.CalibParameter calib = 11;
|
|
|
if (cached_has_bits & 0x00000008u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
@@ -1466,7 +1507,7 @@ size_t velodyneLidarParams::ByteSizeLong() const {
|
|
|
} else {
|
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
|
}
|
|
|
- // optional .velodyne.Calib_parameter calib = 11;
|
|
|
+ // optional .velodyne.CalibParameter calib = 11;
|
|
|
if (has_calib()) {
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
@@ -1552,7 +1593,7 @@ void velodyneLidarParams::MergeFrom(const velodyneLidarParams& from) {
|
|
|
calibrationfile_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.calibrationfile_);
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000008u) {
|
|
|
- mutable_calib()->::velodyne::Calib_parameter::MergeFrom(from.calib());
|
|
|
+ mutable_calib()->::velodyne::CalibParameter::MergeFrom(from.calib());
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000010u) {
|
|
|
lidar_id_ = from.lidar_id_;
|
|
|
@@ -1631,26 +1672,26 @@ void velodyneLidarParams::InternalSwap(velodyneLidarParams* other) {
|
|
|
|
|
|
// ===================================================================
|
|
|
|
|
|
-void Calib_parameter::InitAsDefaultInstance() {
|
|
|
+void CalibParameter::InitAsDefaultInstance() {
|
|
|
}
|
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
-const int Calib_parameter::kRFieldNumber;
|
|
|
-const int Calib_parameter::kPFieldNumber;
|
|
|
-const int Calib_parameter::kYFieldNumber;
|
|
|
-const int Calib_parameter::kCxFieldNumber;
|
|
|
-const int Calib_parameter::kCyFieldNumber;
|
|
|
-const int Calib_parameter::kCzFieldNumber;
|
|
|
+const int CalibParameter::kRFieldNumber;
|
|
|
+const int CalibParameter::kPFieldNumber;
|
|
|
+const int CalibParameter::kYFieldNumber;
|
|
|
+const int CalibParameter::kCxFieldNumber;
|
|
|
+const int CalibParameter::kCyFieldNumber;
|
|
|
+const int CalibParameter::kCzFieldNumber;
|
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
|
|
-Calib_parameter::Calib_parameter()
|
|
|
+CalibParameter::CalibParameter()
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
- ::protobuf_velodyne_5fconfig_2eproto::InitDefaultsCalib_parameter();
|
|
|
+ ::protobuf_velodyne_5fconfig_2eproto::InitDefaultsCalibParameter();
|
|
|
}
|
|
|
SharedCtor();
|
|
|
- // @@protoc_insertion_point(constructor:velodyne.Calib_parameter)
|
|
|
+ // @@protoc_insertion_point(constructor:velodyne.CalibParameter)
|
|
|
}
|
|
|
-Calib_parameter::Calib_parameter(const Calib_parameter& from)
|
|
|
+CalibParameter::CalibParameter(const CalibParameter& from)
|
|
|
: ::google::protobuf::Message(),
|
|
|
_internal_metadata_(NULL),
|
|
|
_has_bits_(from._has_bits_),
|
|
|
@@ -1659,49 +1700,49 @@ Calib_parameter::Calib_parameter(const Calib_parameter& from)
|
|
|
::memcpy(&r_, &from.r_,
|
|
|
static_cast<size_t>(reinterpret_cast<char*>(&cz_) -
|
|
|
reinterpret_cast<char*>(&r_)) + sizeof(cz_));
|
|
|
- // @@protoc_insertion_point(copy_constructor:velodyne.Calib_parameter)
|
|
|
+ // @@protoc_insertion_point(copy_constructor:velodyne.CalibParameter)
|
|
|
}
|
|
|
|
|
|
-void Calib_parameter::SharedCtor() {
|
|
|
+void CalibParameter::SharedCtor() {
|
|
|
_cached_size_ = 0;
|
|
|
::memset(&r_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&cz_) -
|
|
|
reinterpret_cast<char*>(&r_)) + sizeof(cz_));
|
|
|
}
|
|
|
|
|
|
-Calib_parameter::~Calib_parameter() {
|
|
|
- // @@protoc_insertion_point(destructor:velodyne.Calib_parameter)
|
|
|
+CalibParameter::~CalibParameter() {
|
|
|
+ // @@protoc_insertion_point(destructor:velodyne.CalibParameter)
|
|
|
SharedDtor();
|
|
|
}
|
|
|
|
|
|
-void Calib_parameter::SharedDtor() {
|
|
|
+void CalibParameter::SharedDtor() {
|
|
|
}
|
|
|
|
|
|
-void Calib_parameter::SetCachedSize(int size) const {
|
|
|
+void CalibParameter::SetCachedSize(int size) const {
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
_cached_size_ = size;
|
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
}
|
|
|
-const ::google::protobuf::Descriptor* Calib_parameter::descriptor() {
|
|
|
+const ::google::protobuf::Descriptor* CalibParameter::descriptor() {
|
|
|
::protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
}
|
|
|
|
|
|
-const Calib_parameter& Calib_parameter::default_instance() {
|
|
|
- ::protobuf_velodyne_5fconfig_2eproto::InitDefaultsCalib_parameter();
|
|
|
+const CalibParameter& CalibParameter::default_instance() {
|
|
|
+ ::protobuf_velodyne_5fconfig_2eproto::InitDefaultsCalibParameter();
|
|
|
return *internal_default_instance();
|
|
|
}
|
|
|
|
|
|
-Calib_parameter* Calib_parameter::New(::google::protobuf::Arena* arena) const {
|
|
|
- Calib_parameter* n = new Calib_parameter;
|
|
|
+CalibParameter* CalibParameter::New(::google::protobuf::Arena* arena) const {
|
|
|
+ CalibParameter* n = new CalibParameter;
|
|
|
if (arena != NULL) {
|
|
|
arena->Own(n);
|
|
|
}
|
|
|
return n;
|
|
|
}
|
|
|
|
|
|
-void Calib_parameter::Clear() {
|
|
|
-// @@protoc_insertion_point(message_clear_start:velodyne.Calib_parameter)
|
|
|
+void CalibParameter::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:velodyne.CalibParameter)
|
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
(void) cached_has_bits;
|
|
|
@@ -1716,11 +1757,11 @@ void Calib_parameter::Clear() {
|
|
|
_internal_metadata_.Clear();
|
|
|
}
|
|
|
|
|
|
-bool Calib_parameter::MergePartialFromCodedStream(
|
|
|
+bool CalibParameter::MergePartialFromCodedStream(
|
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
|
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
|
::google::protobuf::uint32 tag;
|
|
|
- // @@protoc_insertion_point(parse_start:velodyne.Calib_parameter)
|
|
|
+ // @@protoc_insertion_point(parse_start:velodyne.CalibParameter)
|
|
|
for (;;) {
|
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
tag = p.first;
|
|
|
@@ -1822,17 +1863,17 @@ bool Calib_parameter::MergePartialFromCodedStream(
|
|
|
}
|
|
|
}
|
|
|
success:
|
|
|
- // @@protoc_insertion_point(parse_success:velodyne.Calib_parameter)
|
|
|
+ // @@protoc_insertion_point(parse_success:velodyne.CalibParameter)
|
|
|
return true;
|
|
|
failure:
|
|
|
- // @@protoc_insertion_point(parse_failure:velodyne.Calib_parameter)
|
|
|
+ // @@protoc_insertion_point(parse_failure:velodyne.CalibParameter)
|
|
|
return false;
|
|
|
#undef DO_
|
|
|
}
|
|
|
|
|
|
-void Calib_parameter::SerializeWithCachedSizes(
|
|
|
+void CalibParameter::SerializeWithCachedSizes(
|
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
- // @@protoc_insertion_point(serialize_start:velodyne.Calib_parameter)
|
|
|
+ // @@protoc_insertion_point(serialize_start:velodyne.CalibParameter)
|
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
@@ -1871,13 +1912,13 @@ void Calib_parameter::SerializeWithCachedSizes(
|
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
_internal_metadata_.unknown_fields(), output);
|
|
|
}
|
|
|
- // @@protoc_insertion_point(serialize_end:velodyne.Calib_parameter)
|
|
|
+ // @@protoc_insertion_point(serialize_end:velodyne.CalibParameter)
|
|
|
}
|
|
|
|
|
|
-::google::protobuf::uint8* Calib_parameter::InternalSerializeWithCachedSizesToArray(
|
|
|
+::google::protobuf::uint8* CalibParameter::InternalSerializeWithCachedSizesToArray(
|
|
|
bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
(void)deterministic; // Unused
|
|
|
- // @@protoc_insertion_point(serialize_to_array_start:velodyne.Calib_parameter)
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:velodyne.CalibParameter)
|
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
@@ -1916,12 +1957,12 @@ void Calib_parameter::SerializeWithCachedSizes(
|
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
_internal_metadata_.unknown_fields(), target);
|
|
|
}
|
|
|
- // @@protoc_insertion_point(serialize_to_array_end:velodyne.Calib_parameter)
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:velodyne.CalibParameter)
|
|
|
return target;
|
|
|
}
|
|
|
|
|
|
-size_t Calib_parameter::ByteSizeLong() const {
|
|
|
-// @@protoc_insertion_point(message_byte_size_start:velodyne.Calib_parameter)
|
|
|
+size_t CalibParameter::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:velodyne.CalibParameter)
|
|
|
size_t total_size = 0;
|
|
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
|
@@ -1968,23 +2009,23 @@ size_t Calib_parameter::ByteSizeLong() const {
|
|
|
return total_size;
|
|
|
}
|
|
|
|
|
|
-void Calib_parameter::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
-// @@protoc_insertion_point(generalized_merge_from_start:velodyne.Calib_parameter)
|
|
|
+void CalibParameter::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:velodyne.CalibParameter)
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
|
- const Calib_parameter* source =
|
|
|
- ::google::protobuf::internal::DynamicCastToGenerated<const Calib_parameter>(
|
|
|
+ const CalibParameter* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const CalibParameter>(
|
|
|
&from);
|
|
|
if (source == NULL) {
|
|
|
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.Calib_parameter)
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.CalibParameter)
|
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
} else {
|
|
|
- // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.Calib_parameter)
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.CalibParameter)
|
|
|
MergeFrom(*source);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-void Calib_parameter::MergeFrom(const Calib_parameter& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_merge_from_start:velodyne.Calib_parameter)
|
|
|
+void CalibParameter::MergeFrom(const CalibParameter& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:velodyne.CalibParameter)
|
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
@@ -2014,29 +2055,29 @@ void Calib_parameter::MergeFrom(const Calib_parameter& from) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-void Calib_parameter::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
-// @@protoc_insertion_point(generalized_copy_from_start:velodyne.Calib_parameter)
|
|
|
+void CalibParameter::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:velodyne.CalibParameter)
|
|
|
if (&from == this) return;
|
|
|
Clear();
|
|
|
MergeFrom(from);
|
|
|
}
|
|
|
|
|
|
-void Calib_parameter::CopyFrom(const Calib_parameter& from) {
|
|
|
-// @@protoc_insertion_point(class_specific_copy_from_start:velodyne.Calib_parameter)
|
|
|
+void CalibParameter::CopyFrom(const CalibParameter& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:velodyne.CalibParameter)
|
|
|
if (&from == this) return;
|
|
|
Clear();
|
|
|
MergeFrom(from);
|
|
|
}
|
|
|
|
|
|
-bool Calib_parameter::IsInitialized() const {
|
|
|
+bool CalibParameter::IsInitialized() const {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
-void Calib_parameter::Swap(Calib_parameter* other) {
|
|
|
+void CalibParameter::Swap(CalibParameter* other) {
|
|
|
if (other == this) return;
|
|
|
InternalSwap(other);
|
|
|
}
|
|
|
-void Calib_parameter::InternalSwap(Calib_parameter* other) {
|
|
|
+void CalibParameter::InternalSwap(CalibParameter* other) {
|
|
|
using std::swap;
|
|
|
swap(r_, other->r_);
|
|
|
swap(p_, other->p_);
|
|
|
@@ -2049,7 +2090,306 @@ void Calib_parameter::InternalSwap(Calib_parameter* other) {
|
|
|
swap(_cached_size_, other->_cached_size_);
|
|
|
}
|
|
|
|
|
|
-::google::protobuf::Metadata Calib_parameter::GetMetadata() const {
|
|
|
+::google::protobuf::Metadata CalibParameter::GetMetadata() const {
|
|
|
+ protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void lidarExtrinsic::InitAsDefaultInstance() {
|
|
|
+ ::velodyne::_lidarExtrinsic_default_instance_._instance.get_mutable()->calib_ = const_cast< ::velodyne::CalibParameter*>(
|
|
|
+ ::velodyne::CalibParameter::internal_default_instance());
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int lidarExtrinsic::kLidarIdFieldNumber;
|
|
|
+const int lidarExtrinsic::kCalibFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+lidarExtrinsic::lidarExtrinsic()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
+ ::protobuf_velodyne_5fconfig_2eproto::InitDefaultslidarExtrinsic();
|
|
|
+ }
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:velodyne.lidarExtrinsic)
|
|
|
+}
|
|
|
+lidarExtrinsic::lidarExtrinsic(const lidarExtrinsic& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL),
|
|
|
+ _has_bits_(from._has_bits_),
|
|
|
+ _cached_size_(0) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ if (from.has_calib()) {
|
|
|
+ calib_ = new ::velodyne::CalibParameter(*from.calib_);
|
|
|
+ } else {
|
|
|
+ calib_ = NULL;
|
|
|
+ }
|
|
|
+ lidar_id_ = from.lidar_id_;
|
|
|
+ // @@protoc_insertion_point(copy_constructor:velodyne.lidarExtrinsic)
|
|
|
+}
|
|
|
+
|
|
|
+void lidarExtrinsic::SharedCtor() {
|
|
|
+ _cached_size_ = 0;
|
|
|
+ ::memset(&calib_, 0, static_cast<size_t>(
|
|
|
+ reinterpret_cast<char*>(&lidar_id_) -
|
|
|
+ reinterpret_cast<char*>(&calib_)) + sizeof(lidar_id_));
|
|
|
+}
|
|
|
+
|
|
|
+lidarExtrinsic::~lidarExtrinsic() {
|
|
|
+ // @@protoc_insertion_point(destructor:velodyne.lidarExtrinsic)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void lidarExtrinsic::SharedDtor() {
|
|
|
+ if (this != internal_default_instance()) delete calib_;
|
|
|
+}
|
|
|
+
|
|
|
+void lidarExtrinsic::SetCachedSize(int size) const {
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
+ _cached_size_ = size;
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* lidarExtrinsic::descriptor() {
|
|
|
+ ::protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const lidarExtrinsic& lidarExtrinsic::default_instance() {
|
|
|
+ ::protobuf_velodyne_5fconfig_2eproto::InitDefaultslidarExtrinsic();
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+lidarExtrinsic* lidarExtrinsic::New(::google::protobuf::Arena* arena) const {
|
|
|
+ lidarExtrinsic* n = new lidarExtrinsic;
|
|
|
+ if (arena != NULL) {
|
|
|
+ arena->Own(n);
|
|
|
+ }
|
|
|
+ return n;
|
|
|
+}
|
|
|
+
|
|
|
+void lidarExtrinsic::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:velodyne.lidarExtrinsic)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ cached_has_bits = _has_bits_[0];
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ GOOGLE_DCHECK(calib_ != NULL);
|
|
|
+ calib_->Clear();
|
|
|
+ }
|
|
|
+ lidar_id_ = 0;
|
|
|
+ _has_bits_.Clear();
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool lidarExtrinsic::MergePartialFromCodedStream(
|
|
|
+ ::google::protobuf::io::CodedInputStream* input) {
|
|
|
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
|
+ ::google::protobuf::uint32 tag;
|
|
|
+ // @@protoc_insertion_point(parse_start:velodyne.lidarExtrinsic)
|
|
|
+ for (;;) {
|
|
|
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
+ tag = p.first;
|
|
|
+ if (!p.second) goto handle_unusual;
|
|
|
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
|
+ // required int32 lidar_id = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
|
|
+ set_has_lidar_id();
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
|
+ input, &lidar_id_)));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ // optional .velodyne.CalibParameter calib = 2;
|
|
|
+ case 2: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
|
+ input, mutable_calib()));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:velodyne.lidarExtrinsic)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:velodyne.lidarExtrinsic)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void lidarExtrinsic::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:velodyne.lidarExtrinsic)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ cached_has_bits = _has_bits_[0];
|
|
|
+ // required int32 lidar_id = 1;
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->lidar_id(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ // optional .velodyne.CalibParameter calib = 2;
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
+ 2, *this->calib_, output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (_internal_metadata_.have_unknown_fields()) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ _internal_metadata_.unknown_fields(), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:velodyne.lidarExtrinsic)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* lidarExtrinsic::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:velodyne.lidarExtrinsic)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ cached_has_bits = _has_bits_[0];
|
|
|
+ // required int32 lidar_id = 1;
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->lidar_id(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // optional .velodyne.CalibParameter calib = 2;
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::
|
|
|
+ InternalWriteMessageToArray(
|
|
|
+ 2, *this->calib_, deterministic, target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (_internal_metadata_.have_unknown_fields()) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ _internal_metadata_.unknown_fields(), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:velodyne.lidarExtrinsic)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t lidarExtrinsic::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:velodyne.lidarExtrinsic)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if (_internal_metadata_.have_unknown_fields()) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ _internal_metadata_.unknown_fields());
|
|
|
+ }
|
|
|
+ // required int32 lidar_id = 1;
|
|
|
+ if (has_lidar_id()) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
+ this->lidar_id());
|
|
|
+ }
|
|
|
+ // optional .velodyne.CalibParameter calib = 2;
|
|
|
+ if (has_calib()) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
+ *this->calib_);
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
+ _cached_size_ = cached_size;
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void lidarExtrinsic::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:velodyne.lidarExtrinsic)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const lidarExtrinsic* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const lidarExtrinsic>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.lidarExtrinsic)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.lidarExtrinsic)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void lidarExtrinsic::MergeFrom(const lidarExtrinsic& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:velodyne.lidarExtrinsic)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ cached_has_bits = from._has_bits_[0];
|
|
|
+ if (cached_has_bits & 3u) {
|
|
|
+ if (cached_has_bits & 0x00000001u) {
|
|
|
+ mutable_calib()->::velodyne::CalibParameter::MergeFrom(from.calib());
|
|
|
+ }
|
|
|
+ if (cached_has_bits & 0x00000002u) {
|
|
|
+ lidar_id_ = from.lidar_id_;
|
|
|
+ }
|
|
|
+ _has_bits_[0] |= cached_has_bits;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void lidarExtrinsic::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:velodyne.lidarExtrinsic)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void lidarExtrinsic::CopyFrom(const lidarExtrinsic& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:velodyne.lidarExtrinsic)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool lidarExtrinsic::IsInitialized() const {
|
|
|
+ if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false;
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void lidarExtrinsic::Swap(lidarExtrinsic* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void lidarExtrinsic::InternalSwap(lidarExtrinsic* other) {
|
|
|
+ using std::swap;
|
|
|
+ swap(calib_, other->calib_);
|
|
|
+ swap(lidar_id_, other->lidar_id_);
|
|
|
+ swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+ swap(_cached_size_, other->_cached_size_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata lidarExtrinsic::GetMetadata() const {
|
|
|
protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
}
|
|
|
@@ -2067,7 +2407,7 @@ const int Region::kMaxyFieldNumber;
|
|
|
const int Region::kMinzFieldNumber;
|
|
|
const int Region::kMaxzFieldNumber;
|
|
|
const int Region::kRegionIdFieldNumber;
|
|
|
-const int Region::kLidarIdsFieldNumber;
|
|
|
+const int Region::kLidarExtsFieldNumber;
|
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
|
|
Region::Region()
|
|
|
@@ -2083,7 +2423,7 @@ Region::Region(const Region& from)
|
|
|
_internal_metadata_(NULL),
|
|
|
_has_bits_(from._has_bits_),
|
|
|
_cached_size_(0),
|
|
|
- lidar_ids_(from.lidar_ids_) {
|
|
|
+ lidar_exts_(from.lidar_exts_) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
::memcpy(&minx_, &from.minx_,
|
|
|
static_cast<size_t>(reinterpret_cast<char*>(®ion_id_) -
|
|
|
@@ -2135,7 +2475,7 @@ void Region::Clear() {
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
- lidar_ids_.Clear();
|
|
|
+ lidar_exts_.Clear();
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
if (cached_has_bits & 127u) {
|
|
|
::memset(&minx_, 0, static_cast<size_t>(
|
|
|
@@ -2254,19 +2594,11 @@ bool Region::MergePartialFromCodedStream(
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- // repeated int32 lidar_ids = 8;
|
|
|
+ // repeated .velodyne.lidarExtrinsic lidar_exts = 8;
|
|
|
case 8: {
|
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
- static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
|
|
|
- DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
|
|
|
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
|
- 1, 64u, input, this->mutable_lidar_ids())));
|
|
|
- } else if (
|
|
|
- static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
|
|
|
- DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
|
|
|
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
|
- input, this->mutable_lidar_ids())));
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_lidar_exts()));
|
|
|
} else {
|
|
|
goto handle_unusual;
|
|
|
}
|
|
|
@@ -2335,10 +2667,11 @@ void Region::SerializeWithCachedSizes(
|
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->region_id(), output);
|
|
|
}
|
|
|
|
|
|
- // repeated int32 lidar_ids = 8;
|
|
|
- for (int i = 0, n = this->lidar_ids_size(); i < n; i++) {
|
|
|
- ::google::protobuf::internal::WireFormatLite::WriteInt32(
|
|
|
- 8, this->lidar_ids(i), output);
|
|
|
+ // repeated .velodyne.lidarExtrinsic lidar_exts = 8;
|
|
|
+ for (unsigned int i = 0,
|
|
|
+ n = static_cast<unsigned int>(this->lidar_exts_size()); i < n; i++) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
+ 8, this->lidar_exts(static_cast<int>(i)), output);
|
|
|
}
|
|
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
|
@@ -2391,9 +2724,13 @@ void Region::SerializeWithCachedSizes(
|
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->region_id(), target);
|
|
|
}
|
|
|
|
|
|
- // repeated int32 lidar_ids = 8;
|
|
|
- target = ::google::protobuf::internal::WireFormatLite::
|
|
|
- WriteInt32ToArray(8, this->lidar_ids_, target);
|
|
|
+ // repeated .velodyne.lidarExtrinsic lidar_exts = 8;
|
|
|
+ for (unsigned int i = 0,
|
|
|
+ n = static_cast<unsigned int>(this->lidar_exts_size()); i < n; i++) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::
|
|
|
+ InternalWriteMessageToArray(
|
|
|
+ 8, this->lidar_exts(static_cast<int>(i)), deterministic, target);
|
|
|
+ }
|
|
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
@@ -2482,13 +2819,15 @@ size_t Region::ByteSizeLong() const {
|
|
|
} else {
|
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
|
}
|
|
|
- // repeated int32 lidar_ids = 8;
|
|
|
+ // repeated .velodyne.lidarExtrinsic lidar_exts = 8;
|
|
|
{
|
|
|
- size_t data_size = ::google::protobuf::internal::WireFormatLite::
|
|
|
- Int32Size(this->lidar_ids_);
|
|
|
- total_size += 1 *
|
|
|
- ::google::protobuf::internal::FromIntSize(this->lidar_ids_size());
|
|
|
- total_size += data_size;
|
|
|
+ unsigned int count = static_cast<unsigned int>(this->lidar_exts_size());
|
|
|
+ total_size += 1UL * count;
|
|
|
+ for (unsigned int i = 0; i < count; i++) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
+ this->lidar_exts(static_cast<int>(i)));
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
@@ -2520,7 +2859,7 @@ void Region::MergeFrom(const Region& from) {
|
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
- lidar_ids_.MergeFrom(from.lidar_ids_);
|
|
|
+ lidar_exts_.MergeFrom(from.lidar_exts_);
|
|
|
cached_has_bits = from._has_bits_[0];
|
|
|
if (cached_has_bits & 127u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
@@ -2564,6 +2903,7 @@ void Region::CopyFrom(const Region& from) {
|
|
|
|
|
|
bool Region::IsInitialized() const {
|
|
|
if ((_has_bits_[0] & 0x0000007f) != 0x0000007f) return false;
|
|
|
+ if (!::google::protobuf::internal::AllAreInitialized(this->lidar_exts())) return false;
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
@@ -2573,7 +2913,7 @@ void Region::Swap(Region* other) {
|
|
|
}
|
|
|
void Region::InternalSwap(Region* other) {
|
|
|
using std::swap;
|
|
|
- lidar_ids_.InternalSwap(&other->lidar_ids_);
|
|
|
+ lidar_exts_.InternalSwap(&other->lidar_exts_);
|
|
|
swap(minx_, other->minx_);
|
|
|
swap(maxx_, other->maxx_);
|
|
|
swap(miny_, other->miny_);
|