Repository navigation
[Backport release/3.0.0] Author Newton MPM particles through USD (#7637) - #7933
Conversation
This PR migrates Isaac Lab's Newton MPM spawners from direct `ModelBuilder` particle emission to schema-valid USD authoring and Newton's standard USD import path. `MPMGridCfg` and `MPMPointsCfg` remain the user-facing convenience APIs. They now author: - a real `UsdGeom.Points` prim with positions, velocities, `widths = 2 * radius`, and explicit `physics:masses`; - Newton deformable/simulation schemas and a relationship to the owning MPM scene; - a physics-purpose bound material carrying `NewtonMPMMaterialAPI`; - all supported material values, including the new `hardening_rate` and `softening_rate` fields; and - solver-global MPM settings, including `critical_fraction`, on `NewtonMPMSceneAPI`. Newton imports the authored particles through `ModelBuilder.add_usd()`. Isaac Lab consumes the returned `path_particle_map` to retain each `MPMObject` particle range across both homogeneous batched replication and heterogeneous builder merges. - Explicit particle masses are retained instead of being reconstructed from density and particle width. - Existing particle ordering, initial velocities, and initial transforms are preserved. - Grid generation remains deterministic with the existing fixed jitter seed. - Isaac Lab's relaxation-time damping is converted to schema viscosity with `elastic_damping = damping * young_modulus`. - The existing independently mutable `<MPM asset>/Particles` visualization prim and synchronization path remain in place for GL, Newton RTX, and Kit rendering. - `MPMGridCfg` continues generating explicit points procedurally in Isaac Lab because the USD schema represents explicit particles rather than a procedural grid. The four MPM demos and the Franka Pour and UR10 Particle Push tasks use the new authoring path. Their manually added MPM ground colliders were removed in favor of the standard scene ground-plane workflow. - Uses the Newton `1.6.0rc1` release already pinned on `develop`. - Requires `newton-usd-schemas >= 0.5.0`. - Removes the direct `emit_mpm_particles()` helper. Use `MPMGridCfg` or `MPMPointsCfg` through the standard spawner workflow. - Grid jitter is authored once in asset-local space and shared by USD clones. Independent per-environment distributions should use reset events or domain randomization. Per-point multi-material authoring through `UsdGeomSubset` remains intentionally out of scope until Isaac Lab has a user-facing subset configuration API. - Breaking change - Documentation update - [ ] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `develop` Not applicable; existing runtime visualization behavior is retained. - `216 passed` across the focused MPM spawner, MPM object, Newton cloning, and Newton manager suites. - CUDA smoke-tested all four MPM demos: granular, two-way coupling, snowball smash, and teapot fill. - CUDA smoke-tested `IsaacContrib-UR10-Particle-Push` and `IsaacContrib-Franka-Pour`. - Built the complete documentation with warnings treated as errors. - Ran all formatting and pre-commit checks successfully. - [x] I have read and understood the contribution guidelines - [x] I have run the pre-commit checks - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have updated focused tests for the feature - [x] I have added changelog fragments for every touched source package - [x] My name already exists in `CONTRIBUTORS.md` (cherry picked from commit af36c79)
|
|
run-ci |
There was a problem hiding this comment.
Isaac Lab Review Bot
The backport coherently migrates Newton MPM particles to schema-valid USD authoring and updates import, replication, documentation, tests, and schema dependencies. One public API compatibility issue remains: emit_mpm_particles is removed immediately despite the repository’s required deprecation cycle.
- Design and architecture: The USD-based authoring and Newton import path are consistently integrated across flat stage loading and cloned-source replication. No separate architecture finding warrants maintainer action.
- API:
emit_mpm_particleswas publicly exported through__all__and the package stub, but this change removes it outright. Per repository policy, it must remain available through a deprecation period with migration guidance before removal. - Implementation: The patch updates particle authoring, imported range bookkeeping, transforms, solver schema configuration, dependency metadata, tests, and documentation consistently. The required implementation fix is to retain a deprecated compatibility entry point for
emit_mpm_particlesrather than deleting the symbol in this release.
Minor fixes needed. Posted 1 actionable finding inline.
Automated review; human maintainers own approval decisions.
| ] | ||
|
|
||
| from .mpm import emit_mpm_particles, spawn_mpm_particles | ||
| from .mpm import spawn_mpm_particles |
There was a problem hiding this comment.
🟡 Warning · Api — Public emit_mpm_particles removed without deprecation
emit_mpm_particles was exported from this package's __all__ and stub; the diff deletes both the import and the export, so existing imports fail immediately. Repository policy requires a prior deprecation and migration path before removing a public symbol, and a breaking changelog note alone does not provide one. Retain a deprecated alias for one release that warns and directs callers to the MPMGridCfg/MPMPointsCfg spawner workflow.
…ng docs (#7957) Backports the three changes from the September 20–23 `develop` audit that are missing from `release/3.0.0`, alongside the existing cloning-guide backport: - #7722 (`4cf439dfeb`): reject a second `SimulationContext` construction instead of silently discarding its configuration. Includes the original fixture cleanup and regression coverage. - #7893 (`22fcd71bc4`): validate DelayBuffer lag values before mutating its live configuration. - #7947 (`6e9ef17f59`): make `v3.0.0-EA` the default documentation version in deployment and local multi-version builds. - #7129 (`354168560f`): clarify that `replicate_physics=False` skips the active physics context while other declared replication contexts still run. **Compatibility:** repeated `SimulationContext(...)` calls now raise. Retrieve the live context with `SimulationContext.instance()`, or call `clear_instance()` before constructing a replacement. The original major changelog fragment includes this migration. The runtime and test files match current `develop`. The docs-default backport adapts the release branch's existing redirect template, validates the target page, and preserves explicit overrides. The cloning-guide backport preserves the current release APIs; its obsolete sections were already removed. ## Release audit Checked all **35 PRs** merged into `develop` from **2026-09-20 16:43:18 UTC** through `cff81e8473` (September 23), against release head `5d3e0b695e`. **32 are already covered; the remaining three are included here.** Git history, patch equivalence, GitHub's merged PR list, and remaining file differences were checked. Branch-specific version/changelog compilation and existing release-only changes are preserved. <details> <summary>Already covered PRs</summary> 26 have an equivalent patch in release: #7919, #7922, #7923, #7924, #7925, #6758, #7928, #7902, #7927, #7891, #7931, #7691, #7861, #7929, #7916, #7939, #4609, #7942, #7940, #7948, #7937, #7955, #7960, #7961, #7970, #7958. Six were squash-merged or adapted: #7530 and #7899 in #7926; #7637 in #7933; #7860 in #7936; #7954 and #7950 in #7964. Their implementation differences were checked against the current release tree. </details> ## Validation - **276 tests passed**: SimulationContext (51, including CPU/CUDA), headless context construction (15), nine schema/fragment suites (165), four manager suites (38), and DelayBuffer (7). - Both backported regressions reproduce with the original release implementations. - Docs redirect recipe: local/deployment EA defaults, explicit override, and missing-target rejection passed with a stubbed Sphinx builder. - All 22 changed files match the intended backport scope; `uv run isaaclab -f` and `git diff --check` passed. - Fresh Sphinx validation (`-b dummy -W --keep-going`): passed without warnings, excluding static assets as the HTML builder does. Full HTML documentation CI is running. Local runtime validation used PyTorch 2.12.0, CUDA 13.0, Isaac Sim 6.0.1.0, and an RTX 5090. Existing runtime/deprecation warnings occurred; the CI jobs validate the pinned environments. The previous [docs CI failure](https://github.com/isaac-sim/IsaacLab/actions/runs/35795116307/job/106972539281) was an external connection reset fetching the Omniverse intersphinx inventory, producing one warning under `-W`. That URL returned HTTP 200 when rechecked. This update starts a fresh docs build. --------- Co-authored-by: hujc <[email protected]> Co-authored-by: Zihan Xu <[email protected]>
Description
Backports #7637 to
release/3.0.0.This migrates Newton MPM particle creation to schema-valid USD authoring and Newton's standard USD import path while preserving explicit masses, point ordering, deterministic jitter, initial transforms and velocities, damping conversion, and the existing dynamic visualization path. It also carries the original MPM demo/task updates, documentation, focused tests, and changelog fragments.
Backport resolution
af36c79edced44e914bb9fd81e3aaedd1bd562ebc2bce3e232ea5134f98ab14a1e47b3abc900c24767c5e65125241d6ffcf1fd6028aaa80f199892a5All 25 non-lockfile paths cherry-picked without conflict.
uv.lockwas regenerated from the release manifests to retain release-specific workspace package versions while applyingnewton-usd-schemas >= 0.5.0. The repository backport validator confirms that the result changes no paths outside the original PR.Type of change
Release backport
This pull request targets
release/3.0.0directly; no further backport is requested.Validation
uv lock --checkpassed.git diff --checkpassed.Checklist
CONTRIBUTORS.md.