Skip to content

Commit 63c4d69

Browse files
authored
remove non zero filtering for ground point sampling (#69)
1 parent fe19395 commit 63c4d69

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cpp/map_closures/GroundAlign.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@ std::vector<Eigen::Vector3d> ComputeLowestPoints(const std::vector<Eigen::Vector
8888
std::for_each(pointcloud.cbegin(), pointcloud.cend(), [&](const Eigen::Vector3d &point) {
8989
const auto &pixel = PointToPixel(point);
9090
if (lowest_point_hash_map.find(pixel) == lowest_point_hash_map.cend()) {
91-
if (point.z() < 0) {
92-
lowest_point_hash_map.emplace(pixel, point);
93-
}
91+
lowest_point_hash_map.emplace(pixel, point);
9492
} else if (point.z() < lowest_point_hash_map[pixel].z()) {
9593
lowest_point_hash_map[pixel] = point;
9694
}

0 commit comments

Comments
 (0)