From 0345e5542d4ac820d44997c0712e59e05a650d12 Mon Sep 17 00:00:00 2001 From: Mamoru Sobue Date: Mon, 5 Feb 2024 23:21:23 +0900 Subject: [PATCH] fix(intersection): fix stopline midpoint calculation (#6315) Signed-off-by: Mamoru Sobue --- .../src/object_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planning/behavior_velocity_intersection_module/src/object_manager.cpp b/planning/behavior_velocity_intersection_module/src/object_manager.cpp index ea5d89fe8052d..fe327704f61c2 100644 --- a/planning/behavior_velocity_intersection_module/src/object_manager.cpp +++ b/planning/behavior_velocity_intersection_module/src/object_manager.cpp @@ -165,7 +165,7 @@ bool ObjectInfo::can_stop_before_ego_lane( const auto stopline_p1 = stopline.front(); const auto stopline_p2 = stopline.back(); const tier4_autoware_utils::Point2d stopline_mid{ - stopline_p1.x() + stopline_p2.x() / 2.0, (stopline_p1.y() + stopline_p2.y()) / 2.0}; + (stopline_p1.x() + stopline_p2.x()) / 2.0, (stopline_p1.y() + stopline_p2.y()) / 2.0}; const auto attention_lane_end = attention_lanelet.centerline().back(); const tier4_autoware_utils::LineString2d attention_lane_later_part( {tier4_autoware_utils::Point2d{stopline_mid.x(), stopline_mid.y()},