File tree 1 file changed +1
-3
lines changed
perception/autoware_ground_segmentation/src/scan_ground_filter
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ void ScanGroundFilterComponent::classifyPointCloud(
246
246
float radius_distance_from_gnd = pd.radius - prev_gnd_radius;
247
247
float height_from_gnd = point_curr.z - prev_gnd_point.z ;
248
248
float height_from_obj = point_curr.z - non_ground_cluster.getAverageHeight ();
249
- bool calculate_slope = false ;
249
+ bool calculate_slope = true ;
250
250
bool is_point_close_to_prev =
251
251
(points_distance <
252
252
(pd.radius * radial_divider_angle_rad_ + split_points_distance_tolerance_));
@@ -264,8 +264,6 @@ void ScanGroundFilterComponent::classifyPointCloud(
264
264
// close to the previous point, set point follow label
265
265
point_label_curr = PointLabel::POINT_FOLLOW;
266
266
calculate_slope = false ;
267
- } else {
268
- calculate_slope = true ;
269
267
}
270
268
if (is_point_close_to_prev) {
271
269
height_from_gnd = point_curr.z - ground_cluster.getAverageHeight ();
You can’t perform that action at this time.
0 commit comments