Remove unused and untested CropTimedPointCloud. (#1744)

Signed-off-by: Wolfgang Hess <whess@lyft.com>
master
Wolfgang Hess 2020-08-28 11:23:50 +02:00 committed by GitHub
parent a20db758cd
commit a28e24a37d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 16 deletions

View File

@ -53,16 +53,5 @@ PointCloud CropPointCloud(const PointCloud& point_cloud, const float min_z,
return cropped_point_cloud; return cropped_point_cloud;
} }
TimedPointCloud CropTimedPointCloud(const TimedPointCloud& point_cloud,
const float min_z, const float max_z) {
TimedPointCloud cropped_point_cloud;
for (const TimedRangefinderPoint& point : point_cloud) {
if (min_z <= point.position.z() && point.position.z() <= max_z) {
cropped_point_cloud.push_back(point);
}
}
return cropped_point_cloud;
}
} // namespace sensor } // namespace sensor
} // namespace cartographer } // namespace cartographer

View File

@ -57,11 +57,6 @@ TimedPointCloud TransformTimedPointCloud(const TimedPointCloud& point_cloud,
PointCloud CropPointCloud(const PointCloud& point_cloud, float min_z, PointCloud CropPointCloud(const PointCloud& point_cloud, float min_z,
float max_z); float max_z);
// Returns a new point cloud without points that fall outside the region defined
// by 'min_z' and 'max_z'.
TimedPointCloud CropTimedPointCloud(const TimedPointCloud& point_cloud,
float min_z, float max_z);
} // namespace sensor } // namespace sensor
} // namespace cartographer } // namespace cartographer