Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(intersection): fix stopline midpoint calculation #6315

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading