Skip to content

Commit a8612b2

Browse files
committed
fix: relax recheck threshold
1 parent 4fb0d67 commit a8612b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

perception/ground_segmentation/src/scan_ground_filter_nodelet.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,11 @@ void ScanGroundFilterComponent::classifyPointCloudGridScan(
404404
// move to new grid
405405
if (p->grid_id > prev_p->grid_id && ground_cluster.getAverageRadius() > 0.0) {
406406
// check if the prev grid have ground point cloud
407+
constexpr float threshold_multiplier = 2.0f;
407408
if (use_recheck_ground_cluster_) {
408409
recheckGroundCluster(
409-
ground_cluster, non_ground_height_threshold_, use_lowest_point_, out_no_ground_indices);
410+
ground_cluster, non_ground_height_threshold_ * threshold_multiplier, use_lowest_point_,
411+
out_no_ground_indices);
410412
}
411413
curr_gnd_grid.radius = ground_cluster.getAverageRadius();
412414
curr_gnd_grid.avg_height = ground_cluster.getAverageHeight();

0 commit comments

Comments
 (0)