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);