Repository navigation
Conversation
Co-Authored-By: ChatGPT (GPT-6 Astra Pro)
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| 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
The mobile quintic planner samples through T + dt, so a step that does not divide the duration can evaluate beyond the terminal boundary and return a path past the requested goal.
Generate samples strictly below T and append T exactly once. Validate that dt is positive and finite before constructing the samples.
Numerical results and public behaviour: This changes numerical results for non-dividing or oversized time steps: the final sample now satisfies the requested terminal state instead of extrapolating beyond it. Non-positive or non-finite dt values raise ValueError. Public signatures are unchanged.
The implementation, regression tests and this description were prepared with ChatGPT (GPT-6 Astra Pro). Afloat16 requested the work and authorised submission; human review of this diff has not yet been confirmed, so this PR is a draft.
Related issue
Found through code inspection; no specific issue is linked. The current open PRs were checked for competing fixes.
Validation
The new regressions on the unchanged base report 6 failed, 11 passed (17 new regression cases on the unchanged base). With this change: 17 new regression cases pass; selected planner suites: 50 passed.
Non-dividing and oversized steps, terminal position/velocity/heading, exact-grid controls, and invalid time steps.
Tested on
9f282d8ff952a6ca95d340ae6a62b04e545a302fusing Linux/Python 3.12.14 and the actual package with matching native extensions enabled.New test files pass Ruff lint and format checks;
git diff --checkpasses. Existing production-file Ruff diagnostics are unchanged. Mypy reports the same existing Link.py:327 return-type error on the unchanged base and this branch (165 source files checked), with no additional diagnostics. It does not pass cleanly.Focused suites only; the complete repository suite, docs build and cross-platform CI were not rerun.
Checklist
Prepared with ChatGPT (GPT-6 Astra Pro).