-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated segregated intersection identification (#4845)
* Initial internal intersection updates paired with @oxidase and @kdiluca TODO fix tests and add in new ones * Added Internal Intersection Model * removed debug info * updates per PR 4845 * fixing build errors * fixing all compile errors * fixed EdgeID param * Added is_internal_straight lambda Added/Updated constexpr names and values * added rejection case turn degree logic * debug logging * added turn angle logic to reject if there are incoming edges that have opposite turn degrees than outgoing edges or if the outgoing edges have opposing turn degrees; also merged with master v5.16 * fixed formatting * fix to decrease tile size based on latest turn angle internal intersection updates * Removed breaks Breaks in code were a mistake and caused a change in the internal intersection identification. * Update segregated_intersection_classification.cpp * Update CHANGELOG.md Added CHANGED #4845: Updated segregated intersection identification to Unreleased
- Loading branch information
Showing
4 changed files
with
241 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
@guidance | ||
Feature: Internal Intersection Model | ||
|
||
Background: | ||
Given the profile "car" | ||
Given a grid size of 10 meters | ||
|
||
Scenario: Dual-carriage way intersection | ||
Given the node map | ||
""" | ||
a b | ||
| | | ||
c--d--e--f | ||
| | | ||
g--h--i--j | ||
| | | ||
k l | ||
""" | ||
|
||
And the ways | ||
| nodes | oneway | name | | ||
| adhk | yes | Broken Land Parkway | | ||
| lieb | yes | Broken Land Parkway | | ||
| fed | yes | Snowden River Parkway | | ||
| dc | yes | Patuxent Woods Drive | | ||
| gh | yes | Patuxent Woods Drive | | ||
| hij | yes | Snowden River Parkway | | ||
|
||
When I route I should get | ||
| waypoints | route | turns | # | | ||
| a,k | Broken Land Parkway,Broken Land Parkway | depart,arrive || | ||
| l,b | Broken Land Parkway,Broken Land Parkway | depart,arrive || | ||
# | g,j | Patuxent Woods Drive,Snowden River Parkway,Snowden River Parkway | depart,continue,arrive | did not work as expected - might be another issue to handle in post process? | | ||
# | f,c | Snowden River Parkway,Patuxent Woods Drive,Patuxent Woods Drive | depart,continue,arrive | did not work as expected - might be another issue to handle in post process? | | ||
| a,c | Broken Land Parkway,Patuxent Woods Drive,Patuxent Woods Drive | depart,turn right,arrive || | ||
| g,k | Patuxent Woods Drive,Broken Land Parkway,Broken Land Parkway | depart,turn right,arrive || | ||
| l,j | Broken Land Parkway,Snowden River Parkway,Snowden River Parkway | depart,turn right,arrive || | ||
| f,b | Snowden River Parkway,Broken Land Parkway,Broken Land Parkway | depart,turn right,arrive || | ||
| a,j | Broken Land Parkway,Snowden River Parkway,Snowden River Parkway | depart,turn left,arrive || | ||
| g,b | Patuxent Woods Drive,Broken Land Parkway,Broken Land Parkway | depart,turn left,arrive || | ||
| l,c | Broken Land Parkway,Patuxent Woods Drive,Patuxent Woods Drive | depart,turn left,arrive || | ||
| f,k | Snowden River Parkway,Broken Land Parkway,Broken Land Parkway | depart,turn left,arrive || | ||
| a,b | Broken Land Parkway,Broken Land Parkway,Broken Land Parkway | depart,continue uturn,arrive || | ||
| g,c | Patuxent Woods Drive,Patuxent Woods Drive,Patuxent Woods Drive | depart,continue uturn,arrive || | ||
| l,k | Broken Land Parkway,Broken Land Parkway,Broken Land Parkway | depart,continue uturn,arrive || | ||
| f,j | Snowden River Parkway,Snowden River Parkway,Snowden River Parkway | depart,continue uturn,arrive || |
Oops, something went wrong.