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(behavior_path_planner): fix geometric pull out lane id for overlapping (#2828) #274

Merged
merged 1 commit into from
Mar 3, 2023
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
fix(behavior_path_planner): fix geometric pull out lane id for overla…
…pping (autowarefoundation#2828)

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 committed Feb 8, 2023
commit 6b6d0325c77a113ce3cacbe41b7b3e762eb68bbd
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,16 @@ std::vector<PathWithLaneId> GeometricParallelParking::planOneTrial(
}

// combine road and shoulder lanes
lanelet::ConstLanelets lanes = road_lanes;
// cut the road lanes up to start_pose to prevent unintended processing for overlapped lane
lanelet::ConstLanelets lanes{};
tier4_autoware_utils::Point2d start_point2d(start_pose.position.x, start_pose.position.y);
for (const auto & lane : road_lanes) {
if (boost::geometry::within(start_point2d, lane.polygon2d().basicPolygon())) {
lanes.push_back(lane);
break;
}
lanes.push_back(lane);
}
lanes.insert(lanes.end(), shoulder_lanes.begin(), shoulder_lanes.end());

// If start_pose is parallel to goal_pose, we can know lateral deviation of edges of vehicle,
Expand Down