Skip to content

Fixes contact threshold when activating contact sensor - #3498

Merged
kellyguo11 merged 10 commits into
isaac-sim:mainfrom
kellyguo11:fix/contact-threshold
Nov 10, 2025
Merged

kellyguo11 merged 10 commits into
isaac-sim:mainfrom
kellyguo11:fix/contact-threshold

Conversation

@kellyguo11

Copy link
Copy Markdown
Contributor

Description

We were incorrectly passing in the activate contact sensor boolean as the threshold when setting up the contact sensor API, which caused the sensor threshold to always be 1 when the sensor is activated. The desired behavior should be defaulting to 0 threshold.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (existing functionality will not work without user modification)

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 bug Something isn't working isaac-lab Related to Isaac Lab team labels Sep 18, 2025
sem.GetSemanticDataAttr().Set(semantic_value)
# activate rigid body contact sensors
if hasattr(cfg, "activate_contact_sensors") and cfg.activate_contact_sensors:
schemas.activate_contact_sensors(prim_paths[0], cfg.activate_contact_sensors)

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.

Hmm this definitely changes behaviors. Can we update the changelog and extension.toml for this? We'll need to report this as a breaking change I feel.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ya I agree it'll be a breaking change, but hopefully the new behavior makes it more intuitive. we can also keep this change out of the 2.3 release for now to be safe.

@Mayankm96 Mayankm96 moved this to In review in Isaac Lab Oct 10, 2025
@Mayankm96

Copy link
Copy Markdown
Contributor

@greptileai

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

Greptile Overview

Greptile Summary

This PR fixes a critical bug in contact sensor activation where a boolean value was incorrectly passed as the force threshold parameter. The clone decorator in sim/utils.py was passing cfg.activate_contact_sensors (a boolean) to schemas.activate_contact_sensors(), which would be interpreted as 1.0 when True instead of the intended default of 0.0. This caused contact sensors to only report forces above 1.0, potentially missing low-force contact events. The fix removes this parameter to use the correct default threshold of 0.0, making sensors more sensitive to contact detection. The PR includes appropriate version bump to 0.48.0, changelog documentation, and a new test validating the USD threshold attribute.

PR Description Notes:

  • Contains a typo in CHANGELOG.rst: "sensititfy" should be "sensitivity" (line 16)
  • The PR description indicates the changelog was NOT updated, but the files show it was updated - the checklist may need correction

Potential Issues

Minor spelling error: The CHANGELOG.rst file contains "sensititfy" on line 16, which should be "sensitivity"

Behavioral change consideration: While the fix corrects unintended behavior (threshold of 1.0), users who have been working with the buggy behavior may notice that contact sensors now detect more contacts. However, this is the correct intended behavior and represents a bug fix rather than a breaking change.

Confidence Score

5/5 - This is a straightforward bug fix with clear cause, effect, and proper test coverage. The change is minimal, well-documented, and the test directly validates the fix at the USD API level.

4 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

Comment thread source/isaaclab/docs/CHANGELOG.rst Resolved
Signed-off-by: Mayank Mittal <[email protected]>

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

Greptile Overview

Greptile Summary

Fixes a bug where the boolean flag activate_contact_sensors was incorrectly passed as the threshold parameter to activate_contact_sensors(), causing the contact sensor threshold to be set to 1.0 (from boolean True) instead of the intended default of 0.0.

Key Changes:

  • Fixed the function call in utils.py:291 to not pass the boolean as a parameter, allowing the default threshold=0.0 to be used
  • Added a test to verify the USD threshold attribute is correctly set to 0.0
  • Updated CHANGELOG and version to document the fix and behavior change

Impact:
This fix increases contact detection sensitivity significantly - contacts will now be reported at any force level (0.0 threshold) rather than only when force exceeds 1.0.

Confidence Score: 4/5

  • This PR is safe to merge with minor documentation improvements recommended
  • The core fix is correct and straightforward, addressing a clear parameter passing bug. A test was added to verify the fix. Minor issues: typo in CHANGELOG and test could be more robust with explicit assertions
  • source/isaaclab/docs/CHANGELOG.rst (typo), source/isaaclab/test/sensors/test_contact_sensor.py (test robustness)

Important Files Changed

File Analysis

Filename Score Overview
source/isaaclab/isaaclab/sim/utils.py 5/5 Correctly removes incorrect boolean parameter being passed to activate_contact_sensors, allowing default threshold of 0.0
source/isaaclab/test/sensors/test_contact_sensor.py 4/5 Adds test to verify threshold is 0.0; however, test could silently pass if API is not present or attribute is invalid
source/isaaclab/docs/CHANGELOG.rst 4/5 Documents the fix and behavior change appropriately; contains typo 'sensititfy' (should be 'sensitivity')

Sequence Diagram

sequenceDiagram
    participant User as Asset Spawner
    participant Clone as clone() in utils.py
    participant Schemas as activate_contact_sensors()
    participant PhysX as PhysX Contact Report API
    
    User->>Clone: spawn asset with activate_contact_sensors=True
    
    rect rgb(255, 200, 200)
    note right of Clone: BEFORE (Bug)
    Clone->>Schemas: activate_contact_sensors(prim_path, True)
    note right of Schemas: threshold parameter receives<br/>boolean True (converts to 1.0)
    Schemas->>PhysX: Set threshold = 1.0
    note right of PhysX: Wrong! Contacts only<br/>reported above 1.0 force
    end
    
    rect rgb(200, 255, 200)
    note right of Clone: AFTER (Fixed)
    Clone->>Schemas: activate_contact_sensors(prim_path)
    note right of Schemas: Uses default threshold=0.0
    Schemas->>PhysX: Set threshold = 0.0
    note right of PhysX: Correct! All contacts<br/>reported (more sensitive)
    end
Loading

4 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

Comment thread source/isaaclab/docs/CHANGELOG.rst Outdated
Changed
^^^^^^^

* Detected contacts are reported with the threshold of 0.0 (instead of 1.0). This increases the sensititfy of contact

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.

syntax: typo: 'sensititfy' should be 'sensitivity'

Suggested change
* Detected contacts are reported with the threshold of 0.0 (instead of 1.0). This increases the sensititfy of contact
* Detected contacts are reported with the threshold of 0.0 (instead of 1.0). This increases the sensitivity of contact

Comment on lines +433 to +440
if prim.HasAPI(PhysxSchema.PhysxContactReportAPI):
cr_api = PhysxSchema.PhysxContactReportAPI.Get(stage, prim.GetPrimPath())
threshold_attr = cr_api.GetThresholdAttr()
if threshold_attr.IsValid():
threshold_value = threshold_attr.Get()
assert (
pytest.approx(threshold_value, abs=1e-6) == 0.0
), f"Expected USD threshold to be close to 0.0, but got {threshold_value}"

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.

style: test could silently pass if the prim doesn't have the Contact Report API or if the threshold attribute is invalid - consider adding assertions to ensure these conditions are met before checking the threshold value

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

Greptile Overview

Greptile Summary

Fixes critical bug where boolean True was incorrectly passed as the threshold parameter to activate_contact_sensors(), causing contact sensors to use threshold of 1.0 instead of the intended default 0.0.

Key Changes:

  • Removed erroneous boolean parameter in sim/utils.py:291 - now correctly uses default threshold
  • Added test coverage to verify USD attribute is set to 0.0
  • Documented behavior change in changelog with version bump to 0.48.0

Impact:
This fix significantly improves contact detection sensitivity, as sensors will now report all contacts (threshold 0.0) rather than requiring 1.0 force units before reporting.

Confidence Score: 4/5

  • Safe to merge with minor documentation fix needed
  • The core bug fix is correct and well-tested, but there's a typo in the changelog and the test could be more robust with assertions for API existence
  • CHANGELOG.rst needs typo fix; test_contact_sensor.py test could be strengthened with explicit assertions

Important Files Changed

File Analysis

Filename Score Overview
source/isaaclab/isaaclab/sim/utils.py 5/5 Removes incorrect boolean parameter pass to activate_contact_sensors(), allowing default threshold of 0.0 instead of 1.0
source/isaaclab/test/sensors/test_contact_sensor.py 4/5 Adds test to verify contact sensor threshold is 0.0; test has nested conditionals that could allow silent pass
source/isaaclab/docs/CHANGELOG.rst 4/5 Documents bug fix and behavior change; contains typo "sensititfy" that should be "sensitivity"

Sequence Diagram

sequenceDiagram
    participant User
    participant clone_func as clone() wrapper
    participant schemas as activate_contact_sensors()
    participant USD as PhysX USD API
    
    User->>clone_func: Create asset with cfg.activate_contact_sensors=True
    clone_func->>clone_func: Check hasattr(cfg, "activate_contact_sensors")
    
    alt Old Code (Bug)
        clone_func->>schemas: activate_contact_sensors(prim_path, True)
        Note over schemas: Boolean True cast to 1.0
        schemas->>USD: Set threshold = 1.0
        Note over USD: High threshold misses contacts!
    end
    
    alt New Code (Fixed)
        clone_func->>schemas: activate_contact_sensors(prim_path)
        Note over schemas: Uses default threshold=0.0
        schemas->>USD: Set threshold = 0.0
        Note over USD: Low threshold detects all contacts
    end
    
    schemas->>USD: Apply PhysxContactReportAPI
    schemas->>USD: Set sleep threshold = 0.0
    USD-->>schemas: Contact sensor configured
    schemas-->>clone_func: Activation complete
    clone_func-->>User: Asset created with correct threshold
Loading

4 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

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

Greptile Overview

Greptile Summary

This PR fixes a critical bug where contact sensor thresholds were incorrectly set to 1.0 instead of the intended 0.0. The root cause was passing the boolean cfg.activate_contact_sensors (which evaluates to 1.0 when True) as the threshold parameter to schemas.activate_contact_sensors() in sim/utils.py:291.

Key Changes:

  • Removed the erroneous boolean parameter from the activate_contact_sensors() call, allowing it to use the correct default threshold of 0.0
  • Added a comprehensive test that verifies the USD threshold attribute is set to 0.0
  • Updated changelog and bumped version to 0.48.0

Impact:
This fix increases contact detection sensitivity across all assets using activate_contact_sensors=True, which includes robots like Cassie, Unitree, ANYmal, and various factory/assembly tasks. The change is backward-compatible in terms of API but represents a behavioral change that improves contact detection accuracy.

Confidence Score: 4/5

  • This PR is safe to merge with minor documentation improvements needed
  • The core bug fix is correct and well-tested. The change is minimal and surgical, affecting only one line of code. A comprehensive test was added to prevent regression. Score reduced from 5 to 4 due to: (1) typo in changelog ('sensititfy'), and (2) test could be more robust by asserting that the API exists before checking threshold in the conditional blocks
  • Minor typo fix needed in source/isaaclab/docs/CHANGELOG.rst - otherwise no files require special attention

Important Files Changed

File Analysis

Filename Score Overview
source/isaaclab/isaaclab/sim/utils.py 5/5 Correctly fixed the bug by removing the erroneous boolean parameter passed to activate_contact_sensors()
source/isaaclab/test/sensors/test_contact_sensor.py 4/5 Added comprehensive test to verify contact sensor threshold is set to 0.0, though test could be more robust with additional assertions
source/isaaclab/docs/CHANGELOG.rst 4/5 Changelog entry clearly documents the fix, but contains a typo ('sensititfy' should be 'sensitivity')

Sequence Diagram

sequenceDiagram
    participant User as User Code
    participant Clone as clone() wrapper
    participant Schemas as schemas.activate_contact_sensors()
    participant USD as USD Stage
    participant API as PhysxContactReportAPI

    User->>Clone: spawn asset with activate_contact_sensors=True
    Clone->>Clone: check hasattr(cfg, "activate_contact_sensors")
    alt activate_contact_sensors is True
        Clone->>Schemas: activate_contact_sensors(prim_paths[0])
        Note over Clone,Schemas: BEFORE: incorrectly passed cfg.activate_contact_sensors (True/1.0)<br/>AFTER: correctly uses default threshold=0.0
        Schemas->>USD: Get prim at path
        Schemas->>USD: Iterate rigid body prims
        loop For each rigid body
            Schemas->>API: Apply PhysxContactReportAPI
            Schemas->>API: Set threshold attribute to 0.0
            Note over API: Contact threshold now correctly set to 0.0<br/>instead of incorrectly being 1.0
        end
    end
Loading

4 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

Comment thread source/isaaclab/docs/CHANGELOG.rst Resolved

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

Greptile Overview

Greptile Summary

Fixes critical bug where activate_contact_sensors() was incorrectly receiving a boolean True value as the threshold parameter, causing contact sensors to use a threshold of 1.0 instead of the intended 0.0 default.

Key Changes:

  • Fixed function call in utils.py:291 to call activate_contact_sensors(prim_paths[0]) without passing the boolean config value
  • Added test in test_contact_sensor.py to verify USD threshold attribute is correctly set to 0.0
  • Updated CHANGELOG to document the behavioral change and increased sensitivity
  • Version bumped to 0.48.0

Impact: This fix increases contact sensor sensitivity across all assets that use activate_contact_sensors=True, as contacts will now be reported at threshold 0.0 instead of 1.0. This is the intended behavior and makes contact detection more responsive.

Confidence Score: 5/5

  • This PR is safe to merge - it's a straightforward bug fix with proper test coverage
  • The fix is minimal, well-tested, and addresses a clear type mismatch bug. The function signature expects a float threshold (default 0.0) but was receiving a boolean True value, which Python implicitly converted to 1.0. Removing the erroneous parameter allows the correct default to be used. A new test validates the fix, and the changelog appropriately documents the behavioral change.
  • No files require special attention - all changes are straightforward

Important Files Changed

File Analysis

Filename Score Overview
source/isaaclab/config/extension.toml 5/5 Version bump from 0.47.11 to 0.48.0 - standard version increment for this bug fix release
source/isaaclab/docs/CHANGELOG.rst 4/5 Changelog updated with fix description and behavioral change note. Previous comment noted typo 'sensititfy' should be 'sensitivity'
source/isaaclab/isaaclab/sim/utils.py 5/5 Core bug fix: removed erroneous boolean parameter passed to activate_contact_sensors(), correctly defaulting threshold to 0.0 instead of 1.0
source/isaaclab/test/sensors/test_contact_sensor.py 4/5 New test validates contact sensor USD threshold is 0.0. Previous comment suggested adding assertions for API presence before checking threshold

Sequence Diagram

sequenceDiagram
    participant User as User/Config
    participant Clone as clone() in utils.py
    participant Schemas as schemas.activate_contact_sensors()
    participant PhysX as PhysX Contact Report API
    
    User->>Clone: Spawns asset with activate_contact_sensors=True
    Clone->>Clone: Check cfg.activate_contact_sensors
    alt Before Fix
        Clone->>Schemas: activate_contact_sensors(prim_path, True)
        Note over Schemas: Bug: boolean True cast to 1.0
        Schemas->>PhysX: SetThresholdAttr(1.0)
        Note over PhysX: Wrong: threshold = 1.0
    end
    alt After Fix
        Clone->>Schemas: activate_contact_sensors(prim_path)
        Note over Schemas: Uses default threshold=0.0
        Schemas->>PhysX: SetThresholdAttr(0.0)
        Note over PhysX: Correct: threshold = 0.0
    end
Loading

1 file reviewed, no comments

Edit Code Review Agent Settings | Greptile

@kellyguo11
kellyguo11 merged commit 7e8ebe6 into isaac-sim:main Nov 10, 2025
@github-project-automation github-project-automation Bot moved this from In review to Done in Isaac Lab Nov 10, 2025
koghalai123 pushed a commit to koghalai123/IsaacLab that referenced this pull request Dec 7, 2025
# Description

We were incorrectly passing in the activate contact sensor boolean as
the threshold when setting up the contact sensor API, which caused the
sensor threshold to always be 1 when the sensor is activated. The
desired behavior should be defaulting to 0 threshold.


## Type of change

- Bug fix (non-breaking change which fixes an issue)
- Breaking change (existing functionality will not work without user
modification)

## 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
- [ ] 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

<!--
As you go through the checklist above, you can mark something as done by
putting an x character in it

For example,
- [x] I have done this task
- [ ] I have not done this task
-->

---------

Signed-off-by: Mayank Mittal <[email protected]>
Signed-off-by: Kelly Guo <[email protected]>
Co-authored-by: Mayank Mittal <[email protected]>
Edify0991 pushed a commit to Edify0991/IsaacLab that referenced this pull request Jan 14, 2026
# Description

We were incorrectly passing in the activate contact sensor boolean as
the threshold when setting up the contact sensor API, which caused the
sensor threshold to always be 1 when the sensor is activated. The
desired behavior should be defaulting to 0 threshold.


## Type of change

- Bug fix (non-breaking change which fixes an issue)
- Breaking change (existing functionality will not work without user
modification)

## 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
- [ ] 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

<!--
As you go through the checklist above, you can mark something as done by
putting an x character in it

For example,
- [x] I have done this task
- [ ] I have not done this task
-->

---------

Signed-off-by: Mayank Mittal <[email protected]>
Signed-off-by: Kelly Guo <[email protected]>
Co-authored-by: Mayank Mittal <[email protected]>
csj-275 pushed a commit to csj-275/IsaacLab that referenced this pull request Jul 8, 2026
# Description

We were incorrectly passing in the activate contact sensor boolean as
the threshold when setting up the contact sensor API, which caused the
sensor threshold to always be 1 when the sensor is activated. The
desired behavior should be defaulting to 0 threshold.


## Type of change

- Bug fix (non-breaking change which fixes an issue)
- Breaking change (existing functionality will not work without user
modification)

## 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
- [ ] 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

<!--
As you go through the checklist above, you can mark something as done by
putting an x character in it

For example,
- [x] I have done this task
- [ ] I have not done this task
-->

---------

Signed-off-by: Mayank Mittal <[email protected]>
Signed-off-by: Kelly Guo <[email protected]>
Co-authored-by: Mayank Mittal <[email protected]>
StafaH added a commit to StafaH/IsaacLab that referenced this pull request Sep 24, 2026
- Merge frame-transformer, IMU, and PVA property tests that rebuilt the same
  scene into one driven-loop keeper per sensor, and drop the duplicate
  pendulum fixture.
- Delete joint-wrench tests that compared the sensor to the raw PhysX tensor
  it copies; the shared analytic frame contract keeps the physics proof.
- Fold view-caching counters into the fallback tests, sensor print checks
  into their keepers, and the isaac-sim#3498 threshold checks into the lazy contact
  test.
- Assert the signed friction direction and the exact ValueError messages for
  invalid contact data configs.
- Trim parametrize axes that select no distinct branch (dead contact
  processing flag, aged-clock and num_envs rows, device on bookkeeping).
- Remove the always-xfail and always-skipped cloner tests, assert the
  replicated body count, and fold env consistency into replicate-vs-USD.
- Remove Fabric view tests that re-assert shared contract tests through
  private matrices and selections.
- Remove renderer tests that restate a class property, a private table, a
  source grep, or mock pass-through, and cover the Isaac Sim 5.x output
  gate.
ooctipus added a commit that referenced this pull request Sep 25, 2026
# OVPhysX/OVRTX test suite: 11:29 → 6:32 (−43%)

The `isaaclab_ov` suite runs through `pytest tools` on the same machine
with a warm Warp cache, both device passes, and the `ov` extra. All 36
files pass.

| | `develop` | this PR |
|---|---:|---:|
| Suite wall time | 11:29 | **6:32** |
| Test functions | 473 | 345 |
| Test lines | 19,636 | 16,136 |

