-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Defer only to right of current lane #1630
Conversation
Gamenot
commented
Sep 14, 2022
•
edited
Loading
edited
- This increases the default lock-in time for holding lane after cut-in
- Also actors will only now yield to right to behind vehicles.
# hold lane for some time if added recently | ||
if self._forward_after_added < self._after_added_hold_secs: | ||
self._forward_after_added += dt | ||
# skip checks | ||
checks = [] | ||
|
||
## TODO: Determine how blocked lane changes should be addressed | ||
# cut_in_is_real_lane = self._cutting_into and self._cutting_into.index < len( | ||
# self._lane_windows | ||
# ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just want to confirm this wasn't left commented unintentionally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is commented out intentionally, this was a consideration of how to address blocking when lanes to right and left are unavailable for periods of time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should convert this to pseudo-code rather than keeping it in as code.
32064f2
to
1e349a3
Compare