Repository navigation
Fix A*, route prediction, interval/route operations, and Python submodule bugs & perf in ad_map_access - #265
Open
M-Colley wants to merge 1 commit into
Conversation
- Fix inverted left/right neighbor assignment in updateLaneSegmentNeighbors and sync min/max lane offsets in updateLaneConnections - Fix RouteExpander::expandSameLaneNeighbors ignoring explicit destination direction and clobbering concrete movement direction - Fix RouteAstar::addNeighbor leaving routeDuration stale on open-set path relaxation and replace O(V^2) open-set scan with O((V+E) log V) priority queue + cached mDestPoint - Fix RoutePrediction exception-safety leak via RAII deque<RouteTreeElement> and prevent bogus 0-length negative leaf route on DONT_CARE unidirectional starts - Normalize getRouteParaPointFromParaPoint offset by interval parametric length and guard zero-length segments in calculateRouteParaPointAtDistance - Fix getSpeedLimits(ConnectingRoute) copy-paste bug, empty RoadSegment max() sentinels / infinite loop, signed-to-unsigned std::distance UB on RouteIterators, opposing-lane remaining distance, and missing route counters in calculateBypassingRoute - Clamp restrictIntervalFromBegin to interval end, guard zero-length lanes in LaneIntervalOperation, and avoid ParametricValue subtraction underflow in getMetricRanges - Fix MergingRouteSearch mutating prediction hints in place and fall back to Merging search when direct A* candidates are filtered out - Scope ad_map_access Python submodules under ad_map_access.map.* to avoid sys.modules collisions with ad_physics - Add unit and Python interface regression tests
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes routing correctness bugs, A* open-set relaxation and asymptotic complexity,
RoutePredictionexception safety,RouteOperation/LaneIntervalOperationedge cases, and Python bindingsys.modulescollisions inad_map_access.Bug Fixes
RouteAStar,RouteExpander,Planning)*:routeDurationalongsiderouteDistanceandcostwhen relaxing an open-set neighbor inRouteAstar::addNeighbor.RouteExpander::expandSameLaneNeighborswithout clobbering concrete movement direction.MergingRouteSearchmutating caller prediction hints in place, and fall back to merging search inplanRoutewhen direct A* results are filtered out.RoutePrediction):RouteTreeElementnodes with an RAIIstd::dequeinstead of rawnew/delete(fixing memory leaks if expansion throws) and avoid emitting bogus zero-length negative leaf routes onDONT_CAREunidirectional starts.RouteOperation,LaneIntervalOperation):updateLaneSegmentNeighborsand synchronizeminLaneOffset/maxLaneOffsetinupdateLaneConnections.getRouteParaPointFromParaPointoffset by interval parametric length, guard zero-length segments/lanes incalculateRouteParaPointAtDistanceandLaneIntervalOperation, clamprestrictIntervalFromBeginto interval end, avoidParametricValueunsigned underflow ingetMetricRanges, and fixgetSpeedLimits(ConnectingRoute), emptyRoadSegmentsentinels, signed-to-unsignedstd::distanceUB onRouteIterator, opposing-lane remaining distance, and route counters incalculateBypassingRoute.AdMapAccessPython.cpp.in,generate_python_lib.py.in):ad_map_access.map.*so importingad_map_accessalongsidead_physicsdoes not overwrite sharedphysics/geometryentries insys.modules.Performance Improvements
std::min_elementopen-set scans inRouteAstar::calculatewith anstd::priority_queue) and cachemDestPointonce per search instead of recomputing ENU coordinates at every expansion.Tests
LaneIntervalOperationTest.cpp,RoutePlanningTests.cpp,RoutePredictionTest.cpp, andad_map_access/python/tests/interface_test.py.This change is