Skip to content

Commit cdeed2b

Browse files
soblinsaka1-s
authored andcommitted
fix(intersection): fix stopline midpoint calculation (autowarefoundation#6315)
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
1 parent 7f46313 commit cdeed2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

planning/behavior_velocity_intersection_module/src/object_manager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ bool ObjectInfo::can_stop_before_ego_lane(
165165
const auto stopline_p1 = stopline.front();
166166
const auto stopline_p2 = stopline.back();
167167
const tier4_autoware_utils::Point2d stopline_mid{
168-
stopline_p1.x() + stopline_p2.x() / 2.0, (stopline_p1.y() + stopline_p2.y()) / 2.0};
168+
(stopline_p1.x() + stopline_p2.x()) / 2.0, (stopline_p1.y() + stopline_p2.y()) / 2.0};
169169
const auto attention_lane_end = attention_lanelet.centerline().back();
170170
const tier4_autoware_utils::LineString2d attention_lane_later_part(
171171
{tier4_autoware_utils::Point2d{stopline_mid.x(), stopline_mid.y()},

0 commit comments

Comments
 (0)