Commit 1bbcca3
committed
Align OvPhysxSceneDataBackend parity with PhysX/Newton
Address review feedback on PR isaac-sim#5589:
- Drop the :class: cross-ref to PhysxSceneDataBackend; the symbol is not
re-exported from isaaclab_physx.physics, so the Sphinx target violated
AGENTS.md's public-API-path rule. Replaced with a plain literal name.
- Document explicitly why this backend uses an explicit setup(physx,
stage, device) call instead of PhysX's simulation_view property setter.
The ovphysx wheel exposes a physx + stage pair rather than a single
SimulationView, so a property-setter shape would have had to bundle
the two or fire on the second assignment.
- Plumb device through setup() instead of mutating the backend's private
_device attribute from _warmup_and_load. The field is only used during
binding allocation, so it doesn't need to persist on the instance.
- Strip "[OvPhysxSceneDataBackend]" prefixes from logger.warning /
logger.debug calls to match PhysX/Newton convention; the logger name
already disambiguates.
Tests updated to pass "cpu" as the new setup() device argument and drop
the now-dead ``b._device = "cpu"`` lines.1 parent d8f04d8 commit 1bbcca3
2 files changed
Lines changed: 25 additions & 33 deletions
File tree
- source/isaaclab_ovphysx
- isaaclab_ovphysx/physics
- test/physics
Lines changed: 22 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
53 | 61 | | |
54 | 62 | | |
55 | 63 | | |
| |||
64 | 72 | | |
65 | 73 | | |
66 | 74 | | |
67 | | - | |
68 | 75 | | |
69 | 76 | | |
70 | 77 | | |
| |||
79 | 86 | | |
80 | 87 | | |
81 | 88 | | |
82 | | - | |
| 89 | + | |
83 | 90 | | |
84 | 91 | | |
85 | 92 | | |
86 | 93 | | |
87 | 94 | | |
| 95 | + | |
88 | 96 | | |
89 | 97 | | |
90 | 98 | | |
| |||
110 | 118 | | |
111 | 119 | | |
112 | 120 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 121 | + | |
118 | 122 | | |
119 | 123 | | |
120 | 124 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
| 125 | + | |
125 | 126 | | |
126 | | - | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
150 | | - | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| |||
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
| 177 | + | |
181 | 178 | | |
182 | 179 | | |
183 | 180 | | |
| |||
480 | 477 | | |
481 | 478 | | |
482 | 479 | | |
483 | | - | |
484 | | - | |
| 480 | + | |
485 | 481 | | |
486 | 482 | | |
487 | 483 | | |
| |||
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | 99 | | |
101 | 100 | | |
102 | 101 | | |
| |||
136 | 135 | | |
137 | 136 | | |
138 | 137 | | |
139 | | - | |
| 138 | + | |
140 | 139 | | |
141 | 140 | | |
142 | 141 | | |
| |||
161 | 160 | | |
162 | 161 | | |
163 | 162 | | |
164 | | - | |
165 | 163 | | |
166 | 164 | | |
167 | 165 | | |
| |||
260 | 258 | | |
261 | 259 | | |
262 | 260 | | |
263 | | - | |
264 | 261 | | |
265 | 262 | | |
266 | 263 | | |
| |||
289 | 286 | | |
290 | 287 | | |
291 | 288 | | |
292 | | - | |
| 289 | + | |
293 | 290 | | |
294 | 291 | | |
295 | 292 | | |
| |||
308 | 305 | | |
309 | 306 | | |
310 | 307 | | |
311 | | - | |
312 | 308 | | |
313 | 309 | | |
314 | 310 | | |
| |||
0 commit comments