Skip to content
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

Merged
merged 4 commits into from
Sep 19, 2022

Conversation

Gamenot
Copy link
Collaborator

@Gamenot Gamenot commented Sep 14, 2022

  • 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
# )
Copy link
Contributor

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.

Copy link
Collaborator Author

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.

Copy link
Collaborator Author

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.

@Gamenot Gamenot force-pushed the tucker/increase_cutin_lane_holding branch from 32064f2 to 1e349a3 Compare September 16, 2022 22:00
@Gamenot Gamenot merged commit 4fb2947 into develop Sep 19, 2022
@Adaickalavan Adaickalavan deleted the tucker/increase_cutin_lane_holding branch September 28, 2022 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants