mirror of
https://github.com/HViktorTsoi/FAST_LIO_LOCALIZATION.git
synced 2023-05-28 12:51:38 +08:00
update the pcd saving to one map
This commit is contained in:
@@ -724,6 +724,7 @@ void Preprocess::give_feature(pcl::PointCloud<PointType> &pl, vector<orgtype> &t
|
||||
ap.x = pl[j].x;
|
||||
ap.y = pl[j].y;
|
||||
ap.z = pl[j].z;
|
||||
ap.intensity = pl[j].intensity;
|
||||
ap.curvature = pl[j].curvature;
|
||||
pl_surf.push_back(ap);
|
||||
|
||||
@@ -744,11 +745,13 @@ void Preprocess::give_feature(pcl::PointCloud<PointType> &pl, vector<orgtype> &t
|
||||
ap.x += pl[k].x;
|
||||
ap.y += pl[k].y;
|
||||
ap.z += pl[k].z;
|
||||
ap.intensity += pl[k].intensity;
|
||||
ap.curvature += pl[k].curvature;
|
||||
}
|
||||
ap.x /= (j-last_surface);
|
||||
ap.y /= (j-last_surface);
|
||||
ap.z /= (j-last_surface);
|
||||
ap.intensity /= (j-last_surface);
|
||||
ap.curvature /= (j-last_surface);
|
||||
pl_surf.push_back(ap);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user