Skip to content

Commit

Permalink
fix(lidar_apollo_segmentation_tvm): fix shadowVariable (#7938)
Browse files Browse the repository at this point in the history
fix:shadowVariable

Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
  • Loading branch information
kobayu858 authored Jul 10, 2024
1 parent 2e76976 commit d45a7e5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ std::shared_ptr<const DetectedObjectsWithFeature> ApolloLidarSegmentation::detec
output->header = input.header;

// move down pointcloud z_offset in z axis
for (std::size_t i = 0; i < output->feature_objects.size(); i++) {
sensor_msgs::msg::PointCloud2 transformed_cloud;
transformCloud(output->feature_objects.at(i).feature.cluster, transformed_cloud, -z_offset_);
output->feature_objects.at(i).feature.cluster = transformed_cloud;
for (auto & feature_object : output->feature_objects) {
sensor_msgs::msg::PointCloud2 updated_cloud;
transformCloud(feature_object.feature.cluster, updated_cloud, -z_offset_);
feature_object.feature.cluster = updated_cloud;
}

return output;
Expand Down

0 comments on commit d45a7e5

Please sign in to comment.