From aba7e3c41ab84617b67af4e2d68ec0da00a268cc Mon Sep 17 00:00:00 2001 From: kminoda Date: Tue, 13 Aug 2024 16:07:55 +0900 Subject: [PATCH] fix(lidar_apollo_instance_segmentation): fix critical bug Signed-off-by: kminoda --- .../src/detector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perception/autoware_lidar_apollo_instance_segmentation/src/detector.cpp b/perception/autoware_lidar_apollo_instance_segmentation/src/detector.cpp index d2cad343ffc41..ff96bad131aee 100644 --- a/perception/autoware_lidar_apollo_instance_segmentation/src/detector.cpp +++ b/perception/autoware_lidar_apollo_instance_segmentation/src/detector.cpp @@ -136,7 +136,7 @@ bool LidarApolloInstanceSegmentation::detectDynamicObjects( pcl::PointCloud::Ptr pcl_pointcloud_raw_ptr(new pcl::PointCloud); // pcl::fromROSMsg(transformed_cloud, *pcl_pointcloud_raw_ptr); - auto pcl_pointcloud_raw = *pcl_pointcloud_raw_ptr; + auto & pcl_pointcloud_raw = *pcl_pointcloud_raw_ptr; pcl_pointcloud_raw.width = transformed_cloud.width; pcl_pointcloud_raw.height = transformed_cloud.height; pcl_pointcloud_raw.is_dense = transformed_cloud.is_dense == 1;