Skip to content

Respect grid boundaries for world positions and include the closing polygon edge - #1511

Open
Afloat16 wants to merge 1 commit into
AtsushiSakai:masterfrom
Afloat16:fix/gridmap-world-position-and-polygon
Open

Afloat16 wants to merge 1 commit into
AtsushiSakai:masterfrom
Afloat16:fix/gridmap-world-position-and-polygon

Conversation

@Afloat16

@Afloat16 Afloat16 commented Nov 7, 2026

Copy link
Copy Markdown

GridMap rejected valid writes to the first row and column, admitted positions on the exclusive upper boundary, and attempted arithmetic on missing position indices. A missing index also returned a truthy tuple. Open polygons omitted their last edge because np.append returned a new array. This fixes coordinate-based operations and closes the polygon during traversal. The per-axis numeric index work in #1480 is separate.

Verification

Two new regression tests failed on master and passed with this patch using actual NumPy and Matplotlib (Agg). They cover cell values, rejected writes and open/closed list and NumPy polygons.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant