From 419f89786a66b871e37a3ce4362e914819487357 Mon Sep 17 00:00:00 2001 From: Yoshi Ri Date: Fri, 9 Aug 2024 12:05:46 +0900 Subject: [PATCH] fix(ring_outlier_filter): remove unnecessary resize to prevent zero points (#8402) fix: remove unnecessary resize Signed-off-by: yoshiri --- .../src/outlier_filter/ring_outlier_filter_nodelet.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/sensing/pointcloud_preprocessor/src/outlier_filter/ring_outlier_filter_nodelet.cpp b/sensing/pointcloud_preprocessor/src/outlier_filter/ring_outlier_filter_nodelet.cpp index e05f44240b53a..127c0c65b9915 100644 --- a/sensing/pointcloud_preprocessor/src/outlier_filter/ring_outlier_filter_nodelet.cpp +++ b/sensing/pointcloud_preprocessor/src/outlier_filter/ring_outlier_filter_nodelet.cpp @@ -355,7 +355,6 @@ void RingOutlierFilterComponent::setUpPointCloudFormat( // == true` formatted_points.header.frame_id = !tf_input_frame_.empty() ? tf_input_frame_ : tf_input_orig_frame_; - formatted_points.data.resize(formatted_points.point_step * input->width); formatted_points.height = 1; formatted_points.width = static_cast(formatted_points.data.size() / formatted_points.point_step);