From ae7b8668c0c99b8f2e7f387849132a45c073e4fd Mon Sep 17 00:00:00 2001 From: a-maumau Date: Mon, 10 Jun 2024 18:05:34 +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 5d06c0bc1dbc7..349f924019c28 100644 --- a/localization/ndt_scan_matcher/src/ndt_scan_matcher_core.cpp +++ b/localization/ndt_scan_matcher/src/ndt_scan_matcher_core.cpp @@ -1026,7 +1026,7 @@ geometry_msgs::msg::PoseWithCovarianceStamped NDTScanMatcher::align_pose( const double stddev_pitch = std::sqrt(covariance(4, 4)); // Since only yaw is uniformly sampled, we define the mean and standard deviation for the others. - std::vector sample_mean{ + const std::vector sample_mean{ initial_pose_with_cov.pose.pose.position.x, // trans_x initial_pose_with_cov.pose.pose.position.y, // trans_y initial_pose_with_cov.pose.pose.position.z, // trans_z