Skip to content

Commit

Permalink
fix(intersection): fix private condition (#5975)
Browse files Browse the repository at this point in the history
  • Loading branch information
soblin authored Dec 27, 2023
1 parent ee40143 commit 61ed723
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1058,8 +1058,10 @@ IntersectionModule::DecisionResult IntersectionModule::modifyPathVelocityDetail(
const bool is_first_conflicting_lane_private =
(std::string(first_conflicting_lane.attributeOr("location", "else")).compare("private") == 0);
if (stuck_detected) {
if (!(is_first_conflicting_lane_private &&
planner_param_.stuck_vehicle.disable_against_private_lane)) {
if (
is_first_conflicting_lane_private &&
planner_param_.stuck_vehicle.disable_against_private_lane) {
// do nothing
} else {
std::optional<size_t> stopline_idx = std::nullopt;
if (stuck_stopline_idx_opt) {
Expand Down

0 comments on commit 61ed723

Please sign in to comment.