Skip to content

Commit

Permalink
fix(behavior_velocity_traffic_light): set prev_state_stop when using …
Browse files Browse the repository at this point in the history
…time to red signal

Signed-off-by: Y.Hisaki <[email protected]>
  • Loading branch information
yhisaki committed Jan 30, 2025
1 parent 201e06b commit 6f8695f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,11 @@ bool TrafficLightModule::handleV2I(

setSafe(!should_stop);
if (isActivated()) {
is_prev_state_stop_ = false;
return true;
}
insert_stop_pose();
is_prev_state_stop_ = true;
return true;
}
} // namespace autoware::behavior_velocity_planner

0 comments on commit 6f8695f

Please sign in to comment.