From 0decbc2b6c34061c44b15981f6a8f472ac9e5e4f Mon Sep 17 00:00:00 2001 From: a-maumau Date: Mon, 10 Jun 2024 17:02:16 +0900 Subject: [PATCH] revert const declare Signed-off-by: a-maumau --- localization/ndt_scan_matcher/src/ndt_scan_matcher_core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localization/ndt_scan_matcher/src/ndt_scan_matcher_core.cpp b/localization/ndt_scan_matcher/src/ndt_scan_matcher_core.cpp index 697a9e5efed30..5d06c0bc1dbc7 100644 --- a/localization/ndt_scan_matcher/src/ndt_scan_matcher_core.cpp +++ b/localization/ndt_scan_matcher/src/ndt_scan_matcher_core.cpp @@ -1033,7 +1033,7 @@ geometry_msgs::msg::PoseWithCovarianceStamped NDTScanMatcher::align_pose( base_rpy.x, // angle_x base_rpy.y // angle_y }; - std::vector sample_stddev{stddev_x, stddev_y, stddev_z, stddev_roll, stddev_pitch}; + const std::vector sample_stddev{stddev_x, stddev_y, stddev_z, stddev_roll, stddev_pitch}; // Optimizing (x, y, z, roll, pitch, yaw) 6 dimensions. TreeStructuredParzenEstimator tpe(