Skip to content

Commit

Permalink
fix(avoidance): turn signal doesn't turn on
Browse files Browse the repository at this point in the history
Signed-off-by: satoshi-ota <[email protected]>
  • Loading branch information
satoshi-ota committed Jan 26, 2024
1 parent 57cf88d commit 9d8982e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions planning/behavior_path_avoidance_module/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2278,11 +2278,11 @@ TurnSignalInfo calcTurnSignalInfo(
return {};
}

const auto left_lanelets = rh->getAllLeftSharedLinestringLanelets(lanelet, true, true);
const auto right_lanelets = rh->getAllRightSharedLinestringLanelets(lanelet, true, true);
const auto left_lane = rh->getLeftLanelet(lanelet, true, true);
const auto right_lane = rh->getRightLanelet(lanelet, true, true);

if (!existShiftSideLane(
start_shift_length, end_shift_length, left_lanelets.empty(), right_lanelets.empty())) {
start_shift_length, end_shift_length, !left_lane.has_value(), !right_lane.has_value())) {
return {};
}

Expand Down

0 comments on commit 9d8982e

Please sign in to comment.