We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee51bec commit 40fdb0eCopy full SHA for 40fdb0e
cpp/map_closures/GroundAlign.cpp
@@ -88,7 +88,9 @@ 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
- lowest_point_hash_map.insert({pixel, point});
+ if (point.z() < 0) {
92
+ lowest_point_hash_map.insert({pixel, point});
93
+ }
94
} else if (point.z() < lowest_point_hash_map[pixel].z()) {
95
lowest_point_hash_map[pixel] = point;
96
}
0 commit comments