Skip to content

Commit

Permalink
fix: ignore cross_line in turn signal judge (autowarefoundation#748)
Browse files Browse the repository at this point in the history
* fix: ignore cross_line in turn signal judge

Signed-off-by: tomoya.kimura <[email protected]>

* misc

Signed-off-by: tomoya.kimura <[email protected]>

* misc

Signed-off-by: tomoya.kimura <[email protected]>
  • Loading branch information
tkimura4 authored Apr 22, 2022
1 parent 8312715 commit 32502db
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions planning/behavior_path_planner/src/path_utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,15 @@ std::pair<TurnIndicatorsCommand, double> getPathTurnSignal(
}

bool cross_line = false;
if (
left_start_point_is_in_lane != left_end_point_is_in_lane ||
right_start_point_is_in_lane != right_end_point_is_in_lane) {
bool TEMPORARY_SET_CROSSLINE_TRUE =
true; // due to a bug. See link:
// https://github.com/autowarefoundation/autoware.universe/pull/748
if (TEMPORARY_SET_CROSSLINE_TRUE) {
cross_line = true;
} else {
cross_line =
(left_start_point_is_in_lane != left_end_point_is_in_lane ||
right_start_point_is_in_lane != right_end_point_is_in_lane);
}

if (time_to_shift_start < prev_sec || distance_to_shift_start < tl_on_threshold_long) {
Expand Down

0 comments on commit 32502db

Please sign in to comment.