From 5a975e7cc19a0d3d83c7043207597fb0d1028805 Mon Sep 17 00:00:00 2001 From: Tim Clephas Date: Wed, 22 Sep 2021 19:50:29 +0200 Subject: [PATCH] row_step of tmp_output should depend on size of tmp_output --- src/nodelets/point_cloud_aggregator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nodelets/point_cloud_aggregator.cpp b/src/nodelets/point_cloud_aggregator.cpp index a306f8fd..2d7bfbc8 100644 --- a/src/nodelets/point_cloud_aggregator.cpp +++ b/src/nodelets/point_cloud_aggregator.cpp @@ -293,7 +293,7 @@ private: pcl::concatenatePointCloud(*output, *cloud2, *tmp_output); #endif //Make sure row_step is the sum of both - tmp_output->row_step = output->row_step + cloud2->row_step; + tmp_output->row_step = tmp_output->width * tmp_output->point_step; output = tmp_output; }