We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8499417 commit a91bfebCopy full SHA for a91bfeb
sensing/pointcloud_preprocessor/src/outlier_filter/dual_return_outlier_filter_nodelet.cpp
@@ -231,10 +231,10 @@ void DualReturnOutlierFilterComponent::filter(
231
if (deleted_azimuths.size() == 0) {
232
continue;
233
}
234
- while ((uint)deleted_azimuths[current_deleted_index] <
+ while (current_deleted_index < deleted_azimuths.size() &&
235
+ (uint)deleted_azimuths[current_deleted_index] <
236
((i + static_cast<uint>(min_azimuth / horizontal_resolution) + 1) *
- horizontal_resolution) &&
237
- current_deleted_index < (deleted_azimuths.size() - 1)) {
+ horizontal_resolution)) {
238
noise_frequency[i] = noise_frequency[i] + 1;
239
current_deleted_index++;
240
0 commit comments