## What changed
The whole test surface was pruned with the `isaaclab-auditing-tests`
skill (#8007).

**Method.** Every test was marked keep, fix, merge or delete. Whenever a
deletion's keeper does not carry the assertions verbatim, a deliberate
production mutation proves the keeper fails on both devices. An
independent review then restored every gap it found. Only test files
changed.

- **Merged:**
  - frame transformer: 6 builds → 1
  - IMU/PVA sanity tests into the analytic keepers
- articulation tests that rebuilt a sibling's fixture (5 Anymal builds →
1)
  - `test_ovphysx_view.py` error micro-tests into parametrized keepers
- **Deleted:**
  - tests of the mock fixtures themselves
  - private ordering-state checks
  - WrenchComposer and effort-limit replays
  - joint-wrench identity copies
- contact tests that can never run (production raises
`NotImplementedError`)
  - OVRTX dtype × layout replays
- **Fixed tests that could not fail:**
- material randomization (the default values sat inside the sampling
ranges)
  - IMU partial reset
  - contact threshold (#3498)
  - `apply_joint_command`
  - reset tests
- **Test bug fixed:** a test mutated the shared `FRANKA_PANDA_CFG`, so
every later Panda test ran on a robot that went NaN and still passed.

## Product defect found (not fixed here)
- OVPhysX has no ArticulationRootAPI guard for rigid objects. Pinned
with a strict `xfail`.

## Release backport

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

## 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] My changes generate no new warnings
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

---------

Signed-off-by: Octi Zhang <[email protected]>
Co-authored-by: Octi Zhang <[email protected]>
ooctipus added a commit that referenced this pull request Sep 25, 2026
# PhysX test suite: 12:54 → 7:09 (−45%)

The `isaaclab_physx` suite runs through `pytest tools` on the same
machine with a warm Warp cache. 26/27 files pass. `test_spawn_meshes.py`
needs the `tetrahedralization` extra, which is missing locally and fails
identically on `develop`; it passes with the extra.

| | `develop` | this PR |
|---|---:|---:|
| Suite wall time | 12:54 | **7:09** |
| Test functions | 272 | 186 |
| Test lines | 15,744 | 12,350 |

## What changed
The whole test surface was pruned with the `isaaclab-auditing-tests`
skill (#8007).

**Method.** Every test was marked keep, fix, merge or delete. Whenever a
deletion's keeper does not carry the assertions verbatim, a deliberate
production mutation proves the keeper fails. An independent review then
restored every gap it found. Only test files changed.

- **Merged:**
  - frame transformer: one scene
  - IMU/PVA: one driven loop each (the analytic checks are kept)
  - Jacobian and mass-matrix tests into the link-origin contract
  - init smoke tests into their siblings
  - consistency tests into the write tests, which now use random states
- **Deleted:**
- joint-wrench tests that compared the sensor to the raw tensor it
copies; the shared analytic test is the keeper
  - Fabric tests that restated the shared FrameView contract
  - WrenchComposer replays
  - OSC tests covered by the controller suite
  - cloner tests that are always-xfail or always-skipped
- **Un-shadowed:** the Fabric view defined local tests with the same
names as the shared contract tests, which hid them. The shared tests now
run and catch a per-row scale bug the local copies missed.
- **Fixed tests that could not fail:**
  - external-force tests, where the robot was in free fall
  - `apply_joint_command` (inverted assertion)
  - reset tests
  - IMU stale-data (#4970)
  - `physx_replicate`, which was a non-strict xfail
  - contact threshold (#3498)
  - friction sign
- **Kept:** the RTX writer and visual-material tests, and IK tracking.
Their would-be keepers (the Kuka golden-image test and
`test_differential_ik.py`) never run in CI.

## Product defects found (not fixed here)
- `RigidObjectCollection.set_coms_index` raises `KeyError`.
- A full collection `reset()` leaves the wrench composers active.
- `FrameTransformer.__str__` swaps the frame count and the frame names.
- The Kuka visual-material golden-image test is excluded from CI.

## Release backport

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

## 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] My changes generate no new warnings
- [x] I have added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

---------

Signed-off-by: Octi Zhang <[email protected]>
Co-authored-by: Octi Zhang <[email protected]>
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

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants