Skip to content

Commit 936703d

Browse files
authored
fix(autoware_compare_map_segmentation): fix redundantInitialization warning (#8226)
Signed-off-by: Ryuta Kambe <ryuta.kambe@tier4.jp>
1 parent 477c197 commit 936703d

File tree

1 file changed

+1
-3
lines changed
  • perception/autoware_compare_map_segmentation/src/compare_elevation_map_filter

1 file changed

+1
-3
lines changed

perception/autoware_compare_map_segmentation/src/compare_elevation_map_filter/node.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ void CompareElevationMapFilterComponent::filter(
7272
{
7373
pcl::PointCloud<pcl::PointXYZ>::Ptr pcl_input(new pcl::PointCloud<pcl::PointXYZ>);
7474
pcl::PointCloud<pcl::PointXYZ>::Ptr pcl_output(new pcl::PointCloud<pcl::PointXYZ>);
75-
std::string output_frame = map_frame_;
7675

77-
output_frame = elevation_map_.getFrameId();
7876
elevation_map_.setTimestamp(input->header.stamp.nanosec);
7977
pcl::fromROSMsg(*input, *pcl_input);
8078
pcl_output->points.reserve(pcl_input->points.size());
@@ -92,7 +90,7 @@ void CompareElevationMapFilterComponent::filter(
9290

9391
pcl::toROSMsg(*pcl_output, output);
9492
output.header.stamp = input->header.stamp;
95-
output.header.frame_id = output_frame;
93+
output.header.frame_id = elevation_map_.getFrameId();
9694
}
9795
} // namespace autoware::compare_map_segmentation
9896

0 commit comments

Comments
 (0)