Skip to content

Commit 827e180

Browse files
committed
fix:shadowVariable
Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
1 parent 2556424 commit 827e180

File tree

1 file changed

+3
-3
lines changed
  • perception/lidar_apollo_instance_segmentation/src

1 file changed

+3
-3
lines changed

perception/lidar_apollo_instance_segmentation/src/detector.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ bool LidarApolloInstanceSegmentation::detectDynamicObjects(
182182

183183
// move down pointcloud z_offset in z axis
184184
for (std::size_t i = 0; i < output.feature_objects.size(); i++) {
185-
sensor_msgs::msg::PointCloud2 transformed_cloud;
186-
transformCloud(output.feature_objects.at(i).feature.cluster, transformed_cloud, -z_offset_);
187-
output.feature_objects.at(i).feature.cluster = transformed_cloud;
185+
sensor_msgs::msg::PointCloud2 updated_cloud;
186+
transformCloud(output.feature_objects.at(i).feature.cluster, updated_cloud, -z_offset_);
187+
output.feature_objects.at(i).feature.cluster = updated_cloud;
188188
}
189189

190190
output.header = transformed_cloud.header;

0 commit comments

Comments
 (0)