Skip to content

Simplify actuator configuration and declare drift streams - #16

Open
ooctipus wants to merge 3 commits into
hujc7:jichuanh/actuator-net-mask-resetfrom
ooctipus:codex/actuator-network-config
Open

ooctipus wants to merge 3 commits into
hujc7:jichuanh/actuator-net-mask-resetfrom
ooctipus:codex/actuator-network-config

Conversation

@ooctipus

@ooctipus ooctipus commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-up to isaac-sim/IsaacLab#8997, based on ec5dc495c89747d6e4153a97b1a5bf0bb57f88d2 and targeting its unmerged branch.

Both actuator runtimes consume one canonical ONNX configuration. resolve_network_config owns validation and checkpoint translation directly in the actuator config module, using the existing TorchScript loader. Legacy export uses a fixed CPU example batch with dynamic batch axes, independent of simulation size and device. This removes the generic ONNX export module, metadata-passing interface, and separate Newton schema converter.

  • Normalize LSTM inputs to sequence first and terminal torque squeezes to non-scalar outputs. Preserve the public sea_input layout and leave the authored config unchanged.
  • Keep MLP and LSTM as direct DCMotor subclasses. Each owns its setup and compute lifecycle and launches the existing clipping kernel directly; there is no intermediate network base or torque-application helper.
  • Keep MLP preprocessing validation in validate_config, reuse base actuator effort storage and paired history clearing, and inline the single-use clipping helper.
  • Declare sensor drift identity through RayCasterCfg.drift_seed; offsets and visualization settings no longer select a stream. Share RNG initialization with reset-state sampling.
  • Document ownership rules and guard the runtime/config boundary and removed generic IO owner in the existing architecture test.

Production Python and export stubs: 229 lines added / 316 removed (net -87). Whole change: 353 added / 353 removed, including tests and documentation. Removing the intermediate class adds four production lines of direct wiring.

Validation:

  • All 57 affected tests passed after removing the intermediate class: actuator networks 19 and Newton actuator integration 38. The 26 Newton adapter tests passed after checkpoint consolidation; the config translator and adapter are unchanged by class removal.
  • Fixed CPU export and the previous GPU export produced exactly equal outputs and recurrent states for real Go1 MLP checkpoints at batches 1, 3, and 6144, and ANYdrive LSTM checkpoints at batches 3 and 6144.
  • MLP and LSTM matched the preceding implementation exactly over 12 steps and a partial reset at 512 environments x 12 joints, including effort telemetry and recurrent state. Captured GPU graph topology and kernel labels are identical. Timing samples varied under concurrent GPU workloads, so no throughput change is claimed.
  • The architecture gate rejects the preceding intermediate class and generic IO owner. Centralized file/symbol ownership audit, full repository formatting/lint hooks, changelog validation, and diff checks passed.
  • Prior checks remain applicable to unchanged code: DC motor 22 passed, actuator collection 30 passed / 2 skipped, reset-state sampler 9 passed, drift/reset sensor cases 2 passed, and five isolated TorchScript loader cases passed. The full controller suite was not run.

Known limitation: the real ANYdrive checkpoint fails at batch 1 because an internal unrestricted squeeze produces a scalar unsupported by Warp-NN 0.5. This was reproduced on the preceding PR commit b31e898 as well as the current implementation; terminal-output normalization does not cover that internal squeeze.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant