Skip to content

Commit 861317d

Browse files
authored
fix(autoware_ground_segmentation): fix unreadVariable (autowarefoundation#8353)
* fix:unreadVariable Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:unreadVariable Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> --------- Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
1 parent 022bd17 commit 861317d

File tree

1 file changed

+1
-1
lines changed
  • perception/autoware_ground_segmentation/src/scan_ground_filter

1 file changed

+1
-1
lines changed

perception/autoware_ground_segmentation/src/scan_ground_filter/node.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -467,12 +467,12 @@ void ScanGroundFilterComponent::classifyPointCloud(
467467
for (size_t i = 0; i < in_radial_ordered_clouds.size(); ++i) {
468468
float prev_gnd_radius = 0.0f;
469469
float prev_gnd_slope = 0.0f;
470-
float points_distance = 0.0f;
471470
PointsCentroid ground_cluster, non_ground_cluster;
472471
PointLabel prev_point_label = PointLabel::INIT;
473472
pcl::PointXYZ prev_gnd_point(0, 0, 0), p_orig_point, prev_p_orig_point;
474473
// loop through each point in the radial div
475474
for (size_t j = 0; j < in_radial_ordered_clouds[i].size(); ++j) {
475+
float points_distance = 0.0f;
476476
const float local_slope_max_angle = local_slope_max_angle_rad_;
477477
prev_p_orig_point = p_orig_point;
478478
auto * p = &in_radial_ordered_clouds[i][j];

0 commit comments

Comments
 (0)