Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ground segmentation recheck condition relax #1617

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ void ScanGroundFilterComponent::checkContinuousGndGrid(
gnd_buff_z_mean += it->avg_height;
}

gnd_buff_radius /= static_cast<float>(gnd_grid_buffer_size_ - 1);
gnd_buff_z_mean /= static_cast<float>(gnd_grid_buffer_size_ - 1);
gnd_buff_radius /= static_cast<float>(gnd_grid_buffer_size_);
gnd_buff_z_mean /= static_cast<float>(gnd_grid_buffer_size_);

float tmp_delta_mean_z = gnd_grids_list.back().avg_height - gnd_buff_z_mean;
float tmp_delta_radius = gnd_grids_list.back().radius - gnd_buff_radius;
Expand Down Expand Up @@ -404,9 +404,11 @@ void ScanGroundFilterComponent::classifyPointCloudGridScan(
// move to new grid
if (p->grid_id > prev_p->grid_id && ground_cluster.getAverageRadius() > 0.0) {
// check if the prev grid have ground point cloud
if (use_recheck_ground_cluster_) {
const bool is_recheck_area = ground_cluster.getAverageRadius() > grid_mode_switch_radius_;
if (use_recheck_ground_cluster_ && is_recheck_area) {
recheckGroundCluster(
ground_cluster, non_ground_height_threshold_, use_lowest_point_, out_no_ground_indices);
ground_cluster, non_ground_height_threshold_, use_lowest_point_,
out_no_ground_indices);
}
curr_gnd_grid.radius = ground_cluster.getAverageRadius();
curr_gnd_grid.avg_height = ground_cluster.getAverageHeight();
Expand Down
Loading