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

Change treatment of pencil point u-turns to ignore situations where two unnamed roads form the pencil-point #3084

Merged
merged 7 commits into from May 20, 2021

Conversation

kshehadeh
Copy link
Contributor

Fixed a problem where the pencil-point u-turn logic is triggered even when the turn transitions between two unnamed roads. It now checks to see if the connected edges are named before checking for name consistency.

Issue

There are situations where a pencil point u-turn is identified when it shouldn't be. In these cases, a u-turn is formed from two unnamed roads but the two roads are treated as the same road. They shouldn't be.

Tasklist

  • Add tests
  • Add #fixes with the issue number that this PR addresses
  • Update the docs with any new request parameters or changes to behavior described
  • Update the changelog

Requirements / Relations

Link any requirements here. Other pull requests this PR is based on?

… when the turn transitions between two unnamed roads. It now checks to see if the connected edges are named before checking for name consistency.
@kshehadeh kshehadeh requested a review from gknisely May 19, 2021 13:52
Copy link
Member

@gknisely gknisely left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kshehadeh looks good but we should add a gurka test to this one and you need to update the changelog.

@kevinkreiser
Copy link
Member

@kshehadeh nice catch!

gknisely
gknisely previously approved these changes May 19, 2021

int maneuver_index = 1;

// Verify the left uturn instructions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment says to expect a uturn but the instructions is a sharp left. Also how is this case different than the last one? They seem similar.

@kshehadeh kshehadeh merged commit 7e67cf9 into master May 20, 2021
@kshehadeh kshehadeh deleted the unnamed_pencil_point branch May 20, 2021 12:03
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.

None yet

4 participants