Commit 24f2cc0
authored
Fix OvPhysX 0.4 compatibility (#5545)
Summary
- Fixes OvPhysX backend compatibility with the upcoming ovphysx 0.4 API
by using `active_cuda_gpus` and explicit DirectGPU Carbonite settings
when supported, while preserving the older `gpu_index` constructor path.
- Fixes CPU-only OvPhysX tensor binding reads into GPU-backed
articulation buffers.
- Uses raw Warp buffers for OvPhysX articulation write views instead of
`ProxyArray` wrappers.
- Adds the `ovphysx` physics preset to the cartpole camera presets task.
Validation
- `./isaaclab.sh -f`
- `./isaaclab.sh -p -m pytest
source/isaaclab_ovphysx/test/assets/test_articulation_data.py
source/isaaclab_ovphysx/test/assets/test_articulation.py`
- `./isaaclab.sh -p scripts/reinforcement_learning/rsl_rl/train.py
--task Isaac-Cartpole-Direct-v0 --num_envs 64 --max_iterations 2
--headless presets=ovphysx`
- `./isaaclab.sh -p scripts/reinforcement_learning/rsl_rl/train.py
--task Isaac-Ant-Direct-v0 --num_envs 64 --max_iterations 2 --headless
presets=ovphysx`
- `./isaaclab.sh -p scripts/reinforcement_learning/rsl_rl/train.py
--task Isaac-Humanoid-Direct-v0 --num_envs 64 --max_iterations 2
--headless presets=ovphysx`
- `./isaaclab.sh -p scripts/reinforcement_learning/rl_games/train.py
--task=Isaac-Cartpole-Camera-Presets-Direct-v0 --num_envs=32
--max_iterations=2 --headless --enable_cameras
presets=ovphysx,ovrtx_renderer,rgb`
# Description
This PR fixes several small IsaacLab-side issues needed for the OvPhysX
backend to run the supported direct cartpole, ant, and humanoid tasks
with the upcoming ovphysx 0.4 wheel. It also enables the cartpole camera
presets task to select the `ovphysx` physics preset.
The OvPhysX manager now detects the new constructor surface and passes
explicit DirectGPU settings for GPU simulations. Older public wheels
that still use `gpu_index` keep the previous constructor path.
Fixes # (not applicable)
## Type of change
- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)
## Screenshots
Not applicable.
## 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 added a changelog fragment under
`source/<pkg>/changelog.d/` for every touched package (do **not** edit
`CHANGELOG.rst` or bump `extension.toml` — CI handles that)
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there1 parent e15b1d0 commit 24f2cc0
10 files changed
Lines changed: 74 additions & 9 deletions
File tree
- source
- isaaclab_ovphysx
- changelog.d
- isaaclab_ovphysx
- assets/articulation
- physics
- test/assets
- isaaclab_tasks
- changelog.d
- isaaclab_tasks/direct/cartpole
- isaaclab
- changelog.d
- isaaclab/sensors
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1759 | 1759 | | |
1760 | 1760 | | |
1761 | 1761 | | |
1762 | | - | |
| 1762 | + | |
1763 | 1763 | | |
1764 | 1764 | | |
1765 | 1765 | | |
| |||
1780 | 1780 | | |
1781 | 1781 | | |
1782 | 1782 | | |
1783 | | - | |
| 1783 | + | |
1784 | 1784 | | |
1785 | 1785 | | |
1786 | | - | |
| 1786 | + | |
1787 | 1787 | | |
1788 | 1788 | | |
1789 | 1789 | | |
| |||
Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1684 | 1684 | | |
1685 | 1685 | | |
1686 | 1686 | | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
1687 | 1691 | | |
1688 | 1692 | | |
1689 | 1693 | | |
1690 | | - | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
1691 | 1705 | | |
1692 | 1706 | | |
1693 | 1707 | | |
| |||
1696 | 1710 | | |
1697 | 1711 | | |
1698 | 1712 | | |
1699 | | - | |
| 1713 | + | |
1700 | 1714 | | |
1701 | 1715 | | |
1702 | 1716 | | |
| |||
1706 | 1720 | | |
1707 | 1721 | | |
1708 | 1722 | | |
1709 | | - | |
| 1723 | + | |
1710 | 1724 | | |
1711 | 1725 | | |
1712 | 1726 | | |
| |||
1716 | 1730 | | |
1717 | 1731 | | |
1718 | 1732 | | |
1719 | | - | |
| 1733 | + | |
1720 | 1734 | | |
1721 | 1735 | | |
1722 | 1736 | | |
| |||
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
202 | 203 | | |
203 | 204 | | |
204 | 205 | | |
205 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
206 | 223 | | |
207 | 224 | | |
208 | 225 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
0 commit comments