Skip to content

Fix ray caster tutorial environment path matching - #8415

Merged
AntoineRichard merged 1 commit into
isaac-sim:developfrom
StafaH:fix/ray-caster-cuda
Oct 9, 2026
Merged

AntoineRichard merged 1 commit into
isaac-sim:developfrom
StafaH:fix/ray-caster-cuda

Conversation

@StafaH

@StafaH StafaH commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Fix TC_123611 by restricting both origin wildcards in run_ray_caster.py to one path segment: /World/Origin[^/]+/ball.

The previous Origin.* expression also matched descendants when SensorBase counted parent prims. In the tutorial scene, that produced 24 environments for four rigid-body sensor instances, causing ray-caster kernels to access buffers out of bounds. The narrowed expression keeps the environment count at four.

Type of change

  • Bug fix (non-breaking)

Validation

  • Before the fix, a temporary bounded tutorial runner detected 24 environments versus four sensor instances and failed its count assertion.
  • After the fix, the runner passed 501 simulation steps and three resets, checked four finite sensor positions and a (4, 441, 3) ray-hit buffer, and exited successfully both headlessly and with --visualizer kit,viser,rerun,newton_gl. No CUDA illegal-memory-access errors were logged.
  • Tested on RTX PRO 6000 Blackwell with Isaac Sim 6.1 and driver 595.91.07. Isaac Sim 6.2.0rc9 still needs verification. The four-visualizer run logged a separate Newton GUI compatibility error involving sidebar_width_px.
  • No new tests: this is a tutorial path correction validated through the existing tutorial, using a temporary bounded runner.
  • Full repository formatting/lint checks and git diff --check passed.

Checklist

  • Read the contribution guidelines.
  • Ran uv run --no-sync isaaclab --format using the existing uv environment and verified the worktree import root.
  • Validated the changed behavior with focused runtime coverage.
  • Contributor name is already in CONTRIBUTORS.md.

No source packages or documentation pages changed; no package changelog fragment is required.

Release backport

  • Backport this pull request to the active release branch after it merges into develop

@StafaH
StafaH requested a review from a team October 9, 2026 05:37
@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels Oct 9, 2026
@StafaH

StafaH commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Oct 9, 2026
@greptile-apps

greptile-apps Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] This PR appears safe to merge; both narrowed paths still match the four tutorial balls.

Summary

Both paths in run_ray_caster.py now use /World/Origin[^/]+/ball.

  • The sensor counts only the four origin groups, not their descendants.
  • Ball spawning and sensor attachment use the same expression.
  • No actionable issues found. This review checked the code; it did not rerun the tutorial.

Reviews (1) · Last reviewed commit: "Fix ray caster tutorial environment path..." · Reviewed by Greptile

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isaac Lab Review Bot

All reviewed code categories look good.

  • PR description: The title and body match the two regex edits and focused runtime validation; backend limitations and the Newton visualizer error appropriately qualify the reported results.
  • Design and architecture: Architecture looks good.
  • Scope and over-engineering: No over-engineering issues.
  • API: API changes look good.
  • Compatibility and deprecation: No breaking changes identified.
  • Implementation: Implementation looks good.
  • Style consistency: Style consistency looks good.
  • Test quality: Test quality looks good.

No blocking issues. No inline findings.

Automated review; human maintainers own approval decisions.

@AntoineRichard
AntoineRichard merged commit abd3eb7 into isaac-sim:develop Oct 9, 2026
91 of 92 checks passed
@isaaclab-bot

isaaclab-bot Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Backported to release/3.0.0 as c2e7860.

isaaclab-bot Bot pushed a commit that referenced this pull request Oct 9, 2026
## Description

Fix TC_123611 by restricting both origin wildcards in
`run_ray_caster.py` to one path segment: `/World/Origin[^/]+/ball`.

The previous `Origin.*` expression also matched descendants when
SensorBase counted parent prims. In the tutorial scene, that produced 24
environments for four rigid-body sensor instances, causing ray-caster
kernels to access buffers out of bounds. The narrowed expression keeps
the environment count at four.

## Type of change

- Bug fix (non-breaking)

## Validation

- Before the fix, a temporary bounded tutorial runner detected 24
environments versus four sensor instances and failed its count
assertion.
- After the fix, the runner passed 501 simulation steps and three
resets, checked four finite sensor positions and a `(4, 441, 3)` ray-hit
buffer, and exited successfully both headlessly and with `--visualizer
kit,viser,rerun,newton_gl`. No CUDA illegal-memory-access errors were
logged.
- Tested on RTX PRO 6000 Blackwell with Isaac Sim 6.1 and driver
595.91.07. Isaac Sim 6.2.0rc9 still needs verification. The
four-visualizer run logged a separate Newton GUI compatibility error
involving `sidebar_width_px`.
- No new tests: this is a tutorial path correction validated through the
existing tutorial, using a temporary bounded runner.
- Full repository formatting/lint checks and `git diff --check` passed.

## Checklist

- [x] Read the contribution guidelines.
- [x] Ran `uv run --no-sync isaaclab --format` using the existing uv
environment and verified the worktree import root.
- [x] Validated the changed behavior with focused runtime coverage.
- [x] Contributor name is already in `CONTRIBUTORS.md`.

No source packages or documentation pages changed; no package changelog
fragment is required.

## Release backport

- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

(cherry picked from commit abd3eb7)
@StafaH
StafaH deleted the fix/ray-caster-cuda branch October 10, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants