Repository navigation
Conversation
…llocation and bounds validation Updated planning method and collision check logic. Changed width calculations to use math.ceil for better accuracy.
Cover non-divisible extents, shifted origins, obstacle inflation, and floating-point grid boundaries.
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.
Reference issue
No matching open or closed PR found for Theta* grid-size rounding and boundary indexing.
What does this implement/fix?
Theta* rounds the number of grid cells down for some map extents. On a map spanning 0 to 10 with resolution 3, the grid has only three entries per axis, but the world-coordinate bounds accept index 3 at coordinate 9. Planning from (6, 6) to (3, 3) then raises
IndexErrorwhile checking a neighbor.Use ceiling division for the grid dimensions so the final partial interval is represented. Also check allocated index bounds before accessing the obstacle grid: floating-point rounding can otherwise admit an out-of-array index just below the exclusive world-coordinate bound. Obstacle inflation and the existing world-bound checks are unchanged.
Additional information
Validated against
cdd0cc888802b584c2d654ca85e3c5460973487d:bash runtests.shsuite, documentation build, animations and other platforms were not run. The available dependency versions differ from current CI pins.CheckList