Repository navigation
Conversation
Reset the search tree for each explicit plan, repair the frontier after a priority decrease, and report the cost of the route actually followed. Raise NoPathError for unreachable goals and finish animations on failure. Co-Authored-By: OpenAI Codex (GPT-6 Astra Pro) <noreply@openai.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 26 |
| 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.
|
Thank you for this, @Afloat16. As with your earlier PRs, we can't update your branch from |
Summary
D* can keep an old goal's zero-cost root when
plan()is called again, ignore edits to the costmap, and return a path through infinite-cost obstacles. When a sensor forces a detour, the returned status still reports the original route's cost: a three-unit straight route that becomes a1 + 2*sqrt(2)detour is reported as cost 3.Keep the related planning corrections in one change:
plan()call. Incremental sensor updates continue to use that tree.NoPathErrorfor unreachable goals and finish the animation when a query fails.Public numerical behaviour changes: repeated planning now follows the new goal and costs; sensor detours have their actual traversal cost; unreachable routes raise
NoPathError. The expansion count restarts with an explicit new plan. The docstrings record these changes.Validation
Tested on Linux, Python 3.12.14, NumPy 2.5.5 and SciPy 1.18.1, with native toolbox extensions built using GCC/G++.
c6a7c747f7e9a5bda3b44f2717908c9ece5f20d9.mypysucceeds on all 166 source files.tests/test_symbolic_ik.py::test_dh_modelsexceeded its 50-second limit. The full-suite run therefore remains incomplete; that timeout is in unchanged symbolic inverse-kinematics code. The platform CI matrix and documentation build were not run locally.N999,RUF012,PIE808). Formatting andgit diff --checkpass.Prior work
Checked all 504 historical pull requests and the current open issues and PRs. The earlier grid-coordinate work in #791 covers world-coordinate conversion; these search-state, frontier-order, reachability and returned-cost defects are separate. No competing PR was found for this fix.
Checklist
Primary contributor: Afloat16.
Prepared with OpenAI Codex (GPT-6 Astra Pro) assistance.