Skip to content

Transitions raycaster to warp backend - #4967

Merged
AntoineRichard merged 59 commits into
isaac-sim:developfrom
pascal-roth:dev/ray-caster-warp
Apr 22, 2026
Merged

AntoineRichard merged 59 commits into
isaac-sim:developfrom
pascal-roth:dev/ray-caster-warp

Conversation

@pascal-roth

@pascal-roth pascal-roth commented Mar 12, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Transitions the raycaster to warp

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@github-actions github-actions Bot added the isaac-lab Related to Isaac Lab team label Mar 12, 2026

@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.

Ray Caster → Warp Transition Review

Solid migration from torch-based ray casting to native Warp kernels. The kernel architecture is clean — single update_ray_caster_kernel for pose+ray transforms, masked raycast_mesh_masked_kernel for the actual casts, and a fill+z-drift pair. Good use of enable_backward=False since these are inference-only paths.

A few things I'd flag:

🔴 Potential Memory Safety Issue — Offset Warp Arrays

In _initialize_impl(), the offset warp arrays are created from ephemeral .contiguous() calls:

self._offset_pos_wp = wp.from_torch(self._offset[0].contiguous(), dtype=wp.vec3f)
self._offset_quat_wp = wp.from_torch(self._offset[1].contiguous(), dtype=wp.quatf)

wp.from_torch creates a zero-copy view. If self._offset[0] is already contiguous, .contiguous() returns the same tensor (safe). But if it's not contiguous, .contiguous() creates a temporary copy that's not stored anywhere — once GC'd, the warp array points to freed memory. Either store the contiguous tensor explicitly or use a warp-owned copy:

self._offset_pos_contiguous = self._offset[0].contiguous()
self._offset_pos_wp = wp.from_torch(self._offset_pos_contiguous, dtype=wp.vec3f)

🟡 Breaking Public API — data.pos_w / data.ray_hits_w Now Return wp.array

The RayCasterData properties now return wp.array instead of torch.Tensor. Every downstream consumer needs wp.to_torch() wrappers. The PR updates the bundled scripts/MDP/tasks, but any external code using sensor.data.ray_hits_w as a torch tensor will break silently (warp arrays support some indexing but not all torch ops).

Consider either:

  • Deprecation path: Keep returning torch tensors from the properties (using the internal _*_torch views) and add new pos_w_wp / ray_hits_w_wp properties for warp access. Then deprecate the torch versions in a future release.
  • Documentation: If this is intentionally breaking, the changelog/migration guide should call it out explicitly.

🟡 MultiMeshRayCasterCameraData No Longer Inherits RayCasterData

The change from class MultiMeshRayCasterCameraData(CameraData, RayCasterData) to just class MultiMeshRayCasterCameraData(CameraData) means isinstance(data, RayCasterData) checks will fail for multi-mesh camera data. If anything in the codebase or user code uses that check, it'll break. Might be intentional given the divergent buffer strategies, but worth verifying.

🟡 Quaternion Convention in _get_view_transforms_wp

For XformPrimView, the code does:

poses = torch.cat([pos_w, quat_w], dim=-1).contiguous()
return wp.from_torch(poses).view(wp.transformf)

wp.transformf expects (px, py, pz, qx, qy, qz, qw) — 7 floats. Isaac Sim's XformPrimView.get_world_poses() typically returns quaternions as (w, x, y, z). Make sure the ordering matches warp's expectation, or the rotations will be wrong. The PhysX view methods (get_root_transforms, get_transforms) use (x, y, z, w) convention which matches warp. This potential mismatch only affects the XformPrimView path.

Minor Items

  • Extra blank line at ray_caster.py ~line 359 (in _debug_vis_callback) — cosmetic.
  • The ray_cast_utils.py import of obtain_world_pose_from_view was removed from ray_caster.py but is still used in multi_mesh_ray_caster.py — verify it's still importable from there.
  • Good that _update_ray_infos now takes env_mask: wp.array instead of env_ids — this is more GPU-friendly and avoids the nonzero() → index gather pattern.
  • The kernel launch dimensions use (self._num_envs, self.num_rays) even when only some envs need updates, but the env_mask early-return in the kernel handles this efficiently. For very large env counts with sparse updates, a compacted launch could save GPU cycles, but that's an optimization for later.

Overall direction is right — moving the hot path into Warp kernels will eliminate the torch↔warp round-trips and enable better GPU utilization. The memory safety issue with the offset arrays is the most pressing concern.

Replace Python-level torch wrappers with direct wp.launch calls across
all four ray caster sensor classes:

- RayCaster: new kernels.py with update_ray_caster_kernel,
  fill_vec3_inf_kernel, raycast_mesh_masked_kernel, apply_z_drift_kernel
- MultiMeshRayCaster: add env_mask to raycast_dynamic_meshes_kernel
  (reuse instead of duplicate); mesh transform buffers (_mesh_positions_w,
  _mesh_orientations_w) converted from torch to wp.array2d with zero-copy
  torch views
- RayCasterCamera: new kernels for raycast_camera_mesh_masked_kernel,
  compute_distance_to_image_plane_masked_kernel, and depth clipping;
  all buffers warp-owned with zero-copy torch views
- MultiMeshRayCasterCamera: same pattern as MultiMeshRayCaster camera;
  uses raycast_dynamic_meshes_kernel directly with env_mask

All world-frame ray buffers are warp-owned with zero-copy torch views to
eliminate per-step allocations and avoid redundant host-device copies.
- Fix stale warp views after RayCasterCamera.set_intrinsic_matrices:
  _ray_starts_local and _ray_directions_local are now recreated from the
  updated torch tensors when intrinsic matrices change

- Migrate MultiMeshRayCasterCamera distance_to_image_plane to warp:
  uses compute_distance_to_image_plane_masked_kernel and the clipping
  kernels, matching RayCasterCamera and making NaN handling consistent
  between the two camera classes; add _quat_w_wp warp-backed orientation
  buffer updated each step from _update_ray_infos

- Eliminate per-step dummy buffer allocations in MultiMeshRayCaster:
  _dummy_normal_w and _dummy_face_id_w moved to _initialize_rays_impl

- Use ALIGNMENT_BASE constant instead of literal 2 in RayCasterCamera;
  name the 1e6 upper-bound raycast distance _CAMERA_RAYCAST_MAX_DIST

- Fix fill_vec3_inf_kernel docstring Args order and add missing [m] SI
  unit annotations to ray-start parameters in kernels.py
Kernel and code deduplication:
- Unify apply_depth_clipping_max/zero_masked_kernel into a single
  apply_depth_clipping_masked_kernel(fill_val) — eliminates a near-
  identical kernel pair
- Extract MultiMeshRayCaster._update_mesh_transforms() and call it from
  MultiMeshRayCasterCamera instead of duplicating the 25-line loop
- Add RayCasterCamera._apply_depth_clipping() helper and use it in both
  camera classes, replacing four separate wp.launch blocks

Critical behavioral fixes:
- MultiMeshRayCasterCamera was passing cfg.max_distance as the kernel
  ray-cast limit; now uses CAMERA_RAYCAST_MAX_DIST (1e6) matching
  RayCasterCamera so both classes see the same hit/miss boundary
- MultiMeshRayCasterCamera was using torch.clip for distance_to_camera
  while RayCasterCamera used the warp kernel; both now use warp kernels
  through _apply_depth_clipping, making NaN handling consistent

Performance fixes:
- RayCasterCamera offset buffers are now warp-primary with zero-copy
  torch views, removing per-step wp.from_torch re-wrapping
- Cache all-True env_mask in raycast_dynamic_meshes by (n_envs, device)
  to avoid a per-call boolean tensor allocation

Constants: move CAMERA_RAYCAST_MAX_DIST to kernels.py so it is shared
Move raycast_mesh_masked_kernel to utils/warp/kernels alongside the
existing raycast_mesh_kernel, replacing the two near-identical
sensor-specific kernels (raycast_mesh_masked_kernel and
raycast_camera_mesh_masked_kernel) with a single kernel that has
return_distance and return_normal flags — matching the design of the
existing raycast_mesh_kernel.

RayCaster passes return_distance=0, return_normal=0 with dummy
(1,1) buffers. RayCasterCamera passes return_distance=1 with its
existing distance and normal buffers.


@wp.func
def quat_yaw_only(

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@AntoineRichard this would be one of our math utils, I remember there was the idea to transition all of them to warp. What happened with that idea?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

That did not happen in the end, right now we're keeping the torch stuff for compat, there is only so much we can break in a single release x)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

could we have another file (math_warp.py) where we place those kernels? otherwise I would now have to introduce that one here and that is not the correct place IMO

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Agreed — quat_yaw_only is a math utility and doesn't belong in the ray-caster-specific kernels.py. Moving it to isaaclab/utils/warp/ (e.g. as a new math_warp.py or alongside existing warp utilities) is the right long-term home. However, moving it is out of scope for this PR since it would add a new public symbol to the utils package, potentially touching unrelated modules. I'll keep it here for now and open a follow-up to relocate it properly.

Pre-fill ray_dist_w and ray_normal_w output buffers with a sentinel
value (-1.0) so that assertions checking 'flag=0 → buffer not written'
are meaningful. Previously zero-initialised buffers made those checks
vacuous (kernel writing 0.0 would still pass). Also:

- Move _raycast_mesh_masked_kernel import to the top of the file
- Add distance assertion to test_with_normal
- Assert sentinel in masked-env distance check
- Change _SENTINEL from -1.0 to -2.0 (outside [-1, 1]) so it cannot
  equal any normalized vector component, making "not written" checks
  unambiguous without relying on composite-vec3 reasoning
- Add ray_normal_w sentinel assertion to env_mask test (coverage gap)
- Fix _make_masked_buffers docstring: remove inaccurate ray_hits_w claim
- Update with_normal test docstring to reflect both return flags are set
…ests

Appends two new pytest functions to test_ray_caster_camera.py:

- test_frame_counter_increments_per_update: verifies the frame counter
  increments by exactly 1 per update() call and resets to 0 on both
  partial (env_ids=[0]) and full reset() calls.

- test_set_intrinsic_matrices_updates_output: verifies that depth output
  changes after set_intrinsic_matrices() is called, catching regressions
  where stale warp ray buffers would silently ignore intrinsic updates.
- test_frame_counter_increments_per_update: pass force_recompute=True
  to camera.update() so _update_buffers_impl is called each step and
  _frame actually increments (lazy invocation otherwise skips it)
- test_ray_caster_reset_resamples_drift: add assertion that drift values
  change after reset(), not just that they stay in range
- test_yaw_alignment_direction_unchanged: use non-zero local offset (+1,0,0)
  so yaw-only rotation of start positions is observable; world mode hits
  x≈1.0, yaw mode hits x≈cos(45°)≈0.707, confirming modes differ
@pascal-roth pascal-roth changed the title ray caster to warp transition Transitions raycaster to warp backend Apr 10, 2026
@pascal-roth
pascal-roth marked this pull request as ready for review April 10, 2026 12:28
- test_frame_counter_increments_per_update: pass force_recompute=True
  to camera.update() so _update_buffers_impl is called each step and
  _frame actually increments (lazy invocation otherwise skips it)
- test_ray_caster_reset_resamples_drift: add assertion that drift values
  change after reset(), not just that they stay in range
- test_yaw_alignment_direction_unchanged: use non-zero local offset (+1,0,0)
  so yaw-only rotation of start positions is observable; world mode hits
  x≈1.0, yaw mode hits x≈cos(45°)≈0.707, confirming modes differ
@AntoineRichard

Copy link
Copy Markdown
Collaborator

PR Review: Transitions raycaster to warp backend

Branch: pascal/ray-caster-warp rebased onto latest develop
Scope: 21 files, +1660/−378 lines

Overall this is a well-executed migration. Clean kernel design with enable_backward=False, proper device=self._device on every wp.launch(), and consistent masked-update pattern. Pre-commit passes cleanly. The test additions are solid (alignment modes, depth clipping independence, sentinel patterns, quat_yaw_only regression). Below are the findings grouped by severity.


Critical Issues (4)

C1: Breaking API — raycast_dynamic_meshes_kernel signature changed

source/isaaclab/isaaclab/utils/warp/kernels.py:219

A new env_mask parameter was prepended to raycast_dynamic_meshes_kernel. Any user calling the kernel directly via wp.launch(raycast_dynamic_meshes_kernel, ...) will silently get wrong results because all arguments shift by one position. Warp kernels can't have optional parameters.

Suggestion: Create a new raycast_dynamic_meshes_masked_kernel (matching the approach taken for the single-mesh variant raycast_mesh_masked_kernel in this same PR) and leave the original signature unchanged. Update internal callers to use the new kernel.

C2: Breaking API — RayCasterData properties return wp.array instead of torch.Tensor

source/isaaclab/isaaclab/sensors/ray_caster/ray_caster_data.py

RayCasterData.pos_w, .quat_w, and .ray_hits_w now return wp.array. Any downstream code doing sensor.data.ray_hits_w[:, 2] will break. The built-in MDP functions were updated, but user code will not be.

Per AGENTS.md, breaking changes require a deprecation first, and Changed/Removed entries need migration guidance. The CHANGELOG entry should at minimum include something like:

Data properties pos_w, quat_w, and ray_hits_w on RayCasterData now return wp.array instead of torch.Tensor. Use wp.to_torch(sensor.data.pos_w) to obtain a PyTorch tensor.

C3: RayCasterCamera._debug_vis_callback passes inf values to visualizer

source/isaaclab/isaaclab/sensors/ray_caster/ray_caster_camera.py:440-445

The parent RayCaster._debug_vis_callback (lines 359-370) filters out inf values and guards against zero valid points. The camera subclass does neither — it passes self.ray_hits_w.view(-1, 3) directly to the visualizer, which will contain inf for missed rays.

C4: _apply_depth_clipping is a silent no-op for unrecognized config values

source/isaaclab/isaaclab/sensors/ray_caster/ray_caster_camera.py:451-475

The if/elif chain handles "max" and "zero" but any other string (e.g., typo "Max", "clip") silently does nothing. Literal["max", "zero", "none"] is not enforced at runtime by @configclass. Add an else: raise ValueError(...) branch.


Important Issues (11)

I1: Docstring says "z-component" but code reads x-component

source/isaaclab/isaaclab/sensors/ray_caster/kernels.py:203

compute_distance_to_image_plane_masked_kernel docstring: "This equals the z-component of the hit vector in the camera frame." Code at line 226 reads disp_cam[0] — the x-component. The inline comment at line 225 correctly says "x-component is the forward (depth) axis."

I2: Docstrings reference nonexistent return_distance parameter

source/isaaclab/isaaclab/utils/warp/kernels.py:259 and :176

Both raycast_dynamic_meshes_kernel and raycast_static_meshes_kernel document ray_distance as: "if return_distance is True. Otherwise, this array is not used." Neither kernel has a return_distance parameter — ray_distance is always written via wp.atomic_min.

I3: Config docstring claims nan for missed rays but actual value is +/-inf

source/isaaclab/isaaclab/sensors/ray_caster/ray_caster_camera_cfg.py:57

For depth_clipping_behavior == "none", the docstring says distance_to_image_plane returns nan. The kernel computes inf * direction_component which produces +/-inf, not nan. Users checking torch.isnan() as a miss sentinel will fail to detect missed rays.

I4: XformPrimView quaternion convention risk

source/isaaclab/isaaclab/sensors/ray_caster/ray_caster.py:273-276

XformPrimView.get_world_poses() returns (w,x,y,z) on the USD fallback path but (x,y,z,w) on the Fabric GPU path. The code concatenates [pos, quat] and views as wp.transformf (which expects (x,y,z,w)). This works on GPU/Fabric but would produce wrong orientations on CPU-only/no-Fabric. At minimum, add a comment documenting the assumption.

I5–I6: Dead code — unused torch views

ray_caster_data.py:23-25,69-71 and ray_caster.py:256-257

  • _pos_w_torch, _quat_w_torch, _ray_hits_w_torch in RayCasterData — created but never read.
  • _ray_starts_w_torch, _ray_directions_w_torch in base RayCaster._initialize_rays_impl — only the multi-mesh camera subclass creates its own versions.

I7: Per-step wp.to_torch() calls instead of cached views

ray_caster_camera.py:359-360, multi_mesh_ray_caster_camera.py:276,282,286,290

wp.to_torch() is called every step for _pos_w_wp, _quat_w_wp, _distance_to_image_plane_wp, _ray_distance, _ray_normal_w. While zero-copy, it creates a new Python wrapper each time. The existing warp migration pattern (contact sensor, rigid object) caches torch views at init.

I8: No guard for invalidated mesh views after simulation reset

source/isaaclab/isaaclab/sensors/ray_caster/multi_mesh_ray_caster.py:337-342

After _invalidate_initialize_callback sets _view = None, MultiMeshRayCaster.mesh_views (class-level dict) is not cleared. The next _update_mesh_transforms call would produce an unhelpful AttributeError.

I9: No test for raycast_dynamic_meshes_kernel env_mask behavior

source/isaaclab/isaaclab/utils/warp/kernels.py:219

Only the single-mesh raycast_mesh_masked_kernel is tested for env_mask. The multi-mesh kernel has fundamentally different logic (atomic_min for closest-hit, mesh pose transforms) and needs independent env_mask verification.

I10: No integration tests for MultiMeshRayCaster sensor class

source/isaaclab/isaaclab/sensors/ray_caster/multi_mesh_ray_caster.py

146 lines changed with an entirely new _update_buffers_impl. Existing tests only cover the low-level raycast_dynamic_meshes function, not the sensor class itself.

I11: Drift buffers use wp.from_torch(.contiguous()) instead of warp-primary pattern

source/isaaclab/isaaclab/sensors/ray_caster/ray_caster_camera.py:299-300

Comment says "zero-copy" but .contiguous() on a non-contiguous tensor would silently create a copy, breaking the shared-memory assumption. The parent RayCaster correctly uses warp-primary buffers with torch views. The camera subclass should follow the same pattern.


Suggestions

  • S1: Extract _env_mask_to_indices(env_mask) helper — the wp.to_torch(env_mask).nonzero(...).squeeze(-1) pattern is repeated 5 times across the sensor classes.
  • S2: Simplify _apply_depth_clipping to a single branch with computed fill_val instead of duplicated wp.launch calls.
  • S3: Standardize dummy buffer naming (_dummy_ray_distance vs _dummy_normal_w vs _dummy_face_id_w).
  • S4: Rename fill_vec3_inf_kernel → fill_vec3_2d_masked_kernel — name implies inf-only but parameter allows any value.
  • S5: Document mixed-type API on MultiMeshRayCasterData — parent docstring says "all properties return wp.array" but ray_mesh_ids is torch.Tensor.
  • S6: Add ray-miss edge case test for raycast_mesh_masked_kernel (rays pointing away from mesh).
  • S7: Add explicit type-contract assertions (isinstance(sensor.data.ray_hits_w, wp.array)).
  • S8: Add compute_distance_to_image_plane_masked_kernel unit test with known camera orientation.

Strengths

  • Clean kernel design with proper masking support and enable_backward=False
  • Thorough kernel-level tests for raycast_mesh_masked_kernel with all flag combinations
  • Strong alignment mode coverage (world/yaw/base) with geometrically precise expected values
  • Good end-to-end regression coverage via test_output_equal_to_usdcamera
  • Well-documented MRO bypass in MultiMeshRayCasterCamera._initialize_rays_impl
  • Depth clipping independence test verifying one output type's clipping doesn't corrupt the other
  • Pre-commit passes cleanly

- C1: Restore original raycast_dynamic_meshes_kernel (no env_mask);
  add raycast_dynamic_meshes_masked_kernel with env_mask for
  MultiMeshRayCaster. Update call-site to use masked variant.
- C3: Fix RayCasterCamera._debug_vis_callback to filter inf values
  and guard against zero valid points before calling visualize().
- C4: Add explicit elif/else branches to _apply_depth_clipping:
  "none" is a no-op, unknown values raise ValueError.
- I1: Fix "z-component" → "x-component" in
  compute_distance_to_image_plane_masked_kernel docstring.
- I2: Fix incorrect "return_distance" references in docstrings of
  raycast_static_meshes_kernel and raycast_dynamic_meshes_kernel.
- I3: Fix ray_caster_camera_cfg.py docstring: "nan" → "inf" for
  missed rays with depth_clipping_behavior="none"; fix missing quote.
- I4: Add comment about XformPrimView quaternion convention in
  _get_view_transforms_wp.
- I7: Cache wp.to_torch() views at init in RayCasterCamera to avoid
  per-step Python wrapper allocation.
- I8: Override _invalidate_initialize_callback in MultiMeshRayCaster
  to clear mesh_views on invalidation.
- Tests: fix test_ray_caster_reset_resamples_drift (call sensor.reset()
  explicitly after sim.reset()); fix test_set_intrinsic_matrices
  assertion to allow inf for missed rays with clipping="none".
Keep all HEAD improvements: warp kernel caching, masked kernels,
debug vis inf filtering, depth clipping validation, and drift test fix.
Adopt upstream version bump (4.6.2) and include new changelog entries.
@pascal-roth
pascal-roth requested a review from Mayankm96 as a code owner April 17, 2026 07:26
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Apr 17, 2026
@kellyguo11 kellyguo11 moved this to Ready in Isaac Lab Apr 17, 2026
@kellyguo11 kellyguo11 moved this from Ready to In review in Isaac Lab Apr 17, 2026
@kellyguo11

Copy link
Copy Markdown
Contributor

This will likely conflict with https://github.com/isaac-sim/IsaacLab/pull/5179/changes. we should coordinate which one gets in first.

@pascal-roth

Copy link
Copy Markdown
Collaborator Author

@AntoineRichard and @kellyguo11 -- should be good for another review

@pascal-roth

Copy link
Copy Markdown
Collaborator Author

This will likely conflict with https://github.com/isaac-sim/IsaacLab/pull/5179/changes. we should coordinate which one gets in first.

yes, that might clash, whatever is more ready should get in first

Add 17 pure-warp unit tests covering raycast_dynamic_meshes_kernel,
compute_distance_to_image_plane_masked_kernel, apply_depth_clipping,
apply_z_drift_kernel, and quat_yaw_only gimbal lock edge case.

Add 6 integration tests (require Isaac Sim) covering ArticulationView
and RigidBodyView transform paths, MultiMeshRayCaster env_mask,
MultiMeshRayCasterCamera set_intrinsic_matrices propagation, and
depth clipping ordering independence.

Fix _update_mesh_transforms in MultiMeshRayCaster which used naive
subtraction (pos_w -= pos_offset) instead of proper frame composition.
With non-identity orientation offsets the tracked mesh positions were
wrong. Now uses combine_frame_transforms matching the pattern used
throughout the codebase.

Fix migration guide dim ordering (num_meshes, num_envs, num_rays),
add MultiMeshRayCaster/Camera to warp backend migration table, and
correct ray_alignment="yaw" docstring to clarify only ray starts are
rotated.
@AntoineRichard

Copy link
Copy Markdown
Collaborator

I'd merge this one first. @pascal-roth I made some touch-ups, lmk when you had time to look at them!

# Conflicts:
#	source/isaaclab/config/extension.toml
#	source/isaaclab/docs/CHANGELOG.rst
#	source/isaaclab/isaaclab/sim/schemas/schemas_cfg.py
#	source/isaaclab/isaaclab/sim/spawners/materials/physics_materials.py
Comment thread source/isaaclab/docs/CHANGELOG.rst Outdated
Use ``isaaclab_physx.sim.spawners.materials`` instead.
* Removed :class:`DeformableObjectSpawnerCfg` from ``isaaclab.sim.spawners``. Use
``isaaclab_physx.sim.spawners.spawner_cfg.DeformableObjectSpawnerCfg`` instead.
>>>>>>> origin/develop

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.

lingering line from merge?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Weird that the pre-commit check didn't catch it....

@kellyguo11

Copy link
Copy Markdown
Contributor

could you also double check on the test failures? I though our CI should be more green now.

@pascal-roth

Copy link
Copy Markdown
Collaborator Author

cannot reproduce any of the test failures, will retrigger the tests

# Conflicts:
#	source/isaaclab/docs/CHANGELOG.rst
The RayCaster.meshes ClassVar cached warp meshes keyed only by prim
path.  When tests (or user code) create a RayCaster on CPU and later
on CUDA in the same process, the CUDA instance would reuse the
CPU-resident mesh, causing an illegal memory access on CI where
unified memory is not available.

Include the device string in the cache key so each device gets its own
mesh instance.
@AntoineRichard

Copy link
Copy Markdown
Collaborator

@pascal-roth Look at the last changes. Looks like it was a garbage collection issue on CI....

A stray >>>>>>> origin/develop line was left after a merge resolution,
causing the Sphinx doc build to fail (warnings treated as errors).
@pascal-roth

Copy link
Copy Markdown
Collaborator Author

amazing catch!

then we just have to document this as another breaking change as the classvar is changing

…warp

# Conflicts:
#	source/isaaclab/docs/CHANGELOG.rst
The cache key for the RayCaster.meshes ClassVar changed from
prim_path to (prim_path, device) to avoid cross-device reuse. Add
a migration guide subsection and a CHANGELOG entry with migration
guidance so external callers of the ClassVar can update.
@AntoineRichard
AntoineRichard merged commit 1c237bd into isaac-sim:develop Apr 22, 2026
27 of 31 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in Isaac Lab Apr 22, 2026
bdilinila pushed a commit to bdilinila/IsaacLab that referenced this pull request Apr 29, 2026
# Description

Transitions the raycaster to warp

## Type of change

- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

---------

Co-authored-by: Antoine Richard <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants