Skip to content

Commit

Permalink
Planning: deprecate IsClearToChangeLane() checking for new lane-chang…
Browse files Browse the repository at this point in the history
…e policy
  • Loading branch information
JasonXu12 authored and jinghaomiao committed Sep 13, 2019
1 parent 936d737 commit bbc1035
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/planning/scenarios/lane_follow/lane_follow_stage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ Stage::StageStatus LaneFollowStage::Process(
if (cur_status.ok()) {
if (reference_line_info.IsChangeLanePath()) {
ADEBUG << "reference line is lane change ref.";
if (reference_line_info.Cost() < kStraightForwardLineCost &&
LaneChangeDecider::IsClearToChangeLane(&reference_line_info)) {
if (reference_line_info.Cost() < kStraightForwardLineCost) {
has_drivable_reference_line = true;
reference_line_info.SetDrivable(true);
ADEBUG << "\tclear for lane change";
Expand Down

0 comments on commit bbc1035

Please sign in to comment.