Commit 1497af1
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
File tree
50 files changed
+10546
-132
lines changed- docs
- source/testing
- source
- isaaclab_contrib
- config
- docs
- isaaclab_physx
- config
- docs
- isaaclab_physx
- assets
- articulation
- rigid_object_collection
- rigid_object
- test
- mock_interfaces
- utils
- views
- test/test_mock_interfaces
- isaaclab
- config
- docs
- isaaclab
- devices/openxr
- test/mock_interfaces
- assets
- sensors
- utils
- test/test_mock_interfaces
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| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments