Commit 1235be6
committed
Enhancements
* Drop redundant `fabric_device` local in `_initialize_fabric` — every
assignment was `fabric_device = self._device`, so just use `self._device`
directly. `self._fabric_device` (the persistent attribute) is preserved.
* Drop the explicit `_fabric_usd_sync_done = True` at the end of
`_sync_fabric_from_usd_once`. Both `set_world_poses` and `set_scales`
already set it on success, so the trailing assignment is dead under the
happy path and would mask a partial failure if either write raised.
* Tighten the no-writeback assertion in
`test_fabric_set_world_does_not_write_back_to_usd` from `atol=0.1` to
`atol=0.0`. USD literally must not have moved — any drift indicates a
residual writeback path, and the loose tolerance would hide a 0.099-unit
regression.
* Add `test_fabric_rebuild_after_topology_change` covering the
`_prepare_for_reuse` → `_rebuild_fabric_arrays` branch, which is the
load-bearing replacement for the removed `sync_usd_on_fabric_write`.
The test monkeypatches `_prepare_for_reuse` to always take the rebuild
branch (real Fabric topology changes are hard to provoke from a unit
test) and verifies that a subsequent write/read still produces correct
data, proving `_view_to_fabric` and `_fabric_world_matrices` are still
consistent after the rebuild.1 parent 9a8b15a commit 1235be6
3 files changed
Lines changed: 63 additions & 13 deletions
File tree
- source
- isaaclab_physx
- isaaclab_physx/sim/views
- test/sim
- isaaclab/isaaclab/sensors/camera
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
397 | | - | |
398 | | - | |
399 | 397 | | |
400 | 398 | | |
401 | 399 | | |
402 | 400 | | |
403 | 401 | | |
404 | | - | |
| 402 | + | |
405 | 403 | | |
406 | 404 | | |
407 | | - | |
| 405 | + | |
408 | 406 | | |
409 | 407 | | |
410 | 408 | | |
411 | 409 | | |
412 | 410 | | |
413 | 411 | | |
414 | | - | |
| 412 | + | |
415 | 413 | | |
416 | 414 | | |
417 | 415 | | |
| |||
423 | 421 | | |
424 | 422 | | |
425 | 423 | | |
426 | | - | |
| 424 | + | |
427 | 425 | | |
428 | 426 | | |
429 | 427 | | |
430 | 428 | | |
431 | 429 | | |
432 | | - | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
433 | 435 | | |
434 | 436 | | |
435 | 437 | | |
| |||
441 | 443 | | |
442 | 444 | | |
443 | 445 | | |
444 | | - | |
445 | | - | |
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
| |||
Lines changed: 52 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
178 | 180 | | |
179 | 181 | | |
180 | 182 | | |
181 | 183 | | |
182 | | - | |
| 184 | + | |
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
0 commit comments