crosswalk-parsing fixed PR - #478
Conversation
…ario, as well as pedestrian.scenic
…rianCrossing for conflicting maneuvers, updated crosswalk scenario to reflect this
| rightEdge=rightEdge, | ||
| road=None, | ||
| crossings=(), # TODO add crosswalks | ||
| crossings=(pedestrian_crossings), |
There was a problem hiding this comment.
This should be a tuple.
Also, I think it's theoretically possible that you could have a crosswalk that connects to one of the two sidewalks but not the other, or a crosswalk connecting to no sidewalks. So it would be safer here to check that at least one of the endpoints of the crosswalk is close to the sidewalk (within the tolerance) before adding it.
dfremont
left a comment
There was a problem hiding this comment.
Looks good overall, thanks Aarav! I've pointed out a bunch of mostly-minor things above. The only other issue I can see is that there are no tests, but if necessary we could leave adding those to the next PR.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #478 +/- ##
==========================================
- Coverage 89.87% 89.69% -0.19%
==========================================
Files 48 48
Lines 13346 13568 +222
==========================================
+ Hits 11995 12170 +175
- Misses 1351 1398 +47
🚀 New features to boost your workflow:
|
crosswalk parsing changes to xodr_parser and 1 scenario for pedestrian-vehicle interactions