Commit bbaf770
committed
Add kitless OVPhysX IMU pytest suite + check script
Mirror the structure of source/isaaclab_physx/test/sensors/test_imu.py
under the kitless launcher pattern established by the rigid-object test:
- Wheel gate (importorskip ovphysx.types + RIGID_BODY_POSE hasattr check)
before AppLauncher; no AppLauncher needed at runtime.
- SimulationContext built directly via build_simulation_context; assets
spawned imperatively via _spawn_envs / _spawn_balls / _spawn_cubes /
_spawn_anymal helpers; fnmatch-glob prim paths (env_*).
- Six tests run on real Nucleus / procedural USD assets:
test_constant_velocity, test_constant_acceleration, test_offset_calculation,
test_env_ids_propagation, test_attachment_validity, test_sensor_print.
- Two URDF-dependent tests (test_single_dof_pendulum, test_indirect_attachment)
are skipped pending a USD version of simple_2_link.urdf — URDF-USD
conversion requires the Kit URDF importer extension.
check_imu.py is a kitless smoke-test script (free-falling sphere + IMU,
prints readings for visual inspection).
imu.update(dt) is called with force_recompute=True so the kernel fires
each step (without InteractiveScene's lazy_sensor_update plumbing,
the buffer would otherwise only refresh on imu.data access, leaving
prev_lin_vel unseeded on iterations where the test skips data reads).
Changelog fragment added under source/isaaclab_ovphysx/changelog.d/ per
the new fragment-based workflow (do not edit CHANGELOG.rst directly).
Refs isaac-sim#5318.1 parent c8abc66 commit bbaf770
3 files changed
Lines changed: 513 additions & 0 deletions
File tree
- source/isaaclab_ovphysx
- changelog.d
- test/sensors
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
0 commit comments