Skip to content

Commit

Permalink
Planning: fix a bug with smart lane-change.
Browse files Browse the repository at this point in the history
  • Loading branch information
panjiacheng authored and jinghaomiao committed Sep 17, 2019
1 parent b357997 commit 495a8b0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1139,10 +1139,14 @@ void PathBoundsDecider::GetBoundaryFromLaneChangeForbiddenZone(
adc_frenet_l_ > curr_lane_left_width
? curr_lane_left_width + GetBufferBetweenADCCenterAndEdge()
: std::get<1>((*path_bound)[i]);
std::get<1>((*path_bound)[i]) = std::fmin(
std::get<1>((*path_bound)[i]), adc_frenet_l_ - 0.1);
std::get<2>((*path_bound)[i]) =
adc_frenet_l_ < -curr_lane_right_width
? -curr_lane_right_width - GetBufferBetweenADCCenterAndEdge()
: std::get<2>((*path_bound)[i]);
std::get<2>((*path_bound)[i]) = std::fmax(
std::get<2>((*path_bound)[i]), adc_frenet_l_ + 0.1);
}
}

Expand Down

0 comments on commit 495a8b0

Please sign in to comment.