Skip to content

Add Newton migration and sim-to-sim guides - #6684

Merged
kellyguo11 merged 8 commits into
isaac-sim:developfrom
kellyguo11:kellyguo11/newton-migration-guides
Jul 24, 2026
Merged

kellyguo11 merged 8 commits into
isaac-sim:developfrom
kellyguo11:kellyguo11/newton-migration-guides

Conversation

@kellyguo11

@kellyguo11 kellyguo11 commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • 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

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added skill evaluation scenarios for the new workflows
  • A changelog fragment is not applicable because no source/<pkg> package was touched
  • My name already exists in CONTRIBUTORS.md

@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels Jul 23, 2026
@kellyguo11
kellyguo11 marked this pull request as ready for review July 23, 2026 07:14
@kellyguo11
kellyguo11 requested a review from a team July 23, 2026 07:14
@greptile-apps

greptile-apps Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This 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 isaaclab-transferring-policies-sim-to-sim skill and substantial expansions to the mjwarp-solver page and the prepare-assets-for-newton skill.

  • New asset migration guide (migrating-assets-from-physx-to-newton.rst): covers the multi-physics importer, per-solver config classes, mechanical model auditing, velocity-limit behavior, armature and damping mathematics, MJWarp solver starting profiles, and task-level smoke-test commands.
  • New sim-to-sim how-to (transfer_policies_between_physx_and_newton.rst): defines the exact environment contract required for checkpoint portability, explains the Franka mimic-joint drive difference between PhysX and MJWarp, documents domain randomization families and curriculum strategy, and provides concrete PP/PN/NN/NP evaluation commands for the Franka lift task.
  • MJWarp solver page heavily expanded with a PhysX-to-MJWarp parameter-mapping table, four repository starting profiles, per-parameter tuning guidance, and a recommended tuning sequence.

Confidence Score: 4/5

Safe 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 .md skill files that will silently 404 in the rendered HTML because those files live outside the Sphinx source tree. Neither blocks correctness, but the broken links affect discoverability for readers of the published docs.

The relative ../*.md skill hyperlinks in transfer_policies_between_physx_and_newton.rst and migrating-assets-from-physx-to-newton.rst deserve a second look before the docs are published.

Important Files Changed

Filename Overview
docs/source/how-to/transfer_policies_between_physx_and_newton.rst New 279-line sim-to-sim guide covering checkpoint compatibility, mimic-joint nuance, control tuning, domain randomization, and Franka lift commands. Relative hyperlinks to skill .md files will be broken in the rendered HTML output.
docs/source/overview/core-concepts/physical-backends/newton/migrating-assets-from-physx-to-newton.rst New 263-line asset-migration guide with a typo ("solver-specifc") and relative links to skill .md files outside the Sphinx source tree that will 404 in rendered docs.
docs/source/overview/core-concepts/physical-backends/newton/mjwarp-solver.rst Heavily expanded solver-tuning reference with parameter tables, starting profiles, and a tuning sequence; debug_mode=True in the baseline snippet may confuse copy-paste users.
skills/user/isaaclab-transferring-policies-sim-to-sim/SKILL.md New agent skill covering PP/PN/NN/NP evaluation matrix, mimic-drive differences, control tuning, and domain randomization. Content is consistent with the how-to guide.
skills/user/prepare-assets-for-newton/SKILL.md Updated skill aligned with the new asset-migration guide; removes the "Do not use for backend selection" guard, which is now implicit from the updated "When To Use" section.
docs/source/overview/core-concepts/physical-backends/newton/index.rst Adds cross-links to the new migration guide and sim-to-sim how-to, and inserts migrating-assets-from-physx-to-newton into the toctree in the correct position.
docs/source/how-to/index.rst Adds a new "Transferring Policies Between Physics Backends" section with a toctree entry pointing to the new how-to page.
skills/user/isaaclab-transferring-policies-sim-to-sim/evaluations.md Six evaluation scenarios covering checkpoint compatibility, mimic-drive differences, bang-bang control, domain randomization, curriculum, and full PP/PN/NN/NP matrix.
skills/user/prepare-assets-for-newton/evaluations.md Expanded from 3 to 6 scenarios aligned with the new migration guide sections; old scenarios replaced with more targeted migration-workflow queries.
skills/user/prepare-assets-for-newton/reference.md Expanded reference aligning with the migration guide sections; adds velocity-limit distinction, armature equations, damping guidance, and a smoke-test command block.
skills/user/isaaclab-transferring-policies-sim-to-sim/examples.md Four concise examples covering PhysX-to-MJWarp, MJWarp-to-PhysX, duplicate finger drive, and domain randomization workflows. Content is consistent with the skill and how-to.
skills/user/isaaclab-transferring-policies-sim-to-sim/reference.md Compact reference tables for contract equality, mimic-drive differences, domain randomization families, and the PP/PN/NN/NP matrix with command examples. Well-aligned with the how-to.
skills/user/prepare-assets-for-newton/examples.md Condensed to five scenario-based examples matching the new migration guide sections; old step-by-step workflows replaced with outcome-focused guidance.
skills/README.md Adds new isaaclab-transferring-policies-sim-to-sim entry and updates the prepare-assets-for-newton description to reflect the migration-focused scope.
.agents/skills/isaaclab-transferring-policies-sim-to-sim New symlink wiring the new skill directory into the agents skill loader, matching the pattern used by existing skills.

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]
Loading

Comments Outside Diff (1)

  1. docs/source/overview/core-concepts/physical-backends/newton/migrating-assets-from-physx-to-newton.rst, line 399 (link)

    P2 Typo: "solver-specifc"

    "solver-specifc" is missing the letter "i" — it should be "solver-specific".

Reviews (1): Last reviewed commit: "Align Newton skills with documentation" | Re-trigger Greptile

@@ -0,0 +1 @@
../../skills/user/isaaclab-transferring-policies-sim-to-sim No newline at end of file

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

newline missing?

:header-rows: 1
:widths: 24 76

* - Contract

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add ovphysx


.. code-block:: bash

python train --rl_library rsl_rl --task TRAIN_TASK physics=physx

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uv run here and elsewhere

Multi-backend Asset Importing Pipeline
--------------------------------------

Isaac Lab 3.0 provides updated URDF and MJCF importers that enable the creation of multi-physics assets.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@StafaH

StafaH commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Other things that should be added:

  • articulation ordering
  • Specific solver errors (NaNs may occur in mjwarp but same scene works in PhysX. This could be related to solver settings, specific robot/articulation/rigid body contact differences, or other such differences.
  • PresetCfg should be discussed and given to the skill, this is the main mechanism for authoring variations between the solvers

@kellyguo11
kellyguo11 merged commit 9b5d571 into isaac-sim:develop Jul 24, 2026
39 checks passed
@kellyguo11 kellyguo11 mentioned this pull request Jul 24, 2026
7 tasks done
kellyguo11 added a commit that referenced this pull request Jul 24, 2026
# 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
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
# 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`
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants