Repository navigation
Add Newton migration and sim-to-sim guides - #6684
Conversation
Greptile SummaryThis PR adds two new documentation guides and a new agent skill focused on Newton/MJWarp: a PhysX-to-Newton asset migration guide and a sim-to-sim policy transfer how-to, along with a corresponding
Confidence Score: 4/5Safe to merge — no runtime code is touched; all changes are documentation and agent skill files. The content is technically thorough and internally consistent. Two small issues remain: a typo ("solver-specifc") in the new migration guide, and relative hyperlinks to The relative Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[PhysX Asset] --> B[Multi-physics Converter\nrun_asset_transformer=True\nrun_multi_physics_conversion=True]
B --> C[Layered USD Asset\nneutral + PhysX + MuJoCo payloads]
C --> D[Audit Mechanical Model\nmass · inertia · colliders\njoints · topology · gravity]
D --> E[Per-solver Config Classes\nMujoco*Cfg / Newton*Cfg / Physx*Cfg]
E --> F[Set Armature & Damping\narmature ≈ J_rotor × N²\nretune ζ after armature change]
F --> G[Choose MJWarp Starting Profile\nnjmax / nconmax / cone / impratio\nintegrator=implicitfast]
G --> H{Smoke Test\nzero_agent + random_agent}
H -- finite state, no warnings --> I[Task runs in both backends]
H -- NaN · overflow · bad impulse --> D
I --> J[Verify Environment Contract\nactions · obs · timing · mechanism · episode]
J --> K{Contract match?}
K -- no --> L[Fix Task Config or Asset\nmimic joint · action dims · gains]
L --> J
K -- yes --> M[Train & Evaluate Full Matrix]
M --> N[PP: PhysX→PhysX baseline]
M --> O[PN: PhysX→Newton transfer]
M --> P[NN: Newton→Newton baseline]
M --> Q[NP: Newton→PhysX transfer]
|
| @@ -0,0 +1 @@ | |||
| ../../skills/user/isaaclab-transferring-policies-sim-to-sim No newline at end of file | |||
| :header-rows: 1 | ||
| :widths: 24 76 | ||
|
|
||
| * - Contract |
There was a problem hiding this comment.
This only really applies to transfer between tasks, since the same task but different backend should have the same MDP, as long as presets were not used in any MDP term to change it per backend.
| * - Training backend | ||
| - Deployment backend | ||
| - Label and purpose | ||
| * - PhysX |
|
|
||
| .. code-block:: bash | ||
|
|
||
| python train --rl_library rsl_rl --task TRAIN_TASK physics=physx |
| Multi-backend Asset Importing Pipeline | ||
| -------------------------------------- | ||
|
|
||
| Isaac Lab 3.0 provides updated URDF and MJCF importers that enable the creation of multi-physics assets. |
There was a problem hiding this comment.
Let's discuss that our provided assets are also MultiPhysicsAssets, and then talk about importers to create new MultiPhysicsAssets
| carry a stale body-level override that makes the task behave differently from the scene gravity. | ||
|
|
||
|
|
||
| Velocity limits distinction |
There was a problem hiding this comment.
One main difference between physx and newton is that newton_mjwarp has much more slip by default. condim, friction values, and the global contact friction cone type often need to be adjusted when coming from physx to newton to achieve similar grasping behaviour.
|
Other things that should be added:
|
# Description Adds a public `MujocoCollisionCfg` schema fragment for the per-collider custom attributes registered by Newton's MuJoCo solver: `condim`, `group`, `priority`, `solimp`, `solmix`, and `solref`. The custom applier writes scalar values under `mjc:*` and writes `solimp`/`solref` as canonical USD `double[]` arrays matching Newton's importer output. The PhysX-to-MJWarp migration guide and asset-preparation skill now use this config instead of defining a task-local collision fragment, document the other supported per-collider fields, and route margin/gap and mesh-cooking settings to the existing Newton configs. Follow-up to #6684. ## Type of change - New feature (non-breaking change which adds functionality) - Documentation update ## Testing - `isaaclab.bat -p -m pytest source/isaaclab/test/sim/test_collision_fragments.py -q` (15 passed) - `uv run --no-project python tools/skills/cli.py check` (19 skills validated) - Warning-as-error Sphinx dummy build for the changed API and migration pages (passed) - `uv run isaaclab -f` (passed before commit, before push, and after rebasing onto current `develop`) ## Screenshots Not applicable. ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
# Description Add a concrete MJWarp-focused migration workflow for PhysX assets and a separate how-to guide for transferring policies between PhysX and Newton MJWarp in both directions. The asset migration guide captures the practical requirements demonstrated by isaac-sim#6457 and the simulation-tuning guidance from newton-physics/newton#3224. It covers asset inspection, per-solver configuration classes, actuator parameters from hardware data sheets, armature and damping, velocity-limit behavior, solver profiles, zero-gravity assets, mimic-joint drive topology, validation, and common failure modes. The MJWarp solver page now links to the tuning guide and documents common PhysX-to-MJWarp configuration patterns and starting values. The sim-to-sim how-to defines the environment and checkpoint contracts that must remain stable, explains domain randomization and control tuning, and includes Franka lift training and inference commands for PhysX-to-MJWarp and MJWarp-to-PhysX transfer. It explicitly describes why Newton exposes one active Franka finger drive while PhysX can expose two drives, how the duplicated PhysX mimic drive can apply one logical gripper action twice, and how to preserve or intentionally change action dimensions. This also: - extends `prepare-assets-for-newton` to guide PhysX-to-MJWarp asset migration; - adds `isaaclab-transferring-policies-sim-to-sim` with examples, references, and evaluations; and - cross-links the documentation and relevant skills. No new runtime dependency is required. ## Validation - `./isaaclab.sh -f` (complete all-files hooks): passed. - `./isaaclab.sh -p tools/skills/cli.py check`: passed; 19 skills validated. - `python -m sphinx -W --keep-going -b dummy ...`: passed across 229 pages with no documentation warnings. - `./isaaclab.sh -d`: source parsing and consistency checks passed, but the local Windows HTML renderer fails afterward because `sphinxcontrib-icon` registers an absolute Windows CSS path that Sphinx appends under `_static`. The warning-as-error dummy build verifies the RST, references, and toctrees independently of that local theme-path issue. ## Type of change - New feature (non-breaking change which adds functionality) - Documentation update ## Screenshots Not applicable; this change adds documentation and skills. ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added skill evaluation scenarios for the new workflows - [x] A changelog fragment is not applicable because no `source/<pkg>` package was touched - [x] My name already exists in `CONTRIBUTORS.md`
# Description Adds a public `MujocoCollisionCfg` schema fragment for the per-collider custom attributes registered by Newton's MuJoCo solver: `condim`, `group`, `priority`, `solimp`, `solmix`, and `solref`. The custom applier writes scalar values under `mjc:*` and writes `solimp`/`solref` as canonical USD `double[]` arrays matching Newton's importer output. The PhysX-to-MJWarp migration guide and asset-preparation skill now use this config instead of defining a task-local collision fragment, document the other supported per-collider fields, and route margin/gap and mesh-cooking settings to the existing Newton configs. Follow-up to isaac-sim#6684. ## Type of change - New feature (non-breaking change which adds functionality) - Documentation update ## Testing - `isaaclab.bat -p -m pytest source/isaaclab/test/sim/test_collision_fragments.py -q` (15 passed) - `uv run --no-project python tools/skills/cli.py check` (19 skills validated) - Warning-as-error Sphinx dummy build for the changed API and migration pages (passed) - `uv run isaaclab -f` (passed before commit, before push, and after rebasing onto current `develop`) ## Screenshots Not applicable. ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
Description
Add a concrete MJWarp-focused migration workflow for PhysX assets and a separate how-to guide for transferring policies between PhysX and Newton MJWarp in both directions.
The asset migration guide captures the practical requirements demonstrated by #6457 and the simulation-tuning guidance from newton-physics/newton#3224. It covers asset inspection, per-solver configuration classes, actuator parameters from hardware data sheets, armature and damping, velocity-limit behavior, solver profiles, zero-gravity assets, mimic-joint drive topology, validation, and common failure modes. The MJWarp solver page now links to the tuning guide and documents common PhysX-to-MJWarp configuration patterns and starting values.
The sim-to-sim how-to defines the environment and checkpoint contracts that must remain stable, explains domain randomization and control tuning, and includes Franka lift training and inference commands for PhysX-to-MJWarp and MJWarp-to-PhysX transfer. It explicitly describes why Newton exposes one active Franka finger drive while PhysX can expose two drives, how the duplicated PhysX mimic drive can apply one logical gripper action twice, and how to preserve or intentionally change action dimensions.
This also:
prepare-assets-for-newtonto guide PhysX-to-MJWarp asset migration;isaaclab-transferring-policies-sim-to-simwith examples, references, and evaluations; andNo new runtime dependency is required.
Validation
./isaaclab.sh -f(complete all-files hooks): passed../isaaclab.sh -p tools/skills/cli.py check: passed; 19 skills validated.python -m sphinx -W --keep-going -b dummy ...: passed across 229 pages with no documentation warnings../isaaclab.sh -d: source parsing and consistency checks passed, but the local Windows HTML renderer fails afterward becausesphinxcontrib-iconregisters an absolute Windows CSS path that Sphinx appends under_static. The warning-as-error dummy build verifies the RST, references, and toctrees independently of that local theme-path issue.Type of change
Screenshots
Not applicable; this change adds documentation and skills.
Checklist
pre-commitchecks with./isaaclab.sh --formatsource/<pkg>package was touchedCONTRIBUTORS.md