Skip to content

Enable OVPhysX shape-material test via OvPhysxView - #6239

Merged
AntoineRichard merged 1 commit into
isaac-sim:developfrom
AntoineRichard:antoiner/feat/ovphysx_shape_materials
Jul 7, 2026
Merged

AntoineRichard merged 1 commit into
isaac-sim:developfrom
AntoineRichard:antoiner/feat/ovphysx_shape_materials

Conversation

@AntoineRichard

Copy link
Copy Markdown
Collaborator

Stacked on #6225 (OVPhysX Articulation → OvPhysxView), which is stacked on #6224 (OvPhysxView). Review/merge those first — the diff here collapses to a single commit once they land.

What

The ovphysx wheel now exposes per-collision-shape material as the ARTICULATION_SHAPE_FRICTION_AND_RESTITUTION / RIGID_BODY_SHAPE_FRICTION_AND_RESTITUTION tensor types. This closes the gap that kept test_set_material_properties xfailed: the test had been written against the PhysX-only root_view.get_material_properties() / set_material_properties() / max_shapes view API, which OvPhysxView does not provide.

  • Add tensor_types aliases SHAPE_FRICTION_AND_RESTITUTION and RIGID_BODY_SHAPE_FRICTION_AND_RESTITUTION, guarded with try/except AttributeError so the module stays import-safe against older wheels.
  • Rewrite test_set_material_properties to read/write the material through OvPhysxView.get_attribute / set_attribute on the new tensor type. The per-articulation shape count is derived from the binding shape [N, S, 3] ([static_friction, dynamic_friction, restitution]); the test skips on wheels that lack the type. The now-unused _MATERIAL_GAP_REASON is removed.

Verification

The material binding is device-resident (it follows the simulation device). The set → step → read round-trip passes on both cpu and cuda:0 for num_articulations 1 and 2.

@greptile-apps

greptile-apps Bot commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR introduces OvPhysxView, a string-keyed binding manager over OVPhysX TensorBinding handles, then migrates the Articulation asset and ArticulationData container to use it in place of the raw dict[TensorType, TensorBinding]. It also adds SHAPE_FRICTION_AND_RESTITUTION / RIGID_BODY_SHAPE_FRICTION_AND_RESTITUTION tensor-type aliases and rewrites test_set_material_properties to exercise the new round-trip, removing the long-standing xfail.

  • OvPhysxView provides string- or enum-keyed get_attribute / read_into / set_attribute with explicit device, dtype, and contiguity guards; a float32 reinterpret cache keeps the wheel's object-identity read cache warm across simulation steps; and eager/lazy binding creation with try_binding_for / binding_for.
  • Articulation replaces self._bindings: dict with self._root_view: OvPhysxView | None, delegating all tensor reads/writes through the view; ArticulationData is updated in parallel, collapsing three separate read helpers into a single _read_binding_into_buf alias.
  • A new MockOvPhysxView test double and a 40-test test_ovphysx_view.py suite cover construction, cache-warmth, device policy, dtype safety, key aliases, and adversarial inputs.

Confidence Score: 4/5

Safe to merge; all three findings are in annotation accuracy or the mock's fidelity to the real interface, not in the simulation data path.

The OvPhysxView core and the Articulation/ArticulationData migration are well-structured and well-tested. Two issues sit in the MockOvPhysxView test double: has_attribute/__contains__ checks live-binding availability instead of name validity (diverging from the real view's vocabulary-check contract), and _resolve will raise StopIteration rather than a meaningful error when _bindings is empty. The third issue is that Articulation.root_view's return annotation says OvPhysxView while the backing field is OvPhysxView | None until _initialize_impl runs. None of these affect the simulation data path.

mock_ovphysx_bindings.py (MockOvPhysxView semantics) and articulation.py (root_view type annotation)

Important Files Changed

Filename Overview
source/isaaclab_ovphysx/isaaclab_ovphysx/sim/views/ovphysx_view.py New OvPhysxView binding manager — string-keyed, device-guarded, read-cache-warm; well-tested with 40+ unit tests; no logic issues found.
source/isaaclab_ovphysx/isaaclab_ovphysx/assets/articulation/articulation.py Migrated all binding reads/writes to OvPhysxView; root_view return type annotation says OvPhysxView but can return None before initialization.
source/isaaclab_ovphysx/isaaclab_ovphysx/assets/articulation/articulation_data.py Accepts OvPhysxView instead of dict; collapses _read_transform_binding/_read_spatial_vector_binding/_read_scalar_binding into a single _read_binding_into_buf via aliasing; clean migration.
source/isaaclab_ovphysx/isaaclab_ovphysx/test/mock_interfaces/views/mock_ovphysx_bindings.py New MockOvPhysxView test double has two semantic issues: has_attribute/__contains__ checks binding availability instead of name validity (diverges from real view), and _resolve raises StopIteration on an empty _bindings dict.
source/isaaclab_ovphysx/isaaclab_ovphysx/tensor_types.py Adds SHAPE_FRICTION_AND_RESTITUTION and RIGID_BODY_SHAPE_FRICTION_AND_RESTITUTION aliases behind try/except AttributeError guards; consistent with existing module pattern.
source/isaaclab_ovphysx/test/assets/test_articulation.py Removes xfail from test_set_material_properties, rewrites it to use OvPhysxView.get_attribute/set_attribute on SHAPE_FRICTION_AND_RESTITUTION; adds runtime skip guard for older wheels.
source/isaaclab_ovphysx/test/sim/test_ovphysx_view.py New 587-line test suite covering OvPhysxView construction, read/write dispatch, device policy, dtype safety, cache-warmth, key aliases, and adversarial inputs; comprehensive.
source/isaaclab_ovphysx/test/assets/test_articulation_helpers.py Helper updated to inject bindings.view (MockOvPhysxView) as _root_view instead of raw _bindings dict; correct migration.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["Articulation._initialize_impl()"] --> B["OvPhysxView(physx, pattern, device)"]
    B --> C["try_binding_for(tt) for tt in eager_types"]
    C --> D["_binding(tt) → physx.create_tensor_binding(...)"]
    D -->|"count == 0"| E["AttributeUnavailable → skip / None"]
    D -->|"count > 0"| F["Cache binding in _bindings[tt]"]
    F --> G["Metadata: count, dof_count, body_count…"]

    G --> H["ArticulationData(view, device)"]

    subgraph "Step: write path"
        I["set_attribute(tt, values, indices, mask)"]
        I --> J{"read-only?"}
        J -->|yes| K["ReadOnlyAttribute raised"]
        J -->|no| L["_binding(tt) → cached or created"]
        L --> M{"device match?"}
        M -->|no| N["DeviceMismatch raised"]
        M -->|yes| O["_as_binding_view(values) → float32 reinterpret"]
        O --> P["binding.write(view, indices, mask)"]
    end

    subgraph "Step: read path"
        Q["read_into(tt, dst)"]
        Q --> R["_binding(tt)"]
        R --> S["_read_view(dst, binding) — cache by id(dst)"]
        S --> T["binding.read(float32_reinterpret)"]
    end

    H --> I
    H --> Q
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
    A["Articulation._initialize_impl()"] --> B["OvPhysxView(physx, pattern, device)"]
    B --> C["try_binding_for(tt) for tt in eager_types"]
    C --> D["_binding(tt) → physx.create_tensor_binding(...)"]
    D -->|"count == 0"| E["AttributeUnavailable → skip / None"]
    D -->|"count > 0"| F["Cache binding in _bindings[tt]"]
    F --> G["Metadata: count, dof_count, body_count…"]

    G --> H["ArticulationData(view, device)"]

    subgraph "Step: write path"
        I["set_attribute(tt, values, indices, mask)"]
        I --> J{"read-only?"}
        J -->|yes| K["ReadOnlyAttribute raised"]
        J -->|no| L["_binding(tt) → cached or created"]
        L --> M{"device match?"}
        M -->|no| N["DeviceMismatch raised"]
        M -->|yes| O["_as_binding_view(values) → float32 reinterpret"]
        O --> P["binding.write(view, indices, mask)"]
    end

    subgraph "Step: read path"
        Q["read_into(tt, dst)"]
        Q --> R["_binding(tt)"]
        R --> S["_read_view(dst, binding) — cache by id(dst)"]
        S --> T["binding.read(float32_reinterpret)"]
    end

    H --> I
    H --> Q
Loading

Comments Outside Diff (3)

  1. source/isaaclab_ovphysx/isaaclab_ovphysx/assets/articulation/articulation.py, line 108 (link)

    P2 root_view return type is inaccurate — can return None

    _root_view is initialized to None and only set in _initialize_impl, but the property is annotated -> OvPhysxView. Any caller (or type-checker) relying on this annotation would not expect None, leading to a confusing AttributeError: 'NoneType' object has no attribute 'get_attribute' if the property is accessed before initialization. The annotation (and the docstring) should reflect the None possibility, or the property should raise a clear RuntimeError on uninitialized access rather than silently returning None.

  2. source/isaaclab_ovphysx/isaaclab_ovphysx/test/mock_interfaces/views/mock_ovphysx_bindings.py, line 2194-2200 (link)

    P2 has_attribute / __contains__ semantics diverge from the real OvPhysxView

    The real OvPhysxView.has_attribute is a vocabulary check — it returns True for any valid TensorType name regardless of whether a binding has been instantiated. The mock's version returns True only when there is a live binding in self._bindings. This means "articulation_dof_stiffness" in mock_view returns False (no binding created yet) where the real view returns True, and any test that reads in view or view.has_attribute(...) will see different results against the mock versus the real object. The mock's method matches the semantics of try_binding_for(name) is not None, not has_attribute.

  3. source/isaaclab_ovphysx/isaaclab_ovphysx/test/mock_interfaces/views/mock_ovphysx_bindings.py, line 2147-2154 (link)

    P2 _resolve raises StopIteration on an empty bindings dict

    When self._bindings is empty and name is a string, next(iter(self._bindings)) raises StopIteration. This would surface as a confusing error from any of the public methods (get_attribute, has_attribute, binding_for, etc.) when called before any binding is registered. While MockOvPhysxView is always constructed with a non-empty dict in current tests, storing the enum class separately (e.g. as a constructor argument alongside bindings) would make the implementation robust to this case.

Reviews (1): Last reviewed commit: "test(ovphysx): enable shape-material tes..." | Re-trigger Greptile

The ovphysx wheel now exposes per-shape material as the
ARTICULATION_SHAPE_FRICTION_AND_RESTITUTION / RIGID_BODY_SHAPE_FRICTION_AND_RESTITUTION
tensor types, closing the gap that kept test_set_material_properties xfailed.

- Add tensor_types aliases SHAPE_FRICTION_AND_RESTITUTION and
  RIGID_BODY_SHAPE_FRICTION_AND_RESTITUTION (guarded for older wheels).
- Rewrite test_set_material_properties to read/write the material through
  OvPhysxView.get_attribute / set_attribute on the new tensor type instead of
  the PhysX-only root_view.get/set_material_properties / max_shapes API; derive
  the per-articulation shape count from the binding shape [N, S, 3] and skip on
  wheels that lack the type. Drop the now-unused gap reason.

The binding is device-resident; verified the set -> step -> read round-trip on
both cpu and cuda:0.
@AntoineRichard
AntoineRichard force-pushed the antoiner/feat/ovphysx_shape_materials branch from 13c58a1 to e86997f Compare July 2, 2026 15:01
@AntoineRichard
AntoineRichard merged commit b77fe5b into isaac-sim:develop Jul 7, 2026
37 checks passed
AntoineRichard added a commit that referenced this pull request Jul 8, 2026
…6241)

> **Stacked on #6227** (OVPhysX `RigidObjectCollection` →
`OvPhysxView`), which is stacked on #6224 (`OvPhysxView`). Review/merge
those first. Sibling of #6239 (articulation) and #6240 (rigid object).

## What

The ovphysx wheel now exposes per-collision-shape rigid-body material as
the `RIGID_BODY_SHAPE_FRICTION_AND_RESTITUTION` tensor type. This closes
the gap that kept the collection's `test_set_material_properties`
`xfail`ed (it was an empty `NotImplementedError` stub written against
the PhysX-only `root_view.get/set_material_properties()` API).

- Add the `tensor_types` alias
`RIGID_BODY_SHAPE_FRICTION_AND_RESTITUTION`, guarded with `try/except
AttributeError` (shared with the sibling material PRs; documented
there).
- Implement `test_set_material_properties`, mirroring the PhysX backend
but reading/writing the material through `OvPhysxView.get_attribute` /
`set_attribute`. The collection's fused binding is body-major flat, so
data `[num_envs, num_cubes, 3]` is mapped to/from the view layout with
`reshape_data_to_view_3d` and its inverse.

## Verification

OVPhysX runs the PhysX solver. The material round-trip passes on both
`cpu` and `cuda:0` for `num_envs` 1/3 × `num_cubes` 1/2.

The changelog fragment is a `.skip` because the only user-facing
addition (the alias) is documented by the sibling material PRs; this PR
is test enablement.
AntoineRichard added a commit that referenced this pull request Jul 8, 2026
> **Stacked on #6226** (OVPhysX `RigidObject` → `OvPhysxView`), which is
stacked on #6224 (`OvPhysxView`). Review/merge those first — the diff
here collapses to a single commit once they land. Sibling of #6239 (the
articulation equivalent).

## What

The ovphysx wheel now exposes per-collision-shape rigid-body material as
the `RIGID_BODY_SHAPE_FRICTION_AND_RESTITUTION` tensor type (shape `[N,
S, 3]` = static friction, dynamic friction, restitution). This closes
the gap that kept **five** rigid-object material tests `xfail`ed — they
were empty `NotImplementedError` stubs written against the PhysX-only
`root_view.get/set_material_properties()` / `max_shapes` view API.

- Add the `tensor_types` alias
`RIGID_BODY_SHAPE_FRICTION_AND_RESTITUTION`, guarded with `try/except
AttributeError` so the module stays import-safe against older wheels.
- Implement, mirroring the PhysX backend but reading/writing the
material through `OvPhysxView.get_attribute` / `set_attribute`:
- `test_rigid_body_set_material_properties` and
`test_set_material_properties_via_view` — set/get round-trip.
- `test_rigid_body_no_friction`, `test_rigid_body_with_static_friction`,
`test_rigid_body_with_restitution` — physical-behavior tests.
- Ground planes use the solver-common `RigidBodyMaterialBaseCfg`; masses
come from `data.body_mass`. The no-friction test settles the cube and
uses zero restitution so the resting contact is clean before asserting
the sliding velocity is preserved.

## Verification

OVPhysX runs the PhysX solver, so the physical tests use the PhysX
reference tolerances. All five pass on both `cpu` and `cuda:0` for
`num_cubes` 1 and 2. Full `test_rigid_object.py` is green (53 passed on
cpu, no regressions).
AntoineRichard added a commit that referenced this pull request Jul 8, 2026
> **Stacked on #6239 (articulation material) and #6240 (rigid-object
material)** — this branch merges both so the MDP term has
`Articulation.root_view` + `RigidObject.root_view` (the #6225/#6226
migrations) and the material aliases. Review/merge those (and their
bases #6224/#6225/#6226) first; the diff here collapses to a single
commit once they land. (#6241/collection is **not** needed — this MDP
term targets `RigidObject`/`Articulation`, not collections.)

## What

`randomize_rigid_body_material` previously **no-op'd on the OVPhysX
backend** (the wheel lacked a material binding). The wheel now exposes
per-shape material as `*_SHAPE_FRICTION_AND_RESTITUTION`, so this
replaces the no-op with a real implementation.

OVPhysX runs the PhysX solver, so the new
`_RandomizeRigidBodyMaterialOvPhysx`:
- mirrors the **PhysX bucket approach** (PhysX's 64000 unique-material
limit applies): pre-samples `num_buckets` materials and randomly assigns
them to shapes;
- writes per-shape `(static_friction, dynamic_friction, restitution)`
through the asset's `OvPhysxView` (`set_attribute` on
`SHAPE_FRICTION_AND_RESTITUTION` for articulations,
`RIGID_BODY_SHAPE_FRICTION_AND_RESTITUTION` for rigid objects),
read-modify-writing the full `[N, S, 3]` buffer so non-selected envs are
preserved.

### Limitation
Randomizes **all shapes** only. Per-body selection
(`asset_cfg.body_ids`) raises `NotImplementedError` — the ovphysx wheel
exposes no per-body shape counts (unlike PhysX's
`link_physx_view.max_shapes` / Newton's `num_shapes_per_body`), so
body→shape ranges can't be indexed.

## Verification

New real-backend test (`test_randomize_rigid_body_material_mdp.py`)
drives the implementation against an OVPhysX `RigidObject`: it asserts
the written friction/restitution land within the sampled ranges, and
that a per-body selection fails loud. Passes on both `cpu` and `cuda:0`.
The PhysX and Newton paths are untouched.
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
> **Stacked on isaac-sim#6225** (OVPhysX `Articulation` → `OvPhysxView`), which
is stacked on isaac-sim#6224 (`OvPhysxView`). Review/merge those first — the diff
here collapses to a single commit once they land.

## What

The ovphysx wheel now exposes per-collision-shape material as the
`ARTICULATION_SHAPE_FRICTION_AND_RESTITUTION` /
`RIGID_BODY_SHAPE_FRICTION_AND_RESTITUTION` tensor types. This closes
the gap that kept `test_set_material_properties` `xfail`ed: the test had
been written against the PhysX-only
`root_view.get_material_properties()` / `set_material_properties()` /
`max_shapes` view API, which `OvPhysxView` does not provide.

- Add `tensor_types` aliases `SHAPE_FRICTION_AND_RESTITUTION` and
`RIGID_BODY_SHAPE_FRICTION_AND_RESTITUTION`, guarded with `try/except
AttributeError` so the module stays import-safe against older wheels.
- Rewrite `test_set_material_properties` to read/write the material
through `OvPhysxView.get_attribute` / `set_attribute` on the new tensor
type. The per-articulation shape count is derived from the binding shape
`[N, S, 3]` (`[static_friction, dynamic_friction, restitution]`); the
test skips on wheels that lack the type. The now-unused
`_MATERIAL_GAP_REASON` is removed.

## Verification

The material binding is device-resident (it follows the simulation
device). The `set → step → read` round-trip passes on both `cpu` and
`cuda:0` for `num_articulations` 1 and 2.
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
…saac-sim#6241)

> **Stacked on isaac-sim#6227** (OVPhysX `RigidObjectCollection` →
`OvPhysxView`), which is stacked on isaac-sim#6224 (`OvPhysxView`). Review/merge
those first. Sibling of isaac-sim#6239 (articulation) and isaac-sim#6240 (rigid object).

## What

The ovphysx wheel now exposes per-collision-shape rigid-body material as
the `RIGID_BODY_SHAPE_FRICTION_AND_RESTITUTION` tensor type. This closes
the gap that kept the collection's `test_set_material_properties`
`xfail`ed (it was an empty `NotImplementedError` stub written against
the PhysX-only `root_view.get/set_material_properties()` API).

- Add the `tensor_types` alias
`RIGID_BODY_SHAPE_FRICTION_AND_RESTITUTION`, guarded with `try/except
AttributeError` (shared with the sibling material PRs; documented
there).
- Implement `test_set_material_properties`, mirroring the PhysX backend
but reading/writing the material through `OvPhysxView.get_attribute` /
`set_attribute`. The collection's fused binding is body-major flat, so
data `[num_envs, num_cubes, 3]` is mapped to/from the view layout with
`reshape_data_to_view_3d` and its inverse.

## Verification

OVPhysX runs the PhysX solver. The material round-trip passes on both
`cpu` and `cuda:0` for `num_envs` 1/3 × `num_cubes` 1/2.

The changelog fragment is a `.skip` because the only user-facing
addition (the alias) is documented by the sibling material PRs; this PR
is test enablement.
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
…ac-sim#6240)

