-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
RNDF SplineLane::GetPositionToLane fix #6690
RNDF SplineLane::GetPositionToLane fix #6690
Conversation
+@liangfok for feature review please. |
+@liangfok for feature review. Review status: 0 of 1 files reviewed at latest revision, all discussions resolved. Comments from Reviewable |
Reviewed 1 of 1 files at r1. Comments from Reviewable |
+@sherm1 for platform review Review status: all files reviewed at latest revision, all discussions resolved. Comments from Reviewable |
The existence of this bug suggests that there is a missing unit test. Can you add one to this PR to verify that it is working now and to make sure no one messes this up in the future? Review status: all files reviewed at latest revision, 1 unresolved discussion. drake/automotive/maliput/rndf/spline_lane.cc, line 162 at r1 (raw file):
This should be a Comments from Reviewable |
6f2cd57
to
e2cc951
Compare
Review status: 0 of 2 files reviewed at latest revision, 2 unresolved discussions. drake/automotive/maliput/rndf/spline_lane.cc, line 162 at r1 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done. drake/automotive/maliput/rndf/test/spline_lane_test.cc, line 320 at r2 (raw file):
The proposed test uses driveable_bounds() since that public call, when two or more lanes belong to the same segment, goes through the affected piece of code. Comments from Reviewable |
I have addressed all the comments and added a test. PTAL. Comments from Reviewable |
Great, thanks Agustin! Platform . Reviewed 2 of 2 files at r2. Comments from Reviewable |
A bug was introduced as part of #6349.
SplineLane::GetPositionToLane
is a private method and it's used bySplineLane::do_driveable_bounds()
.When the Lane belongs to a Segment with multiple Lanes, we should compute the projected GeoPosition of the Lane over the Lanes at the lateral extents of the segment. This projection is done using the curvature radius.
SplineLane::GetPositionToLane
is in charge of that computation.Further test coverage for this bug will be covered in a future PR which includes the Builder.
This change is