Skip to content

lidar: per-direction occlusion mask (compact rays + dense ObkScan sca… - #174

Merged
wdc3iii merged 1 commit into
mainfrom
feat/masked_scan
Jul 27, 2026
Merged

lidar: per-direction occlusion mask (compact rays + dense ObkScan sca…#174
wdc3iii merged 1 commit into
mainfrom
feat/masked_scan

Conversation

@wdc3iii

@wdc3iii wdc3iii commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

…tter)

LidarInterface::setup_rays now accepts an optional pattern.mask (path to a 0/1 grid file or inline list, vnh+h order). Masked rays are dropped from the local ray set so mj_multiRay batches fewer rays; a compacted->dense index map lets the ObkScan publisher scatter results back into the full nvnh grid with a NaN (no-hit) at masked bins, keeping the dense array index-aligned with the policy. The PointCloud2 path needs no change (compaction => masked bins simply produce no points). Adds base virtuals get_dense_num_rays / is_masked / get_dense_index (default = unmasked identity).

Used by the g1_nav v2 masked head-lidar scan configs (nav_head_lidar*_v2.yml).

…tter)

LidarInterface::setup_rays now accepts an optional `pattern.mask` (path to a
0/1 grid file or inline list, v*nh+h order). Masked rays are dropped from the
local ray set so mj_multiRay batches fewer rays; a compacted->dense index map
lets the ObkScan publisher scatter results back into the full nv*nh grid with
a NaN (no-hit) at masked bins, keeping the dense array index-aligned with the
policy. The PointCloud2 path needs no change (compaction => masked bins simply
produce no points). Adds base virtuals get_dense_num_rays / is_masked /
get_dense_index (default = unmasked identity).

Used by the g1_nav v2 masked head-lidar scan configs (nav_head_lidar*_v2.yml).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@wdc3iii
wdc3iii merged commit f2b2335 into main Jul 27, 2026
@wdc3iii
wdc3iii deleted the feat/masked_scan branch July 27, 2026 20:04
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