> **Stacked on isaac-sim#6226** (OVPhysX `RigidObject` → `OvPhysxView`), which is
stacked on isaac-sim#6224 (`OvPhysxView`). Review/merge those first — the diff
here collapses to a single commit once they land. Sibling of isaac-sim#6239 (the
articulation equivalent).

## What

The ovphysx wheel now exposes per-collision-shape rigid-body material as
the `RIGID_BODY_SHAPE_FRICTION_AND_RESTITUTION` tensor type (shape `[N,
S, 3]` = static friction, dynamic friction, restitution). This closes
the gap that kept **five** rigid-object material tests `xfail`ed — they
were empty `NotImplementedError` stubs written against the PhysX-only
`root_view.get/set_material_properties()` / `max_shapes` view API.

- Add the `tensor_types` alias
`RIGID_BODY_SHAPE_FRICTION_AND_RESTITUTION`, guarded with `try/except
AttributeError` so the module stays import-safe against older wheels.
- Implement, mirroring the PhysX backend but reading/writing the
material through `OvPhysxView.get_attribute` / `set_attribute`:
- `test_rigid_body_set_material_properties` and
`test_set_material_properties_via_view` — set/get round-trip.
- `test_rigid_body_no_friction`, `test_rigid_body_with_static_friction`,
`test_rigid_body_with_restitution` — physical-behavior tests.
- Ground planes use the solver-common `RigidBodyMaterialBaseCfg`; masses
come from `data.body_mass`. The no-friction test settles the cube and
uses zero restitution so the resting contact is clean before asserting
the sliding velocity is preserved.

## Verification

OVPhysX runs the PhysX solver, so the physical tests use the PhysX
reference tolerances. All five pass on both `cpu` and `cuda:0` for
`num_cubes` 1 and 2. Full `test_rigid_object.py` is green (53 passed on
cpu, no regressions).
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
…#6243)

> **Stacked on isaac-sim#6239 (articulation material) and isaac-sim#6240 (rigid-object
material)** — this branch merges both so the MDP term has
`Articulation.root_view` + `RigidObject.root_view` (the isaac-sim#6225/isaac-sim#6226
migrations) and the material aliases. Review/merge those (and their
bases isaac-sim#6224/isaac-sim#6225/isaac-sim#6226) first; the diff here collapses to a single
commit once they land. (isaac-sim#6241/collection is **not** needed — this MDP
term targets `RigidObject`/`Articulation`, not collections.)

## What

`randomize_rigid_body_material` previously **no-op'd on the OVPhysX
backend** (the wheel lacked a material binding). The wheel now exposes
per-shape material as `*_SHAPE_FRICTION_AND_RESTITUTION`, so this
replaces the no-op with a real implementation.

OVPhysX runs the PhysX solver, so the new
`_RandomizeRigidBodyMaterialOvPhysx`:
- mirrors the **PhysX bucket approach** (PhysX's 64000 unique-material
limit applies): pre-samples `num_buckets` materials and randomly assigns
them to shapes;
- writes per-shape `(static_friction, dynamic_friction, restitution)`
through the asset's `OvPhysxView` (`set_attribute` on
`SHAPE_FRICTION_AND_RESTITUTION` for articulations,
`RIGID_BODY_SHAPE_FRICTION_AND_RESTITUTION` for rigid objects),
read-modify-writing the full `[N, S, 3]` buffer so non-selected envs are
preserved.

### Limitation
Randomizes **all shapes** only. Per-body selection
(`asset_cfg.body_ids`) raises `NotImplementedError` — the ovphysx wheel
exposes no per-body shape counts (unlike PhysX's
`link_physx_view.max_shapes` / Newton's `num_shapes_per_body`), so
body→shape ranges can't be indexed.

## Verification

New real-backend test (`test_randomize_rigid_body_material_mdp.py`)
drives the implementation against an OVPhysX `RigidObject`: it asserts
the written friction/restitution land within the sampled ranges, and
that a per-body selection fails loud. Passes on both `cpu` and `cuda:0`.
The PhysX and Newton paths are untouched.
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

None yet

Development

Successfully merging this pull request may close these issues.

2 participants