Skip to content

Commit

Permalink
fix(intersection): fix stopline midpoint calculation (autowarefoundat…
Browse files Browse the repository at this point in the history
…ion#6315)

Signed-off-by: Mamoru Sobue <[email protected]>
  • Loading branch information
soblin authored and zulfaqar-azmi-t4 committed Feb 6, 2024
1 parent b4a91ed commit 0345e55
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()},
Expand Down

0 comments on commit 0345e55

Please sign in to comment.