Skip to content

Commit 1497af1

Browse files
Adds mock interfaces to enable unit-testing and isolated benchmaking. (#4491)
# Description Add mock interfaces for PhysX's TensorAPI views as well as for the base asset/sensor abstractions. These are targeted for towards unit testing and benchmarking without starting kit. New Features: - MockArticulationData & MockArticulation - MockRigidObjectData & MockRigidObject - MockRigidObjectCollectionData & MockRigidObjectCollection - MockIMUData & MockIMU - MockFrameTransformerData & MockFrameTransformer - MockContactSensorData & MockContactSensor - MockRigidBodyView - Mock for physx.RigidBodyView - MockArticulationView - Mock for physx.ArticulationView - MockRigidContactView - Mock for physx.RigidContactView - Pre-configured factories for quadruped (12 DOFs) and humanoid (21 DOFs) robots - Patching utilities (context managers and decorators) for easy test setup - Tests to ensure coverage is correct ## Type of change - New feature (non-breaking change which adds functionality) - Documentation update ## 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 - [ ] 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 --------- Signed-off-by: Kelly Guo <[email protected]> Co-authored-by: Kelly Guo <[email protected]>
1 parent 34ac01a commit 1497af1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+10546
-132
lines changed

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ Table of Contents
9999
source/tutorials/index
100100
source/how-to/index
101101
source/overview/developer-guide/index
102+
source/testing/index
102103

103104

104105
.. toctree::

docs/source/testing/index.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.. _testing:
2+
3+
Testing
4+
=======
5+
6+
This section covers testing utilities and patterns for Isaac Lab development.
7+
8+
.. toctree::
9+
:maxdepth: 2
10+
11+
mock_interfaces

0 commit comments

Comments
 (0)