Repository navigation
Conversation
Co-Authored-By: Codex (GPT-6 Astra Pro) <noreply@openai.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 4 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
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
Dubins planning solves its segments with a unit turning radius, but it returns those normalized lengths directly and passes the public sample spacing into that normalized coordinate system. A 10-unit straight path therefore reports length 5 at curvature 0.5 and length 20 at curvature 2. With
stepsize=0.125, its ordinary samples are 0.25 or 0.0625 units apart respectively.Convert the requested spacing into normalized units before sampling and convert segment lengths and total cost back afterwards, matching the existing Reeds–Shepp convention. The path geometry and candidate selection are unchanged. At curvature other than one, returned lengths and sample density change to their documented physical units. This also corrects the lengths consumed by RRT's edge-cost and connection-length checks.
Contribution owner: @Afloat16. Codex (GPT-6 Astra Pro) assisted with the implementation and regression tests.
Related issue
Newly reproduced problem. Reviewed all 59 prior PRs by @Afloat16 and all five upstream Dubins PRs plus the related issue. #798 preserves zero-coordinate endpoints; it does not convert distance units.
Validation
Base
5aef407ae89cea7dd7edf378dee0757e697cd3bb; Linux x86-64, Python 3.12.14, NumPy 2.5.5, SpatialMath 1.1.19. Tests import the checkout withPYTHONPATH=src:rtb-dataand useMPLBACKEND=Agg.python -m pytest tests/test_dubins_units.py tests/test_planner_course_endpoints.py tests/test_graph_planners.py tests/test_mobile.py -q: 202 passed, 6 skipped, 13 subtests passed.git diff --check: passed. Ruff lint reports the same four pre-existing source diagnostics as the base; the new test file is clean.Checklist
Co-Authored-By: Codex (GPT-6 Astra Pro) noreply@openai.com