Skip to content

fix: grid block mask applies x/y ranges both to rows - #63

Open
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/pose-samplers-0e7f78a4
Open

fix: grid block mask applies x/y ranges both to rows#63
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/pose-samplers-0e7f78a4

Conversation

@andrewwhitecdw

Copy link
Copy Markdown

This PR addresses the following issue in exts/omni.ext.mobility_gen/omni/ext/mobility_gen/pose_samplers.py: grid block mask applies x/y ranges both to rows.

Changes

  • exts/omni.ext.mobility_gen/omni/ext/mobility_gen/pose_samplers.py: grid block mask applies x/y ranges both to rows.

Details

Before:

        block_mask = np.zeros_like(mask)
        block_mask[block_x_min:block_x_min+block_size_px] = True
        block_mask[block_y_min:block_y_min+block_size_px] = True

        net_mask = block_mask & mask

After:

        block_mask = np.zeros_like(mask)
        block_mask[:, block_x_min:block_x_min+block_size_px] = True
        block_mask[block_y_min:block_y_min+block_size_px, :] = True

        net_mask = block_mask & mask

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