Skip to content

Preserve measured hits behind a nearer return in ray-cast maps - #1496

Open
Afloat16 wants to merge 1 commit into
AtsushiSakai:masterfrom
Afloat16:fix/ray-map-observed-hits
Open

Afloat16 wants to merge 1 commit into
AtsushiSakai:masterfrom
Afloat16:fix/ray-map-observed-hits

Conversation

@Afloat16

@Afloat16 Afloat16 commented Nov 6, 2026

Copy link
Copy Markdown

Reference issue

Reproduced on master at 61a8b0b.

What does this implement/fix?

A nearer return overwrites a previously measured farther endpoint with the unknown value when both occupy the same angular bin. This makes the occupancy grid depend on input order. Keep occupied cells when marking the shadow behind an observation.

Additional information

The regression casts the same two returns in both orders and checks free, occupied and occluded cells. The regression failed on the original implementation and passed after the fix. Tested with Python 3.13.17 and the repository's pinned requirements. The modified module's tests and examples passed, Ruff passed, and the Sphinx HTML build succeeded.

CheckList

  • Added regression coverage for the defect.
  • Updated the example documentation.
  • CI results pending.

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