We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 003bf13 commit cbdbaa2Copy full SHA for cbdbaa2
1 file changed
cpp/map_closures/GroundAlign.cpp
@@ -88,9 +88,7 @@ std::vector<Eigen::Vector3d> ComputeLowestPoints(const std::vector<Eigen::Vector
88
std::for_each(pointcloud.cbegin(), pointcloud.cend(), [&](const Eigen::Vector3d &point) {
89
auto pixel = PointToPixel(point);
90
if (lowest_point_hash_map.find(pixel) == lowest_point_hash_map.cend()) {
91
- if (point.z() < 0) {
92
- lowest_point_hash_map.insert({pixel, point});
93
- }
+ lowest_point_hash_map.insert({pixel, point});
94
} else if (point.z() < lowest_point_hash_map[pixel].z()) {
95
lowest_point_hash_map[pixel] = point;
96
}
0 commit comments