From 97d117245f180d0538034a9bbf03cf323a26b51b Mon Sep 17 00:00:00 2001 From: kyoichi-sugahara Date: Fri, 31 May 2024 15:27:24 +0900 Subject: [PATCH] using reference Signed-off-by: kyoichi-sugahara --- .../src/start_planner_module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planning/behavior_path_start_planner_module/src/start_planner_module.cpp b/planning/behavior_path_start_planner_module/src/start_planner_module.cpp index 3e2f36dda4c65..d3afdb2aefae5 100644 --- a/planning/behavior_path_start_planner_module/src/start_planner_module.cpp +++ b/planning/behavior_path_start_planner_module/src/start_planner_module.cpp @@ -1210,7 +1210,7 @@ PredictedObjects StartPlannerModule::filterStopObjectsInPullOutLanes( bool StartPlannerModule::hasReachedFreespaceEnd() const { - const auto current_pose = planner_data_->self_odometry->pose.pose; + const auto & current_pose = planner_data_->self_odometry->pose.pose; return tier4_autoware_utils::calcDistance2d(current_pose, status_.pull_out_path.end_pose) < parameters_->th_arrived_distance; }