Skip to content

Commit 501c2d1

Browse files
change variable name to avoid spell miss checker error
1 parent 890889f commit 501c2d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sensing/pointcloud_preprocessor/src/outlier_filter/ring_outlier_filter_nodelet.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -292,12 +292,12 @@ sensor_msgs::msg::PointCloud2 RingOutlierFilterComponent::extractExcludedPoints(
292292
}
293293
tree->setInputCloud(output_cloud);
294294
std::vector<int> nn_indices(1);
295-
std::vector<float> nn_dists(1);
295+
std::vector<float> nn_distances(1);
296296
for (const auto & point : input_cloud->points) {
297-
if (!tree->nearestKSearch(point, 1, nn_indices, nn_dists)) {
297+
if (!tree->nearestKSearch(point, 1, nn_indices, nn_distances)) {
298298
continue;
299299
}
300-
if (nn_dists[0] > epsilon) {
300+
if (nn_distances[0] > epsilon) {
301301
excluded_points->points.push_back(point);
302302
}
303303
}

0 commit comments

Comments
 (0)