Repository navigation
Accelerate and strengthen asset tests [11/13] - #8153
AntoineRichard wants to merge 8 commits into
Conversation
|
| """Implicit-only actuators with a non-zero feedforward effort target. | ||
| @pytest.mark.parametrize( | ||
| "island", | ||
| ["ideal", "cartpole", "dc_motor", "mixed", "implicit_feedforward", "delayed", "remotized"], |
There was a problem hiding this comment.
Reordered rollout lacks equivalence check
Both fixtures roll out ideal_reordered, but this list never compares its Lab and Newton trajectories or effort. The other tests for that island check target and gain writes, so an actuator that writes correctly but applies the wrong effort during stepping could go undetected.
| ["ideal", "cartpole", "dc_motor", "mixed", "implicit_feedforward", "delayed", "remotized"], | |
| ["ideal", "ideal_reordered", "cartpole", "dc_motor", "mixed", "implicit_feedforward", "delayed", "remotized"], |
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!
| stateful_pairs = [ | ||
| (act, st) | ||
| for act, st in zip(adapter.actuators, adapter._states_a) | ||
| if st is not None and getattr(st, "delay_state", None) is not None | ||
| ] |
There was a problem hiding this comment.
Reset check includes other islands
This selects delayed states from the model-wide adapter, including the separate RemotizedPD island. It then resets only the delayed articulation but expects every selected environment-0 state to clear. That makes clearing an unrelated articulation's state count as success. Check that the delayed island resets while the RemotizedPD island remains unchanged.
…/asset-tests-p20-newton-actuators
…/asset-tests-p20-newton-actuators
…ass oracle tolerances explicitly
Description
Part 11/13 of the asset-test series (tracker: #7282). Scope: Newton actuators. Depends on #8151; this branch contains their commits until they merge.
What changed
source/isaaclab_newton/test/assets/test_newton_actuators_newton.pyruns kitless on local articulations from #8151. Each actuator configuration gets its own two-environment island in one composite scene per execution path: one Isaac Lab actuator scene and one Newton-native actuator scene. Ondevelop, every configuration built two ANYmal scenes. A decimation-2 scene pair with CUDA-graph capture covers RemotizedPD. The islands are:The shared
EquivalenceAssertionsMixinoracles run unchanged on every island. The Newton scene stays alive for the tests that drive native actuators directly: gain writes, domain randomization through events, target submission in backend order, and per-environment state reset.source/isaaclab_newton/test/assets/unit/test_newton_actuator_adaptation.pyholdsdevelop's builder target-mode tests and native-group selection test, copied verbatim fromassets/test_articulation.py(#8156 deletes the originals), and the torque-telemetry kernel test, moved verbatim from the actuator file. None of them steps a simulation.Disposition
developTestDCMotorEquivalence(4 oracles,test_dc_motor_clamp_binds)test_newton_actuators_match_lab_actuators[dc_motor],test_dc_motor_clamp_bindsNewtonDCMotorClampingAPIturns both redTestMixedWithImplicitEquivalence...match_lab_actuators[mixed]TestImplicitWithFeedforwardEquivalence...[implicit_feedforward](torque_atol=0.5)TestDelayedPDEquivalence,test_newton_actuators_are_delayed_pd...[delayed],test_newton_actuators_are_delayed_pdTestRemotizedPDEquivalence,test_newton_knee_actuators_are_delayed_position_clamped_pd...[remotized], knee testTestDecimationRemotizedPDtest_decimated_remotized_pd_matches_lab_actuatorsTestHeterogeneousMultiArticulationNewton(test_anymal_matches_lab,test_cartpole_matches_lab)...[ideal]and...[cartpole]in one shared native sceneTestRandomizeActuatorGainsViaEventsNewton(test_two_articulations)test_randomize_actuator_gains_reaches_newton_controllersTestActuatorStateReset(Newton and Lab)test_newton_state_reset_isolated_to_reset_env,test_lab_state_reset_isolated_to_reset_envTestNeuralActuatorAuthoring(3 tests)neuralislandtest_newton_actuator_rollout_matches_reversed_joint_orderingtest_newton_actuator_rollout_matches_reordered_jointstest_sync_torque_telemetry_keeps_user_order_effort_buffers_unmappedassets/test_articulation.py, deleted in #8156: 8 builder target-mode andprepare_native_actuatorstests (test_prepare_native_actuators_activates_only_explicit_groups,test_actuator_cfg_sets_newton_target_mode_before_solver_init,test_actuator_cfg_matches_explicit_descendant_articulation_root,test_actuator_cfg_matches_clone_plan_root_expr,test_actuator_cfg_leaves_excluded_joint_types_imported,test_actuator_cfg_uses_imported_gain_for_none_stiffness,test_actuator_cfg_leaves_unconfigured_newton_target_modes_imported,test_actuator_cfg_aligns_partial_dictionary_gains_by_joint_name)assets/test_articulation.py, deleted in #8156:test_newton_native_actuator_gain_write_maps_public_joint_subset_to_backendwrite_group_parameterturns it redassets/test_articulation.py, deleted in #8156:test_write_data_to_sim_writes_joint_targets_in_backend_order(Newton-actuator rows)[identity/reordered]Device scope and CI routing
test_devices(DeviceScope.CUDA);develophard-codedcuda:0. The file therefore also enters the multi-GPU lane, which runs one non-default GPU per shard. That path is not verified here: the validation host has one GPU.develop's file nor this one carries@pytest.mark.isaacsim_ci; Isaac Sim CI routing is unchanged.Product observations (not fixed here)
remotizedisland's knee delays reset with thedelayedisland. The state-reset test checks only the reset articulation's own actuators and asserts neither behaviour for the others.Timing
Warm Warp cache, repository orchestrator, one process per file, RTX 5090. The second of two runs is reported.
developassets/test_newton_actuators_newton.pyassets/unit/test_newton_actuator_adaptation.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