Repository navigation
Accelerate and strengthen asset tests [10/13] - #8151
AntoineRichard wants to merge 8 commits into
Conversation
|
| _FIXTURES: dict[str, Callable[[], str]] = { | ||
| "fixed_cartpole.usda": _fixed_cartpole, | ||
| "fixed_spatial_chain.usda": _fixed_spatial_chain, | ||
| "fixed_tendon_hand.usda": _fixed_tendon_hand, | ||
| "floating_two_leg.usda": _floating_two_leg, | ||
| "floating_two_link.usda": _floating_two_link, | ||
| "revolute_pendulum.usda": _revolute_pendulum, | ||
| "rigid_body_with_articulation_root.usda": _rigid_body_with_articulation_root, | ||
| } |
There was a problem hiding this comment.
Fixtures lack load checks. This registers seven text-authored USD fixtures, but no test calls
local_usd to check that they parse and load through Newton. An authoring mistake could therefore go unnoticed until a later test uses the fixture. A parameterized smoke test for all seven would catch that earlier.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
…/asset-tests-p19-newton-task-space-controllers
…/asset-tests-p19-newton-task-space-controllers
…nd keep its Isaac Sim CI routing
Description
Part 10/13 of the asset-test series (tracker: #7282). Scope: Newton fixtures and task-space controllers. No dependencies.
What changed
source/isaaclab_newton/test/articulation_test_utils.pygives the Newton asset and controller tests small local scenes that need neither Kit nor Nucleus. #8153, #8154 and #8156 build on it..gitignorebans*.usdafiles.local_usd(name, **kwargs)returns aUsdFileCfg, so spawner features such asfix_root_linkandjoint_drive_propsstill apply.newton_sim_cfg(MJWarp, no gravity and no CUDA graph by default),spawn_assets(clone plan, asset construction andreplicateinto/World/Env_*; collections are planned as their member objects),env_origins, andworld_gravity(applies per-world model gravity for a block and restores it).sys.path.insert(parents[1])idiom thatdevelop's Newton sensor tests use, which works under the per-file CI runner.source/isaaclab_newton/test/controllers/test_newton_task_space_controllers.pyis the new home for the two Franka operational-space sentinels inassets/test_articulation.py, which #8156 deletes. The tests close the Isaac LabOperationalSpaceControllerloop through the articulation'sbody_link_jacobian_w,mass_matrixandgravity_compensation_forces, on the local six-DOF fixed chain with unpowered joints. The file is kitless and builds one module-scoped scene.test_osc_tracking_accuracy: a 5 cm pose step with gravity off; the tail-mean error must stay under 5 mm and 0.05 rad (develop's bounds).test_osc_gravity_compensation_precision: a two-phase hold with gravity on. The uncompensated sag must exceed 1.2 cm, the compensated hold must stay under 0.1 mm, the improvement must be at least 10x, and each phase must pass a stationarity guard (develop's bounds). The chain settles within about 100 steps, so each phase runs 300 steps instead ofdevelop's 400/600/800.develop'stest_newton_controllers.pyandtest_newton_ik_solver.pyexercise the model-free controller wrappers; this file does not duplicate them. The DiffIK tracking sentinel is not revived; [Tests] Prune Newton tests with the test-audit skill #8008 deleted it ondevelop.Disposition
Nothing is deleted in this PR. It adds the keepers for these
assets/test_articulation.pytests, which #8156 deletes:developtest_franka_osc_tracking_accuracytest_osc_tracking_accuracytest_franka_osc_gravity_compensation_precisiontest_osc_gravity_compensation_precisiongravity_compensation_forcesturns it redDevice scope and CI routing
test_devices(DeviceScope.CPU)selects, without CUDA-graph capture. Ondevelopthe Franka sentinels ran on CUDA with Newton's default graph capture. The captured-graph republish of articulation state is covered in Accelerate and strengthen asset tests [13/13] #8156.@pytest.mark.isaacsim_ci, as thedeveloptests they replace did, so the file is selected by Isaac Sim's short CI (ISAACSIM_CI_SHORT).Timing
Warm Warp cache, repository orchestrator, one process per file, RTX 5090. The second of two runs is reported.
developcontrollers/test_newton_task_space_controllers.pyassets/test_articulation.py)articulation_test_utils.pyType of change
Release backport
developChecklist
Docker and GPU tests run on demand. Push the commits you want tested, then
comment
run-cion the pull request.pre-commitchecks withuv run isaaclab --formatsource/<pkg>/changelog.d/for every touched package (do not editCHANGELOG.rstor bump package versions — CI handles that)CONTRIBUTORS.mdor my name already exists there