Remove unused and untested CropTimedPointCloud. (#1744)
Signed-off-by: Wolfgang Hess <whess@lyft.com>master
parent
a20db758cd
commit
a28e24a37d
|
@ -53,16 +53,5 @@ PointCloud CropPointCloud(const PointCloud& point_cloud, const float min_z,
|
|||
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 cartographer
|
||||
|
|
|
@ -57,11 +57,6 @@ TimedPointCloud TransformTimedPointCloud(const TimedPointCloud& point_cloud,
|
|||
PointCloud CropPointCloud(const PointCloud& point_cloud, float min_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 cartographer
|
||||
|
||||
|
|
Loading…
Reference in New Issue