Skip to content

Commit 8208cf2

Browse files
committed
chore: update recheck threshold for ground cluster classification
1 parent 3beadf2 commit 8208cf2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

perception/ground_segmentation/src/scan_ground_filter_nodelet.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,10 @@ 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;
408-
if (use_recheck_ground_cluster_) {
407+
const bool is_recheck_area = ground_cluster.getAverageRadius() > grid_mode_switch_radius_;
408+
if (use_recheck_ground_cluster_ && is_recheck_area) {
409409
recheckGroundCluster(
410-
ground_cluster, non_ground_height_threshold_ * threshold_multiplier, use_lowest_point_,
410+
ground_cluster, non_ground_height_threshold_, use_lowest_point_,
411411
out_no_ground_indices);
412412
}
413413
curr_gnd_grid.radius = ground_cluster.getAverageRadius();

0 commit comments

Comments
 (0)