From a9f6cfe8346e0d08e9b751da73409fb1e0e84543 Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Mon, 30 Nov 2026 15:10:54 -0800 Subject: [PATCH 01/12] Bump Newton and MuJoCo Warp versions Update Newton to the current upstream revision and MuJoCo Warp to the newest revision that retains the pose API Newton consumes. Align the MuJoCo 4.0.1, Warp 1.19, and USD schema dependencies across source and wheel installations. Adopt the current contact API directly and rename the soft contact gap configuration without retaining compatibility aliases. --- pyproject.toml | 25 ++--- .../newton-mjwarp-version-bump.skip | 0 .../test/cli/test_uv_run_pyproject.py | 9 ++ .../newton-mjwarp-version-bump.changed.rst | 4 + .../newton-mjwarp-version-bump.major | 0 .../isaaclab_newton/physics/mjwarp_solver.py | 1 - .../isaaclab_newton/physics/newton_backend.py | 4 +- .../physics/newton_collision_cfg.py | 10 +- .../isaaclab_newton/physics/newton_manager.py | 8 -- .../test/physics/test_newton_manager.py | 21 ++-- tools/wheel_builder/uv-overrides.txt | 11 ++- uv.lock | 98 +++++++++++++------ 12 files changed, 114 insertions(+), 77 deletions(-) create mode 100644 source/isaaclab/changelog.d/newton-mjwarp-version-bump.skip create mode 100644 source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst create mode 100644 source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.major diff --git a/pyproject.toml b/pyproject.toml index 23397d3495d0..e4c9875d7130 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ dependencies = [ "pyglet>=2.1.6,<3", "transformers==5.10.4", "einops", - "warp-lang==1.17.0", + "warp-lang==1.19.0", "matplotlib>=3.10.3", # pillow: floor, not exact — an exact pin below Isaac Sim's prebundled version forces a # downgrade that deletes the prebundled copy other extensions symlink into (nvbugs 6410989). @@ -87,7 +87,9 @@ dependencies = [ "gitpython>=3.1.60", # used by RL training and experiment logging # ----- newton (default physics engine) ----- # Pin the current Newton development revision until it is included in a release. - "newton[sim] @ git+https://github.com/newton-physics/newton.git@d31603ff5e8389d1d6b2a5daef6ea2cb074c26ff", + "newton[sim] @ git+https://github.com/newton-physics/newton.git@bb6bf15b8f257a8a63cf3f003ad8115556c0e803", + # Last revision before the quaternion-only pose API, which Newton does not yet support. + "mujoco-warp @ git+https://github.com/google-deepmind/mujoco_warp.git@cb2d638bc7037b1237a0ecd7846ba836baf9b772", # Import and mesh-processing packages used by Newton, including the ones that honoring # USD-authored ``physics:approximation`` requires. Keep these explicit instead of selecting # newton[importers], whose standalone USD dependency would overlap with usd-exchange. @@ -101,9 +103,9 @@ dependencies = [ "pycollada>=0.9", "resolve-robotics-uri-py>=0.4.0", "open3d>=0.19.0 ; python_version < '3.13' and (sys_platform != 'linux' or platform_machine != 'aarch64')", - # Authored MPM particle import requires the 0.5 schema revision. The managed - # Isaac Sim workflow overrides its older exact transitive pin below. - "newton-usd-schemas>=0.5.0", + # Match Newton's importer schema floor; the managed Isaac Sim workflow overrides + # its older exact transitive pin below. + "newton-usd-schemas>=0.8.0", "PyOpenGL-accelerate>=3.1.0", # ----- newton interactive viewer GUI (in base, no extra required) ----- "imgui-bundle>=1.92.5", @@ -256,7 +258,7 @@ ovphysx = "0.8.0.43443703471" ovrtx = "0.7.0.1794596436" ovstage = "0.4.0.1794520352" newton = "1.9.0.dev0" -warp = "1.17.0" +warp = "1.19.0" [tool.ruff] line-length = 120 @@ -438,12 +440,13 @@ override-dependencies = [ # Capture CloudXR requires >=17.3; override Isaac Sim 6.2's <15 and Viser 1.0's <17 caps. "websockets>=17.3", "numpy>=2", - "mujoco~=3.17.0", - "mujoco-warp~=3.17.0", - "newton[sim] @ git+https://github.com/newton-physics/newton.git@d31603ff5e8389d1d6b2a5daef6ea2cb074c26ff ; extra != 'optix'", - "newton[sim,optix] @ git+https://github.com/newton-physics/newton.git@d31603ff5e8389d1d6b2a5daef6ea2cb074c26ff ; extra == 'optix'", + "mujoco~=4.0.1", + "mujoco-core~=4.0.1", + "mujoco-warp @ git+https://github.com/google-deepmind/mujoco_warp.git@cb2d638bc7037b1237a0ecd7846ba836baf9b772", + "newton[sim] @ git+https://github.com/newton-physics/newton.git@bb6bf15b8f257a8a63cf3f003ad8115556c0e803 ; extra != 'optix'", + "newton[sim,optix] @ git+https://github.com/newton-physics/newton.git@bb6bf15b8f257a8a63cf3f003ad8115556c0e803 ; extra == 'optix'", # Force the Newton-matched schemas over isaacsim's ==0.2.0 pin. - "newton-usd-schemas>=0.5.0", + "newton-usd-schemas>=0.8.0", # isaacsim-asset-isolated and isaacsim-robot-schema 6.2 pin usd-exchange ==2.3.0. "usd-exchange==3.0.1", # usd-optimize must share usd-exchange's OpenUSD build (26.08); bump the two together. diff --git a/source/isaaclab/changelog.d/newton-mjwarp-version-bump.skip b/source/isaaclab/changelog.d/newton-mjwarp-version-bump.skip new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/source/isaaclab/test/cli/test_uv_run_pyproject.py b/source/isaaclab/test/cli/test_uv_run_pyproject.py index 8d9d0f56e815..9e5c02755d4a 100644 --- a/source/isaaclab/test/cli/test_uv_run_pyproject.py +++ b/source/isaaclab/test/cli/test_uv_run_pyproject.py @@ -199,6 +199,15 @@ def spec(package: str) -> str: assert f"{newton_spec} ; extra != 'optix'" in overrides assert f"{newton_spec.replace('[sim]', '[sim,optix]')} ; extra == 'optix'" in overrides + # Source and published-wheel installations must use the same MuJoCo Warp revision. + mjwarp = next(package for package in lock["package"] if package["name"] == "mujoco-warp") + url, revision = mjwarp["source"]["git"].split("?rev=") + requested, resolved = revision.split("#") + assert requested == resolved + mjwarp_spec = f"mujoco-warp @ git+{url}@{resolved}" + assert mjwarp_spec in dependencies + assert mjwarp_spec in overrides + # warp-lang is a core dependency whose table value may be an exact pin # ("1.2.3" -> ``==``) or a range (">=1.2.3" -> mirrored verbatim). warp_value = versions["warp"] diff --git a/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst b/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst new file mode 100644 index 000000000000..662b022150fe --- /dev/null +++ b/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst @@ -0,0 +1,4 @@ +* **Breaking:** Updated Newton and MuJoCo Warp to upstream revisions with MuJoCo 4.0.1, Warp 1.19, + and Newton USD schemas 0.8. Removed ``NewtonManager.request_extended_contact_attribute``; use solver + observables or contact sensors for contact forces. Renamed ``NewtonCollisionPipelineCfg.soft_contact_margin`` + to ``soft_contact_gap`` to match Newton's detection-only gap setting. diff --git a/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.major b/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.major new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/source/isaaclab_newton/isaaclab_newton/physics/mjwarp_solver.py b/source/isaaclab_newton/isaaclab_newton/physics/mjwarp_solver.py index dcc59ed70438..df9decd9f4f6 100644 --- a/source/isaaclab_newton/isaaclab_newton/physics/mjwarp_solver.py +++ b/source/isaaclab_newton/isaaclab_newton/physics/mjwarp_solver.py @@ -123,7 +123,6 @@ def create_contacts(self) -> Contacts: rigid_contact_max=solver.get_max_contact_count(), soft_contact_max=0, device=model.device, - requested_attributes=model.get_requested_contact_attributes(), ) def mark_non_finite_worlds(self, state: State, faults: wp.array) -> None: diff --git a/source/isaaclab_newton/isaaclab_newton/physics/newton_backend.py b/source/isaaclab_newton/isaaclab_newton/physics/newton_backend.py index c5b6ffe67314..a6378117eea5 100644 --- a/source/isaaclab_newton/isaaclab_newton/physics/newton_backend.py +++ b/source/isaaclab_newton/isaaclab_newton/physics/newton_backend.py @@ -716,7 +716,6 @@ def add_contact_sensor( counterpart_shapes=_compile_label_pattern(contact_partners_shape_expr), measure_total=True, verbose=verbose, - request_contact_attributes=False, ) self.contact_sensors[key] = sensor if self.solver is not None: @@ -884,7 +883,6 @@ def _allocate_contacts(self) -> None: rigid_contact_max=model.rigid_contact_max or 0, soft_contact_max=0, device=self.device, - requested_attributes=model.get_requested_contact_attributes(), ) else: args = collision_cfg.to_pipeline_args() if collision_cfg is not None else {"broad_phase": "explicit"} @@ -895,7 +893,7 @@ def _allocate_contacts(self) -> None: self.contacts = self.collision_pipeline.contacts() # MuJoCo Warp can require more contacts than the pipeline estimates; rebuild the # pipeline so Contacts retains per-contact hydroelastic properties, matching, and - # custom contact attributes alongside any implicit deterministic sort buffers. + # any implicit deterministic sort buffers. if required > self.contacts.rigid_contact_max: args["rigid_contact_max"] = required self.collision_pipeline = ops.create_collision_pipeline(**args) diff --git a/source/isaaclab_newton/isaaclab_newton/physics/newton_collision_cfg.py b/source/isaaclab_newton/isaaclab_newton/physics/newton_collision_cfg.py index eb347ef99402..45c47238e486 100644 --- a/source/isaaclab_newton/isaaclab_newton/physics/newton_collision_cfg.py +++ b/source/isaaclab_newton/isaaclab_newton/physics/newton_collision_cfg.py @@ -233,13 +233,13 @@ def validate_config(self) -> None: soft_contact_max: int | None = None """Maximum number of soft contacts to allocate. - If None, computed as ``shape_count * particle_count``. + If None, estimated from eligible particle-shape pairs and full-surface contact buffers. Defaults to ``None`` (auto-compute, same as Newton's default). """ - soft_contact_margin: float = 0.01 - """Margin [m] for soft contact generation. + soft_contact_gap: float = 0.01 + """Detection-only distance [m] added to the particle radius for particle-shape contact queries. Defaults to ``0.01`` (same as Newton's default). """ @@ -249,8 +249,8 @@ def validate_config(self) -> None: When ``True``, Newton adds edge and triangle-interior soft contacts (in addition to the per-vertex particle contacts) so rigid features that pass between soft vertices are caught. - Analytic shapes (boxes, capsules, spheres) are full-surface-capable without an SDF; any - participating mesh/convex collider must carry a volume SDF. + Analytic shapes (boxes, capsules, spheres) and mesh/convex colliders support these contacts + without a volume SDF. Mesh colliders must have particle collisions enabled. Defaults to ``False`` (same as Newton's default). """ diff --git a/source/isaaclab_newton/isaaclab_newton/physics/newton_manager.py b/source/isaaclab_newton/isaaclab_newton/physics/newton_manager.py index 517d1ff21e85..cdadaad25a6c 100644 --- a/source/isaaclab_newton/isaaclab_newton/physics/newton_manager.py +++ b/source/isaaclab_newton/isaaclab_newton/physics/newton_manager.py @@ -360,14 +360,6 @@ def request_extended_state_attribute(self, attr: str) -> None: """ self.builder.request_state_attributes(attr) - def request_extended_contact_attribute(self, attr: str) -> None: - """Request an extended contact attribute (e.g. ``"force"``) from the builder before finalization. - - Args: - attr: Contact attribute name. - """ - self.builder.request_contact_attributes(attr) - def add_model_change(self, change: ModelFlags) -> None: """Register a model change to notify the solver at the next step. diff --git a/source/isaaclab_newton/test/physics/test_newton_manager.py b/source/isaaclab_newton/test/physics/test_newton_manager.py index e50dc0a95ca6..c693d5908842 100644 --- a/source/isaaclab_newton/test/physics/test_newton_manager.py +++ b/source/isaaclab_newton/test/physics/test_newton_manager.py @@ -47,6 +47,7 @@ from isaaclab_newton.test.fixtures.mock_newton import backend_stub from newton import ModelFlags from newton.actuators import DrivePID +from newton.sensors import SensorContact from newton.solvers import SolverImplicitMPM, SolverKamino, SolverMuJoCo, SolverVBD from isaaclab.managers import ( @@ -652,16 +653,13 @@ def test_collision_cfg_is_rejected_when_the_solver_does_not_use_the_collision_pi @pytest.mark.parametrize( "substep_consumer", [None, "contact_f", "body_qdd"], ids=["sensor_only", "contact_f", "body_qdd"] ) -def test_late_contact_sensor_registration_allocates_observables_and_invalidates_capture(monkeypatch, substep_consumer): +def test_late_contact_sensor_registration_allocates_observables_and_invalidates_capture(substep_consumer): """A new sensor must be included in the next captured step without reallocating existing contacts.""" - allocated, requests = [], [] + allocated = [] contacts = SimpleNamespace(rigid_contact_max=2) - - class RecordingSensor: - solver_observable_kinds = frozenset({"contact_f"}) - - def __init__(self, model, **kwargs): - requests.append(kwargs["request_contact_attributes"]) + builder = newton.ModelBuilder() + for label in ("foot", "hand"): + builder.add_shape_sphere(builder.add_body(label=label), radius=0.1) def allocate(kinds, *, contacts): allocated.append((kinds, contacts)) @@ -673,18 +671,15 @@ def allocate(kinds, *, contacts): existing.body_qdd = wp.zeros(1, dtype=wp.spatial_vector, device="cpu") backend = backend_stub( cfg=NewtonCfg(solver_cfg=MJWarpSolverCfg()), - model=object(), + model=builder.finalize(device="cpu"), solver=solver, contacts=contacts, solver_observables=existing, graphs={"simulate": object()}, ) - monkeypatch.setattr(newton_backend, "SensorContact", RecordingSensor) - backend.add_contact_sensor(body_names_expr="foot") - assert requests == [False] - expected_kinds = RecordingSensor.solver_observable_kinds | (existing.kinds if existing is not None else set()) + expected_kinds = SensorContact.solver_observable_kinds | (existing.kinds if existing is not None else set()) assert allocated == ([] if substep_consumer == "contact_f" else [(expected_kinds, contacts)]) assert backend.contact_observables is not None assert backend.solver_observables is existing diff --git a/tools/wheel_builder/uv-overrides.txt b/tools/wheel_builder/uv-overrides.txt index 115fd6bdd0cd..9dfb55a80f1d 100644 --- a/tools/wheel_builder/uv-overrides.txt +++ b/tools/wheel_builder/uv-overrides.txt @@ -1,10 +1,11 @@ websockets>=17.3 numpy>=2 -mujoco~=3.17.0 -mujoco-warp~=3.17.0 -newton[sim] @ git+https://github.com/newton-physics/newton.git@d31603ff5e8389d1d6b2a5daef6ea2cb074c26ff ; extra != 'optix' -newton[sim,optix] @ git+https://github.com/newton-physics/newton.git@d31603ff5e8389d1d6b2a5daef6ea2cb074c26ff ; extra == 'optix' -newton-usd-schemas>=0.5.0 +mujoco~=4.0.1 +mujoco-core~=4.0.1 +mujoco-warp @ git+https://github.com/google-deepmind/mujoco_warp.git@cb2d638bc7037b1237a0ecd7846ba836baf9b772 +newton[sim] @ git+https://github.com/newton-physics/newton.git@bb6bf15b8f257a8a63cf3f003ad8115556c0e803 ; extra != 'optix' +newton[sim,optix] @ git+https://github.com/newton-physics/newton.git@bb6bf15b8f257a8a63cf3f003ad8115556c0e803 ; extra == 'optix' +newton-usd-schemas>=0.8.0 usd-exchange==3.0.1 usd-optimize~=1.3.1 urdf-usd-converter==0.3.4 diff --git a/uv.lock b/uv.lock index 89e698b65c4d..eaf7fe7b64a7 100644 --- a/uv.lock +++ b/uv.lock @@ -18,12 +18,13 @@ prerelease-mode = "allow" [manifest] overrides = [ { name = "fsspec", specifier = ">=2026.6.0" }, - { name = "mujoco", specifier = "~=3.17.0" }, + { name = "mujoco", specifier = "~=4.0.1" }, + { name = "mujoco-core", specifier = "~=4.0.1" }, { name = "mujoco-usd-converter", specifier = "==0.7.0" }, - { name = "mujoco-warp", specifier = "~=3.17.0" }, - { name = "newton", extras = ["sim"], marker = "extra != 'optix'", git = "https://github.com/newton-physics/newton.git?rev=d31603ff5e8389d1d6b2a5daef6ea2cb074c26ff" }, - { name = "newton", extras = ["sim", "optix"], marker = "extra == 'optix'", git = "https://github.com/newton-physics/newton.git?rev=d31603ff5e8389d1d6b2a5daef6ea2cb074c26ff" }, - { name = "newton-usd-schemas", specifier = ">=0.5.0" }, + { name = "mujoco-warp", git = "https://github.com/google-deepmind/mujoco_warp.git?rev=cb2d638bc7037b1237a0ecd7846ba836baf9b772" }, + { name = "newton", extras = ["sim"], marker = "extra != 'optix'", git = "https://github.com/newton-physics/newton.git?rev=bb6bf15b8f257a8a63cf3f003ad8115556c0e803" }, + { name = "newton", extras = ["sim", "optix"], marker = "extra == 'optix'", git = "https://github.com/newton-physics/newton.git?rev=bb6bf15b8f257a8a63cf3f003ad8115556c0e803" }, + { name = "newton-usd-schemas", specifier = ">=0.8.0" }, { name = "numpy", specifier = ">=2" }, { name = "packaging", specifier = ">=20,<27" }, { name = "scipy", specifier = ">=1.18.0" }, @@ -1876,6 +1877,7 @@ dependencies = [ { name = "lazy-loader" }, { name = "matplotlib" }, { name = "meshio" }, + { name = "mujoco-warp" }, { name = "newton", extra = ["sim"] }, { name = "newton-usd-schemas" }, { name = "numba" }, @@ -2132,11 +2134,12 @@ requires-dist = [ { name = "matplotlib", specifier = ">=3.10.3" }, { name = "meshio", specifier = ">=5.3.5" }, { name = "moviepy", marker = "extra == 'video'", specifier = ">=1.0.3,<2.0.0.dev0" }, + { name = "mujoco-warp", git = "https://github.com/google-deepmind/mujoco_warp.git?rev=cb2d638bc7037b1237a0ecd7846ba836baf9b772" }, { name = "myst-parser", marker = "extra == 'dev'" }, { name = "newton", extras = ["optix"], marker = "extra == 'optix'" }, - { name = "newton", extras = ["sim"], git = "https://github.com/newton-physics/newton.git?rev=d31603ff5e8389d1d6b2a5daef6ea2cb074c26ff" }, + { name = "newton", extras = ["sim"], git = "https://github.com/newton-physics/newton.git?rev=bb6bf15b8f257a8a63cf3f003ad8115556c0e803" }, { name = "newton-neural", marker = "extra == 'newton-neural'", git = "https://github.com/newton-physics/newton-neural.git?rev=06da4d2a604f3dbb48127a9010c41511cdd37a32" }, - { name = "newton-usd-schemas", specifier = ">=0.5.0" }, + { name = "newton-usd-schemas", specifier = ">=0.8.0" }, { name = "numba", specifier = ">=0.63.1" }, { name = "numpy", specifier = ">=2" }, { name = "numpydantic", marker = "extra == 'rlinf'", specifier = ">=1.7.0" }, @@ -2213,7 +2216,7 @@ requires-dist = [ { name = "virtualenv", marker = "extra == 'rlinf'", specifier = ">=21.7.13" }, { name = "viser", marker = "extra == 'viser'", specifier = ">=1.0.16" }, { name = "wandb", marker = "extra == 'wandb'", specifier = ">=0.13.11" }, - { name = "warp-lang", specifier = "==1.17.0" }, + { name = "warp-lang", specifier = "==1.19.0" }, ] provides-extras = ["tetrahedralization", "video", "optix", "newton-neural", "importers", "test", "dev", "sb3", "skrl", "skrl-jax", "rl-games", "wandb", "rsl-rl", "torchrl", "viser", "rerun", "isaacsim", "ov", "ovphysx", "ovrtx", "mimic", "teleop", "ovxr", "rlinf", "leapp", "fovi", "all"] @@ -3438,21 +3441,58 @@ wheels = [ [[package]] name = "mujoco" -version = "3.17.0" +version = "4.0.1" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "absl-py" }, - { name = "etils", extra = ["epath"] }, { name = "glfw" }, + { name = "mujoco-core" }, + { name = "mujoco-studio" }, { name = "numpy" }, { name = "pyopengl" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/33/f7/235af1e87699ca1b1433cd1220c92742a39725ec3b61c1c151e7f9ef9f71/mujoco-4.0.1.tar.gz", hash = "sha256:bf669f944288038571a79dbbb98c9e94d4b9b2d97eaae5c98cf75f74be2f1c6d", size = 154912, upload-time = "2026-11-11T16:25:30.149Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/37/50/a347e51f8a85cffcd02111165ea2b50508abeb89a30661bfe5442b1de411/mujoco-4.0.1-py3-none-any.whl", hash = "sha256:3a0ce4c6cd76dd599a89e60513ac1b03404642363a42267bcfd6b028cc753417", size = 108623, upload-time = "2026-11-11T16:25:28.431Z" }, +] + +[[package]] +name = "mujoco-core" +version = "4.0.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/e8/fb/55e0bbfa81dc9f0c1db559813cba914a267f2547c43918c97e4c1597b134/mujoco_core-4.0.1.tar.gz", hash = "sha256:062883cac035b1b3ae6a769cccd155ecc8f06d8c1cb004c33e01d1cb0f0ccf49", size = 1849567, upload-time = "2026-11-11T16:19:55.415Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2d/e5/d2ac34f1f4e06fcdd05c1e85741cb2adf5a23642fafe43545113b2d5832d/mujoco_core-4.0.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a401eaea5295a29d50c6fdfdb8df8d73c525ab2153751f91c36bd6ccdff95822", size = 8961229, upload-time = "2026-11-11T16:18:58.461Z" }, + { url = "https://files.pythonhosted.org/packages/f5/b0/7848d860e0a8262cfc6c504affcf9a481f17d198cd00c9ca0bcad32de159/mujoco_core-4.0.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:efbfb6e8f2bd63c5f19473f8093f01696937ef453d647b3c7a92620f5873b845", size = 9684944, upload-time = "2026-11-11T16:19:01.02Z" }, + { url = "https://files.pythonhosted.org/packages/d6/9e/e7238fdc9ca2f0dd53de15702b3ff16f603ee1148cb4666c5e7a8cdecc01/mujoco_core-4.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:296f4d02b58df353a3fd6fc1b4fcea180c1622660a36b54d547db1ac8d67bc55", size = 8222366, upload-time = "2026-11-11T16:19:03.192Z" }, +] + +[[package]] +name = "mujoco-studio" +version = "4.0.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "mujoco-core" }, + { name = "mujoco-studio-wasm" }, + { name = "numpy" }, { name = "websockets" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/40/10/dde0a84f2c4552729540c3e19431177e6e1b4c20dc536e19169e575d0e94/mujoco-3.17.0.tar.gz", hash = "sha256:5e49c15905e7a39eaa1efb1cae809a81c5f5c2439467f23e7e6e383624d957be", size = 7145175, upload-time = "2026-10-22T23:58:49.331Z" } +sdist = { url = "https://files.pythonhosted.org/packages/e7/eb/57a62669a40678a8e01d7bd05ce3122af948a19c81fff6c386f5e9dc1c3b/mujoco_studio-4.0.1.tar.gz", hash = "sha256:d5bc8ba43d747737c3922411a7b6466f984983018abdd5f46bb8ba20f6c4cece", size = 421236, upload-time = "2026-11-11T16:21:53.784Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a6/41/e73d8b8ca1a7727294bdc4ab74765335e97510a383f94d270c1dc8778dbb/mujoco_studio-4.0.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4a58749829eef277375a0dedde533a4c88e0c396dd2b4f57f99146f67cf2c652", size = 8288869, upload-time = "2026-11-11T16:21:05.61Z" }, + { url = "https://files.pythonhosted.org/packages/30/c5/39781fb518059323aedacdd32cf7089ad39aa58ca211d2a2c44fb8cbc11f/mujoco_studio-4.0.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c9f8e18cccbc69de0c888f487e2d3348c31b87f578ef557659b7bf4a3a739f38", size = 8749028, upload-time = "2026-11-11T16:21:07.771Z" }, + { url = "https://files.pythonhosted.org/packages/13/7f/a42796ce63c3de4a4e2b4b63c2e6194f58f5947b5c6822bdcc7e3227b46c/mujoco_studio-4.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:95f0265ea176b75166eece21e350f6a6b226486e4f7657761d8b8eb2fbecc8fc", size = 8014662, upload-time = "2026-11-11T16:21:10.001Z" }, +] + +[[package]] +name = "mujoco-studio-wasm" +version = "4.0.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/5b/20/d58817c428a858f9df7e46b18ea0434a581544a61756908f23acfb0cda38/mujoco_studio_wasm-4.0.1.tar.gz", hash = "sha256:90eb6c05d57e5b3171cf8a2ac4f491e3f1a1dcab2c06375f49b5c98dac8d5bfa", size = 2482121, upload-time = "2026-11-11T16:20:47.965Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/a9/a5/d83393779c81fe1807442844254fe71b9182f1f2b64e865dfe8534db1620/mujoco-3.17.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:525e09a00ecd964f06582773d9eeb03bb0e5a1675edf296a6868024759b3b235", size = 25231702, upload-time = "2026-10-22T23:34:54.582Z" }, - { url = "https://files.pythonhosted.org/packages/66/33/9e329714eefc47dfbedefe6ea3809f055acbf58279799d635b1a18510924/mujoco-3.17.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:42371356efe53a5f5f73ed03fcb967bdf04048017f80e2fca01e71a360e42da2", size = 26654565, upload-time = "2026-10-22T23:34:57.762Z" }, - { url = "https://files.pythonhosted.org/packages/c1/16/609b306f340fbc58fb0a75a5aac7cb4bc8f9d60155ebebc22043a4526069/mujoco-3.17.0-cp312-cp312-win_amd64.whl", hash = "sha256:17ab707e86b0a5da13582a5335d3ea585a5ac4cce2e814e15b203530d1bf16e3", size = 16311296, upload-time = "2026-10-22T23:57:32.433Z" }, + { url = "https://files.pythonhosted.org/packages/b9/f7/f59dc75abfbc4f232666ada6ae3946da0af8a8bcd46f058ee063786c3681/mujoco_studio_wasm-4.0.1-py3-none-any.whl", hash = "sha256:14d724721c971ec208baeb6b449797a9cd456ea0331bc8e8a8722e7823e60ccc", size = 2442076, upload-time = "2026-11-11T16:20:45.826Z" }, ] [[package]] @@ -3473,19 +3513,15 @@ wheels = [ [[package]] name = "mujoco-warp" -version = "3.17.0" -source = { registry = "https://pypi.org/simple" } +version = "4.0.1" +source = { git = "https://github.com/google-deepmind/mujoco_warp.git?rev=cb2d638bc7037b1237a0ecd7846ba836baf9b772#cb2d638bc7037b1237a0ecd7846ba836baf9b772" } dependencies = [ { name = "absl-py" }, { name = "etils", extra = ["epath"] }, - { name = "mujoco" }, + { name = "mujoco-core" }, { name = "numpy" }, { name = "warp-lang" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/c3/82/846dc011598bcb3e6ea8949c1fc7519584a86241b50c62fab4e631519200/mujoco_warp-3.17.0.tar.gz", hash = "sha256:2a5391f9d4d7a4d0e2908e0be80ee77ad12dbf27c76a2b9724099441360b5de7", size = 2266308, upload-time = "2026-10-22T23:39:12.206Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/df/81/f651b9f3ee97786f375c879c2386734da1d0aba257b654c6c181edb824fd/mujoco_warp-3.17.0-py3-none-any.whl", hash = "sha256:3c7d4a6c27e60c61679d3746c6fa32e55803d22dd2f3faf79bcc3b643d61ae0a", size = 2348047, upload-time = "2026-10-22T23:39:10.383Z" }, -] [[package]] name = "multidict" @@ -3563,7 +3599,7 @@ wheels = [ [[package]] name = "newton" version = "1.9.0.dev0" -source = { git = "https://github.com/newton-physics/newton.git?rev=d31603ff5e8389d1d6b2a5daef6ea2cb074c26ff#d31603ff5e8389d1d6b2a5daef6ea2cb074c26ff" } +source = { git = "https://github.com/newton-physics/newton.git?rev=bb6bf15b8f257a8a63cf3f003ad8115556c0e803#bb6bf15b8f257a8a63cf3f003ad8115556c0e803" } dependencies = [ { name = "warp-lang" }, ] @@ -3573,7 +3609,7 @@ optix = [ { name = "warp-optix", marker = "platform_machine == 'x86_64' or sys_platform == 'win32'" }, ] sim = [ - { name = "mujoco" }, + { name = "mujoco-core" }, { name = "mujoco-warp" }, ] @@ -3590,11 +3626,11 @@ dependencies = [ [[package]] name = "newton-usd-schemas" -version = "0.5.0" +version = "0.8.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/69/3b/602eea8123824daf2215fcdf4a61a0958507ea11e5c38e4313285f6b745f/newton_usd_schemas-0.5.0.tar.gz", hash = "sha256:a404232e9f89cfce130ee5ed5c8b6b23b187514e857803b5d7b08568bb2516e0", size = 76299, upload-time = "2026-08-14T00:02:50.252Z" } +sdist = { url = "https://files.pythonhosted.org/packages/8e/91/987ba07915cc63dff0253d64496e64b8a557de481d03cfab7dbb17a8c003/newton_usd_schemas-0.8.0.tar.gz", hash = "sha256:c04fadc30053f699245634518d66b57a7e333ca08161a400b7a35f9fc64a5564", size = 130768, upload-time = "2026-11-25T19:23:45.67Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/78/bc/ffad9598cc4772cb0b8d8d47c6700493dac3d8d6518dead78c596a0325ed/newton_usd_schemas-0.5.0-py3-none-any.whl", hash = "sha256:edb559522474855fc03e6f395e0702b11074a13fe1c2ed9cce63fbb06516b342", size = 22280, upload-time = "2026-08-14T00:02:49.056Z" }, + { url = "https://files.pythonhosted.org/packages/c8/54/bc0b6ffb77cff6e194421149a5673139512db65e3ca7fd04c002e0c2fa28/newton_usd_schemas-0.8.0-py3-none-any.whl", hash = "sha256:192432ab5304ff1db0a4eb6b081f49fd1d3d968ba35b3fccc1c662f54cb72637", size = 44137, upload-time = "2026-11-25T19:23:44.476Z" }, ] [[package]] @@ -6285,15 +6321,15 @@ wheels = [ [[package]] name = "warp-lang" -version = "1.17.0" +version = "1.19.0" source = { registry = "https://pypi.nvidia.com/" } dependencies = [ { name = "numpy" }, ] wheels = [ - { url = "https://pypi.nvidia.com/warp-lang/warp_lang-1.17.0-py3-none-manylinux_2_28_x86_64.whl", hash = "sha256:47cd93636828dd16e55eeb4e77a0e3547b5fb0f383000a3d228629df68f28fd8" }, - { url = "https://pypi.nvidia.com/warp-lang/warp_lang-1.17.0-py3-none-manylinux_2_34_aarch64.whl", hash = "sha256:5051271048da956a8b94e2db9771ce60ce9591a3ac5bb49037f3d6812d1eea00" }, - { url = "https://pypi.nvidia.com/warp-lang/warp_lang-1.17.0-py3-none-win_amd64.whl", hash = "sha256:ca35c82242a7553046f09023bbe56750b5c3d9af72625bd1a905a56d3189771d" }, + { url = "https://pypi.nvidia.com/warp-lang/warp_lang-1.19.0-py3-none-manylinux_2_28_x86_64.whl", hash = "sha256:c797f5f4aa9925f676e20dd28e5416fee794499f3f3c0a5b66f2d4dfc2de9e32" }, + { url = "https://pypi.nvidia.com/warp-lang/warp_lang-1.19.0-py3-none-manylinux_2_34_aarch64.whl", hash = "sha256:bc1511b8d5d987a69c2b18edbad721a8949b9f3622a91e3f9187a208fa9e3fab" }, + { url = "https://pypi.nvidia.com/warp-lang/warp_lang-1.19.0-py3-none-win_amd64.whl", hash = "sha256:bb4865dde4c2ae916d3d2a4e20ed1cd406e1d0a76ae722c3c574a9d43385c4d9" }, ] [[package]] From 4d4308b3d803559d402a1aa3c39769f8828fef2c Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Mon, 30 Nov 2026 16:59:56 -0800 Subject: [PATCH 02/12] Migrate Newton callers and fix dependency bump CI --- docs/conf.py | 1 - .../concepts/sensors/joint_wrench_sensor.rst | 4 +- docs/source/how-to/reproducibility.rst | 11 +- pyproject.toml | 10 +- .../newton-mjwarp-version-bump.skip | 0 .../mpm/kit-newton-isaac_rtx-rgb.png | 4 +- .../newton-mjwarp-version-bump.fixed.rst | 2 + .../isaaclab/actuators/newton/adapter.py | 25 +-- .../assets/articulation/articulation_cfg.py | 2 +- .../isaaclab/envs/reset/reset_state_buffer.py | 64 +++---- .../test/actuators/test_newton_adapter.py | 36 ++-- .../test/cli/test_uv_run_pyproject.py | 13 +- .../newton-mjwarp-version-bump.fixed.rst | 2 + .../isaaclab_neural/physics/nerd_solver.py | 14 -- .../newton-mjwarp-version-bump.changed.rst | 6 +- .../assets/articulation/articulation.py | 7 +- .../assets/articulation/articulation_data.py | 12 +- .../isaaclab_newton/cloner/replicate.py | 1 + .../isaaclab_newton/physics/mjwarp_solver.py | 12 -- .../physics/mjwarp_solver_cfg.py | 2 +- .../isaaclab_newton/physics/newton_backend.py | 6 +- .../isaaclab_newton/physics/newton_manager.py | 8 - .../isaaclab_newton/sensors/imu/imu.py | 7 +- .../joint_wrench/joint_wrench_sensor.py | 27 ++- .../sensors/joint_wrench/kernels.py | 2 +- .../isaaclab_newton/sensors/pva/pva.py | 11 +- .../test/physics/test_newton_solvers.py | 14 +- .../isaaclab_newton/test/sensors/test_imu.py | 1 + .../test/sensors/test_joint_wrench_sensor.py | 12 +- .../newton-mjwarp-version-bump.skip | 0 .../test/neural/test_nerd_solver.py | 2 +- tools/verify_warp_cache.py | 14 +- tools/wheel_builder/uv-overrides.txt | 3 + uv.lock | 168 ++++++++++++++++-- 34 files changed, 323 insertions(+), 180 deletions(-) rename source/{isaaclab => _isaaclab_testing}/changelog.d/newton-mjwarp-version-bump.skip (100%) create mode 100644 source/isaaclab/changelog.d/newton-mjwarp-version-bump.fixed.rst create mode 100644 source/isaaclab_neural/changelog.d/newton-mjwarp-version-bump.fixed.rst create mode 100644 source/isaaclab_tasks/changelog.d/newton-mjwarp-version-bump.skip diff --git a/docs/conf.py b/docs/conf.py index 98d154127d3b..47172368216e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -208,7 +208,6 @@ def _read_pinned_versions() -> dict: "gymnasium": ("https://gymnasium.farama.org/", None), # NOTE: pinned to /stable/ because /objects.inv at the root currently 404s "warp": ("https://nvidia.github.io/warp/stable/", None), - "omniverse": ("https://docs.omniverse.nvidia.com/dev-guide/latest", None), } # Usage: :ovrtx-docs:`Minimal mode ` diff --git a/docs/source/concepts/sensors/joint_wrench_sensor.rst b/docs/source/concepts/sensors/joint_wrench_sensor.rst index b023a6b479f8..4ca82b250f7f 100644 --- a/docs/source/concepts/sensors/joint_wrench_sensor.rst +++ b/docs/source/concepts/sensors/joint_wrench_sensor.rst @@ -30,8 +30,8 @@ articulation's existing body map, so indices from ``robot.find_bodies()`` select in the wrench and other articulation data. No separate sensor is required. Set ``robot_cfg.enable_joint_wrench = True`` before constructing the articulation when using -Newton. This requests the extended solver state; it is opt-in because wrench computation adds -solver work and is incompatible with MJWarp's sensor-disabled deterministic mode. PhysX and +Newton. This requests a solver observable; it is opt-in because wrench computation adds +solver work. PhysX and OVPhysX provide the data on demand without this flag. .. code-block:: python diff --git a/docs/source/how-to/reproducibility.rst b/docs/source/how-to/reproducibility.rst index 5851679ee5fa..a73228f83d40 100644 --- a/docs/source/how-to/reproducibility.rst +++ b/docs/source/how-to/reproducibility.rst @@ -102,13 +102,10 @@ the default; clear :attr:`isaaclab.physics.PhysicsCfg.deterministic` instead. ``disable_sensors`` is required rather than optional: MuJoCo Warp's tactile sensor kernel applies two atomic reduction families to one output array, which Warp's deterministic code generation cannot lower, so the sensor module fails - to compile under a determinism guarantee. Disabling it also skips the - ``rne_postconstraint`` stage, which fills the Newton ``body_qdd`` and - ``body_parent_f`` state. The IMU, PVA, and joint-wrench sensors read that - state, so Newton raises rather than let them report stale values: remove those - sensors, or drop the determinism request. Integrations - that consume native MJWarp sensor outputs directly are affected too, and are - not detected. + to compile under a determinism guarantee. Isaac Lab's IMU, PVA, and joint-wrench + sensors request Newton solver observables, which enable ``rne_postconstraint`` + independently of the disabled MuJoCo sensor stage. Integrations that consume + native MJWarp sensor outputs directly still require that stage. .. warning:: diff --git a/pyproject.toml b/pyproject.toml index e4c9875d7130..0133f4190ea4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,10 @@ dependencies = [ "pyglet>=2.1.6,<3", "transformers==5.10.4", "einops", - "warp-lang==1.19.0", + # Use the official CUDA 12 build: the CUDA 13.4 build fails to load conditional kernels on CI drivers. + "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl ; sys_platform == 'linux' and platform_machine == 'x86_64'", + "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl ; sys_platform == 'linux' and platform_machine == 'aarch64'", + "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl ; sys_platform == 'win32'", "matplotlib>=3.10.3", # pillow: floor, not exact — an exact pin below Isaac Sim's prebundled version forces a # downgrade that deletes the prebundled copy other extensions symlink into (nvbugs 6410989). @@ -258,7 +261,7 @@ ovphysx = "0.8.0.43443703471" ovrtx = "0.7.0.1794596436" ovstage = "0.4.0.1794520352" newton = "1.9.0.dev0" -warp = "1.19.0" +warp = "1.19.0+cu12" [tool.ruff] line-length = 120 @@ -440,6 +443,9 @@ override-dependencies = [ # Capture CloudXR requires >=17.3; override Isaac Sim 6.2's <15 and Viser 1.0's <17 caps. "websockets>=17.3", "numpy>=2", + "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl ; sys_platform == 'linux' and platform_machine == 'x86_64'", + "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl ; sys_platform == 'linux' and platform_machine == 'aarch64'", + "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl ; sys_platform == 'win32'", "mujoco~=4.0.1", "mujoco-core~=4.0.1", "mujoco-warp @ git+https://github.com/google-deepmind/mujoco_warp.git@cb2d638bc7037b1237a0ecd7846ba836baf9b772", diff --git a/source/isaaclab/changelog.d/newton-mjwarp-version-bump.skip b/source/_isaaclab_testing/changelog.d/newton-mjwarp-version-bump.skip similarity index 100% rename from source/isaaclab/changelog.d/newton-mjwarp-version-bump.skip rename to source/_isaaclab_testing/changelog.d/newton-mjwarp-version-bump.skip diff --git a/source/_isaaclab_testing/test/rendering/golden_images/renderers/mpm/kit-newton-isaac_rtx-rgb.png b/source/_isaaclab_testing/test/rendering/golden_images/renderers/mpm/kit-newton-isaac_rtx-rgb.png index 7616e7839a41..502518df1490 100644 --- a/source/_isaaclab_testing/test/rendering/golden_images/renderers/mpm/kit-newton-isaac_rtx-rgb.png +++ b/source/_isaaclab_testing/test/rendering/golden_images/renderers/mpm/kit-newton-isaac_rtx-rgb.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:51aa5dd2a445dcbd50a2ab2897290738cd63cb63e3462dbb25933ee0d3c7a8e2 -size 70170 +oid sha256:5ff3be2d2746f519b1fb0f99da2ed96cf208050d548179270e1227ca2d38655a +size 69081 diff --git a/source/isaaclab/changelog.d/newton-mjwarp-version-bump.fixed.rst b/source/isaaclab/changelog.d/newton-mjwarp-version-bump.fixed.rst new file mode 100644 index 000000000000..b7d259c1dac9 --- /dev/null +++ b/source/isaaclab/changelog.d/newton-mjwarp-version-bump.fixed.rst @@ -0,0 +1,2 @@ +* Updated native actuator delays to Newton input processors and specialized reset-state copying by array + rank for Warp 1.19, preserving masked writes and strided output views. diff --git a/source/isaaclab/isaaclab/actuators/newton/adapter.py b/source/isaaclab/isaaclab/actuators/newton/adapter.py index 4904d4c7780c..31595ce559e4 100644 --- a/source/isaaclab/isaaclab/actuators/newton/adapter.py +++ b/source/isaaclab/isaaclab/actuators/newton/adapter.py @@ -28,7 +28,7 @@ import warp as wp from newton import Model from newton._src.utils.selection import FrequencyLayout -from newton.actuators import Actuator, ClampingBase, Delay, parse_actuator_prim +from newton.actuators import Actuator, ClampingBase, InputProcessorDelay, parse_actuator_prim from newton.selection import ArticulationView from ...utils import index_fill_ @@ -469,7 +469,7 @@ def resolve_actuator_component(actuator: Actuator, component: str, attr: str) -> if component == "drive": owner = actuator.drive elif component == "delay": - owner = getattr(actuator, "delay", None) + owner = next((entry for entry in actuator.input_processors if isinstance(entry, InputProcessorDelay)), None) elif component == "clamping": matches = [entry for entry in (getattr(actuator, "clamping", None) or []) if hasattr(entry, attr)] if len(matches) > 1: @@ -566,7 +566,7 @@ def shared_key(component_class: type, resolved: dict[str, Any]) -> tuple: clamping_key: list[tuple] = [] has_delay = False for comp_cls, resolved in component_arguments: - if issubclass(comp_cls, Delay): + if issubclass(comp_cls, InputProcessorDelay): has_delay = True elif issubclass(comp_cls, ClampingBase): clamping_key.append((comp_cls, shared_key(comp_cls, resolved))) @@ -696,17 +696,20 @@ def _create_actuators_from_usd( resolved for components in resolved_components for comp_cls, resolved in components - if issubclass(comp_cls, Delay) + if issubclass(comp_cls, InputProcessorDelay) ] delay = None if delay_arguments: - max_delay = max(int(arguments["delay_steps"]) for arguments in delay_arguments) - if max_delay > 0: - delay = Delay( - **_tile_per_dof_arguments(delay_arguments, num_envs, wp.int32, wp_device), - max_delay=max_delay, - ) + delay = InputProcessorDelay( + **_tile_per_dof_arguments( + [{"delay_steps": arguments["delay_steps"]} for arguments in delay_arguments], + num_envs, + wp.int32, + wp_device, + ), + max_delay=max(arguments["max_delay"] for arguments in delay_arguments), + ) clampings = [] for component_index, (comp_cls, _) in enumerate(clamping_components[0]): @@ -727,7 +730,7 @@ def _create_actuators_from_usd( actuator = Actuator( indices=indices, drive=drive, - delay=delay, + input_processors=[delay] if delay is not None else None, clamping=clampings if clampings else None, control_target_pos_attr="joint_target_pos", control_target_vel_attr="joint_target_vel", diff --git a/source/isaaclab/isaaclab/assets/articulation/articulation_cfg.py b/source/isaaclab/isaaclab/assets/articulation/articulation_cfg.py index b4e73bca27e0..7c926cf6e40a 100644 --- a/source/isaaclab/isaaclab/assets/articulation/articulation_cfg.py +++ b/source/isaaclab/isaaclab/assets/articulation/articulation_cfg.py @@ -61,7 +61,7 @@ class InitialStateCfg(AssetBaseCfg.InitialStateCfg): enable_joint_wrench: bool = False """Request incoming joint reaction wrenches before simulation startup. - Newton uses this to allocate extended state and enable the solver's wrench computation. + Newton uses this to request solver observables and enable joint-wrench computation. It is unnecessary for PhysX and OVPhysX, which provide these values on demand. Read them through :attr:`ArticulationData.body_joint_wrench`. """ diff --git a/source/isaaclab/isaaclab/envs/reset/reset_state_buffer.py b/source/isaaclab/isaaclab/envs/reset/reset_state_buffer.py index ac230357b6ac..5cba4bb7e8b3 100644 --- a/source/isaaclab/isaaclab/envs/reset/reset_state_buffer.py +++ b/source/isaaclab/isaaclab/envs/reset/reset_state_buffer.py @@ -8,6 +8,7 @@ from __future__ import annotations from collections.abc import Callable +from functools import cache from typing import Any, TypeAlias import torch @@ -174,40 +175,41 @@ def _as_array(value, dtype=None) -> wp.array: def _gather(source, ids, mask, target) -> None: if target.size: wp.launch( - _gather_kernel, + _make_gather_kernel(source.ndim), target.shape, [source, ids, mask, target], device=source.device, ) -@wp.kernel -def _gather_kernel( - source: Any, - ids: wp.array(dtype=Any), - mask: wp.array(dtype=wp.bool), - target: Any, -): - i, j, k, component = int(0), int(0), int(0), int(0) - if wp.static(len(source.shape) == 1): - i = wp.tid() - elif wp.static(len(source.shape) == 2): - i, j = wp.tid() - elif wp.static(len(source.shape) == 3): - i, j, k = wp.tid() - else: - i, j, k, component = wp.tid() - if mask and not mask[i]: - return - index = wp.int64(ids[i]) - if index < wp.int64(0) or index >= wp.int64(source.shape[0]): - return - row = int(index) - if wp.static(len(source.shape) == 1): - target[i] = source[row] - elif wp.static(len(source.shape) == 2): - target[i, j] = source[row, j] - elif wp.static(len(source.shape) == 3): - target[i, j, k] = source[row, j, k] - else: - target[i, j, k, component] = source[row, j, k, component] +@cache +def _make_gather_kernel(ndim: int): + """Specialize row copying for the array rank while preserving strided views.""" + + @wp.kernel + def gather_kernel(source: Any, ids: wp.array(dtype=Any), mask: wp.array(dtype=wp.bool), target: Any): + i, j, k, component = int(0), int(0), int(0), int(0) + if wp.static(ndim == 1): + i = wp.tid() + elif wp.static(ndim == 2): + i, j = wp.tid() + elif wp.static(ndim == 3): + i, j, k = wp.tid() + else: + i, j, k, component = wp.tid() + if mask and not mask[i]: + return + index = wp.int64(ids[i]) + if index < wp.int64(0) or index >= wp.int64(source.shape[0]): + return + row = int(index) + if wp.static(ndim == 1): + target[i] = source[row] + elif wp.static(ndim == 2): + target[i, j] = source[row, j] + elif wp.static(ndim == 3): + target[i, j, k] = source[row, j, k] + else: + target[i, j, k, component] = source[row, j, k, component] + + return gather_kernel diff --git a/source/isaaclab/test/actuators/test_newton_adapter.py b/source/isaaclab/test/actuators/test_newton_adapter.py index 4caaaa102787..b6550ed4ed87 100644 --- a/source/isaaclab/test/actuators/test_newton_adapter.py +++ b/source/isaaclab/test/actuators/test_newton_adapter.py @@ -20,8 +20,8 @@ ClampingDCMotor, ClampingMaxEffort, ClampingPositionBased, - Delay, DrivePD, + InputProcessorDelay, parse_actuator_prim, ) @@ -248,12 +248,12 @@ def test_from_usd_groups_by_structure_and_preserves_per_dof_values(): np.testing.assert_allclose(pd.drive.kp.numpy(), [11.0, 22.0, 11.0, 22.0]) np.testing.assert_allclose(pd.drive.kd.numpy(), [1.5, 2.5, 1.5, 2.5]) np.testing.assert_allclose(pd.clamping[0].max_effort.numpy(), [21.0, 32.0, 21.0, 32.0]) - np.testing.assert_array_equal(pd.delay.delay_steps.numpy(), [2, 4, 2, 4]) - assert pd.delay.buf_depth == 4 + np.testing.assert_array_equal(pd.input_processors[0].delay_steps.numpy(), [2, 4, 2, 4]) + assert pd.input_processors[0].buf_depth == 4 dc = next(actuator for actuator in actuators if [type(c) for c in actuator.clamping] == [ClampingDCMotor]) assert type(dc.drive) is DrivePD - assert dc.delay is None + assert not dc.input_processors np.testing.assert_array_equal(dc.indices.numpy(), [2, 3, 8, 9]) np.testing.assert_allclose(dc.drive.kp.numpy(), [33.0, 44.0, 33.0, 44.0]) np.testing.assert_allclose(dc.drive.kd.numpy(), [3.5, 4.5, 3.5, 4.5]) @@ -388,8 +388,14 @@ def test_configuration_overrides_only_the_values_it_sets(tmp_path, caplog): dc_b_curve = {"saturation_effort": 64.0, "velocity_limit": 8.0, "max_motor_effort": 54.0} expected = { - "pd_a": ({"kp": 99.0, "kd": 1.5}, {ClampingMaxEffort: {"max_effort": 5.0}, Delay: {"delay_steps": 2}}), - "pd_b": ({"kp": 22.0, "kd": 2.5}, {ClampingMaxEffort: {"max_effort": 81.0}, Delay: {"delay_steps": 4}}), + "pd_a": ( + {"kp": 99.0, "kd": 1.5}, + {ClampingMaxEffort: {"max_effort": 5.0}, InputProcessorDelay: {"delay_steps": 2}}, + ), + "pd_b": ( + {"kp": 22.0, "kd": 2.5}, + {ClampingMaxEffort: {"max_effort": 81.0}, InputProcessorDelay: {"delay_steps": 4}}, + ), "dc_a": ({"kp": 33.0, "kd": 3.5}, {ClampingMaxEffort: {"max_effort": 82.0}}), "dc_b": ({"kp": 1.0, "kd": 4.5}, {ClampingDCMotor: dc_b_curve}), "remote_a": ({"kp": 55.0, "kd": 5.5}, {ClampingDCMotor: {"saturation_effort": 5.0, "max_motor_effort": 84.0}}), @@ -398,7 +404,7 @@ def test_configuration_overrides_only_the_values_it_sets(tmp_path, caplog): {"kp": 99.0, "kd": 5.5}, { ClampingPositionBased: {"lookup_positions": [-1.0, 1.0], "lookup_efforts": [11.0, 21.0]}, - Delay: {"delay_steps": 1}, + InputProcessorDelay: {"delay_steps": 1}, }, ), "mlp": ( @@ -644,10 +650,16 @@ def test_masked_reset_resets_only_selected_env_states(device): device=device, articulation_prim_path="/World/Robot", ) - states = [s for s in (*adapter._states_a, *adapter._states_b) if s is not None and s.delay_state is not None] + states = [ + processor_state + for state in (*adapter._states_a, *adapter._states_b) + if state is not None + for processor_state in state.input_processor_states or () + if isinstance(processor_state, InputProcessorDelay.State) + ] assert states for state in states: - state.delay_state.num_pushes.fill_(5) + state.num_pushes.fill_(5) env_mask = torch.tensor([True, False, True], device=device) adapter.reset(env_mask=wp.from_torch(env_mask, dtype=wp.bool)) @@ -656,5 +668,7 @@ def test_masked_reset_resets_only_selected_env_states(device): envs = torch.as_tensor(actuator.indices.numpy().astype(np.int64), device=device) // len(_JOINT_NAMES) expected = torch.where(env_mask[envs], 0, 5).to(torch.int32) for state in pair: - if state is not None and state.delay_state is not None: - torch.testing.assert_close(wp.to_torch(state.delay_state.num_pushes), expected) + if state is not None: + for processor_state in state.input_processor_states or (): + if isinstance(processor_state, InputProcessorDelay.State): + torch.testing.assert_close(wp.to_torch(processor_state.num_pushes), expected) diff --git a/source/isaaclab/test/cli/test_uv_run_pyproject.py b/source/isaaclab/test/cli/test_uv_run_pyproject.py index 9e5c02755d4a..46af83c03f0b 100644 --- a/source/isaaclab/test/cli/test_uv_run_pyproject.py +++ b/source/isaaclab/test/cli/test_uv_run_pyproject.py @@ -208,11 +208,14 @@ def spec(package: str) -> str: assert mjwarp_spec in dependencies assert mjwarp_spec in overrides - # warp-lang is a core dependency whose table value may be an exact pin - # ("1.2.3" -> ``==``) or a range (">=1.2.3" -> mirrored verbatim). - warp_value = versions["warp"] - warp_spec = f"warp-lang=={warp_value}" if warp_value[0].isdigit() else f"warp-lang{warp_value}" - assert warp_spec in dependencies + # The official CUDA 12 wheels keep conditional graph compilation compatible with CI drivers. + warp_pins = {requirement for requirement in dependencies if requirement.startswith("warp-lang @ ")} + assert warp_pins == {requirement for requirement in overrides if requirement.startswith("warp-lang @ ")} + warp_packages = [package for package in lock["package"] if package["name"] == "warp-lang"] + assert {package["version"] for package in warp_packages} == {versions["warp"]} + assert {package["source"]["url"] for package in warp_packages} == { + requirement.split(" @ ")[1].split(" ; ")[0] for requirement in warp_pins + } def test_public_ov_packages_use_public_pypi_index(source_checkout_root: Path): diff --git a/source/isaaclab_neural/changelog.d/newton-mjwarp-version-bump.fixed.rst b/source/isaaclab_neural/changelog.d/newton-mjwarp-version-bump.fixed.rst new file mode 100644 index 000000000000..ef4d602663b4 --- /dev/null +++ b/source/isaaclab_neural/changelog.d/newton-mjwarp-version-bump.fixed.rst @@ -0,0 +1,2 @@ +* Validate unsupported acceleration and joint-wrench readings through Newton solver observables when + using learned physics. diff --git a/source/isaaclab_neural/isaaclab_neural/physics/nerd_solver.py b/source/isaaclab_neural/isaaclab_neural/physics/nerd_solver.py index 88095958ee91..41b0bcaa890d 100644 --- a/source/isaaclab_neural/isaaclab_neural/physics/nerd_solver.py +++ b/source/isaaclab_neural/isaaclab_neural/physics/nerd_solver.py @@ -35,12 +35,6 @@ ) """Error suffix returned by ``coupling_error()`` for neural solvers.""" -_UNWRITTEN_STATE = { - "body_qdd": "IMU and PVA sensors", - "body_parent_f": "joint wrench sensors and robots with enable_joint_wrench", -} -"""Newton state attributes not computed by ``SolverNeRD`` and the Isaac Lab features that read them.""" - class NeRDSolver(NewtonSolver): """Isaac Lab ``NewtonSolver`` wrapper for ``newton-neural``'s standalone ``SolverNeRD``. @@ -78,14 +72,6 @@ def build(self, model: Model, mode: wp.DeterministicMode, env_template: str | No device = wp.device_to_torch(model.device) nerd = load_nerd(cfg.checkpoint, device) require_articulation(nerd) - requested = model.get_requested_state_attributes() - unwritten = [f"{name} ({readers})" for name, readers in _UNWRITTEN_STATE.items() if name in requested] - if unwritten: - raise ValueError( - f"the task reads {' and '.join(unwritten)} from the Newton state. A model that predicts the " - "next state computes no accelerations and no joint reaction forces, so these would stay zero. " - "Remove what reads them from the scene configuration" - ) solver = SolverNeRD( model, nerd, diff --git a/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst b/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst index 662b022150fe..3e2c6bc6469b 100644 --- a/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst +++ b/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst @@ -1,4 +1,6 @@ -* **Breaking:** Updated Newton and MuJoCo Warp to upstream revisions with MuJoCo 4.0.1, Warp 1.19, +* **Breaking:** Updated Newton and MuJoCo Warp to upstream revisions with MuJoCo 4.0.1, the CUDA 12 build of Warp 1.19, and Newton USD schemas 0.8. Removed ``NewtonManager.request_extended_contact_attribute``; use solver - observables or contact sensors for contact forces. Renamed ``NewtonCollisionPipelineCfg.soft_contact_margin`` + observables or contact sensors for contact forces. Removed ``NewtonManager.request_extended_state_attribute``; + request ``body_qdd`` or ``body_parent_f`` through ``NewtonManager.request_solver_observables`` instead. + IMU, PVA, and joint-wrench readings now use those solver outputs, including with MuJoCo sensors disabled. Renamed ``NewtonCollisionPipelineCfg.soft_contact_margin`` to ``soft_contact_gap`` to match Newton's detection-only gap setting. diff --git a/source/isaaclab_newton/isaaclab_newton/assets/articulation/articulation.py b/source/isaaclab_newton/isaaclab_newton/assets/articulation/articulation.py index 564254dbffc0..a6f79baceab4 100644 --- a/source/isaaclab_newton/isaaclab_newton/assets/articulation/articulation.py +++ b/source/isaaclab_newton/isaaclab_newton/assets/articulation/articulation.py @@ -19,6 +19,7 @@ import warp as wp from newton import JointTargetMode, JointType, ModelFlags from newton.selection import ArticulationView +from newton.solvers import SolverBase from prettytable import PrettyTable from pxr import UsdPhysics @@ -160,7 +161,7 @@ def __init__(self, cfg: ArticulationCfg): super().__init__(cfg) if cfg.enable_joint_wrench: - self._backend_manager.request_extended_state_attribute("body_parent_f") + self._backend_manager.request_solver_observables(SolverBase.ObservableKind.BODY_PARENT_F, owner=self) sim_ctx = SimulationContext.instance() self._sim_cfg = sim_ctx.cfg if sim_ctx is not None else None @@ -3269,6 +3270,7 @@ def _initialize_impl(self): # container for data access self._data = ArticulationData(self.root_view, self.device, backend_manager=self._backend_manager) + self._backend_manager.register_solver_init_callback(self._data._bind_solver) # create buffers self._create_buffers() @@ -3415,9 +3417,6 @@ def _invalidate_initialize_callback(self, event): super()._invalidate_initialize_callback(event) self._root_view = None - if self.cfg.enable_joint_wrench: - self._backend_manager.request_extended_state_attribute("body_parent_f") - """ Internal helpers -- Actuators. """ diff --git a/source/isaaclab_newton/isaaclab_newton/assets/articulation/articulation_data.py b/source/isaaclab_newton/isaaclab_newton/assets/articulation/articulation_data.py index 8213f5efadd6..1818a17b855f 100644 --- a/source/isaaclab_newton/isaaclab_newton/assets/articulation/articulation_data.py +++ b/source/isaaclab_newton/isaaclab_newton/assets/articulation/articulation_data.py @@ -11,6 +11,7 @@ import numpy as np import warp as wp from newton import JointType +from newton.solvers import SolverBase from isaaclab.assets.articulation import ordering_kernels from isaaclab.assets.articulation.base_articulation_data import BaseArticulationData @@ -1544,6 +1545,12 @@ def body_com_quat_b(self) -> ProxyArray: self._body_com_quat_b_ta = ProxyArray(self._get_quat_from_transform(body_com_pose_b)) return self._body_com_quat_b_ta + def _bind_solver(self) -> None: + """Bind the requested joint wrench after solver outputs have been allocated.""" + observables = self._backend_manager.get_solver_observables() + if observables is not None and observables.is_requested(SolverBase.ObservableKind.BODY_PARENT_F): + self._sim_bind_body_parent_f = self._root_view.get_attribute("body_parent_f", observables)[:, 0] + def _create_simulation_bindings(self) -> None: """Create simulation bindings for the root data. @@ -1593,10 +1600,7 @@ def _create_simulation_bindings(self) -> None: copy=False, ) self._sim_bind_body_external_wrench = self._root_view.get_attribute("body_f", state)[:, 0] - try: - self._sim_bind_body_parent_f = self._root_view.get_attribute("body_parent_f", state)[:, 0] - except Exception: - self._sim_bind_body_parent_f = None + self._sim_bind_body_parent_f = None # -- joint properties if self._num_joints > 0: self._sim_bind_joint_pos_limits_lower = self._root_view.get_attribute("joint_limit_lower", model)[:, 0] diff --git a/source/isaaclab_newton/isaaclab_newton/cloner/replicate.py b/source/isaaclab_newton/isaaclab_newton/cloner/replicate.py index 9d2dead3a5b3..0366708e4ab3 100644 --- a/source/isaaclab_newton/isaaclab_newton/cloner/replicate.py +++ b/source/isaaclab_newton/isaaclab_newton/cloner/replicate.py @@ -312,6 +312,7 @@ def _replicate_newton( # noqa: C901 -- Resolve source ownership and native geom for imported in source_builders.values(): imported.shape_collision_filter_pairs = [] imported.shape_collision_group[:] = [0] * imported.shape_count + imported.joint_collision_filter_parent[:] = [False] * imported.joint_count global_sites, source_sites, root_sites = {}, {}, {} particle_ranges, visual_ranges, cable_bindings = {}, {}, {} diff --git a/source/isaaclab_newton/isaaclab_newton/physics/mjwarp_solver.py b/source/isaaclab_newton/isaaclab_newton/physics/mjwarp_solver.py index df9decd9f4f6..0a75e4e44b06 100644 --- a/source/isaaclab_newton/isaaclab_newton/physics/mjwarp_solver.py +++ b/source/isaaclab_newton/isaaclab_newton/physics/mjwarp_solver.py @@ -23,8 +23,6 @@ logger = logging.getLogger(__name__) -_SENSORS_BY_STATE_ATTRIBUTE = {"body_qdd": "the IMU or PVA sensor", "body_parent_f": "the joint-wrench sensor"} - @wp.func def _nonfinite(values: wp.array2d(dtype=Any), world: int, column: int) -> bool: @@ -90,16 +88,6 @@ def coupling_error(cls, cfg: MJWarpSolverCfg, in_place: bool) -> str | None: def build(self, model: Model, mode: wp.DeterministicMode, env_template: str | None) -> SolverMuJoCo: """Construct MuJoCo Warp; a determinism guarantee disables its sensor stage, which cannot honor it.""" deterministic = mode != wp.DeterministicMode.NOT_GUARANTEED - blocked = set(model.get_requested_state_attributes()) & _SENSORS_BY_STATE_ATTRIBUTE.keys() - if deterministic and blocked: - sensors = sorted({_SENSORS_BY_STATE_ATTRIBUTE[attr] for attr in blocked}) - raise ValueError( - f"This task does not support deterministic physics: it uses {' and '.join(sensors)}," - f" reading {sorted(blocked)}. Those attributes come from MuJoCo's post-constraint pass," - " which runs inside the sensor stage that a determinism guarantee must disable, so the" - " values would never be refreshed. Remove the sensors, or drop the determinism request" - f" (deterministic_mode={mode.name})." - ) kwargs = solver_kwargs(self.solver_class, self.cfg, mode) # ls_parallel is deprecated in newton; forwarding it (even as False) emits a warning. kwargs.pop("ls_parallel", None) diff --git a/source/isaaclab_newton/isaaclab_newton/physics/mjwarp_solver_cfg.py b/source/isaaclab_newton/isaaclab_newton/physics/mjwarp_solver_cfg.py index 45659c6d55aa..e4bcc9e4b1a1 100644 --- a/source/isaaclab_newton/isaaclab_newton/physics/mjwarp_solver_cfg.py +++ b/source/isaaclab_newton/isaaclab_newton/physics/mjwarp_solver_cfg.py @@ -57,7 +57,7 @@ class MJWarpSolverCfg(NewtonSolverCfg): """Whether to disable MuJoCo Warp's internal sensor computation. A determinism guarantee (:attr:`NewtonCfg.deterministic_mode`) disables it automatically. Isaac Lab sensors use - Newton state directly and do not depend on MuJoCo Warp's internal sensor data. + Newton state and solver observables and do not depend on MuJoCo Warp's internal sensor data. """ default_actuator_gear: float | None = None diff --git a/source/isaaclab_newton/isaaclab_newton/physics/newton_backend.py b/source/isaaclab_newton/isaaclab_newton/physics/newton_backend.py index a6378117eea5..61223ad4cb95 100644 --- a/source/isaaclab_newton/isaaclab_newton/physics/newton_backend.py +++ b/source/isaaclab_newton/isaaclab_newton/physics/newton_backend.py @@ -740,7 +740,7 @@ def add_contact_sensor( return sensor def add_imu_sensor(self, sites: list[int]) -> SensorIMU: - """Add an IMU sensor at sites; the ``body_qdd`` state attribute must be requested before finalization. + """Add an IMU sensor at sites; the ``body_qdd`` solver observable must be requested before initialization. Args: sites: Site index of each environment. @@ -748,7 +748,7 @@ def add_imu_sensor(self, sites: list[int]) -> SensorIMU: Returns: The Newton sensor, updated at the end of every step. """ - sensor = SensorIMU(self.model, sites=sites, request_state_attributes=False) + sensor = SensorIMU(self.model, sites=sites) self.imu_sensors.append(sensor) return sensor @@ -1002,7 +1002,7 @@ def _run_solver_substeps(self, contacts: Contacts | None, *, observables: Solver def _update_sensors(self) -> None: """Push the current state to IMU and contact sensors.""" for sensor in self.imu_sensors: - sensor.update(self.state_0) + sensor.update(self.state_0, observables=self.solver_observables) if self.contact_sensors: for sensor in self.contact_sensors.values(): sensor.update(self.state_0, self.contacts, observables=self.contact_observables) diff --git a/source/isaaclab_newton/isaaclab_newton/physics/newton_manager.py b/source/isaaclab_newton/isaaclab_newton/physics/newton_manager.py index cdadaad25a6c..2324c6cb6984 100644 --- a/source/isaaclab_newton/isaaclab_newton/physics/newton_manager.py +++ b/source/isaaclab_newton/isaaclab_newton/physics/newton_manager.py @@ -352,14 +352,6 @@ def get_non_finite_worlds(self) -> wp.array: """Return faulted worlds; see :meth:`NewtonBackend.get_non_finite_worlds`.""" return self.backend.get_non_finite_worlds() - def request_extended_state_attribute(self, attr: str) -> None: - """Request an extended state attribute (e.g. ``"body_qdd"``) from the builder before finalization. - - Args: - attr: State attribute name (must be in ``State.EXTENDED_ATTRIBUTES``). - """ - self.builder.request_state_attributes(attr) - def add_model_change(self, change: ModelFlags) -> None: """Register a model change to notify the solver at the next step. diff --git a/source/isaaclab_newton/isaaclab_newton/sensors/imu/imu.py b/source/isaaclab_newton/isaaclab_newton/sensors/imu/imu.py index bfe5dbf1462d..68b363c6cdc2 100644 --- a/source/isaaclab_newton/isaaclab_newton/sensors/imu/imu.py +++ b/source/isaaclab_newton/isaaclab_newton/sensors/imu/imu.py @@ -10,6 +10,7 @@ from typing import TYPE_CHECKING import warp as wp +from newton.solvers import SolverBase from isaaclab.sensors.imu import BaseImu from isaaclab.utils.warp import memory as memory_kernels @@ -42,7 +43,7 @@ class Imu(BaseImu): def __init__(self, cfg: ImuCfg): """Initializes the Newton IMU sensor. - Registers a site request and the ``body_qdd`` state attribute with + Registers a site request and the ``body_qdd`` solver observable with :class:`NewtonManager`. The site is injected into prototype builders before replication so it ends up in each world. @@ -56,7 +57,7 @@ def __init__(self, cfg: ImuCfg): offset_xform = wp.transform(cfg.offset.pos, cfg.offset.rot) self._site_label: str = self._backend_manager.register_site(cfg.prim_path, offset_xform) - self._backend_manager.request_extended_state_attribute("body_qdd") + self._backend_manager.request_solver_observables(SolverBase.ObservableKind.BODY_QDD, owner=self) logger.info(f"IMU '{cfg.prim_path}': site registered (label='{self._site_label}')") @@ -164,7 +165,7 @@ def _update_buffers_impl(self, env_mask: wp.array): ) def _invalidate_initialize_callback(self, event): - """Release native handles; the site and ``body_qdd`` request persist on the builder.""" + """Release native handles; site and solver observable requests survive hard resets.""" super()._invalidate_initialize_callback(event) self._newton_sensor = None diff --git a/source/isaaclab_newton/isaaclab_newton/sensors/joint_wrench/joint_wrench_sensor.py b/source/isaaclab_newton/isaaclab_newton/sensors/joint_wrench/joint_wrench_sensor.py index 9ba08e9072cb..4dd0b4053c76 100644 --- a/source/isaaclab_newton/isaaclab_newton/sensors/joint_wrench/joint_wrench_sensor.py +++ b/source/isaaclab_newton/isaaclab_newton/sensors/joint_wrench/joint_wrench_sensor.py @@ -14,6 +14,7 @@ import warp as wp from newton import JointType from newton.selection import ArticulationView +from newton.solvers import SolverBase from pxr import UsdPhysics @@ -54,8 +55,8 @@ class JointWrenchSensor(BaseJointWrenchSensor): def __init__(self, cfg: JointWrenchSensorCfg): """Initialize the Newton joint-wrench sensor. - Requests the ``body_parent_f`` extended state attribute from :class:`NewtonManager` so the - model builder allocates it during simulation startup. + Requests the ``body_parent_f`` solver observable from :class:`NewtonManager` so the + solver allocates it during simulation startup. Args: cfg: The configuration parameters. @@ -71,7 +72,7 @@ def __init__(self, cfg: JointWrenchSensorCfg): self._joint_child: wp.array | None = None self._num_joints: int = 0 - self._backend_manager.request_extended_state_attribute("body_parent_f") + self._backend_manager.request_solver_observables(SolverBase.ObservableKind.BODY_PARENT_F, owner=self) def __str__(self) -> str: """String representation of the sensor instance.""" @@ -158,16 +159,7 @@ def has_articulation_root_api(prim) -> bool: f" Check the articulation at '{root_prim_path_expr}'." ) - try: - body_parent_f = self._root_view.get_attribute("body_parent_f", state_0) - except AttributeError as err: - raise RuntimeError( - f"Joint wrench sensor '{self.cfg.prim_path}': Newton state does not expose" - " 'body_parent_f'. Construct the sensor before sim startup so the extended-state" - " request is forwarded to the model builder." - ) from err - - self._sim_bind_body_parent_f = body_parent_f[:, 0] + self._backend_manager.register_solver_init_callback(self._bind_solver) self._sim_bind_body_q = self._root_view.get_link_transforms(state_0)[:, 0] self._sim_bind_body_com = self._root_view.get_attribute("body_com", model)[:, 0] self._sim_bind_joint_X_c = wp.array( @@ -187,6 +179,12 @@ def has_articulation_root_api(prim) -> bool: logger.info(f"Joint wrench sensor initialized: {self._num_envs} envs, {self._num_joints} joints") + def _bind_solver(self) -> None: + """Bind the wrench output after the solver allocates its observables.""" + self._sim_bind_body_parent_f = self._root_view.get_attribute( + "body_parent_f", self._backend_manager.get_solver_observables() + )[:, 0] + def _update_buffers_impl(self, env_mask: wp.array) -> None: """Convert Newton's body_parent_f into INCOMING_JOINT_FRAME force and torque buffers. @@ -214,7 +212,7 @@ def _update_buffers_impl(self, env_mask: wp.array) -> None: ) def _invalidate_initialize_callback(self, event) -> None: - """Drop view, cached sizes, and buffers; re-register the extended-state request. + """Drop view, cached sizes, and buffers; the solver observable request survives hard resets. Args: event: An invalidate event. @@ -232,4 +230,3 @@ def _invalidate_initialize_callback(self, event) -> None: self._data._body_names = [] self._data._force_ta = None self._data._torque_ta = None - self._backend_manager.request_extended_state_attribute("body_parent_f") diff --git a/source/isaaclab_newton/isaaclab_newton/sensors/joint_wrench/kernels.py b/source/isaaclab_newton/isaaclab_newton/sensors/joint_wrench/kernels.py index e2d9e1a2aaf9..85ec1abb9ee2 100644 --- a/source/isaaclab_newton/isaaclab_newton/sensors/joint_wrench/kernels.py +++ b/source/isaaclab_newton/isaaclab_newton/sensors/joint_wrench/kernels.py @@ -28,7 +28,7 @@ def joint_wrench_to_incoming_joint_frame_kernel( Args: env_mask: Boolean mask selecting which environments to update. - body_parent_f: Newton state — world-frame spatial wrench at child COM ``(num_envs, num_bodies)``. + body_parent_f: Newton solver output — world-frame spatial wrench at child COM ``(num_envs, num_bodies)``. body_q: Newton state — child link transforms in world frame ``(num_envs, num_bodies)``. body_com: Newton model — COM offset in link-local frame ``(num_envs, num_bodies)``. joint_X_c: Newton model — child-side joint frame relative to child link ``(num_envs, num_joints)``. diff --git a/source/isaaclab_newton/isaaclab_newton/sensors/pva/pva.py b/source/isaaclab_newton/isaaclab_newton/sensors/pva/pva.py index 819f65327aa1..faf7aa1726c7 100644 --- a/source/isaaclab_newton/isaaclab_newton/sensors/pva/pva.py +++ b/source/isaaclab_newton/isaaclab_newton/sensors/pva/pva.py @@ -9,6 +9,7 @@ from typing import TYPE_CHECKING, ClassVar import warp as wp +from newton.solvers import SolverBase from isaaclab.sensors.pva import BasePva @@ -25,7 +26,7 @@ class Pva(BasePva): """Newton Pose Velocity Acceleration (PVA) sensor. Reads body transforms, velocities, and accelerations directly from - Newton's simulation state (``body_q``, ``body_qd``, ``body_qdd``) to + Newton's state (``body_q``, ``body_qd``) and solver outputs (``body_qdd``) to provide world-frame pose and body-frame velocities/accelerations. """ @@ -59,7 +60,7 @@ def __init__(self, cfg: PvaCfg): offset_xform = wp.transform(cfg.offset.pos, cfg.offset.rot) self._site_label = self._backend_manager.register_site(cfg.prim_path, offset_xform) if "acceleration" in self._data.data_types: - self._backend_manager.request_extended_state_attribute("body_qdd") + self._backend_manager.request_solver_observables(SolverBase.ObservableKind.BODY_QDD, owner=self) logger.info(f"Pva '{cfg.prim_path}': site registered (label='{self._site_label}')") @@ -136,7 +137,9 @@ def _update_buffers_impl(self, env_mask: wp.array): self._newton_model.body_world, state.body_q, state.body_qd, - state.body_qdd if "acceleration" in self._data.data_types else None, + self._backend_manager.get_solver_observables().body_qdd + if "acceleration" in self._data.data_types + else None, ], outputs=[ self._data.pose_w.warp, @@ -148,7 +151,7 @@ def _update_buffers_impl(self, env_mask: wp.array): ) def _invalidate_initialize_callback(self, event): - """Release native handles; the site and ``body_qdd`` request persist on the builder.""" + """Release native handles; site and solver observable requests survive hard resets.""" super()._invalidate_initialize_callback(event) self._newton_model = None self._site_indices = None diff --git a/source/isaaclab_newton/test/physics/test_newton_solvers.py b/source/isaaclab_newton/test/physics/test_newton_solvers.py index 607c3bd4f914..fcf6cadafb48 100644 --- a/source/isaaclab_newton/test/physics/test_newton_solvers.py +++ b/source/isaaclab_newton/test/physics/test_newton_solvers.py @@ -48,10 +48,9 @@ from isaaclab.test.utils import test_devices -def _model_stub(state_attributes=()) -> SimpleNamespace: +def _model_stub() -> SimpleNamespace: """Model stand-in carrying what solver construction reads before the Newton solver exists.""" return SimpleNamespace( - get_requested_state_attributes=lambda: list(state_attributes), articulation_start=None, articulation_end=None, _has_body_variants=False, @@ -210,18 +209,13 @@ def recorded_mujoco_kwargs(monkeypatch) -> list[dict]: return constructed -def test_mjwarp_determinism_disables_sensors_unless_a_sensor_needs_them(recorded_mujoco_kwargs): - """A guarantee builds MJWarp without its sensor stage, and refuses sensors that need that stage.""" +def test_mjwarp_determinism_disables_mujoco_sensor_stage(recorded_mujoco_kwargs): + """A guarantee disables MuJoCo sensors without changing the caller's solver configuration.""" solver_cfg = MJWarpSolverCfg() MJWarpSolver(solver_cfg, _model_stub(), wp.DeterministicMode.NOT_GUARANTEED) MJWarpSolver(solver_cfg, _model_stub(), wp.DeterministicMode.RUN_TO_RUN) - MJWarpSolver(solver_cfg, _model_stub({"body_qdd"}), wp.DeterministicMode.NOT_GUARANTEED) - for attr in ("body_qdd", "body_parent_f"): - with pytest.raises(ValueError, match="does not support deterministic physics"): - MJWarpSolver(solver_cfg, _model_stub({attr}), wp.DeterministicMode.RUN_TO_RUN) - - assert [kwargs["disable_sensors"] for kwargs in recorded_mujoco_kwargs] == [False, True, False] + assert [kwargs["disable_sensors"] for kwargs in recorded_mujoco_kwargs] == [False, True] assert solver_cfg.disable_sensors is False diff --git a/source/isaaclab_newton/test/sensors/test_imu.py b/source/isaaclab_newton/test/sensors/test_imu.py index fbb77ecbe00a..65706ece0c73 100644 --- a/source/isaaclab_newton/test/sensors/test_imu.py +++ b/source/isaaclab_newton/test/sensors/test_imu.py @@ -55,6 +55,7 @@ def sim(): dt=1.0 / 200.0, physics=NewtonCfg( solver_cfg=MJWarpSolverCfg(), + deterministic_mode="run_to_run", num_substeps=1, ), ) diff --git a/source/isaaclab_newton/test/sensors/test_joint_wrench_sensor.py b/source/isaaclab_newton/test/sensors/test_joint_wrench_sensor.py index bd457f5d68c9..4b6284ea76e2 100644 --- a/source/isaaclab_newton/test/sensors/test_joint_wrench_sensor.py +++ b/source/isaaclab_newton/test/sensors/test_joint_wrench_sensor.py @@ -321,6 +321,7 @@ def test_fixed_joint_selection(sim, monkeypatch, root_type): """Select tree welds independently of control joints, with world roots and loops excluded.""" from isaaclab_newton.sensors.joint_wrench import joint_wrench_sensor as sensor_module from newton.selection import ArticulationView + from newton.solvers import SolverBase, SolverFeatherstone # Another articulation precedes the sensor's target in each world. The target has no # movable internal joints; base, mount, and tool form a tree with an additional loop weld. @@ -342,7 +343,6 @@ def test_fixed_joint_selection(sim, monkeypatch, root_type): world.add_joint_fixed(tool, base, label="loop_weld") builder = newton.ModelBuilder() - builder.request_state_attributes("body_parent_f") for env in range(2): # Distinct anchors catch accidental broadcasting of the first world's joint frames. world.joint_X_c[wrist_joint] = wp.transform(wp.vec3(0.1 * (env + 1), 0.0, 0.0), wp.quat_identity()) @@ -354,12 +354,18 @@ def test_fixed_joint_selection(sim, monkeypatch, root_type): view_factory = Mock(wraps=ArticulationView) monkeypatch.setattr(sensor_module, "ArticulationView", view_factory) monkeypatch.setattr(sim.backend_manager, "views", views) - monkeypatch.setattr(sim.backend_manager, "backend", SimpleNamespace(model=model, state_0=state)) + observables = SolverFeatherstone(model).observables({SolverBase.ObservableKind.BODY_PARENT_F}) + backend = SimpleNamespace( + model=model, state_0=state, solver=None, solver_observables=observables, solver_init_callbacks=[] + ) + monkeypatch.setattr(sim.backend_manager, "backend", backend) monkeypatch.setattr(sensor_module.BaseJointWrenchSensor, "_initialize_impl", lambda self: None) monkeypatch.setattr(sensor_module, "resolve_matching_prims_from_source", lambda *a, **kw: [(None, root_expr)]) sensor = sensor_module.JointWrenchSensor(JointWrenchSensorCfg(prim_path=root_expr)) sensor._device, sensor._num_envs = "cpu", 2 sensor._initialize_impl() + for callback in backend.solver_init_callbacks: + callback() expected_names = ["base", "mount", "tool"] if root_type == newton.JointType.REVOLUTE else ["mount", "tool"] assert sensor.body_names == expected_names @@ -375,4 +381,4 @@ def test_fixed_joint_selection(sim, monkeypatch, root_type): assert view_factory.call_count == 1 assert view.joint_count == int(root_type == newton.JointType.REVOLUTE) assert len(views) == 1 - assert sensor._sim_bind_body_parent_f.ptr == view.get_attribute("body_parent_f", state).ptr + assert sensor._sim_bind_body_parent_f.ptr == view.get_attribute("body_parent_f", observables).ptr diff --git a/source/isaaclab_tasks/changelog.d/newton-mjwarp-version-bump.skip b/source/isaaclab_tasks/changelog.d/newton-mjwarp-version-bump.skip new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/source/isaaclab_tasks/test/neural/test_nerd_solver.py b/source/isaaclab_tasks/test/neural/test_nerd_solver.py index 626e2974c9ae..1a4b4c450c93 100644 --- a/source/isaaclab_tasks/test/neural/test_nerd_solver.py +++ b/source/isaaclab_tasks/test/neural/test_nerd_solver.py @@ -284,7 +284,7 @@ def test_refusals(checkpoint: Path, device: str, tmp_path: Path): env_cfg = nerd_task_cfg(TASK, checkpoint, 4, device) env_cfg.scene.imu = ImuCfg(prim_path="{ENV_REGEX_NS}/Robot/base") env_cfg.scene.robot.enable_joint_wrench = True - refused(TASK, env_cfg, ValueError, r"body_qdd \(.*\) and body_parent_f \(") + refused(TASK, env_cfg, ValueError, r"SolverNeRD does not support solver observable.*body_parent_f.*body_qdd") # A model that was built on the dataset and never fitted, which has no frame to step the task by. dataset = TrajectoryDataset(checkpoint.parent / "dataset") diff --git a/tools/verify_warp_cache.py b/tools/verify_warp_cache.py index c5db2a01fdea..cf49a3199dbc 100644 --- a/tools/verify_warp_cache.py +++ b/tools/verify_warp_cache.py @@ -16,6 +16,7 @@ import os import re +from importlib.metadata import version import warp as wp @@ -24,21 +25,20 @@ expected = os.path.realpath(os.environ["WARP_CACHE_PATH"]) actual = os.path.realpath(wp.config.kernel_cache_dir) -print(f"Warp version: {wp.config.version}") +installed_version = version("warp-lang") +print(f"Warp version: {installed_version}") print(f"Warp kernel cache directory: {actual}") if os.path.commonpath([actual, expected]) != expected: raise SystemExit(f"Warp cache path mismatch: expected {expected}, got {actual}") -# The cache key is scoped on the warp-lang version pinned in the lockfile, and -# Warp namespaces its cache dir by its own version. If the two disagree the key -# names a namespace nothing ever writes, so every restore misses while looking -# like a working cache. Fail instead of degrading silently. +# Cache identity follows the distribution version, including its CUDA build tag. +# wp.config.version reports the API version and omits tags such as +cu12. with open("uv.lock") as handle: pinned = re.search(r'name = "warp-lang"\nversion = "([^"]+)"', handle.read()) -if pinned and pinned.group(1) != wp.config.version: +if pinned and pinned.group(1) != installed_version: raise SystemExit( f"Warp version mismatch: uv.lock pins {pinned.group(1)} but the container runs" - f" {wp.config.version}; the cache key would never match what Warp writes" + f" {installed_version}; the cache key must identify the installed CUDA build" ) diff --git a/tools/wheel_builder/uv-overrides.txt b/tools/wheel_builder/uv-overrides.txt index 9dfb55a80f1d..6a9e45464509 100644 --- a/tools/wheel_builder/uv-overrides.txt +++ b/tools/wheel_builder/uv-overrides.txt @@ -1,5 +1,8 @@ websockets>=17.3 numpy>=2 +warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl ; sys_platform == 'linux' and platform_machine == 'x86_64' +warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl ; sys_platform == 'linux' and platform_machine == 'aarch64' +warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl ; sys_platform == 'win32' mujoco~=4.0.1 mujoco-core~=4.0.1 mujoco-warp @ git+https://github.com/google-deepmind/mujoco_warp.git@cb2d638bc7037b1237a0ecd7846ba836baf9b772 diff --git a/uv.lock b/uv.lock index eaf7fe7b64a7..425ebbfd8c3a 100644 --- a/uv.lock +++ b/uv.lock @@ -34,6 +34,9 @@ overrides = [ { name = "urllib3", specifier = ">=2.8.0" }, { name = "usd-exchange", specifier = "==3.0.1" }, { name = "usd-optimize", specifier = "~=1.3.1" }, + { name = "warp-lang", marker = "platform_machine == 'aarch64' and sys_platform == 'linux'", url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, + { name = "warp-lang", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'", url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, + { name = "warp-lang", marker = "sys_platform == 'win32'", url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" }, { name = "websockets", specifier = ">=17.3" }, ] @@ -1303,7 +1306,9 @@ dependencies = [ { name = "torchvision" }, { name = "tqdm" }, { name = "trimesh" }, - { name = "warp-lang" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/b8/0f/787082f650d1ae57a420b868edb4e25953eadc569793003fe5257848b674/fovi-2.7.0.tar.gz", hash = "sha256:506faffe547f31db4a4e4ea24b124d918ad8fc7fc2cdcab6822f6f960b75b74a", size = 67610838, upload-time = "2026-11-23T22:02:14.2Z" } wheels = [ @@ -1911,7 +1916,9 @@ dependencies = [ { name = "typing-extensions" }, { name = "urllib3" }, { name = "usd-exchange" }, - { name = "warp-lang" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, ] [package.optional-dependencies] @@ -2216,7 +2223,9 @@ requires-dist = [ { name = "virtualenv", marker = "extra == 'rlinf'", specifier = ">=21.7.13" }, { name = "viser", marker = "extra == 'viser'", specifier = ">=1.0.16" }, { name = "wandb", marker = "extra == 'wandb'", specifier = ">=0.13.11" }, - { name = "warp-lang", specifier = "==1.19.0" }, + { name = "warp-lang", marker = "platform_machine == 'aarch64' and sys_platform == 'linux'", url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, + { name = "warp-lang", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'", url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, + { name = "warp-lang", marker = "sys_platform == 'win32'", url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" }, ] provides-extras = ["tetrahedralization", "video", "optix", "newton-neural", "importers", "test", "dev", "sb3", "skrl", "skrl-jax", "rl-games", "wandb", "rsl-rl", "torchrl", "viser", "rerun", "isaacsim", "ov", "ovphysx", "ovrtx", "mimic", "teleop", "ovxr", "rlinf", "leapp", "fovi", "all"] @@ -3520,7 +3529,9 @@ dependencies = [ { name = "etils", extra = ["epath"] }, { name = "mujoco-core" }, { name = "numpy" }, - { name = "warp-lang" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, ] [[package]] @@ -3601,7 +3612,9 @@ name = "newton" version = "1.9.0.dev0" source = { git = "https://github.com/newton-physics/newton.git?rev=bb6bf15b8f257a8a63cf3f003ad8115556c0e803#bb6bf15b8f257a8a63cf3f003ad8115556c0e803" } dependencies = [ - { name = "warp-lang" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, ] [package.optional-dependencies] @@ -3621,7 +3634,9 @@ dependencies = [ { name = "newton", extra = ["sim"] }, { name = "numpy" }, { name = "torch" }, - { name = "warp-lang" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, ] [[package]] @@ -4202,7 +4217,9 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "ovstage" }, { name = "packaging" }, - { name = "warp-lang" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, ] wheels = [ { url = "https://files.pythonhosted.org/packages/d7/d3/a1f6843672fcfc7bdd6af1ccbfc8063e61846ca1dda93e689850a33eb94d/ovphysx-0.8.0.43443703471-py3-none-manylinux_2_35_aarch64.whl", hash = "sha256:97823201da0cbe73014ae5218fdcb2bbd22bd6b48ce4e27b0fba39a07771835e", size = 161716252, upload-time = "2026-11-13T21:03:53.538Z" }, @@ -5498,7 +5515,9 @@ torch = [ { name = "torch" }, ] warp = [ - { name = "warp-lang" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, { name = "warp-nn" }, ] @@ -6321,23 +6340,141 @@ wheels = [ [[package]] name = "warp-lang" -version = "1.19.0" -source = { registry = "https://pypi.nvidia.com/" } +version = "1.19.0+cu12" +source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" } +resolution-markers = [ + "platform_machine == 'x86_64' and sys_platform == 'linux'", +] +dependencies = [ + { name = "numpy" }, +] +wheels = [ + { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl", hash = "sha256:f95d9581ed12663df272e45a50101b171e143fde1ef7b2433a8bfc9fba096598" }, +] + +[package.metadata] +requires-dist = [ + { name = "blosc", marker = "(platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and extra == 'examples') or (sys_platform != 'win32' and extra == 'examples')", specifier = ">=1.11.1" }, + { name = "coverage", extras = ["toml"], marker = "extra == 'dev'" }, + { name = "matplotlib", marker = "extra == 'examples'", specifier = ">=3.7.5" }, + { name = "ml-dtypes", marker = "extra == 'dev'", specifier = ">=0.5.4" }, + { name = "myst-parser", marker = "extra == 'docs'" }, + { name = "nlopt", marker = "(python_full_version < '3.15' and platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and extra == 'examples') or (python_full_version < '3.15' and sys_platform != 'win32' and extra == 'examples')" }, + { name = "numpy" }, + { name = "nvidia-sphinx-theme", marker = "extra == 'docs'" }, + { name = "nvtx", marker = "extra == 'dev'", specifier = ">=0.2.16" }, + { name = "pillow", marker = "extra == 'examples'", specifier = ">=10.4.0" }, + { name = "pre-commit", marker = "extra == 'docs'" }, + { name = "psutil", marker = "extra == 'examples'", specifier = ">=7.1.0" }, + { name = "pyglet", marker = "extra == 'examples'", specifier = ">=2.1.9" }, + { name = "sphinx-copybutton", marker = "extra == 'docs'" }, + { name = "torch", marker = "extra == 'torch-cu12'", specifier = ">=2.7.0" }, + { name = "torch", marker = "extra == 'torch-cu13'", specifier = ">=2.9.0" }, + { name = "usd-core", marker = "(platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and sys_platform == 'win32' and extra == 'benchmark') or (platform_machine != 'aarch64' and sys_platform == 'linux' and extra == 'benchmark') or (sys_platform != 'linux' and sys_platform != 'win32' and extra == 'benchmark')", specifier = ">=25.5" }, + { name = "usd-core", marker = "(platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and sys_platform == 'win32' and extra == 'examples') or (platform_machine != 'aarch64' and sys_platform == 'linux' and extra == 'examples') or (sys_platform != 'linux' and sys_platform != 'win32' and extra == 'examples')", specifier = ">=25.5" }, + { name = "usd-exchange", marker = "python_full_version >= '3.10' and python_full_version < '3.13' and platform_machine == 'aarch64' and sys_platform == 'linux' and extra == 'benchmark'", specifier = ">=2.2" }, + { name = "usd-exchange", marker = "python_full_version >= '3.10' and python_full_version < '3.13' and platform_machine == 'aarch64' and sys_platform == 'linux' and extra == 'examples'", specifier = ">=2.2" }, + { name = "warp-lang", extras = ["docs"], marker = "extra == 'dev'" }, + { name = "warp-lang", extras = ["examples"], marker = "extra == 'dev'" }, + { name = "warp-lang", extras = ["examples"], marker = "extra == 'torch-cu12'" }, + { name = "warp-lang", extras = ["examples"], marker = "extra == 'torch-cu13'" }, +] +provides-extras = ["docs", "benchmark", "examples", "torch-cu12", "torch-cu13", "dev"] + +[[package]] +name = "warp-lang" +version = "1.19.0+cu12" +source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" } +resolution-markers = [ + "platform_machine == 'aarch64' and sys_platform == 'linux'", +] dependencies = [ { name = "numpy" }, ] wheels = [ - { url = "https://pypi.nvidia.com/warp-lang/warp_lang-1.19.0-py3-none-manylinux_2_28_x86_64.whl", hash = "sha256:c797f5f4aa9925f676e20dd28e5416fee794499f3f3c0a5b66f2d4dfc2de9e32" }, - { url = "https://pypi.nvidia.com/warp-lang/warp_lang-1.19.0-py3-none-manylinux_2_34_aarch64.whl", hash = "sha256:bc1511b8d5d987a69c2b18edbad721a8949b9f3622a91e3f9187a208fa9e3fab" }, - { url = "https://pypi.nvidia.com/warp-lang/warp_lang-1.19.0-py3-none-win_amd64.whl", hash = "sha256:bb4865dde4c2ae916d3d2a4e20ed1cd406e1d0a76ae722c3c574a9d43385c4d9" }, + { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl", hash = "sha256:b3d0222132811b1db8c5c5d1d04bdc92923b77b7df8556d665116569a361a5d2" }, ] +[package.metadata] +requires-dist = [ + { name = "blosc", marker = "(platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and extra == 'examples') or (sys_platform != 'win32' and extra == 'examples')", specifier = ">=1.11.1" }, + { name = "coverage", extras = ["toml"], marker = "extra == 'dev'" }, + { name = "matplotlib", marker = "extra == 'examples'", specifier = ">=3.7.5" }, + { name = "ml-dtypes", marker = "extra == 'dev'", specifier = ">=0.5.4" }, + { name = "myst-parser", marker = "extra == 'docs'" }, + { name = "nlopt", marker = "(python_full_version < '3.15' and platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and extra == 'examples') or (python_full_version < '3.15' and sys_platform != 'win32' and extra == 'examples')" }, + { name = "numpy" }, + { name = "nvidia-sphinx-theme", marker = "extra == 'docs'" }, + { name = "nvtx", marker = "extra == 'dev'", specifier = ">=0.2.16" }, + { name = "pillow", marker = "extra == 'examples'", specifier = ">=10.4.0" }, + { name = "pre-commit", marker = "extra == 'docs'" }, + { name = "psutil", marker = "extra == 'examples'", specifier = ">=7.1.0" }, + { name = "pyglet", marker = "extra == 'examples'", specifier = ">=2.1.9" }, + { name = "sphinx-copybutton", marker = "extra == 'docs'" }, + { name = "torch", marker = "extra == 'torch-cu12'", specifier = ">=2.7.0" }, + { name = "torch", marker = "extra == 'torch-cu13'", specifier = ">=2.9.0" }, + { name = "usd-core", marker = "(platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and sys_platform == 'win32' and extra == 'benchmark') or (platform_machine != 'aarch64' and sys_platform == 'linux' and extra == 'benchmark') or (sys_platform != 'linux' and sys_platform != 'win32' and extra == 'benchmark')", specifier = ">=25.5" }, + { name = "usd-core", marker = "(platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and sys_platform == 'win32' and extra == 'examples') or (platform_machine != 'aarch64' and sys_platform == 'linux' and extra == 'examples') or (sys_platform != 'linux' and sys_platform != 'win32' and extra == 'examples')", specifier = ">=25.5" }, + { name = "usd-exchange", marker = "python_full_version >= '3.10' and python_full_version < '3.13' and platform_machine == 'aarch64' and sys_platform == 'linux' and extra == 'benchmark'", specifier = ">=2.2" }, + { name = "usd-exchange", marker = "python_full_version >= '3.10' and python_full_version < '3.13' and platform_machine == 'aarch64' and sys_platform == 'linux' and extra == 'examples'", specifier = ">=2.2" }, + { name = "warp-lang", extras = ["docs"], marker = "extra == 'dev'" }, + { name = "warp-lang", extras = ["examples"], marker = "extra == 'dev'" }, + { name = "warp-lang", extras = ["examples"], marker = "extra == 'torch-cu12'" }, + { name = "warp-lang", extras = ["examples"], marker = "extra == 'torch-cu13'" }, +] +provides-extras = ["docs", "benchmark", "examples", "torch-cu12", "torch-cu13", "dev"] + +[[package]] +name = "warp-lang" +version = "1.19.0+cu12" +source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" } +resolution-markers = [ + "platform_machine == 'AMD64' and sys_platform == 'win32'", +] +dependencies = [ + { name = "numpy" }, +] +wheels = [ + { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl", hash = "sha256:2f2b90e1d8efced743a7ecacc2b12679825392d7cf0883f9ff87f97afd87ead0" }, +] + +[package.metadata] +requires-dist = [ + { name = "blosc", marker = "(platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and extra == 'examples') or (sys_platform != 'win32' and extra == 'examples')", specifier = ">=1.11.1" }, + { name = "coverage", extras = ["toml"], marker = "extra == 'dev'" }, + { name = "matplotlib", marker = "extra == 'examples'", specifier = ">=3.7.5" }, + { name = "ml-dtypes", marker = "extra == 'dev'", specifier = ">=0.5.4" }, + { name = "myst-parser", marker = "extra == 'docs'" }, + { name = "nlopt", marker = "(python_full_version < '3.15' and platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and extra == 'examples') or (python_full_version < '3.15' and sys_platform != 'win32' and extra == 'examples')" }, + { name = "numpy" }, + { name = "nvidia-sphinx-theme", marker = "extra == 'docs'" }, + { name = "nvtx", marker = "extra == 'dev'", specifier = ">=0.2.16" }, + { name = "pillow", marker = "extra == 'examples'", specifier = ">=10.4.0" }, + { name = "pre-commit", marker = "extra == 'docs'" }, + { name = "psutil", marker = "extra == 'examples'", specifier = ">=7.1.0" }, + { name = "pyglet", marker = "extra == 'examples'", specifier = ">=2.1.9" }, + { name = "sphinx-copybutton", marker = "extra == 'docs'" }, + { name = "torch", marker = "extra == 'torch-cu12'", specifier = ">=2.7.0" }, + { name = "torch", marker = "extra == 'torch-cu13'", specifier = ">=2.9.0" }, + { name = "usd-core", marker = "(platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and sys_platform == 'win32' and extra == 'benchmark') or (platform_machine != 'aarch64' and sys_platform == 'linux' and extra == 'benchmark') or (sys_platform != 'linux' and sys_platform != 'win32' and extra == 'benchmark')", specifier = ">=25.5" }, + { name = "usd-core", marker = "(platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and sys_platform == 'win32' and extra == 'examples') or (platform_machine != 'aarch64' and sys_platform == 'linux' and extra == 'examples') or (sys_platform != 'linux' and sys_platform != 'win32' and extra == 'examples')", specifier = ">=25.5" }, + { name = "usd-exchange", marker = "python_full_version >= '3.10' and python_full_version < '3.13' and platform_machine == 'aarch64' and sys_platform == 'linux' and extra == 'benchmark'", specifier = ">=2.2" }, + { name = "usd-exchange", marker = "python_full_version >= '3.10' and python_full_version < '3.13' and platform_machine == 'aarch64' and sys_platform == 'linux' and extra == 'examples'", specifier = ">=2.2" }, + { name = "warp-lang", extras = ["docs"], marker = "extra == 'dev'" }, + { name = "warp-lang", extras = ["examples"], marker = "extra == 'dev'" }, + { name = "warp-lang", extras = ["examples"], marker = "extra == 'torch-cu12'" }, + { name = "warp-lang", extras = ["examples"], marker = "extra == 'torch-cu13'" }, +] +provides-extras = ["docs", "benchmark", "examples", "torch-cu12", "torch-cu13", "dev"] + [[package]] name = "warp-nn" version = "0.4.1" source = { registry = "https://pypi.nvidia.com/" } dependencies = [ - { name = "warp-lang" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, ] wheels = [ { url = "https://pypi.nvidia.com/warp-nn/warp_nn-0.4.1-py3-none-any.whl", hash = "sha256:5a598043603f9a7c30ee5f02d832ac3c2065b9621d5c57f3a2dd8b64bb3be387" }, @@ -6350,7 +6487,8 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "numpy" }, { name = "pyoptix" }, - { name = "warp-lang" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/db/90/f61ceaf0d85592296f611bf58fc469e7118a5b28be4bc5fcb4345427fe98/warp_optix-0.3.0.tar.gz", hash = "sha256:9695d5c81a88eb4d6297cb2af654658ce10cac504c11d5b4316b6059e836a348", size = 1028895, upload-time = "2026-11-11T09:13:50.484Z" } wheels = [ From 226fb322151ba376b2c77ffa63450a25ba0a533c Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Mon, 30 Nov 2026 18:03:07 -0800 Subject: [PATCH 03/12] Update actuator tests to current Newton APIs --- .../actuators/test_actuator_collection.py | 2 +- .../changelog.d/newton-actuator-api.skip | 0 .../assets/test_newton_actuators_physx.py | 7 +++++-- .../assets/test_newton_actuators_newton.py | 21 +++++++++++-------- .../changelog.d/newton-actuator-api.skip | 0 .../test/assets/test_articulation.py | 16 ++++++++------ 6 files changed, 28 insertions(+), 18 deletions(-) create mode 100644 source/isaaclab_isaacsim/changelog.d/newton-actuator-api.skip create mode 100644 source/isaaclab_ov/changelog.d/newton-actuator-api.skip diff --git a/source/isaaclab/test/actuators/test_actuator_collection.py b/source/isaaclab/test/actuators/test_actuator_collection.py index 2ab078d58581..dbd8bb87613c 100644 --- a/source/isaaclab/test/actuators/test_actuator_collection.py +++ b/source/isaaclab/test/actuators/test_actuator_collection.py @@ -282,7 +282,7 @@ class _FakeNewtonActuator: def __init__(self, drive, indices): self.drive = drive - self.delay = None + self.input_processors = [] self.clamping = [] self.indices = indices diff --git a/source/isaaclab_isaacsim/changelog.d/newton-actuator-api.skip b/source/isaaclab_isaacsim/changelog.d/newton-actuator-api.skip new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/source/isaaclab_isaacsim/test/assets/test_newton_actuators_physx.py b/source/isaaclab_isaacsim/test/assets/test_newton_actuators_physx.py index 34082a5ac6d1..9da8069323e6 100644 --- a/source/isaaclab_isaacsim/test/assets/test_newton_actuators_physx.py +++ b/source/isaaclab_isaacsim/test/assets/test_newton_actuators_physx.py @@ -32,6 +32,7 @@ from isaaclab_isaacsim.assets.articulation import actuator_control from isaaclab_isaacsim.assets.articulation.actuator_control import PhysxActuatorControl from isaaclab_isaacsim.physics import PhysxCfg +from newton.actuators import InputProcessorDelay import isaaclab.sim as sim_utils from isaaclab.actuators import IdealPDActuatorCfg, ImplicitActuatorCfg @@ -301,9 +302,11 @@ def test_reset_clears_actuator_state_of_selected_envs(rollouts: _Rollouts) -> No articulation = rollouts.robots["delayed"] adapter = articulation.newton_actuator_adapter delay_states = [ - (actuator, state.delay_state) + (actuator, delay_state) for actuator, state in zip(adapter.actuators, adapter._states_a) - if state is not None and getattr(state, "delay_state", None) is not None + if state is not None + for delay_state in state.input_processor_states or () + if isinstance(delay_state, InputProcessorDelay.State) ] assert delay_states assert all((delay_state.num_pushes.numpy() > 0).all() for _, delay_state in delay_states) diff --git a/source/isaaclab_newton/test/assets/test_newton_actuators_newton.py b/source/isaaclab_newton/test/assets/test_newton_actuators_newton.py index 546a97a6eec3..deae7882bcac 100644 --- a/source/isaaclab_newton/test/assets/test_newton_actuators_newton.py +++ b/source/isaaclab_newton/test/assets/test_newton_actuators_newton.py @@ -39,6 +39,7 @@ from isaaclab_newton.assets.articulation.actuator_control import NewtonActuatorControl from isaaclab_newton.physics import MJWarpSolverCfg, NewtonBuilderCfg from newton import JointTargetMode, JointType, ModelBuilder +from newton.actuators import InputProcessorDelay from newton.solvers import SolverMuJoCo from newton_test_utils import NUM_ENVS, local_usd, newton_sim_cfg, spawn_assets @@ -390,7 +391,7 @@ def _run( "group": group_name, "drive_type": type(act.drive).__name__, "clamping_types": sorted(type(c).__name__ for c in (act.clamping or [])), - "has_delay": act.delay is not None, + "has_delay": any(isinstance(p, InputProcessorDelay) for p in act.input_processors), } ) results[name]["actuator_info"] = actuator_info @@ -998,15 +999,17 @@ def test_newton_state_reset_isolated_to_reset_env(newton_run: _Run) -> None: for group_name in articulation.actuators._native_group_names: group_actuators = articulation.actuators[group_name] own_actuators.extend(group_actuators if isinstance(group_actuators, tuple) else (group_actuators,)) - stateful_pairs = [ - (act, st) + delay_states = [ + (act, delay_state) for act, st in zip(adapter.actuators, adapter._states_a) - if any(act is own for own in own_actuators) and st is not None and st.delay_state is not None + if any(act is own for own in own_actuators) and st is not None + for delay_state in st.input_processor_states or () + if isinstance(delay_state, InputProcessorDelay.State) ] - assert len(stateful_pairs) > 0, "expected at least one DelayedPD actuator with delay_state" + assert delay_states, "expected at least one DelayedPD actuator with delay state" - for act, state in stateful_pairs: - pushes_before = state.delay_state.num_pushes.numpy() + for act, delay_state in delay_states: + pushes_before = delay_state.num_pushes.numpy() assert (pushes_before > 0).all(), "expected non-zero num_pushes for all DOFs after warmup" articulation.reset(env_ids=torch.tensor([0], device=articulation.device, dtype=torch.long)) @@ -1014,8 +1017,8 @@ def test_newton_state_reset_isolated_to_reset_env(newton_run: _Run) -> None: # Map each entry of ``act.indices`` to its env via the adapter's per-env DOF count. The adapter is # model-wide (includes free-joint DOFs on floating-base articulations), so ``adapter.num_joints`` is the # stride. - for act, state in stateful_pairs: - pushes_after = state.delay_state.num_pushes.numpy() + for act, delay_state in delay_states: + pushes_after = delay_state.num_pushes.numpy() indices_np = act.indices.numpy() for i, global_dof in enumerate(indices_np): env = int(global_dof) // adapter.num_joints diff --git a/source/isaaclab_ov/changelog.d/newton-actuator-api.skip b/source/isaaclab_ov/changelog.d/newton-actuator-api.skip new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/source/isaaclab_ov/test/assets/test_articulation.py b/source/isaaclab_ov/test/assets/test_articulation.py index 070afd47ce98..0cfc0e52056e 100644 --- a/source/isaaclab_ov/test/assets/test_articulation.py +++ b/source/isaaclab_ov/test/assets/test_articulation.py @@ -1684,6 +1684,8 @@ def test_native_actuator_submits_real_effort(scene: _ArticulationScene) -> None: def test_native_actuator_reset_and_gain_event_are_environment_selective(scene: _ArticulationScene) -> None: """Reset and randomize only the selected OVPhysX native-controller environment.""" # Newton is only needed by the native actuator path. + from newton.actuators import InputProcessorDelay # noqa: PLC0415 + from isaaclab.actuators.newton import read_group_parameter # noqa: PLC0415 class Env: @@ -1703,15 +1705,17 @@ def __getitem__(self, name): scene.step(articulation, count=3) adapter = articulation.newton_actuator_adapter - stateful_pairs = [ - state - for actuator, state in zip(adapter.actuators, adapter._states_a) - if state is not None and getattr(state, "delay_state", None) is not None + delay_states = [ + delay_state + for state in adapter._states_a + if state is not None + for delay_state in state.input_processor_states or () + if isinstance(delay_state, InputProcessorDelay.State) ] - assert len(stateful_pairs) == 1 + assert len(delay_states) == 1 articulation.reset(env_ids=torch.tensor([0], device=device, dtype=torch.long)) # The delay state is flattened environment-major over the group's joints. - assert stateful_pairs[0].delay_state.num_pushes.numpy().tolist() == [0] * num_joints + [1] * num_joints + assert delay_states[0].num_pushes.numpy().tolist() == [0] * num_joints + [1] * num_joints env = Env(articulation) asset_cfg = SceneEntityCfg("robot") From 27ec8d936d5c5a4262815fbdff08d7771931c922 Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Mon, 30 Nov 2026 18:23:44 -0800 Subject: [PATCH 04/12] Allow cold compilation in Newton demo smoke tests --- source/isaaclab/test/app/standalone_script_cases.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/isaaclab/test/app/standalone_script_cases.py b/source/isaaclab/test/app/standalone_script_cases.py index ecf4e6bc3dcf..13d382cf78ff 100644 --- a/source/isaaclab/test/app/standalone_script_cases.py +++ b/source/isaaclab/test/app/standalone_script_cases.py @@ -221,7 +221,10 @@ class SmokeResult: "scripts/tutorials/01_assets/add_new_robot.py": ScriptOverride( fixed_physics_backend="ovphysx", visualizers=(None, "newton") ), + # Cold Newton/MJWarp compilation can consume most of the default five-minute budget. + "examples/demos/h1_locomotion.py": ScriptOverride(startup_timeout=600.0), "examples/demos/nist.py": ScriptOverride( + startup_timeout=600.0, fixed_physics_backend="newton_mjwarp", visualizers=(None, "newton"), ), From 5e8236307bd6501b3cb48e6ec1b91b0265db3f8b Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Mon, 30 Nov 2026 21:38:29 -0800 Subject: [PATCH 05/12] Remove obsolete Newton conventions and reset workarounds --- docs/source/how-to/solver_tuning_mjwarp.rst | 23 +++---- docs/source/isaaclab/migrating.rst | 3 +- examples/demos/nist.py | 2 - examples/demos/zoo.py | 2 - scripts/benchmarks/benchmark_load_robot.py | 1 - .../newton-mjwarp-version-bump.major} | 0 .../newton-mjwarp-version-bump.removed.rst | 2 + .../isaaclab/actuators/newton/adapter.py | 46 ++++--------- .../actuators/test_actuator_collection.py | 6 +- .../newton-mjwarp-version-bump.skip | 0 .../test/envs/test_mdp2_env.py | 4 +- .../newton-mjwarp-version-bump.fixed.rst | 2 + .../physics/mjwarp_nerd_solver.py | 3 - .../newton-mjwarp-version-bump.changed.rst | 4 ++ .../isaaclab_newton/physics/mjwarp_solver.py | 20 +----- .../physics/mjwarp_solver_cfg.py | 31 --------- .../test/physics/test_newton_solvers.py | 68 +++++++++++-------- .../newton-mjwarp-version-bump.changed.rst | 1 + .../contrib/gb300_sharpa_insertion/env_cfg.py | 1 - .../heterogeneous_tasks_env_cfg.py | 1 - .../contrib/keyboard/so101_env_cfg.py | 1 - .../contrib/nist/nist_env_cfg.py | 2 - .../agibot/place_toy2box_rmp_rel_env_cfg.py | 2 - .../contrib/stack/stack_env_cfg.py | 2 - .../core/handover/handover_env_cfg.py | 1 - .../isaaclab_tasks/core/lift/lift_env_cfg.py | 1 - .../locomotion/humanoid/humanoid_common.py | 1 - .../core/reach/reach_env_cfg.py | 1 - .../allegro_hand/allegro_hand_common.py | 1 - .../allegro_hand/record/nerd_recording_cfg.py | 4 +- .../config/shadow_hand/shadow_hand_common.py | 1 - .../newton-mjwarp-version-bump.changed.rst | 1 + .../mdp2/lift_kuka_allegro/lift_env_cfg.py | 1 - 33 files changed, 81 insertions(+), 158 deletions(-) rename source/{isaaclab_tasks/changelog.d/newton-mjwarp-version-bump.skip => isaaclab/changelog.d/newton-mjwarp-version-bump.major} (100%) create mode 100644 source/isaaclab/changelog.d/newton-mjwarp-version-bump.removed.rst create mode 100644 source/isaaclab_experimental/changelog.d/newton-mjwarp-version-bump.skip create mode 100644 source/isaaclab_tasks/changelog.d/newton-mjwarp-version-bump.changed.rst create mode 100644 source/isaaclab_tasks_experimental/changelog.d/newton-mjwarp-version-bump.changed.rst diff --git a/docs/source/how-to/solver_tuning_mjwarp.rst b/docs/source/how-to/solver_tuning_mjwarp.rst index 8489537213f1..a30558974d4c 100644 --- a/docs/source/how-to/solver_tuning_mjwarp.rst +++ b/docs/source/how-to/solver_tuning_mjwarp.rst @@ -145,24 +145,21 @@ Optimize only after validation After the task is stable over its full distribution, measure the cost of each change and retain only work that improves the recorded outcome. Reduce excess -capacity, line-search work, collision refresh, substeps, and state -synchronization frequency one at a time. +capacity, line-search work, collision refresh, and substeps one at a time. ``ccd_iterations`` is a GJK/EPA collision-convergence cap, not a PhysX-style continuous-collision-detection switch. Increase it only for a warning or a -reproducible complex-geometry collision failure. Keep -``update_data_interval=1`` until resets, Newton-side state writes, contact -reporting, and sensors are verified; a larger interval reduces synchronization -work but can expose stale data. ``save_to_mjcf``, ``use_mujoco_cpu``, and +reproducible complex-geometry collision failure. ``save_to_mjcf``, ``use_mujoco_cpu``, and ``disable_contacts`` are diagnostic tools, not production tuning targets. -``update_data_interval`` counts solver substeps, with -``decimation * num_substeps`` solver steps per control step. ``0`` disables -periodic imports. With MuJoCo Warp, state writes through Isaac Lab's asset APIs -still synchronize flagged worlds at the next ``forward()`` or physics-step -boundary, including environment resets. The native MuJoCo CPU backend only -synchronizes template world 0 when that world is flagged. Raw Newton state writes -must also flag the manager's reset masks through ``sim.backend_manager.invalidate_fk()``. +Newton synchronizes state into MuJoCo on every solver step; ``update_data_interval`` +has been removed from ``MJWarpSolverCfg``. The ignored ``ls_parallel`` option has +also been removed; use ``ls_iterations`` to tune iterative line search. World separation +is inferred from the model. The native MuJoCo CPU backend requires a single-world model. +State writes through Isaac Lab's asset APIs flag affected worlds for forward kinematics +and clear their solver history at the next ``forward()`` or physics-step boundary. +Raw Newton state writes must also flag the manager's reset masks through +``sim.backend_manager.invalidate_fk()``. The diagnose-first order is: validate the model and fixed reproduction; choose timestep and substeps; size capacities; validate convergence; tune contact diff --git a/docs/source/isaaclab/migrating.rst b/docs/source/isaaclab/migrating.rst index 5baf0fb55a05..a14a459cd417 100644 --- a/docs/source/isaaclab/migrating.rst +++ b/docs/source/isaaclab/migrating.rst @@ -1188,8 +1188,7 @@ The backend articulation methods ``write_actuator_stiffness_to_sim`` and updates actuator-owned gains, implicit solver drives, or native drive parameters as appropriate. For direct writes to a Newton-executed group's drive, use :func:`~isaaclab.actuators.newton.write_group_parameter` with the ``"drive"`` component. It was renamed -from ``"controller"`` to follow the Newton 1.6 drive API. ``"controller"`` remains a deprecated alias that -warns and will be removed in 3.2. +from ``"controller"`` to follow Newton's drive API; the old alias has been removed. Named regular-expression groups retain their configuration behavior; use the canonical field names in each group. diff --git a/examples/demos/nist.py b/examples/demos/nist.py index f4f906a03869..2768bb36025f 100644 --- a/examples/demos/nist.py +++ b/examples/demos/nist.py @@ -469,8 +469,6 @@ class NistEnvCfg(ManagerBasedRLEnvCfg): nconmax=2400, impratio=1.0, cone="pyramidal", - update_data_interval=2, - ls_parallel=False, use_mujoco_contacts=False, ), collision_cfg=NewtonCollisionPipelineCfg( diff --git a/examples/demos/zoo.py b/examples/demos/zoo.py index f2ce37ccb6a1..011a2e66340e 100644 --- a/examples/demos/zoo.py +++ b/examples/demos/zoo.py @@ -212,8 +212,6 @@ def main() -> None: physics_cfg.solver_cfg.ls_iterations = 40 physics_cfg.solver_cfg.cone = "elliptic" physics_cfg.solver_cfg.impratio = 10.0 - physics_cfg.solver_cfg.ls_parallel = False - physics_cfg.solver_cfg.update_data_interval = 2 physics_cfg.solver_cfg.ccd_iterations = 50 physics_cfg.num_substeps = 2 physics_cfg.debug_mode = False diff --git a/scripts/benchmarks/benchmark_load_robot.py b/scripts/benchmarks/benchmark_load_robot.py index 1411f5ec6cfd..24e11ef74b8b 100644 --- a/scripts/benchmarks/benchmark_load_robot.py +++ b/scripts/benchmarks/benchmark_load_robot.py @@ -179,7 +179,6 @@ def main( physics_cfg.solver_cfg.ls_iterations = 40 physics_cfg.solver_cfg.cone = "elliptic" physics_cfg.solver_cfg.impratio = 100 - physics_cfg.solver_cfg.ls_parallel = False physics_cfg.solver_cfg.integrator = "implicitfast" physics_cfg.num_substeps = 2 diff --git a/source/isaaclab_tasks/changelog.d/newton-mjwarp-version-bump.skip b/source/isaaclab/changelog.d/newton-mjwarp-version-bump.major similarity index 100% rename from source/isaaclab_tasks/changelog.d/newton-mjwarp-version-bump.skip rename to source/isaaclab/changelog.d/newton-mjwarp-version-bump.major diff --git a/source/isaaclab/changelog.d/newton-mjwarp-version-bump.removed.rst b/source/isaaclab/changelog.d/newton-mjwarp-version-bump.removed.rst new file mode 100644 index 000000000000..0494252213eb --- /dev/null +++ b/source/isaaclab/changelog.d/newton-mjwarp-version-bump.removed.rst @@ -0,0 +1,2 @@ +* **Breaking:** Removed the deprecated ``"controller"`` actuator component alias. Use ``"drive"`` + with ``read_group_parameter`` and ``write_group_parameter`` instead. diff --git a/source/isaaclab/isaaclab/actuators/newton/adapter.py b/source/isaaclab/isaaclab/actuators/newton/adapter.py index 31595ce559e4..594d3e716164 100644 --- a/source/isaaclab/isaaclab/actuators/newton/adapter.py +++ b/source/isaaclab/isaaclab/actuators/newton/adapter.py @@ -17,7 +17,6 @@ from __future__ import annotations -import warnings from collections import defaultdict from collections.abc import Sequence from dataclasses import dataclass @@ -349,7 +348,6 @@ def read_group_parameter(collection: ActuatorCollection, name: str, component: s collection: The articulation's actuator collection. name: Actuator group name. component: Component kind: ``"drive"``, ``"delay"``, or ``"clamping"``. - ``"controller"`` is a deprecated alias for ``"drive"``. attr: Parameter name on that component (e.g. ``"kp"``, ``"max_effort"``). Returns: @@ -390,7 +388,6 @@ def write_group_parameter( collection: The articulation's actuator collection. name: Actuator group name. component: Component kind: ``"drive"``, ``"delay"``, or ``"clamping"``. - ``"controller"`` is a deprecated alias for ``"drive"``. attr: Parameter name on that component (e.g. ``"kp"``, ``"max_effort"``). values: New values, shape ``(len(env_ids), len(joint_ids))``. Units follow the addressed parameter. @@ -429,15 +426,6 @@ def _group_parameter_owners( collection: ActuatorCollection, name: str, component: str, attr: str ) -> list[tuple[Actuator, Any]]: """Resolve the component instances exposing ``attr`` for one native group.""" - if component == "controller": - # stacklevel=3 points at the caller of read_group_parameter / write_group_parameter. - warnings.warn( - "The 'controller' actuator component is deprecated. Use 'drive' instead; " - "'controller' will be removed in 3.2.", - DeprecationWarning, - stacklevel=3, - ) - component = "drive" if name not in collection._groups: raise KeyError(name) if collection._newton_selection is None or name not in collection._native_group_names: @@ -471,7 +459,7 @@ def resolve_actuator_component(actuator: Actuator, component: str, attr: str) -> elif component == "delay": owner = next((entry for entry in actuator.input_processors if isinstance(entry, InputProcessorDelay)), None) elif component == "clamping": - matches = [entry for entry in (getattr(actuator, "clamping", None) or []) if hasattr(entry, attr)] + matches = [entry for entry in actuator.clamping if hasattr(entry, attr)] if len(matches) > 1: names = ", ".join(type(entry).__name__ for entry in matches) raise ValueError(f"Ambiguous clamping parameter '{attr}': exposed by {names}.") @@ -574,21 +562,12 @@ def shared_key(component_class: type, resolved: dict[str, Any]) -> tuple: return (drive_class, has_delay, tuple(clamping_key), shared_key(drive_class, drive_arguments)) -def _tile_per_dof_arguments( - arguments: list[dict[str, Any]], - num_envs: int, - dtype: type, - device: wp.Device, -) -> dict[str, wp.array]: +def _tile_per_dof_arguments(arguments: list[dict[str, Any]], num_envs: int, device: wp.Device) -> dict[str, wp.array]: """Pack per-joint scalar arguments in environment-major order.""" - if not arguments: - return {} - - numpy_dtype = np.int32 if dtype == wp.int32 else np.float32 return { name: wp.array( - np.tile(np.asarray([per_joint[name] for per_joint in arguments], dtype=numpy_dtype), num_envs), - dtype=dtype, + np.tile(np.asarray([per_joint[name] for per_joint in arguments], dtype=np.float32), num_envs), + dtype=wp.float32, device=device, ) for name in arguments[0] @@ -683,7 +662,7 @@ def _create_actuators_from_usd( ] drive_shared = {key: value for key, value in resolved_drives[0].items() if key in shared_drive} drive = drive_class( - **_tile_per_dof_arguments(drive_arguments, num_envs, wp.float32, wp_device), + **_tile_per_dof_arguments(drive_arguments, num_envs, wp_device), **drive_shared, ) @@ -702,11 +681,10 @@ def _create_actuators_from_usd( delay = None if delay_arguments: delay = InputProcessorDelay( - **_tile_per_dof_arguments( - [{"delay_steps": arguments["delay_steps"]} for arguments in delay_arguments], - num_envs, - wp.int32, - wp_device, + delay_steps=wp.array( + np.tile([arguments["delay_steps"] for arguments in delay_arguments], num_envs), + dtype=wp.int32, + device=wp_device, ), max_delay=max(arguments["max_delay"] for arguments in delay_arguments), ) @@ -722,7 +700,7 @@ def _create_actuators_from_usd( clamp_shared = {key: value for key, value in resolved_clampings[0].items() if key in shared_clamp} clampings.append( comp_cls( - **_tile_per_dof_arguments(clamp_arguments, num_envs, wp.float32, wp_device), + **_tile_per_dof_arguments(clamp_arguments, num_envs, wp_device), **clamp_shared, ) ) @@ -730,8 +708,8 @@ def _create_actuators_from_usd( actuator = Actuator( indices=indices, drive=drive, - input_processors=[delay] if delay is not None else None, - clamping=clampings if clampings else None, + input_processors=[delay] if delay is not None else [], + clamping=clampings, control_target_pos_attr="joint_target_pos", control_target_vel_attr="joint_target_vel", ) diff --git a/source/isaaclab/test/actuators/test_actuator_collection.py b/source/isaaclab/test/actuators/test_actuator_collection.py index dbd8bb87613c..44aa64337624 100644 --- a/source/isaaclab/test/actuators/test_actuator_collection.py +++ b/source/isaaclab/test/actuators/test_actuator_collection.py @@ -609,11 +609,9 @@ def test_native_group_parameters_route_through_the_collection_door(env_ids): with pytest.raises(ValueError, match=r"Unknown actuator component 'gains'"): read_group_parameter(collection, "native", "gains", "kp") - # The pre-Newton-1.6 "controller" component still resolves to the drive, with a warning at the caller. - with pytest.warns(DeprecationWarning, match="'controller' actuator component is deprecated") as record: + with pytest.raises(ValueError, match=r"Unknown actuator component 'controller'"): write_group_parameter(collection, "native", "controller", "kd", values=torch.full((2, 3), 0.8)) - assert record[0].filename == __file__ - torch.testing.assert_close(control.native_gains["kd"], torch.full((2, 3), 0.8)) + torch.testing.assert_close(control.native_gains["kd"], torch.full((2, 3), 0.9)) # A parameter the drives do not expose raises instead of falling back to stale values. unsupported_control = NativeGainFakeActuatorControl() diff --git a/source/isaaclab_experimental/changelog.d/newton-mjwarp-version-bump.skip b/source/isaaclab_experimental/changelog.d/newton-mjwarp-version-bump.skip new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/source/isaaclab_experimental/test/envs/test_mdp2_env.py b/source/isaaclab_experimental/test/envs/test_mdp2_env.py index 2ec793bfca34..96f8bab2609c 100644 --- a/source/isaaclab_experimental/test/envs/test_mdp2_env.py +++ b/source/isaaclab_experimental/test/envs/test_mdp2_env.py @@ -431,10 +431,8 @@ def zero_gravity_warp(world: int, gravity_w: wp.array(dtype=wp.vec3f)): def test_startup_and_interval_events_reach_the_solver(): - """A startup event that removes gravity, and an interval event that holds the joints, reach a solver that - otherwise ignores writes to its state: every step starts from the held joints, without gravity.""" + """Startup and interval events reach physics: every step starts from the held joints, without gravity.""" cfg = cartpole_cfg() - cfg.sim.physics.solver_cfg.update_data_interval = 0 cfg.task.events["zero_gravity"] = mdp2.Event( mdp2.Term(warp=zero_gravity_warp), outputs={"gravity_w": mdp2.Entity("scene").gravity_w}, diff --git a/source/isaaclab_neural/changelog.d/newton-mjwarp-version-bump.fixed.rst b/source/isaaclab_neural/changelog.d/newton-mjwarp-version-bump.fixed.rst index ef4d602663b4..3706f51bf7a4 100644 --- a/source/isaaclab_neural/changelog.d/newton-mjwarp-version-bump.fixed.rst +++ b/source/isaaclab_neural/changelog.d/newton-mjwarp-version-bump.fixed.rst @@ -1,2 +1,4 @@ * Validate unsupported acceleration and joint-wrench readings through Newton solver observables when using learned physics. +* Use Newton's automatic world separation and state synchronization for the MuJoCo Warp neural solver, + removing deprecated solver-option handling. diff --git a/source/isaaclab_neural/isaaclab_neural/physics/mjwarp_nerd_solver.py b/source/isaaclab_neural/isaaclab_neural/physics/mjwarp_nerd_solver.py index 9570270a7b6f..6d9c3b0dd80b 100644 --- a/source/isaaclab_neural/isaaclab_neural/physics/mjwarp_nerd_solver.py +++ b/source/isaaclab_neural/isaaclab_neural/physics/mjwarp_nerd_solver.py @@ -55,11 +55,8 @@ def build(self, model: Model, mode: wp.DeterministicMode, env_template: str | No require_articulation(nerd) # Collect matching MJWarpSolverCfg constructor kwargs (no determinism overrides since NOT_GUARANTEED). options = solver_kwargs(self.solver_class, self.cfg, mode) - options.pop("ls_parallel", None) # Deprecated in Newton; omit to avoid deprecation warning if options.get("compile") is None: options["compile"] = default_compile(device) - if model._has_body_variants: - options["separate_worlds"] = True options["articulation"] = articulation_pattern(model, self.cfg.articulation, env_template) # Disable internal solver graphs because Isaac Lab captures the full physics step itself. solver = self.solver_class(model, nerd, use_cuda_graph=False, **options) diff --git a/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst b/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst index 3e2c6bc6469b..ed1a42bed74a 100644 --- a/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst +++ b/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst @@ -4,3 +4,7 @@ request ``body_qdd`` or ``body_parent_f`` through ``NewtonManager.request_solver_observables`` instead. IMU, PVA, and joint-wrench readings now use those solver outputs, including with MuJoCo sensors disabled. Renamed ``NewtonCollisionPipelineCfg.soft_contact_margin`` to ``soft_contact_gap`` to match Newton's detection-only gap setting. +* **Breaking:** Removed ``MJWarpSolverCfg.update_data_interval`` and the ignored ``ls_parallel`` option. + Newton synchronizes state on every solver step and infers world separation from the model. Remove + those options from task configurations; use ``ls_iterations`` to tune iterative line search. + MuJoCo CPU simulation now requires a single-world model instead of simulating only template world 0. diff --git a/source/isaaclab_newton/isaaclab_newton/physics/mjwarp_solver.py b/source/isaaclab_newton/isaaclab_newton/physics/mjwarp_solver.py index 0a75e4e44b06..62d0b4a6cf05 100644 --- a/source/isaaclab_newton/isaaclab_newton/physics/mjwarp_solver.py +++ b/source/isaaclab_newton/isaaclab_newton/physics/mjwarp_solver.py @@ -89,12 +89,8 @@ def build(self, model: Model, mode: wp.DeterministicMode, env_template: str | No """Construct MuJoCo Warp; a determinism guarantee disables its sensor stage, which cannot honor it.""" deterministic = mode != wp.DeterministicMode.NOT_GUARANTEED kwargs = solver_kwargs(self.solver_class, self.cfg, mode) - # ls_parallel is deprecated in newton; forwarding it (even as False) emits a warning. - kwargs.pop("ls_parallel", None) if deterministic: kwargs["disable_sensors"] = True - if model._has_body_variants: - kwargs["separate_worlds"] = True return self.solver_class(model, **kwargs) def supports_capture(self) -> bool: @@ -145,23 +141,13 @@ def mark_non_finite_worlds(self, state: State, faults: wp.array) -> None: ) def reset(self, state: State, world_mask: wp.array) -> None: - """Clear solver history and synchronize authored joint state for masked worlds. + """Clear solver history for masked worlds, preserving authored joint state. With ``flags=0`` MuJoCo zeroes only solver-owned buffers that persist across steps, leaving the authored joint state untouched; otherwise a NaN from one solve persists across resets through the warm start - (https://github.com/newton-physics/newton/issues/1266). Sparse or disabled imports require an explicit - synchronization before the next substep can overwrite the authored state. The native CPU backend owns - one ``MjData`` for template world 0, so other worlds' resets must leave its state and history untouched. + (https://github.com/newton-physics/newton/issues/1266). Newton imports the authored state on every step. """ - solver = self.native - if solver.use_mujoco_cpu and not world_mask.numpy()[0]: - return - solver.reset(state, world_mask=world_mask, flags=0) - if self.cfg.update_data_interval != 1: - # Newton has no public masked import. With sleeping disabled, - # reset(flags=0) skips it, so reuse the pinned solver's conversion. - data = solver.mj_data if solver.use_mujoco_cpu else solver.mjw_data - solver._update_mjc_data(data, solver.model, state, world_mask=world_mask) + self.native.reset(state, world_mask=world_mask, flags=0) def check_step(self, captured: bool, debug: bool) -> None: """Log MuJoCo solver convergence statistics in debug mode.""" diff --git a/source/isaaclab_newton/isaaclab_newton/physics/mjwarp_solver_cfg.py b/source/isaaclab_newton/isaaclab_newton/physics/mjwarp_solver_cfg.py index e4bcc9e4b1a1..1e40827323db 100644 --- a/source/isaaclab_newton/isaaclab_newton/physics/mjwarp_solver_cfg.py +++ b/source/isaaclab_newton/isaaclab_newton/physics/mjwarp_solver_cfg.py @@ -7,8 +7,6 @@ from __future__ import annotations -import warnings - from isaaclab.utils import configclass from .newton_manager_cfg import NewtonSolverCfg @@ -66,15 +64,6 @@ class MJWarpSolverCfg(NewtonSolverCfg): actuator_gears: dict[str, float] | None = None """Dictionary mapping joint names to specific gear ratios, overriding the `default_actuator_gear`.""" - update_data_interval: int = 1 - """Frequency (in solver substeps) at which to update the MuJoCo Data object from the Newton state. - - If 0, periodic state imports are disabled after initialization. With MuJoCo Warp, authored - state writes that flag the manager's reset mask are still synchronized for the affected - worlds at the next forward or physics-step boundary, independently of this interval. - The native MuJoCo CPU backend only synchronizes template world 0 when it is flagged. - """ - save_to_mjcf: str | None = None """Optional path to save the generated MJCF model file. @@ -109,14 +98,6 @@ class MJWarpSolverCfg(NewtonSolverCfg): `__. """ - ls_parallel: bool = False - """Deprecated parallel line search option. - - Setting this to ``True`` emits a :class:`DeprecationWarning` and is ignored. - MuJoCo Warp is dropping support for parallel line search; Isaac Lab uses - iterative line search for performance. - """ - use_mujoco_contacts: bool = True """Whether to use MuJoCo's internal contact solver. @@ -139,15 +120,3 @@ class MJWarpSolverCfg(NewtonSolverCfg): satisfaction at the cost of more iterations. MuJoCo default is ``1e-8``; Newton default is ``1e-6``. """ - - def __post_init__(self): - if self.ls_parallel: - warnings.warn( - "MJWarpSolverCfg.ls_parallel is deprecated and ignored. " - "Isaac Lab uses iterative line search for performance because " - "MuJoCo Warp is dropping parallel line search support. Tune " - "MJWarpSolverCfg.ls_iterations instead.", - DeprecationWarning, - stacklevel=5, - ) - self.ls_parallel = False diff --git a/source/isaaclab_newton/test/physics/test_newton_solvers.py b/source/isaaclab_newton/test/physics/test_newton_solvers.py index fcf6cadafb48..47070471a650 100644 --- a/source/isaaclab_newton/test/physics/test_newton_solvers.py +++ b/source/isaaclab_newton/test/physics/test_newton_solvers.py @@ -48,15 +48,6 @@ from isaaclab.test.utils import test_devices -def _model_stub() -> SimpleNamespace: - """Model stand-in carrying what solver construction reads before the Newton solver exists.""" - return SimpleNamespace( - articulation_start=None, - articulation_end=None, - _has_body_variants=False, - ) - - def test_solver_kwargs_include_configured_options_and_newton_deterministic_mode(): """Solver construction receives the selected options and outer Newton determinism mode.""" kwargs = solver_kwargs(SolverXPBD, XPBDSolverCfg(), wp.DeterministicMode.GPU_TO_GPU) @@ -162,42 +153,62 @@ def test_replicated_joint_properties_follow_schema_precedence(monkeypatch, solve @pytest.mark.parametrize("device", test_devices()) -def test_mjwarp_authored_reset_imports_only_selected_worlds(device): - """Authored state reaches MuJoCo for selected worlds, including during CUDA graph replay.""" +def test_mjwarp_reset_preserves_authored_state_and_clears_only_selected_history(device): + """Masked resets preserve joint writes for the next step, including during CUDA graph replay.""" + cfg = MJWarpSolverCfg(use_mujoco_cpu=device == "cpu") + world_count = 1 if cfg.use_mujoco_cpu else 2 builder = ModelBuilder(gravity=(0.0, 0.0, 0.0)) - for _ in range(2): + for _ in range(world_count): builder.begin_world() body = builder.add_link(mass=1.0, inertia=wp.mat33(np.eye(3))) joint = builder.add_joint_revolute(parent=-1, child=body, axis=(0, 0, 1)) builder.add_articulation([joint]) builder.end_world() model = builder.finalize(device=device) - cfg = MJWarpSolverCfg(use_mujoco_cpu=device == "cpu", update_data_interval=2) - solver = SolverMuJoCo(model, use_mujoco_cpu=cfg.use_mujoco_cpu, separate_worlds=True, update_data_interval=2) + driver = MJWarpSolver(cfg, model, wp.DeterministicMode.NOT_GUARANTEED) + solver = driver.native state = model.state() - world_mask = wp.zeros(3, dtype=wp.bool, device=device) + control = model.control() + world_mask = wp.zeros(world_count + 1, dtype=wp.bool, device=device) data = solver.mj_data if cfg.use_mujoco_cpu else solver.mjw_data # Zero-copy views give native NumPy and Warp buffers the same fill/read interface. - qpos = wp.array(data.qpos, copy=False, device=device) - qvel = wp.array(data.qvel, copy=False, device=device) - qpos.fill_(1.25) - qvel.fill_(-0.75) - reset = functools.partial(solver_driver(MJWarpSolver, cfg, solver).reset, state, world_mask) + warmstart = wp.array(data.qacc_warmstart, copy=False, device=device) + state.joint_q.fill_(1.25) + state.joint_qd.fill_(-0.75) + reset = functools.partial(driver.reset, state, world_mask) reset() # Warm the reset kernels with an empty mask before capture. if not cfg.use_mujoco_cpu: with wp.ScopedCapture(device=device) as capture: reset() reset = functools.partial(wp.capture_launch, capture.graph) - count = 1 if cfg.use_mujoco_cpu else 2 # Native MuJoCo exposes only template world 0. - for world, expected_q, expected_qd in ((1, [1.25, 0.25], [-0.75, 0.5]), (0, [-0.25, 0.25], [-0.5, 0.5])): - state.joint_q.fill_(expected_q[world]) - state.joint_qd.fill_(expected_qd[world]) + expected_q = np.full(world_count, 1.25) + expected_qd = np.full(world_count, -0.75) + for world in reversed(range(world_count)): + expected_q[world] = 0.25 if world else -0.25 + expected_qd[world] = 0.5 if world else -0.5 + state.joint_q[world : world + 1].fill_(expected_q[world]) + state.joint_qd[world : world + 1].fill_(expected_qd[world]) + warmstart.fill_(3.0) world_mask.zero_() world_mask[world : world + 1].fill_(True) reset() - np.testing.assert_allclose(qpos.numpy().ravel(), expected_q[:count]) - np.testing.assert_allclose(qvel.numpy().ravel(), expected_qd[:count]) + expected_history = np.full(world_count, 3.0) + expected_history[world] = 0.0 + np.testing.assert_allclose(warmstart.numpy().ravel(), expected_history) + np.testing.assert_allclose(state.joint_q.numpy(), expected_q, rtol=1e-5) + np.testing.assert_allclose(state.joint_qd.numpy(), expected_qd, rtol=1e-5) + solver.step(state, state, control, None, 0.01) + expected_q += 0.01 * expected_qd + np.testing.assert_allclose(state.joint_q.numpy(), expected_q, rtol=1e-5) + np.testing.assert_allclose(state.joint_qd.numpy(), expected_qd, rtol=1e-5) + + +@pytest.mark.parametrize("option", ["ls_parallel", "update_data_interval"]) +def test_mjwarp_removed_options_are_rejected(option): + """Removed solver options fail at configuration rather than being silently ignored.""" + with pytest.raises(TypeError, match=option): + MJWarpSolverCfg(**{option: 1}) @pytest.fixture @@ -212,9 +223,10 @@ def recorded_mujoco_kwargs(monkeypatch) -> list[dict]: def test_mjwarp_determinism_disables_mujoco_sensor_stage(recorded_mujoco_kwargs): """A guarantee disables MuJoCo sensors without changing the caller's solver configuration.""" solver_cfg = MJWarpSolverCfg() + model = object() - MJWarpSolver(solver_cfg, _model_stub(), wp.DeterministicMode.NOT_GUARANTEED) - MJWarpSolver(solver_cfg, _model_stub(), wp.DeterministicMode.RUN_TO_RUN) + MJWarpSolver(solver_cfg, model, wp.DeterministicMode.NOT_GUARANTEED) + MJWarpSolver(solver_cfg, model, wp.DeterministicMode.RUN_TO_RUN) assert [kwargs["disable_sensors"] for kwargs in recorded_mujoco_kwargs] == [False, True] assert solver_cfg.disable_sensors is False diff --git a/source/isaaclab_tasks/changelog.d/newton-mjwarp-version-bump.changed.rst b/source/isaaclab_tasks/changelog.d/newton-mjwarp-version-bump.changed.rst new file mode 100644 index 000000000000..d66d70d89914 --- /dev/null +++ b/source/isaaclab_tasks/changelog.d/newton-mjwarp-version-bump.changed.rst @@ -0,0 +1 @@ +* Updated Newton tasks to synchronize state every solver step and removed obsolete parallel line-search settings. diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/gb300_sharpa_insertion/env_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/gb300_sharpa_insertion/env_cfg.py index 96c38275e6ac..900136750b2f 100644 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/gb300_sharpa_insertion/env_cfg.py +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/gb300_sharpa_insertion/env_cfg.py @@ -192,7 +192,6 @@ def __post_init__(self) -> None: ls_iterations=50, integrator="implicitfast", use_mujoco_contacts=False, - update_data_interval=4, nconmax=2048, njmax=2048, ), diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/heterogeneous_tasks/heterogeneous_tasks_env_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/heterogeneous_tasks/heterogeneous_tasks_env_cfg.py index cdbdd214d606..cdacca2c76e5 100644 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/heterogeneous_tasks/heterogeneous_tasks_env_cfg.py +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/heterogeneous_tasks/heterogeneous_tasks_env_cfg.py @@ -574,7 +574,6 @@ class PhysicsCfg(PresetCfg): nconmax=512, impratio=10.0, cone="pyramidal", - update_data_interval=2, iterations=100, ls_iterations=15, use_mujoco_contacts=False, diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/keyboard/so101_env_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/keyboard/so101_env_cfg.py index 0ece7eeaf4f0..6dd3a65d9cb7 100644 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/keyboard/so101_env_cfg.py +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/keyboard/so101_env_cfg.py @@ -304,7 +304,6 @@ class PhysicsCfg(PresetCfg): nconmax=600, impratio=1.0, cone="pyramidal", - update_data_interval=2, iterations=100, ls_iterations=15, use_mujoco_contacts=False, diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/nist/nist_env_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/nist/nist_env_cfg.py index 5cb596da4beb..cbec80dadcba 100644 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/nist/nist_env_cfg.py +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/nist/nist_env_cfg.py @@ -230,8 +230,6 @@ def __post_init__(self) -> None: nconmax=256, impratio=1.0, cone="pyramidal", - update_data_interval=2, - ls_parallel=False, use_mujoco_contacts=False, ), collision_cfg=NewtonCollisionPipelineCfg( diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/place/config/agibot/place_toy2box_rmp_rel_env_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/place/config/agibot/place_toy2box_rmp_rel_env_cfg.py index b344753ea55d..71196b5d5a25 100644 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/place/config/agibot/place_toy2box_rmp_rel_env_cfg.py +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/place/config/agibot/place_toy2box_rmp_rel_env_cfg.py @@ -223,10 +223,8 @@ class PhysicsCfg(PresetCfg): nconmax=200, impratio=10.0, cone="elliptic", - update_data_interval=2, iterations=100, ls_iterations=15, - ls_parallel=False, use_mujoco_contacts=False, ccd_iterations=35, ), diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/stack/stack_env_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/stack/stack_env_cfg.py index a63db10ee10e..90ec1048851f 100644 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/stack/stack_env_cfg.py +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/stack/stack_env_cfg.py @@ -338,10 +338,8 @@ class PhysicsCfg(PresetCfg): nconmax=200, impratio=10.0, cone="elliptic", - update_data_interval=2, iterations=100, ls_iterations=15, - ls_parallel=False, use_mujoco_contacts=False, ccd_iterations=35, ), diff --git a/source/isaaclab_tasks/isaaclab_tasks/core/handover/handover_env_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/core/handover/handover_env_cfg.py index ec52c1dcec36..7c7a11e12a95 100644 --- a/source/isaaclab_tasks/isaaclab_tasks/core/handover/handover_env_cfg.py +++ b/source/isaaclab_tasks/isaaclab_tasks/core/handover/handover_env_cfg.py @@ -145,7 +145,6 @@ class PhysicsCfg(PresetCfg): nconmax=70, impratio=10.0, cone="elliptic", - update_data_interval=4, ccd_iterations=50, # bumped from default 35 for multi-finger contact geometry ), # 4 substeps (vs reorient's 2): sustained ball-palm contact drives a small fraction of diff --git a/source/isaaclab_tasks/isaaclab_tasks/core/lift/lift_env_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/core/lift/lift_env_cfg.py index 57bad79b08cd..563d294cd2e1 100644 --- a/source/isaaclab_tasks/isaaclab_tasks/core/lift/lift_env_cfg.py +++ b/source/isaaclab_tasks/isaaclab_tasks/core/lift/lift_env_cfg.py @@ -542,7 +542,6 @@ class PhysicsCfg(PresetCfg): nconmax=200, impratio=1.0, cone="pyramidal", - update_data_interval=2, iterations=100, ls_iterations=50, use_mujoco_contacts=False, diff --git a/source/isaaclab_tasks/isaaclab_tasks/core/locomotion/humanoid/humanoid_common.py b/source/isaaclab_tasks/isaaclab_tasks/core/locomotion/humanoid/humanoid_common.py index 0c3a8f69fd45..6d5a04086095 100644 --- a/source/isaaclab_tasks/isaaclab_tasks/core/locomotion/humanoid/humanoid_common.py +++ b/source/isaaclab_tasks/isaaclab_tasks/core/locomotion/humanoid/humanoid_common.py @@ -66,7 +66,6 @@ class HumanoidPhysicsCfg(PresetCfg): njmax=80, nconmax=25, cone="pyramidal", - update_data_interval=2, integrator="implicitfast", impratio=1, ), diff --git a/source/isaaclab_tasks/isaaclab_tasks/core/reach/reach_env_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/core/reach/reach_env_cfg.py index f863cc92ac80..db5b96d46309 100644 --- a/source/isaaclab_tasks/isaaclab_tasks/core/reach/reach_env_cfg.py +++ b/source/isaaclab_tasks/isaaclab_tasks/core/reach/reach_env_cfg.py @@ -52,7 +52,6 @@ class ReachPhysicsCfg(PresetCfg): cone="pyramidal", integrator="implicitfast", impratio=1, - update_data_interval=2, ), num_substeps=2, debug_mode=False, diff --git a/source/isaaclab_tasks/isaaclab_tasks/core/reorient/config/allegro_hand/allegro_hand_common.py b/source/isaaclab_tasks/isaaclab_tasks/core/reorient/config/allegro_hand/allegro_hand_common.py index 1b5d93a1678f..175c77c1599f 100644 --- a/source/isaaclab_tasks/isaaclab_tasks/core/reorient/config/allegro_hand/allegro_hand_common.py +++ b/source/isaaclab_tasks/isaaclab_tasks/core/reorient/config/allegro_hand/allegro_hand_common.py @@ -83,7 +83,6 @@ class PhysicsCfg(PresetCfg): nconmax=70, impratio=10.0, cone="elliptic", - update_data_interval=2, ), num_substeps=2, ) diff --git a/source/isaaclab_tasks/isaaclab_tasks/core/reorient/config/allegro_hand/record/nerd_recording_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/core/reorient/config/allegro_hand/record/nerd_recording_cfg.py index 445be03dabe1..23254ad2bdfd 100644 --- a/source/isaaclab_tasks/isaaclab_tasks/core/reorient/config/allegro_hand/record/nerd_recording_cfg.py +++ b/source/isaaclab_tasks/isaaclab_tasks/core/reorient/config/allegro_hand/record/nerd_recording_cfg.py @@ -57,12 +57,12 @@ class AllegroHandNeRDRecordingEnvCfg(ManagerBasedRLEnvCfg): default=replace( _TASK.sim.physics.newton_mjwarp, num_substeps=1, - solver_cfg=replace(_TASK.sim.physics.newton_mjwarp.solver_cfg, update_data_interval=1, njmax=256), + solver_cfg=replace(_TASK.sim.physics.newton_mjwarp.solver_cfg, njmax=256), ), newton_mjwarp=replace( _TASK.sim.physics.newton_mjwarp, num_substeps=1, - solver_cfg=replace(_TASK.sim.physics.newton_mjwarp.solver_cfg, update_data_interval=1, njmax=256), + solver_cfg=replace(_TASK.sim.physics.newton_mjwarp.solver_cfg, njmax=256), ), ), ) diff --git a/source/isaaclab_tasks/isaaclab_tasks/core/reorient/config/shadow_hand/shadow_hand_common.py b/source/isaaclab_tasks/isaaclab_tasks/core/reorient/config/shadow_hand/shadow_hand_common.py index f22b0f8a5e18..3fc1f455f17a 100644 --- a/source/isaaclab_tasks/isaaclab_tasks/core/reorient/config/shadow_hand/shadow_hand_common.py +++ b/source/isaaclab_tasks/isaaclab_tasks/core/reorient/config/shadow_hand/shadow_hand_common.py @@ -225,7 +225,6 @@ class PhysicsCfg(PresetCfg): nconmax=70, impratio=10.0, cone="elliptic", - update_data_interval=2, ), num_substeps=2, ) diff --git a/source/isaaclab_tasks_experimental/changelog.d/newton-mjwarp-version-bump.changed.rst b/source/isaaclab_tasks_experimental/changelog.d/newton-mjwarp-version-bump.changed.rst new file mode 100644 index 000000000000..5263dba0818e --- /dev/null +++ b/source/isaaclab_tasks_experimental/changelog.d/newton-mjwarp-version-bump.changed.rst @@ -0,0 +1 @@ +* Updated the experimental Kuka Allegro task to use Newton's synchronization on every solver step. diff --git a/source/isaaclab_tasks_experimental/isaaclab_tasks_experimental/mdp2/lift_kuka_allegro/lift_env_cfg.py b/source/isaaclab_tasks_experimental/isaaclab_tasks_experimental/mdp2/lift_kuka_allegro/lift_env_cfg.py index 25e5f3cdee24..5df149daa663 100644 --- a/source/isaaclab_tasks_experimental/isaaclab_tasks_experimental/mdp2/lift_kuka_allegro/lift_env_cfg.py +++ b/source/isaaclab_tasks_experimental/isaaclab_tasks_experimental/mdp2/lift_kuka_allegro/lift_env_cfg.py @@ -138,7 +138,6 @@ class KukaAllegroLiftPhysicsCfg(PresetCfg): nconmax=200, impratio=1.0, cone="pyramidal", - update_data_interval=2, iterations=100, ls_iterations=50, use_mujoco_contacts=False, From 30f12320c6a3eac4c7604479514a2f31f2f076a2 Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Tue, 1 Dec 2026 13:02:01 -0800 Subject: [PATCH 06/12] Bump MuJoCo and MuJoCo Warp to 4.1 --- .../how-to/prepare_asset_for_newton.rst | 6 +- pyproject.toml | 17 +++--- .../test/cli/test_uv_run_pyproject.py | 8 +-- .../test/sim/test_collision_fragments.py | 6 +- .../newton-mjwarp-version-bump.changed.rst | 4 +- .../isaaclab_newton/sim/schemas/schemas.py | 4 +- .../sim/schemas/schemas_cfg.py | 8 --- tools/wheel_builder/uv-overrides.txt | 10 ++-- uv.lock | 56 ++++++++++--------- 9 files changed, 58 insertions(+), 61 deletions(-) diff --git a/docs/source/how-to/prepare_asset_for_newton.rst b/docs/source/how-to/prepare_asset_for_newton.rst index f54fdde8e802..a1c081a77249 100644 --- a/docs/source/how-to/prepare_asset_for_newton.rst +++ b/docs/source/how-to/prepare_asset_for_newton.rst @@ -92,7 +92,7 @@ rolling friction. Choose the smallest model that represents the contact physics the importer and contact path preserve it. Tune material friction against measured tangential slip only after the contact model is valid. -``MujocoCollisionCfg`` also exposes expert per-collider overrides such as ``priority``, ``solmix``, +``MujocoCollisionCfg`` also exposes expert per-collider overrides such as ``priority``, ``solref``, and ``solimp``; use them only with a measured contact-model need. Use :attr:`~isaaclab_newton.sim.schemas.NewtonCollisionCfg.contact_margin`, :attr:`~isaaclab_newton.sim.schemas.NewtonCollisionCfg.contact_gap`, and @@ -100,6 +100,10 @@ Tune material friction against measured tangential slip only after the contact m importer attributes. Follow :ref:`mjwarp-solver-tuning` for the current global solver and contact tuning sequence. +MuJoCo 4.1 removed per-collider ``solmix``, so ``MujocoCollisionCfg`` no longer exposes it. +Equal-priority colliders use equal weights; use ``priority`` when one collider's contact +parameters should take precedence. + .. _newton-velocity-limits: Validate actuators and limits diff --git a/pyproject.toml b/pyproject.toml index 0133f4190ea4..a67bf3cf930b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -89,10 +89,9 @@ dependencies = [ "rsl-rl-lib-extras==6.0.0.2", "gitpython>=3.1.60", # used by RL training and experiment logging # ----- newton (default physics engine) ----- - # Pin the current Newton development revision until it is included in a release. - "newton[sim] @ git+https://github.com/newton-physics/newton.git@bb6bf15b8f257a8a63cf3f003ad8115556c0e803", - # Last revision before the quaternion-only pose API, which Newton does not yet support. - "mujoco-warp @ git+https://github.com/google-deepmind/mujoco_warp.git@cb2d638bc7037b1237a0ecd7846ba836baf9b772", + # MuJoCo 4.1 support from newton-physics/newton#5750; replace once merged upstream. + "newton[sim] @ git+https://github.com/newton-physics/newton.git@28e273b326d48c3b3c2b2cadf42ddf79c06152d2", + "mujoco-warp==4.1.0", # Import and mesh-processing packages used by Newton, including the ones that honoring # USD-authored ``physics:approximation`` requires. Keep these explicit instead of selecting # newton[importers], whose standalone USD dependency would overlap with usd-exchange. @@ -446,11 +445,11 @@ override-dependencies = [ "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl ; sys_platform == 'linux' and platform_machine == 'x86_64'", "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl ; sys_platform == 'linux' and platform_machine == 'aarch64'", "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl ; sys_platform == 'win32'", - "mujoco~=4.0.1", - "mujoco-core~=4.0.1", - "mujoco-warp @ git+https://github.com/google-deepmind/mujoco_warp.git@cb2d638bc7037b1237a0ecd7846ba836baf9b772", - "newton[sim] @ git+https://github.com/newton-physics/newton.git@bb6bf15b8f257a8a63cf3f003ad8115556c0e803 ; extra != 'optix'", - "newton[sim,optix] @ git+https://github.com/newton-physics/newton.git@bb6bf15b8f257a8a63cf3f003ad8115556c0e803 ; extra == 'optix'", + "mujoco~=4.1.0", + "mujoco-core~=4.1.0", + "mujoco-warp==4.1.0", + "newton[sim] @ git+https://github.com/newton-physics/newton.git@28e273b326d48c3b3c2b2cadf42ddf79c06152d2 ; extra != 'optix'", + "newton[sim,optix] @ git+https://github.com/newton-physics/newton.git@28e273b326d48c3b3c2b2cadf42ddf79c06152d2 ; extra == 'optix'", # Force the Newton-matched schemas over isaacsim's ==0.2.0 pin. "newton-usd-schemas>=0.8.0", # isaacsim-asset-isolated and isaacsim-robot-schema 6.2 pin usd-exchange ==2.3.0. diff --git a/source/isaaclab/test/cli/test_uv_run_pyproject.py b/source/isaaclab/test/cli/test_uv_run_pyproject.py index 46af83c03f0b..5805858eff25 100644 --- a/source/isaaclab/test/cli/test_uv_run_pyproject.py +++ b/source/isaaclab/test/cli/test_uv_run_pyproject.py @@ -199,12 +199,10 @@ def spec(package: str) -> str: assert f"{newton_spec} ; extra != 'optix'" in overrides assert f"{newton_spec.replace('[sim]', '[sim,optix]')} ; extra == 'optix'" in overrides - # Source and published-wheel installations must use the same MuJoCo Warp revision. + # Source and published-wheel installations must use the same published MuJoCo Warp release. mjwarp = next(package for package in lock["package"] if package["name"] == "mujoco-warp") - url, revision = mjwarp["source"]["git"].split("?rev=") - requested, resolved = revision.split("#") - assert requested == resolved - mjwarp_spec = f"mujoco-warp @ git+{url}@{resolved}" + assert "registry" in mjwarp["source"] + mjwarp_spec = f"mujoco-warp=={mjwarp['version']}" assert mjwarp_spec in dependencies assert mjwarp_spec in overrides diff --git a/source/isaaclab/test/sim/test_collision_fragments.py b/source/isaaclab/test/sim/test_collision_fragments.py index 72f6dd1a50ef..720532932620 100644 --- a/source/isaaclab/test/sim/test_collision_fragments.py +++ b/source/isaaclab/test/sim/test_collision_fragments.py @@ -48,7 +48,6 @@ def test_mujoco_collision_fragment_writes_mjc_namespace(): group=2, priority=3, solimp=(0.9, 0.99, 0.001, 0.5, 2.0), - solmix=0.75, solref=(0.02, 1.0), ), "/World/C_mjc", @@ -59,7 +58,9 @@ def test_mujoco_collision_fragment_writes_mjc_namespace(): assert prim.GetAttribute("mjc:priority").Get() == 3 assert prim.GetAttribute("mjc:solimp").GetTypeName() == Sdf.ValueTypeNames.DoubleArray assert tuple(prim.GetAttribute("mjc:solimp").Get()) == pytest.approx((0.9, 0.99, 0.001, 0.5, 2.0)) - assert prim.GetAttribute("mjc:solmix").Get() == pytest.approx(0.75) + assert not prim.GetAttribute("mjc:solmix").IsValid() + with pytest.raises(TypeError, match="solmix"): + MujocoCollisionCfg(solmix=0.75) assert prim.GetAttribute("mjc:solref").GetTypeName() == Sdf.ValueTypeNames.DoubleArray assert tuple(prim.GetAttribute("mjc:solref").Get()) == pytest.approx((0.02, 1.0)) @@ -84,7 +85,6 @@ def test_mujoco_collision_fragment_writes_only_set_fields(): ({"condim": 2}, "'condim' must be one of"), ({"group": 6}, "'group' must be between"), ({"priority": -1}, "'priority' must be non-negative"), - ({"solmix": -0.1}, "'solmix' must be non-negative"), ({"solimp": (0.9, 0.95, 0.001, 0.5)}, "'solimp' must contain exactly 5"), ({"solref": (0.02,)}, "'solref' must contain exactly 2"), ], diff --git a/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst b/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst index ed1a42bed74a..64aa3bb2fd70 100644 --- a/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst +++ b/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst @@ -1,4 +1,4 @@ -* **Breaking:** Updated Newton and MuJoCo Warp to upstream revisions with MuJoCo 4.0.1, the CUDA 12 build of Warp 1.19, +* **Breaking:** Updated Newton for MuJoCo and MuJoCo Warp 4.1.0, with the CUDA 12 build of Warp 1.19 and Newton USD schemas 0.8. Removed ``NewtonManager.request_extended_contact_attribute``; use solver observables or contact sensors for contact forces. Removed ``NewtonManager.request_extended_state_attribute``; request ``body_qdd`` or ``body_parent_f`` through ``NewtonManager.request_solver_observables`` instead. @@ -8,3 +8,5 @@ Newton synchronizes state on every solver step and infers world separation from the model. Remove those options from task configurations; use ``ls_iterations`` to tune iterative line search. MuJoCo CPU simulation now requires a single-world model instead of simulating only template world 0. +* **Breaking:** Removed ``MujocoCollisionCfg.solmix`` because MuJoCo 4.1 removed per-collider mixing weights. + Equal-priority colliders use equal weights; use ``priority`` to prefer one collider's contact parameters. diff --git a/source/isaaclab_newton/isaaclab_newton/sim/schemas/schemas.py b/source/isaaclab_newton/isaaclab_newton/sim/schemas/schemas.py index 0d11d241a142..565fe25d40b6 100644 --- a/source/isaaclab_newton/isaaclab_newton/sim/schemas/schemas.py +++ b/source/isaaclab_newton/isaaclab_newton/sim/schemas/schemas.py @@ -56,11 +56,9 @@ def apply_mujoco_collision(cfg: MujocoCollisionCfg, prim_path: str, stage: Usd.S raise ValueError(f"'group' must be between 0 and 5. Received: {cfg.group}.") if cfg.priority is not None and cfg.priority < 0: raise ValueError(f"'priority' must be non-negative. Received: {cfg.priority}.") - if cfg.solmix is not None and cfg.solmix < 0.0: - raise ValueError(f"'solmix' must be non-negative. Received: {cfg.solmix}.") success = True - for attr_name in ("condim", "group", "priority", "solmix"): + for attr_name in ("condim", "group", "priority"): value = getattr(cfg, attr_name) if value is not None: safe_set_attribute_on_usd_prim(prim, f"mjc:{attr_name}", value, camel_case=False) diff --git a/source/isaaclab_newton/isaaclab_newton/sim/schemas/schemas_cfg.py b/source/isaaclab_newton/isaaclab_newton/sim/schemas/schemas_cfg.py index 7c1f74aa681a..cd801b0b155f 100644 --- a/source/isaaclab_newton/isaaclab_newton/sim/schemas/schemas_cfg.py +++ b/source/isaaclab_newton/isaaclab_newton/sim/schemas/schemas_cfg.py @@ -296,14 +296,6 @@ class MujocoCollisionCfg(CollisionFragment): ``(0.9, 0.95, 0.001, 0.5, 2.0)`` when the attribute is not authored. """ - solmix: float | None = None - """Contact-parameter mixing weight [dimensionless]. - - Written to ``mjc:solmix``. MuJoCo uses this weight to combine compatible contact parameters - when the colliders have equal :attr:`priority`. Values must be non-negative. Defaults to - ``1.0`` in Newton when the attribute is not authored. - """ - solref: tuple[float, float] | None = None """Contact reference parameters. diff --git a/tools/wheel_builder/uv-overrides.txt b/tools/wheel_builder/uv-overrides.txt index 6a9e45464509..492c895b7c94 100644 --- a/tools/wheel_builder/uv-overrides.txt +++ b/tools/wheel_builder/uv-overrides.txt @@ -3,11 +3,11 @@ numpy>=2 warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl ; sys_platform == 'linux' and platform_machine == 'x86_64' warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl ; sys_platform == 'linux' and platform_machine == 'aarch64' warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl ; sys_platform == 'win32' -mujoco~=4.0.1 -mujoco-core~=4.0.1 -mujoco-warp @ git+https://github.com/google-deepmind/mujoco_warp.git@cb2d638bc7037b1237a0ecd7846ba836baf9b772 -newton[sim] @ git+https://github.com/newton-physics/newton.git@bb6bf15b8f257a8a63cf3f003ad8115556c0e803 ; extra != 'optix' -newton[sim,optix] @ git+https://github.com/newton-physics/newton.git@bb6bf15b8f257a8a63cf3f003ad8115556c0e803 ; extra == 'optix' +mujoco~=4.1.0 +mujoco-core~=4.1.0 +mujoco-warp==4.1.0 +newton[sim] @ git+https://github.com/newton-physics/newton.git@28e273b326d48c3b3c2b2cadf42ddf79c06152d2 ; extra != 'optix' +newton[sim,optix] @ git+https://github.com/newton-physics/newton.git@28e273b326d48c3b3c2b2cadf42ddf79c06152d2 ; extra == 'optix' newton-usd-schemas>=0.8.0 usd-exchange==3.0.1 usd-optimize~=1.3.1 diff --git a/uv.lock b/uv.lock index 425ebbfd8c3a..abc2bfb7c6d1 100644 --- a/uv.lock +++ b/uv.lock @@ -18,12 +18,12 @@ prerelease-mode = "allow" [manifest] overrides = [ { name = "fsspec", specifier = ">=2026.6.0" }, - { name = "mujoco", specifier = "~=4.0.1" }, - { name = "mujoco-core", specifier = "~=4.0.1" }, + { name = "mujoco", specifier = "~=4.1.0" }, + { name = "mujoco-core", specifier = "~=4.1.0" }, { name = "mujoco-usd-converter", specifier = "==0.7.0" }, - { name = "mujoco-warp", git = "https://github.com/google-deepmind/mujoco_warp.git?rev=cb2d638bc7037b1237a0ecd7846ba836baf9b772" }, - { name = "newton", extras = ["sim"], marker = "extra != 'optix'", git = "https://github.com/newton-physics/newton.git?rev=bb6bf15b8f257a8a63cf3f003ad8115556c0e803" }, - { name = "newton", extras = ["sim", "optix"], marker = "extra == 'optix'", git = "https://github.com/newton-physics/newton.git?rev=bb6bf15b8f257a8a63cf3f003ad8115556c0e803" }, + { name = "mujoco-warp", specifier = "==4.1.0" }, + { name = "newton", extras = ["sim"], marker = "extra != 'optix'", git = "https://github.com/newton-physics/newton.git?rev=28e273b326d48c3b3c2b2cadf42ddf79c06152d2" }, + { name = "newton", extras = ["sim", "optix"], marker = "extra == 'optix'", git = "https://github.com/newton-physics/newton.git?rev=28e273b326d48c3b3c2b2cadf42ddf79c06152d2" }, { name = "newton-usd-schemas", specifier = ">=0.8.0" }, { name = "numpy", specifier = ">=2" }, { name = "packaging", specifier = ">=20,<27" }, @@ -2141,10 +2141,10 @@ requires-dist = [ { name = "matplotlib", specifier = ">=3.10.3" }, { name = "meshio", specifier = ">=5.3.5" }, { name = "moviepy", marker = "extra == 'video'", specifier = ">=1.0.3,<2.0.0.dev0" }, - { name = "mujoco-warp", git = "https://github.com/google-deepmind/mujoco_warp.git?rev=cb2d638bc7037b1237a0ecd7846ba836baf9b772" }, + { name = "mujoco-warp", specifier = "==4.1.0" }, { name = "myst-parser", marker = "extra == 'dev'" }, { name = "newton", extras = ["optix"], marker = "extra == 'optix'" }, - { name = "newton", extras = ["sim"], git = "https://github.com/newton-physics/newton.git?rev=bb6bf15b8f257a8a63cf3f003ad8115556c0e803" }, + { name = "newton", extras = ["sim"], git = "https://github.com/newton-physics/newton.git?rev=28e273b326d48c3b3c2b2cadf42ddf79c06152d2" }, { name = "newton-neural", marker = "extra == 'newton-neural'", git = "https://github.com/newton-physics/newton-neural.git?rev=06da4d2a604f3dbb48127a9010c41511cdd37a32" }, { name = "newton-usd-schemas", specifier = ">=0.8.0" }, { name = "numba", specifier = ">=0.63.1" }, @@ -3450,7 +3450,7 @@ wheels = [ [[package]] name = "mujoco" -version = "4.0.1" +version = "4.1.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "glfw" }, @@ -3459,28 +3459,28 @@ dependencies = [ { name = "numpy" }, { name = "pyopengl" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/33/f7/235af1e87699ca1b1433cd1220c92742a39725ec3b61c1c151e7f9ef9f71/mujoco-4.0.1.tar.gz", hash = "sha256:bf669f944288038571a79dbbb98c9e94d4b9b2d97eaae5c98cf75f74be2f1c6d", size = 154912, upload-time = "2026-11-11T16:25:30.149Z" } +sdist = { url = "https://files.pythonhosted.org/packages/2b/8f/fd5a2f687a7215933894c026a7b5180442c0c63f0832d735f88a51244777/mujoco-4.1.0.tar.gz", hash = "sha256:a4e1bc9b979abaf090890cabb1456cfe6590586d0359e12c610813c6c1d1a079", size = 154890, upload-time = "2026-12-01T16:33:29.527Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/37/50/a347e51f8a85cffcd02111165ea2b50508abeb89a30661bfe5442b1de411/mujoco-4.0.1-py3-none-any.whl", hash = "sha256:3a0ce4c6cd76dd599a89e60513ac1b03404642363a42267bcfd6b028cc753417", size = 108623, upload-time = "2026-11-11T16:25:28.431Z" }, + { url = "https://files.pythonhosted.org/packages/73/11/176cb8b2763a78a32bb0f65e7217da384fc1bde31c97711b96de42af6ff8/mujoco-4.1.0-py3-none-any.whl", hash = "sha256:eda027b90442bbd786862f7a2d6125162712ea2a5066228413678c3ed02b359b", size = 108621, upload-time = "2026-12-01T16:33:27.604Z" }, ] [[package]] name = "mujoco-core" -version = "4.0.1" +version = "4.1.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "numpy" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/e8/fb/55e0bbfa81dc9f0c1db559813cba914a267f2547c43918c97e4c1597b134/mujoco_core-4.0.1.tar.gz", hash = "sha256:062883cac035b1b3ae6a769cccd155ecc8f06d8c1cb004c33e01d1cb0f0ccf49", size = 1849567, upload-time = "2026-11-11T16:19:55.415Z" } +sdist = { url = "https://files.pythonhosted.org/packages/80/5e/b3eb11ce0b83990a817c250dbbb23ae52d52f29ae11ccb9bfe4e640c2f87/mujoco_core-4.1.0.tar.gz", hash = "sha256:5be81b551dbc497ef570cdf59595838a34ed4ab475544ac9578017fe49023f7c", size = 1916919, upload-time = "2026-12-01T16:32:01.986Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/2d/e5/d2ac34f1f4e06fcdd05c1e85741cb2adf5a23642fafe43545113b2d5832d/mujoco_core-4.0.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a401eaea5295a29d50c6fdfdb8df8d73c525ab2153751f91c36bd6ccdff95822", size = 8961229, upload-time = "2026-11-11T16:18:58.461Z" }, - { url = "https://files.pythonhosted.org/packages/f5/b0/7848d860e0a8262cfc6c504affcf9a481f17d198cd00c9ca0bcad32de159/mujoco_core-4.0.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:efbfb6e8f2bd63c5f19473f8093f01696937ef453d647b3c7a92620f5873b845", size = 9684944, upload-time = "2026-11-11T16:19:01.02Z" }, - { url = "https://files.pythonhosted.org/packages/d6/9e/e7238fdc9ca2f0dd53de15702b3ff16f603ee1148cb4666c5e7a8cdecc01/mujoco_core-4.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:296f4d02b58df353a3fd6fc1b4fcea180c1622660a36b54d547db1ac8d67bc55", size = 8222366, upload-time = "2026-11-11T16:19:03.192Z" }, + { url = "https://files.pythonhosted.org/packages/f6/5e/09af73eaf08a21fc9e0409bd144acc41c9fd826fd7b0472fe175c750217f/mujoco_core-4.1.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d8ed2e5a5a5ac7a57d9b9ee0c60f57759c85e37604106653ee7d9fb016f272fb", size = 9027179, upload-time = "2026-12-01T16:31:06.366Z" }, + { url = "https://files.pythonhosted.org/packages/b8/e1/b90937bb2347e1badf51b57b586db6d1b73000146f37d9f7d4747b9958f8/mujoco_core-4.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9c35d8549a606c173328d1a50b0c2fa470e27f6ed0e57dadc2e1f1db1ff674dc", size = 9748493, upload-time = "2026-12-01T16:31:09.217Z" }, + { url = "https://files.pythonhosted.org/packages/6b/d9/75146dae2a66cd22d9addc1293ea1d21d3e38162a5f6dc75e277177640bf/mujoco_core-4.1.0-cp312-cp312-win_amd64.whl", hash = "sha256:771e7aa6f7dccd1c4a96ecac4fe8176345087a842c2547a7f995d375019f0a3e", size = 8268361, upload-time = "2026-12-01T16:31:11.75Z" }, ] [[package]] name = "mujoco-studio" -version = "4.0.1" +version = "4.1.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "mujoco-core" }, @@ -3488,20 +3488,20 @@ dependencies = [ { name = "numpy" }, { name = "websockets" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/e7/eb/57a62669a40678a8e01d7bd05ce3122af948a19c81fff6c386f5e9dc1c3b/mujoco_studio-4.0.1.tar.gz", hash = "sha256:d5bc8ba43d747737c3922411a7b6466f984983018abdd5f46bb8ba20f6c4cece", size = 421236, upload-time = "2026-11-11T16:21:53.784Z" } +sdist = { url = "https://files.pythonhosted.org/packages/d2/fe/8f519600b9d0258cda1c1b6d3dca09b87cd6450a938a328fb887440b1fb2/mujoco_studio-4.1.0.tar.gz", hash = "sha256:10c42f9eeae272e72548ef925529d09f6fd28002fb8365f8f4b71554ff7c6d92", size = 435165, upload-time = "2026-12-01T16:33:08.874Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/a6/41/e73d8b8ca1a7727294bdc4ab74765335e97510a383f94d270c1dc8778dbb/mujoco_studio-4.0.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4a58749829eef277375a0dedde533a4c88e0c396dd2b4f57f99146f67cf2c652", size = 8288869, upload-time = "2026-11-11T16:21:05.61Z" }, - { url = "https://files.pythonhosted.org/packages/30/c5/39781fb518059323aedacdd32cf7089ad39aa58ca211d2a2c44fb8cbc11f/mujoco_studio-4.0.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c9f8e18cccbc69de0c888f487e2d3348c31b87f578ef557659b7bf4a3a739f38", size = 8749028, upload-time = "2026-11-11T16:21:07.771Z" }, - { url = "https://files.pythonhosted.org/packages/13/7f/a42796ce63c3de4a4e2b4b63c2e6194f58f5947b5c6822bdcc7e3227b46c/mujoco_studio-4.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:95f0265ea176b75166eece21e350f6a6b226486e4f7657761d8b8eb2fbecc8fc", size = 8014662, upload-time = "2026-11-11T16:21:10.001Z" }, + { url = "https://files.pythonhosted.org/packages/ee/b3/6b83bc9cb0d5d9703cfcdf5766b474edd04e390aa7dfb51993435c5deccf/mujoco_studio-4.1.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:517d00cac468f37c2948776adddf58f5728d8efaee46d2190273ef4db79a1dd7", size = 7597766, upload-time = "2026-12-01T16:32:24.906Z" }, + { url = "https://files.pythonhosted.org/packages/35/be/5735adffd849ed715510a942cdf96a2444f2edf1aa3157ed6cc13473a9f0/mujoco_studio-4.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3054e306efd58823027d85ea34afe9e8f0e5f8939291056d09d70e73a02ee55c", size = 8060974, upload-time = "2026-12-01T16:32:27.142Z" }, + { url = "https://files.pythonhosted.org/packages/84/af/f7ff9b1f94aea092e55d3fc1e0fb803b9be12b228b664bb32d466e30e8f9/mujoco_studio-4.1.0-cp312-cp312-win_amd64.whl", hash = "sha256:467cf427123b26fc3661d087c9291312e491467805003467ddd7e2a7fad30411", size = 7307749, upload-time = "2026-12-01T16:32:29.116Z" }, ] [[package]] name = "mujoco-studio-wasm" -version = "4.0.1" +version = "4.1.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/5b/20/d58817c428a858f9df7e46b18ea0434a581544a61756908f23acfb0cda38/mujoco_studio_wasm-4.0.1.tar.gz", hash = "sha256:90eb6c05d57e5b3171cf8a2ac4f491e3f1a1dcab2c06375f49b5c98dac8d5bfa", size = 2482121, upload-time = "2026-11-11T16:20:47.965Z" } +sdist = { url = "https://files.pythonhosted.org/packages/f3/a5/244c4fe1414a556e388f5f5cb61fa12c95a715fa225a17290a31e37c6517/mujoco_studio_wasm-4.1.0.tar.gz", hash = "sha256:7bf9601dc4561ecd76b5f4eca3d1b3d4f9e86aacdc7821a2c4326cd36c16c668", size = 2584839, upload-time = "2026-12-01T16:32:08.285Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/b9/f7/f59dc75abfbc4f232666ada6ae3946da0af8a8bcd46f058ee063786c3681/mujoco_studio_wasm-4.0.1-py3-none-any.whl", hash = "sha256:14d724721c971ec208baeb6b449797a9cd456ea0331bc8e8a8722e7823e60ccc", size = 2442076, upload-time = "2026-11-11T16:20:45.826Z" }, + { url = "https://files.pythonhosted.org/packages/f3/f0/e784efd985867c745395410d89985d705de93ca4dac85fb41cb7ab8bf65c/mujoco_studio_wasm-4.1.0-py3-none-any.whl", hash = "sha256:588562726c1ace9d78e3778a17f944b23b904376fa5ea26fa52840c5267e8f7f", size = 2545870, upload-time = "2026-12-01T16:32:05.977Z" }, ] [[package]] @@ -3522,8 +3522,8 @@ wheels = [ [[package]] name = "mujoco-warp" -version = "4.0.1" -source = { git = "https://github.com/google-deepmind/mujoco_warp.git?rev=cb2d638bc7037b1237a0ecd7846ba836baf9b772#cb2d638bc7037b1237a0ecd7846ba836baf9b772" } +version = "4.1.0" +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "absl-py" }, { name = "etils", extra = ["epath"] }, @@ -3533,6 +3533,10 @@ dependencies = [ { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, ] +sdist = { url = "https://files.pythonhosted.org/packages/27/66/c5b2966ddc8d7cccdaa9196515d638f9169e885f6ee0d6021fc1ad93ef30/mujoco_warp-4.1.0.tar.gz", hash = "sha256:c493c39a814dafa2d9bbc83851934bf338c2c6f9a2aeab679e4f98c85c6f068b", size = 2549517, upload-time = "2026-12-01T16:30:06.485Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4c/ca/5d72995aa1edd75804ff7c5d6c7fcc20b80cc1da2333c067c31ea798bff6/mujoco_warp-4.1.0-py3-none-any.whl", hash = "sha256:246c9268f3fb35a2ab470ea7c7ed42a38260bb92a00ac23abdd07b3db5bec2b4", size = 2631085, upload-time = "2026-12-01T16:30:04.801Z" }, +] [[package]] name = "multidict" @@ -3610,7 +3614,7 @@ wheels = [ [[package]] name = "newton" version = "1.9.0.dev0" -source = { git = "https://github.com/newton-physics/newton.git?rev=bb6bf15b8f257a8a63cf3f003ad8115556c0e803#bb6bf15b8f257a8a63cf3f003ad8115556c0e803" } +source = { git = "https://github.com/newton-physics/newton.git?rev=28e273b326d48c3b3c2b2cadf42ddf79c06152d2#28e273b326d48c3b3c2b2cadf42ddf79c06152d2" } dependencies = [ { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, From 375f08ba77a54f349db582eac4fb2a26d9ff9a46 Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Wed, 2 Dec 2026 01:40:15 -0800 Subject: [PATCH 07/12] Remove redundant MuJoCo dependency pins --- pyproject.toml | 11 +++++------ source/isaaclab/test/cli/test_uv_run_pyproject.py | 11 +++++------ tools/wheel_builder/uv-overrides.txt | 7 +++---- uv.lock | 13 +++++-------- 4 files changed, 18 insertions(+), 24 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a67bf3cf930b..1e7216634bdd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -90,8 +90,7 @@ dependencies = [ "gitpython>=3.1.60", # used by RL training and experiment logging # ----- newton (default physics engine) ----- # MuJoCo 4.1 support from newton-physics/newton#5750; replace once merged upstream. - "newton[sim] @ git+https://github.com/newton-physics/newton.git@28e273b326d48c3b3c2b2cadf42ddf79c06152d2", - "mujoco-warp==4.1.0", + "newton[sim] @ git+https://github.com/newton-physics/newton.git@b5767ad39b52c1452b006c9fbed923dd5223fb0a", # Import and mesh-processing packages used by Newton, including the ones that honoring # USD-authored ``physics:approximation`` requires. Keep these explicit instead of selecting # newton[importers], whose standalone USD dependency would overlap with usd-exchange. @@ -445,11 +444,11 @@ override-dependencies = [ "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl ; sys_platform == 'linux' and platform_machine == 'x86_64'", "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl ; sys_platform == 'linux' and platform_machine == 'aarch64'", "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl ; sys_platform == 'win32'", + # Isaac Sim 6.2 pins MuJoCo and MuJoCo Warp 3.12; align them with Newton 4.1. "mujoco~=4.1.0", - "mujoco-core~=4.1.0", - "mujoco-warp==4.1.0", - "newton[sim] @ git+https://github.com/newton-physics/newton.git@28e273b326d48c3b3c2b2cadf42ddf79c06152d2 ; extra != 'optix'", - "newton[sim,optix] @ git+https://github.com/newton-physics/newton.git@28e273b326d48c3b3c2b2cadf42ddf79c06152d2 ; extra == 'optix'", + "mujoco-warp~=4.1.0", + "newton[sim] @ git+https://github.com/newton-physics/newton.git@b5767ad39b52c1452b006c9fbed923dd5223fb0a ; extra != 'optix'", + "newton[sim,optix] @ git+https://github.com/newton-physics/newton.git@b5767ad39b52c1452b006c9fbed923dd5223fb0a ; extra == 'optix'", # Force the Newton-matched schemas over isaacsim's ==0.2.0 pin. "newton-usd-schemas>=0.8.0", # isaacsim-asset-isolated and isaacsim-robot-schema 6.2 pin usd-exchange ==2.3.0. diff --git a/source/isaaclab/test/cli/test_uv_run_pyproject.py b/source/isaaclab/test/cli/test_uv_run_pyproject.py index 5805858eff25..25a488d6581a 100644 --- a/source/isaaclab/test/cli/test_uv_run_pyproject.py +++ b/source/isaaclab/test/cli/test_uv_run_pyproject.py @@ -199,12 +199,11 @@ def spec(package: str) -> str: assert f"{newton_spec} ; extra != 'optix'" in overrides assert f"{newton_spec.replace('[sim]', '[sim,optix]')} ; extra == 'optix'" in overrides - # Source and published-wheel installations must use the same published MuJoCo Warp release. - mjwarp = next(package for package in lock["package"] if package["name"] == "mujoco-warp") - assert "registry" in mjwarp["source"] - mjwarp_spec = f"mujoco-warp=={mjwarp['version']}" - assert mjwarp_spec in dependencies - assert mjwarp_spec in overrides + # Newton owns the MuJoCo Warp dependency. One override reconciles Isaac Sim's older exact pin. + assert any(package["name"] == "mujoco-warp" for package in newton["optional-dependencies"]["sim"]) + assert not any(requirement.startswith("mujoco-warp") for requirement in dependencies) + mjwarp_overrides = [requirement for requirement in overrides if requirement.startswith("mujoco-warp")] + assert mjwarp_overrides == ["mujoco-warp~=4.1.0"] # The official CUDA 12 wheels keep conditional graph compilation compatible with CI drivers. warp_pins = {requirement for requirement in dependencies if requirement.startswith("warp-lang @ ")} diff --git a/tools/wheel_builder/uv-overrides.txt b/tools/wheel_builder/uv-overrides.txt index 492c895b7c94..230aa8439468 100644 --- a/tools/wheel_builder/uv-overrides.txt +++ b/tools/wheel_builder/uv-overrides.txt @@ -4,10 +4,9 @@ warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1 warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl ; sys_platform == 'linux' and platform_machine == 'aarch64' warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl ; sys_platform == 'win32' mujoco~=4.1.0 -mujoco-core~=4.1.0 -mujoco-warp==4.1.0 -newton[sim] @ git+https://github.com/newton-physics/newton.git@28e273b326d48c3b3c2b2cadf42ddf79c06152d2 ; extra != 'optix' -newton[sim,optix] @ git+https://github.com/newton-physics/newton.git@28e273b326d48c3b3c2b2cadf42ddf79c06152d2 ; extra == 'optix' +mujoco-warp~=4.1.0 +newton[sim] @ git+https://github.com/newton-physics/newton.git@b5767ad39b52c1452b006c9fbed923dd5223fb0a ; extra != 'optix' +newton[sim,optix] @ git+https://github.com/newton-physics/newton.git@b5767ad39b52c1452b006c9fbed923dd5223fb0a ; extra == 'optix' newton-usd-schemas>=0.8.0 usd-exchange==3.0.1 usd-optimize~=1.3.1 diff --git a/uv.lock b/uv.lock index abc2bfb7c6d1..212bc0412058 100644 --- a/uv.lock +++ b/uv.lock @@ -19,11 +19,10 @@ prerelease-mode = "allow" overrides = [ { name = "fsspec", specifier = ">=2026.6.0" }, { name = "mujoco", specifier = "~=4.1.0" }, - { name = "mujoco-core", specifier = "~=4.1.0" }, { name = "mujoco-usd-converter", specifier = "==0.7.0" }, - { name = "mujoco-warp", specifier = "==4.1.0" }, - { name = "newton", extras = ["sim"], marker = "extra != 'optix'", git = "https://github.com/newton-physics/newton.git?rev=28e273b326d48c3b3c2b2cadf42ddf79c06152d2" }, - { name = "newton", extras = ["sim", "optix"], marker = "extra == 'optix'", git = "https://github.com/newton-physics/newton.git?rev=28e273b326d48c3b3c2b2cadf42ddf79c06152d2" }, + { name = "mujoco-warp", specifier = "~=4.1.0" }, + { name = "newton", extras = ["sim"], marker = "extra != 'optix'", git = "https://github.com/newton-physics/newton.git?rev=b5767ad39b52c1452b006c9fbed923dd5223fb0a" }, + { name = "newton", extras = ["sim", "optix"], marker = "extra == 'optix'", git = "https://github.com/newton-physics/newton.git?rev=b5767ad39b52c1452b006c9fbed923dd5223fb0a" }, { name = "newton-usd-schemas", specifier = ">=0.8.0" }, { name = "numpy", specifier = ">=2" }, { name = "packaging", specifier = ">=20,<27" }, @@ -1882,7 +1881,6 @@ dependencies = [ { name = "lazy-loader" }, { name = "matplotlib" }, { name = "meshio" }, - { name = "mujoco-warp" }, { name = "newton", extra = ["sim"] }, { name = "newton-usd-schemas" }, { name = "numba" }, @@ -2141,10 +2139,9 @@ requires-dist = [ { name = "matplotlib", specifier = ">=3.10.3" }, { name = "meshio", specifier = ">=5.3.5" }, { name = "moviepy", marker = "extra == 'video'", specifier = ">=1.0.3,<2.0.0.dev0" }, - { name = "mujoco-warp", specifier = "==4.1.0" }, { name = "myst-parser", marker = "extra == 'dev'" }, { name = "newton", extras = ["optix"], marker = "extra == 'optix'" }, - { name = "newton", extras = ["sim"], git = "https://github.com/newton-physics/newton.git?rev=28e273b326d48c3b3c2b2cadf42ddf79c06152d2" }, + { name = "newton", extras = ["sim"], git = "https://github.com/newton-physics/newton.git?rev=b5767ad39b52c1452b006c9fbed923dd5223fb0a" }, { name = "newton-neural", marker = "extra == 'newton-neural'", git = "https://github.com/newton-physics/newton-neural.git?rev=06da4d2a604f3dbb48127a9010c41511cdd37a32" }, { name = "newton-usd-schemas", specifier = ">=0.8.0" }, { name = "numba", specifier = ">=0.63.1" }, @@ -3614,7 +3611,7 @@ wheels = [ [[package]] name = "newton" version = "1.9.0.dev0" -source = { git = "https://github.com/newton-physics/newton.git?rev=28e273b326d48c3b3c2b2cadf42ddf79c06152d2#28e273b326d48c3b3c2b2cadf42ddf79c06152d2" } +source = { git = "https://github.com/newton-physics/newton.git?rev=b5767ad39b52c1452b006c9fbed923dd5223fb0a#b5767ad39b52c1452b006c9fbed923dd5223fb0a" } dependencies = [ { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, From e78bfa606c200c59a0299006656cb8c4abc7f2fc Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Wed, 2 Dec 2026 01:54:29 -0800 Subject: [PATCH 08/12] Bump Warp to 1.20 with the CUDA 12 build --- pyproject.toml | 16 +-- .../newton-mjwarp-version-bump.fixed.rst | 2 +- .../newton-mjwarp-version-bump.changed.rst | 2 +- tools/wheel_builder/uv-overrides.txt | 6 +- uv.lock | 130 +++++++++++------- 5 files changed, 90 insertions(+), 66 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1e7216634bdd..b1b27a874f26 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,10 +47,10 @@ dependencies = [ "pyglet>=2.1.6,<3", "transformers==5.10.4", "einops", - # Use the official CUDA 12 build: the CUDA 13.4 build fails to load conditional kernels on CI drivers. - "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl ; sys_platform == 'linux' and platform_machine == 'x86_64'", - "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl ; sys_platform == 'linux' and platform_machine == 'aarch64'", - "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl ; sys_platform == 'win32'", + # Use the official CUDA 12 build for the CI driver; CUDA 13.4 kernels failed to load. + "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl ; sys_platform == 'linux' and platform_machine == 'x86_64'", + "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl ; sys_platform == 'linux' and platform_machine == 'aarch64'", + "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-win_amd64.whl ; sys_platform == 'win32'", "matplotlib>=3.10.3", # pillow: floor, not exact — an exact pin below Isaac Sim's prebundled version forces a # downgrade that deletes the prebundled copy other extensions symlink into (nvbugs 6410989). @@ -259,7 +259,7 @@ ovphysx = "0.8.0.43443703471" ovrtx = "0.7.0.1794596436" ovstage = "0.4.0.1794520352" newton = "1.9.0.dev0" -warp = "1.19.0+cu12" +warp = "1.20.0+cu12" [tool.ruff] line-length = 120 @@ -441,9 +441,9 @@ override-dependencies = [ # Capture CloudXR requires >=17.3; override Isaac Sim 6.2's <15 and Viser 1.0's <17 caps. "websockets>=17.3", "numpy>=2", - "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl ; sys_platform == 'linux' and platform_machine == 'x86_64'", - "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl ; sys_platform == 'linux' and platform_machine == 'aarch64'", - "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl ; sys_platform == 'win32'", + "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl ; sys_platform == 'linux' and platform_machine == 'x86_64'", + "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl ; sys_platform == 'linux' and platform_machine == 'aarch64'", + "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-win_amd64.whl ; sys_platform == 'win32'", # Isaac Sim 6.2 pins MuJoCo and MuJoCo Warp 3.12; align them with Newton 4.1. "mujoco~=4.1.0", "mujoco-warp~=4.1.0", diff --git a/source/isaaclab/changelog.d/newton-mjwarp-version-bump.fixed.rst b/source/isaaclab/changelog.d/newton-mjwarp-version-bump.fixed.rst index b7d259c1dac9..3d9f4102dec8 100644 --- a/source/isaaclab/changelog.d/newton-mjwarp-version-bump.fixed.rst +++ b/source/isaaclab/changelog.d/newton-mjwarp-version-bump.fixed.rst @@ -1,2 +1,2 @@ * Updated native actuator delays to Newton input processors and specialized reset-state copying by array - rank for Warp 1.19, preserving masked writes and strided output views. + rank for Warp's compile-time checks, preserving masked writes and strided output views. diff --git a/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst b/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst index 64aa3bb2fd70..27ef7ef9cdc6 100644 --- a/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst +++ b/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst @@ -1,4 +1,4 @@ -* **Breaking:** Updated Newton for MuJoCo and MuJoCo Warp 4.1.0, with the CUDA 12 build of Warp 1.19 +* **Breaking:** Updated Newton for MuJoCo and MuJoCo Warp 4.1.0, with the CUDA 12 build of Warp 1.20 and Newton USD schemas 0.8. Removed ``NewtonManager.request_extended_contact_attribute``; use solver observables or contact sensors for contact forces. Removed ``NewtonManager.request_extended_state_attribute``; request ``body_qdd`` or ``body_parent_f`` through ``NewtonManager.request_solver_observables`` instead. diff --git a/tools/wheel_builder/uv-overrides.txt b/tools/wheel_builder/uv-overrides.txt index 230aa8439468..ad2dd6aaf451 100644 --- a/tools/wheel_builder/uv-overrides.txt +++ b/tools/wheel_builder/uv-overrides.txt @@ -1,8 +1,8 @@ websockets>=17.3 numpy>=2 -warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl ; sys_platform == 'linux' and platform_machine == 'x86_64' -warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl ; sys_platform == 'linux' and platform_machine == 'aarch64' -warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl ; sys_platform == 'win32' +warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl ; sys_platform == 'linux' and platform_machine == 'x86_64' +warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl ; sys_platform == 'linux' and platform_machine == 'aarch64' +warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-win_amd64.whl ; sys_platform == 'win32' mujoco~=4.1.0 mujoco-warp~=4.1.0 newton[sim] @ git+https://github.com/newton-physics/newton.git@b5767ad39b52c1452b006c9fbed923dd5223fb0a ; extra != 'optix' diff --git a/uv.lock b/uv.lock index 212bc0412058..f23eb2fa0f8a 100644 --- a/uv.lock +++ b/uv.lock @@ -33,9 +33,9 @@ overrides = [ { name = "urllib3", specifier = ">=2.8.0" }, { name = "usd-exchange", specifier = "==3.0.1" }, { name = "usd-optimize", specifier = "~=1.3.1" }, - { name = "warp-lang", marker = "platform_machine == 'aarch64' and sys_platform == 'linux'", url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, - { name = "warp-lang", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'", url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, - { name = "warp-lang", marker = "sys_platform == 'win32'", url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" }, + { name = "warp-lang", marker = "platform_machine == 'aarch64' and sys_platform == 'linux'", url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, + { name = "warp-lang", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'", url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, + { name = "warp-lang", marker = "sys_platform == 'win32'", url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-win_amd64.whl" }, { name = "websockets", specifier = ">=17.3" }, ] @@ -1305,9 +1305,9 @@ dependencies = [ { name = "torchvision" }, { name = "tqdm" }, { name = "trimesh" }, - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/b8/0f/787082f650d1ae57a420b868edb4e25953eadc569793003fe5257848b674/fovi-2.7.0.tar.gz", hash = "sha256:506faffe547f31db4a4e4ea24b124d918ad8fc7fc2cdcab6822f6f960b75b74a", size = 67610838, upload-time = "2026-11-23T22:02:14.2Z" } wheels = [ @@ -1914,9 +1914,9 @@ dependencies = [ { name = "typing-extensions" }, { name = "urllib3" }, { name = "usd-exchange" }, - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, ] [package.optional-dependencies] @@ -2220,9 +2220,9 @@ requires-dist = [ { name = "virtualenv", marker = "extra == 'rlinf'", specifier = ">=21.7.13" }, { name = "viser", marker = "extra == 'viser'", specifier = ">=1.0.16" }, { name = "wandb", marker = "extra == 'wandb'", specifier = ">=0.13.11" }, - { name = "warp-lang", marker = "platform_machine == 'aarch64' and sys_platform == 'linux'", url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, - { name = "warp-lang", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'", url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, - { name = "warp-lang", marker = "sys_platform == 'win32'", url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" }, + { name = "warp-lang", marker = "platform_machine == 'aarch64' and sys_platform == 'linux'", url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, + { name = "warp-lang", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'", url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, + { name = "warp-lang", marker = "sys_platform == 'win32'", url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-win_amd64.whl" }, ] provides-extras = ["tetrahedralization", "video", "optix", "newton-neural", "importers", "test", "dev", "sb3", "skrl", "skrl-jax", "rl-games", "wandb", "rsl-rl", "torchrl", "viser", "rerun", "isaacsim", "ov", "ovphysx", "ovrtx", "mimic", "teleop", "ovxr", "rlinf", "leapp", "fovi", "all"] @@ -3526,9 +3526,9 @@ dependencies = [ { name = "etils", extra = ["epath"] }, { name = "mujoco-core" }, { name = "numpy" }, - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/27/66/c5b2966ddc8d7cccdaa9196515d638f9169e885f6ee0d6021fc1ad93ef30/mujoco_warp-4.1.0.tar.gz", hash = "sha256:c493c39a814dafa2d9bbc83851934bf338c2c6f9a2aeab679e4f98c85c6f068b", size = 2549517, upload-time = "2026-12-01T16:30:06.485Z" } wheels = [ @@ -3613,9 +3613,9 @@ name = "newton" version = "1.9.0.dev0" source = { git = "https://github.com/newton-physics/newton.git?rev=b5767ad39b52c1452b006c9fbed923dd5223fb0a#b5767ad39b52c1452b006c9fbed923dd5223fb0a" } dependencies = [ - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, ] [package.optional-dependencies] @@ -3635,9 +3635,9 @@ dependencies = [ { name = "newton", extra = ["sim"] }, { name = "numpy" }, { name = "torch" }, - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, ] [[package]] @@ -4218,9 +4218,9 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "ovstage" }, { name = "packaging" }, - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, ] wheels = [ { url = "https://files.pythonhosted.org/packages/d7/d3/a1f6843672fcfc7bdd6af1ccbfc8063e61846ca1dda93e689850a33eb94d/ovphysx-0.8.0.43443703471-py3-none-manylinux_2_35_aarch64.whl", hash = "sha256:97823201da0cbe73014ae5218fdcb2bbd22bd6b48ce4e27b0fba39a07771835e", size = 161716252, upload-time = "2026-11-13T21:03:53.538Z" }, @@ -5516,9 +5516,9 @@ torch = [ { name = "torch" }, ] warp = [ - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, { name = "warp-nn" }, ] @@ -6341,8 +6341,8 @@ wheels = [ [[package]] name = "warp-lang" -version = "1.19.0+cu12" -source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" } +version = "1.20.0+cu12" +source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" } resolution-markers = [ "platform_machine == 'x86_64' and sys_platform == 'linux'", ] @@ -6350,42 +6350,50 @@ dependencies = [ { name = "numpy" }, ] wheels = [ - { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl", hash = "sha256:f95d9581ed12663df272e45a50101b171e143fde1ef7b2433a8bfc9fba096598" }, + { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl", hash = "sha256:85bca209cfc45db06ecbcc0cdb84cd5bf15da3db4a837de5fb78fdbc5be464fa" }, ] [package.metadata] requires-dist = [ { name = "blosc", marker = "(platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and extra == 'examples') or (sys_platform != 'win32' and extra == 'examples')", specifier = ">=1.11.1" }, - { name = "coverage", extras = ["toml"], marker = "extra == 'dev'" }, + { name = "coverage", marker = "extra == 'dev'" }, + { name = "cuda-tile", marker = "sys_platform != 'darwin' and extra == 'cutile'", specifier = ">=1.8.1" }, + { name = "cuda-tile-preview", marker = "sys_platform != 'darwin' and extra == 'cutile'", specifier = ">=1.8.1" }, { name = "matplotlib", marker = "extra == 'examples'", specifier = ">=3.7.5" }, { name = "ml-dtypes", marker = "extra == 'dev'", specifier = ">=0.5.4" }, { name = "myst-parser", marker = "extra == 'docs'" }, { name = "nlopt", marker = "(python_full_version < '3.15' and platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and extra == 'examples') or (python_full_version < '3.15' and sys_platform != 'win32' and extra == 'examples')" }, { name = "numpy" }, + { name = "nvidia-cuda-crt", marker = "sys_platform != 'darwin' and extra == 'cutile'", specifier = ">=13.5,<13.6" }, + { name = "nvidia-cuda-nvcc", marker = "sys_platform != 'darwin' and extra == 'cutile'", specifier = ">=13.5,<13.6" }, + { name = "nvidia-cuda-tileiras", marker = "sys_platform != 'darwin' and extra == 'cutile'", specifier = ">=13.5,<13.6" }, + { name = "nvidia-nvjitlink", marker = "sys_platform != 'darwin' and extra == 'cutile'", specifier = ">=13.5,<14" }, + { name = "nvidia-nvvm", marker = "sys_platform != 'darwin' and extra == 'cutile'", specifier = ">=13.5,<13.6" }, { name = "nvidia-sphinx-theme", marker = "extra == 'docs'" }, { name = "nvtx", marker = "extra == 'dev'", specifier = ">=0.2.16" }, { name = "pillow", marker = "extra == 'examples'", specifier = ">=10.4.0" }, { name = "pre-commit", marker = "extra == 'docs'" }, { name = "psutil", marker = "extra == 'examples'", specifier = ">=7.1.0" }, { name = "pyglet", marker = "extra == 'examples'", specifier = ">=2.1.9" }, + { name = "sphinx", marker = "extra == 'docs'", specifier = ">=9.0" }, { name = "sphinx-copybutton", marker = "extra == 'docs'" }, { name = "torch", marker = "extra == 'torch-cu12'", specifier = ">=2.7.0" }, { name = "torch", marker = "extra == 'torch-cu13'", specifier = ">=2.9.0" }, + { name = "usd-core", marker = "platform_machine == 'aarch64' and sys_platform == 'linux' and extra == 'benchmark'", specifier = ">=26.11" }, + { name = "usd-core", marker = "platform_machine == 'aarch64' and sys_platform == 'linux' and extra == 'examples'", specifier = ">=26.11" }, { name = "usd-core", marker = "(platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and sys_platform == 'win32' and extra == 'benchmark') or (platform_machine != 'aarch64' and sys_platform == 'linux' and extra == 'benchmark') or (sys_platform != 'linux' and sys_platform != 'win32' and extra == 'benchmark')", specifier = ">=25.5" }, { name = "usd-core", marker = "(platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and sys_platform == 'win32' and extra == 'examples') or (platform_machine != 'aarch64' and sys_platform == 'linux' and extra == 'examples') or (sys_platform != 'linux' and sys_platform != 'win32' and extra == 'examples')", specifier = ">=25.5" }, - { name = "usd-exchange", marker = "python_full_version >= '3.10' and python_full_version < '3.13' and platform_machine == 'aarch64' and sys_platform == 'linux' and extra == 'benchmark'", specifier = ">=2.2" }, - { name = "usd-exchange", marker = "python_full_version >= '3.10' and python_full_version < '3.13' and platform_machine == 'aarch64' and sys_platform == 'linux' and extra == 'examples'", specifier = ">=2.2" }, { name = "warp-lang", extras = ["docs"], marker = "extra == 'dev'" }, { name = "warp-lang", extras = ["examples"], marker = "extra == 'dev'" }, { name = "warp-lang", extras = ["examples"], marker = "extra == 'torch-cu12'" }, { name = "warp-lang", extras = ["examples"], marker = "extra == 'torch-cu13'" }, ] -provides-extras = ["docs", "benchmark", "examples", "torch-cu12", "torch-cu13", "dev"] +provides-extras = ["docs", "benchmark", "examples", "torch-cu12", "torch-cu13", "cutile", "dev"] [[package]] name = "warp-lang" -version = "1.19.0+cu12" -source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" } +version = "1.20.0+cu12" +source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" } resolution-markers = [ "platform_machine == 'aarch64' and sys_platform == 'linux'", ] @@ -6393,42 +6401,50 @@ dependencies = [ { name = "numpy" }, ] wheels = [ - { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl", hash = "sha256:b3d0222132811b1db8c5c5d1d04bdc92923b77b7df8556d665116569a361a5d2" }, + { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl", hash = "sha256:a87159d605f71127580c7479554b58917114a577ac33e9348b12408141f9311d" }, ] [package.metadata] requires-dist = [ { name = "blosc", marker = "(platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and extra == 'examples') or (sys_platform != 'win32' and extra == 'examples')", specifier = ">=1.11.1" }, - { name = "coverage", extras = ["toml"], marker = "extra == 'dev'" }, + { name = "coverage", marker = "extra == 'dev'" }, + { name = "cuda-tile", marker = "sys_platform != 'darwin' and extra == 'cutile'", specifier = ">=1.8.1" }, + { name = "cuda-tile-preview", marker = "sys_platform != 'darwin' and extra == 'cutile'", specifier = ">=1.8.1" }, { name = "matplotlib", marker = "extra == 'examples'", specifier = ">=3.7.5" }, { name = "ml-dtypes", marker = "extra == 'dev'", specifier = ">=0.5.4" }, { name = "myst-parser", marker = "extra == 'docs'" }, { name = "nlopt", marker = "(python_full_version < '3.15' and platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and extra == 'examples') or (python_full_version < '3.15' and sys_platform != 'win32' and extra == 'examples')" }, { name = "numpy" }, + { name = "nvidia-cuda-crt", marker = "sys_platform != 'darwin' and extra == 'cutile'", specifier = ">=13.5,<13.6" }, + { name = "nvidia-cuda-nvcc", marker = "sys_platform != 'darwin' and extra == 'cutile'", specifier = ">=13.5,<13.6" }, + { name = "nvidia-cuda-tileiras", marker = "sys_platform != 'darwin' and extra == 'cutile'", specifier = ">=13.5,<13.6" }, + { name = "nvidia-nvjitlink", marker = "sys_platform != 'darwin' and extra == 'cutile'", specifier = ">=13.5,<14" }, + { name = "nvidia-nvvm", marker = "sys_platform != 'darwin' and extra == 'cutile'", specifier = ">=13.5,<13.6" }, { name = "nvidia-sphinx-theme", marker = "extra == 'docs'" }, { name = "nvtx", marker = "extra == 'dev'", specifier = ">=0.2.16" }, { name = "pillow", marker = "extra == 'examples'", specifier = ">=10.4.0" }, { name = "pre-commit", marker = "extra == 'docs'" }, { name = "psutil", marker = "extra == 'examples'", specifier = ">=7.1.0" }, { name = "pyglet", marker = "extra == 'examples'", specifier = ">=2.1.9" }, + { name = "sphinx", marker = "extra == 'docs'", specifier = ">=9.0" }, { name = "sphinx-copybutton", marker = "extra == 'docs'" }, { name = "torch", marker = "extra == 'torch-cu12'", specifier = ">=2.7.0" }, { name = "torch", marker = "extra == 'torch-cu13'", specifier = ">=2.9.0" }, + { name = "usd-core", marker = "platform_machine == 'aarch64' and sys_platform == 'linux' and extra == 'benchmark'", specifier = ">=26.11" }, + { name = "usd-core", marker = "platform_machine == 'aarch64' and sys_platform == 'linux' and extra == 'examples'", specifier = ">=26.11" }, { name = "usd-core", marker = "(platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and sys_platform == 'win32' and extra == 'benchmark') or (platform_machine != 'aarch64' and sys_platform == 'linux' and extra == 'benchmark') or (sys_platform != 'linux' and sys_platform != 'win32' and extra == 'benchmark')", specifier = ">=25.5" }, { name = "usd-core", marker = "(platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and sys_platform == 'win32' and extra == 'examples') or (platform_machine != 'aarch64' and sys_platform == 'linux' and extra == 'examples') or (sys_platform != 'linux' and sys_platform != 'win32' and extra == 'examples')", specifier = ">=25.5" }, - { name = "usd-exchange", marker = "python_full_version >= '3.10' and python_full_version < '3.13' and platform_machine == 'aarch64' and sys_platform == 'linux' and extra == 'benchmark'", specifier = ">=2.2" }, - { name = "usd-exchange", marker = "python_full_version >= '3.10' and python_full_version < '3.13' and platform_machine == 'aarch64' and sys_platform == 'linux' and extra == 'examples'", specifier = ">=2.2" }, { name = "warp-lang", extras = ["docs"], marker = "extra == 'dev'" }, { name = "warp-lang", extras = ["examples"], marker = "extra == 'dev'" }, { name = "warp-lang", extras = ["examples"], marker = "extra == 'torch-cu12'" }, { name = "warp-lang", extras = ["examples"], marker = "extra == 'torch-cu13'" }, ] -provides-extras = ["docs", "benchmark", "examples", "torch-cu12", "torch-cu13", "dev"] +provides-extras = ["docs", "benchmark", "examples", "torch-cu12", "torch-cu13", "cutile", "dev"] [[package]] name = "warp-lang" -version = "1.19.0+cu12" -source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" } +version = "1.20.0+cu12" +source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-win_amd64.whl" } resolution-markers = [ "platform_machine == 'AMD64' and sys_platform == 'win32'", ] @@ -6436,46 +6452,54 @@ dependencies = [ { name = "numpy" }, ] wheels = [ - { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl", hash = "sha256:2f2b90e1d8efced743a7ecacc2b12679825392d7cf0883f9ff87f97afd87ead0" }, + { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-win_amd64.whl", hash = "sha256:e6d06fce6660114291c2eb378b6f826eca33318ac0703dbf1ab71973f5560492" }, ] [package.metadata] requires-dist = [ { name = "blosc", marker = "(platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and extra == 'examples') or (sys_platform != 'win32' and extra == 'examples')", specifier = ">=1.11.1" }, - { name = "coverage", extras = ["toml"], marker = "extra == 'dev'" }, + { name = "coverage", marker = "extra == 'dev'" }, + { name = "cuda-tile", marker = "sys_platform != 'darwin' and extra == 'cutile'", specifier = ">=1.8.1" }, + { name = "cuda-tile-preview", marker = "sys_platform != 'darwin' and extra == 'cutile'", specifier = ">=1.8.1" }, { name = "matplotlib", marker = "extra == 'examples'", specifier = ">=3.7.5" }, { name = "ml-dtypes", marker = "extra == 'dev'", specifier = ">=0.5.4" }, { name = "myst-parser", marker = "extra == 'docs'" }, { name = "nlopt", marker = "(python_full_version < '3.15' and platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and extra == 'examples') or (python_full_version < '3.15' and sys_platform != 'win32' and extra == 'examples')" }, { name = "numpy" }, + { name = "nvidia-cuda-crt", marker = "sys_platform != 'darwin' and extra == 'cutile'", specifier = ">=13.5,<13.6" }, + { name = "nvidia-cuda-nvcc", marker = "sys_platform != 'darwin' and extra == 'cutile'", specifier = ">=13.5,<13.6" }, + { name = "nvidia-cuda-tileiras", marker = "sys_platform != 'darwin' and extra == 'cutile'", specifier = ">=13.5,<13.6" }, + { name = "nvidia-nvjitlink", marker = "sys_platform != 'darwin' and extra == 'cutile'", specifier = ">=13.5,<14" }, + { name = "nvidia-nvvm", marker = "sys_platform != 'darwin' and extra == 'cutile'", specifier = ">=13.5,<13.6" }, { name = "nvidia-sphinx-theme", marker = "extra == 'docs'" }, { name = "nvtx", marker = "extra == 'dev'", specifier = ">=0.2.16" }, { name = "pillow", marker = "extra == 'examples'", specifier = ">=10.4.0" }, { name = "pre-commit", marker = "extra == 'docs'" }, { name = "psutil", marker = "extra == 'examples'", specifier = ">=7.1.0" }, { name = "pyglet", marker = "extra == 'examples'", specifier = ">=2.1.9" }, + { name = "sphinx", marker = "extra == 'docs'", specifier = ">=9.0" }, { name = "sphinx-copybutton", marker = "extra == 'docs'" }, { name = "torch", marker = "extra == 'torch-cu12'", specifier = ">=2.7.0" }, { name = "torch", marker = "extra == 'torch-cu13'", specifier = ">=2.9.0" }, + { name = "usd-core", marker = "platform_machine == 'aarch64' and sys_platform == 'linux' and extra == 'benchmark'", specifier = ">=26.11" }, + { name = "usd-core", marker = "platform_machine == 'aarch64' and sys_platform == 'linux' and extra == 'examples'", specifier = ">=26.11" }, { name = "usd-core", marker = "(platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and sys_platform == 'win32' and extra == 'benchmark') or (platform_machine != 'aarch64' and sys_platform == 'linux' and extra == 'benchmark') or (sys_platform != 'linux' and sys_platform != 'win32' and extra == 'benchmark')", specifier = ">=25.5" }, { name = "usd-core", marker = "(platform_machine != 'ARM64' and platform_machine != 'aarch64' and platform_machine != 'arm64' and sys_platform == 'win32' and extra == 'examples') or (platform_machine != 'aarch64' and sys_platform == 'linux' and extra == 'examples') or (sys_platform != 'linux' and sys_platform != 'win32' and extra == 'examples')", specifier = ">=25.5" }, - { name = "usd-exchange", marker = "python_full_version >= '3.10' and python_full_version < '3.13' and platform_machine == 'aarch64' and sys_platform == 'linux' and extra == 'benchmark'", specifier = ">=2.2" }, - { name = "usd-exchange", marker = "python_full_version >= '3.10' and python_full_version < '3.13' and platform_machine == 'aarch64' and sys_platform == 'linux' and extra == 'examples'", specifier = ">=2.2" }, { name = "warp-lang", extras = ["docs"], marker = "extra == 'dev'" }, { name = "warp-lang", extras = ["examples"], marker = "extra == 'dev'" }, { name = "warp-lang", extras = ["examples"], marker = "extra == 'torch-cu12'" }, { name = "warp-lang", extras = ["examples"], marker = "extra == 'torch-cu13'" }, ] -provides-extras = ["docs", "benchmark", "examples", "torch-cu12", "torch-cu13", "dev"] +provides-extras = ["docs", "benchmark", "examples", "torch-cu12", "torch-cu13", "cutile", "dev"] [[package]] name = "warp-nn" version = "0.4.1" source = { registry = "https://pypi.nvidia.com/" } dependencies = [ - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, ] wheels = [ { url = "https://pypi.nvidia.com/warp-nn/warp_nn-0.4.1-py3-none-any.whl", hash = "sha256:5a598043603f9a7c30ee5f02d832ac3c2065b9621d5c57f3a2dd8b64bb3be387" }, @@ -6488,8 +6512,8 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "numpy" }, { name = "pyoptix" }, - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "sys_platform != 'win32'" }, - { name = "warp-lang", version = "1.19.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.19.0/warp_lang-1.19.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "sys_platform != 'win32'" }, + { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-win_amd64.whl" }, marker = "sys_platform == 'win32'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/db/90/f61ceaf0d85592296f611bf58fc469e7118a5b28be4bc5fcb4345427fe98/warp_optix-0.3.0.tar.gz", hash = "sha256:9695d5c81a88eb4d6297cb2af654658ce10cac504c11d5b4316b6059e836a348", size = 1028895, upload-time = "2026-11-11T09:13:50.484Z" } wheels = [ From 995ead29825b430cc7ab1918f7dff743f7b7351a Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Wed, 2 Dec 2026 12:00:52 -0800 Subject: [PATCH 09/12] Pin Newton to the merged MuJoCo 4.1 update --- pyproject.toml | 7 +++---- .../changelog.d/newton-mjwarp-version-bump.changed.rst | 2 ++ .../isaaclab_newton/physics/kamino_solver_cfg.py | 3 --- .../isaaclab_newton/test/physics/test_newton_solvers.py | 4 +++- .../changelog.d/newton-mjwarp-version-bump.changed.rst | 1 + .../isaaclab_tasks/contrib/dr_legs/hold_pose_env_cfg.py | 1 - tools/wheel_builder/uv-overrides.txt | 4 ++-- uv.lock | 8 ++++---- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b1b27a874f26..30a478d28fbd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -89,8 +89,7 @@ dependencies = [ "rsl-rl-lib-extras==6.0.0.2", "gitpython>=3.1.60", # used by RL training and experiment logging # ----- newton (default physics engine) ----- - # MuJoCo 4.1 support from newton-physics/newton#5750; replace once merged upstream. - "newton[sim] @ git+https://github.com/newton-physics/newton.git@b5767ad39b52c1452b006c9fbed923dd5223fb0a", + "newton[sim] @ git+https://github.com/newton-physics/newton.git@14e63213378119beeed1b0502f8580b5bad4042f", # Import and mesh-processing packages used by Newton, including the ones that honoring # USD-authored ``physics:approximation`` requires. Keep these explicit instead of selecting # newton[importers], whose standalone USD dependency would overlap with usd-exchange. @@ -447,8 +446,8 @@ override-dependencies = [ # Isaac Sim 6.2 pins MuJoCo and MuJoCo Warp 3.12; align them with Newton 4.1. "mujoco~=4.1.0", "mujoco-warp~=4.1.0", - "newton[sim] @ git+https://github.com/newton-physics/newton.git@b5767ad39b52c1452b006c9fbed923dd5223fb0a ; extra != 'optix'", - "newton[sim,optix] @ git+https://github.com/newton-physics/newton.git@b5767ad39b52c1452b006c9fbed923dd5223fb0a ; extra == 'optix'", + "newton[sim] @ git+https://github.com/newton-physics/newton.git@14e63213378119beeed1b0502f8580b5bad4042f ; extra != 'optix'", + "newton[sim,optix] @ git+https://github.com/newton-physics/newton.git@14e63213378119beeed1b0502f8580b5bad4042f ; extra == 'optix'", # Force the Newton-matched schemas over isaacsim's ==0.2.0 pin. "newton-usd-schemas>=0.8.0", # isaacsim-asset-isolated and isaacsim-robot-schema 6.2 pin usd-exchange ==2.3.0. diff --git a/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst b/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst index 27ef7ef9cdc6..050646d42ca1 100644 --- a/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst +++ b/source/isaaclab_newton/changelog.d/newton-mjwarp-version-bump.changed.rst @@ -10,3 +10,5 @@ MuJoCo CPU simulation now requires a single-world model instead of simulating only template world 0. * **Breaking:** Removed ``MujocoCollisionCfg.solmix`` because MuJoCo 4.1 removed per-collider mixing weights. Equal-priority colliders use equal weights; use ``priority`` to prefer one collider's contact parameters. +* **Breaking:** Removed ``KaminoPADMMCfg.compl_tolerance``. Newton's P-ADMM solver now converges + using only primal and dual residuals; remove the obsolete setting from task configurations. diff --git a/source/isaaclab_newton/isaaclab_newton/physics/kamino_solver_cfg.py b/source/isaaclab_newton/isaaclab_newton/physics/kamino_solver_cfg.py index 5ed3566caece..bb4f83f8d6bd 100644 --- a/source/isaaclab_newton/isaaclab_newton/physics/kamino_solver_cfg.py +++ b/source/isaaclab_newton/isaaclab_newton/physics/kamino_solver_cfg.py @@ -43,9 +43,6 @@ class KaminoPADMMCfg: dual_tolerance: float = 1e-4 """Dual residual convergence tolerance.""" - compl_tolerance: float = 1e-4 - """Complementarity residual convergence tolerance.""" - restart_tolerance: float = 0.999 """Combined primal-dual residual tolerance for acceleration restarts.""" diff --git a/source/isaaclab_newton/test/physics/test_newton_solvers.py b/source/isaaclab_newton/test/physics/test_newton_solvers.py index 47070471a650..58115bec1fc0 100644 --- a/source/isaaclab_newton/test/physics/test_newton_solvers.py +++ b/source/isaaclab_newton/test/physics/test_newton_solvers.py @@ -248,7 +248,6 @@ def test_mujoco_cpu_reports_an_explicit_mode_instead_of_applying_it(caplog): ("max_iterations", 13), ("primal_tolerance", 1.0e-5), ("dual_tolerance", 1.0e-5), - ("compl_tolerance", 1.0e-5), ("restart_tolerance", 0.5), ("rho_0", 0.5), ("rho_min", 1.0e-4), @@ -294,6 +293,9 @@ def _assert_forwarded(config, field_values: list[tuple[str, object]]) -> None: def test_kamino_padmm_cfg_forwards_its_fields_and_not_isaac_lab_metadata(): """Every tunable P-ADMM and dynamics field reaches Newton's config; Isaac Lab-only fields do not.""" + with pytest.raises(TypeError, match="compl_tolerance"): + KaminoPADMMCfg(compl_tolerance=1.0e-5) + solver_cfg = KaminoPADMMSolverCfg( sparse_jacobian=True, sparse_dynamics=True, diff --git a/source/isaaclab_tasks/changelog.d/newton-mjwarp-version-bump.changed.rst b/source/isaaclab_tasks/changelog.d/newton-mjwarp-version-bump.changed.rst index d66d70d89914..e02211baf16a 100644 --- a/source/isaaclab_tasks/changelog.d/newton-mjwarp-version-bump.changed.rst +++ b/source/isaaclab_tasks/changelog.d/newton-mjwarp-version-bump.changed.rst @@ -1 +1,2 @@ * Updated Newton tasks to synchronize state every solver step and removed obsolete parallel line-search settings. +* Removed the obsolete Kamino complementarity tolerance from the DR Legs solver preset. diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/dr_legs/hold_pose_env_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/dr_legs/hold_pose_env_cfg.py index dbe6e56bc5f9..ba17c44de800 100644 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/dr_legs/hold_pose_env_cfg.py +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/dr_legs/hold_pose_env_cfg.py @@ -60,7 +60,6 @@ def _kamino_newton_cfg() -> NewtonCfg: dynamics_solver_cfg=KaminoPADMMCfg( primal_tolerance=1.0e-5, dual_tolerance=1.0e-5, - compl_tolerance=1.0e-5, rho_0=0.02, ), ), diff --git a/tools/wheel_builder/uv-overrides.txt b/tools/wheel_builder/uv-overrides.txt index ad2dd6aaf451..abb5f5991cb5 100644 --- a/tools/wheel_builder/uv-overrides.txt +++ b/tools/wheel_builder/uv-overrides.txt @@ -5,8 +5,8 @@ warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1 warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-win_amd64.whl ; sys_platform == 'win32' mujoco~=4.1.0 mujoco-warp~=4.1.0 -newton[sim] @ git+https://github.com/newton-physics/newton.git@b5767ad39b52c1452b006c9fbed923dd5223fb0a ; extra != 'optix' -newton[sim,optix] @ git+https://github.com/newton-physics/newton.git@b5767ad39b52c1452b006c9fbed923dd5223fb0a ; extra == 'optix' +newton[sim] @ git+https://github.com/newton-physics/newton.git@14e63213378119beeed1b0502f8580b5bad4042f ; extra != 'optix' +newton[sim,optix] @ git+https://github.com/newton-physics/newton.git@14e63213378119beeed1b0502f8580b5bad4042f ; extra == 'optix' newton-usd-schemas>=0.8.0 usd-exchange==3.0.1 usd-optimize~=1.3.1 diff --git a/uv.lock b/uv.lock index f23eb2fa0f8a..862a3927a1bb 100644 --- a/uv.lock +++ b/uv.lock @@ -21,8 +21,8 @@ overrides = [ { name = "mujoco", specifier = "~=4.1.0" }, { name = "mujoco-usd-converter", specifier = "==0.7.0" }, { name = "mujoco-warp", specifier = "~=4.1.0" }, - { name = "newton", extras = ["sim"], marker = "extra != 'optix'", git = "https://github.com/newton-physics/newton.git?rev=b5767ad39b52c1452b006c9fbed923dd5223fb0a" }, - { name = "newton", extras = ["sim", "optix"], marker = "extra == 'optix'", git = "https://github.com/newton-physics/newton.git?rev=b5767ad39b52c1452b006c9fbed923dd5223fb0a" }, + { name = "newton", extras = ["sim"], marker = "extra != 'optix'", git = "https://github.com/newton-physics/newton.git?rev=14e63213378119beeed1b0502f8580b5bad4042f" }, + { name = "newton", extras = ["sim", "optix"], marker = "extra == 'optix'", git = "https://github.com/newton-physics/newton.git?rev=14e63213378119beeed1b0502f8580b5bad4042f" }, { name = "newton-usd-schemas", specifier = ">=0.8.0" }, { name = "numpy", specifier = ">=2" }, { name = "packaging", specifier = ">=20,<27" }, @@ -2141,7 +2141,7 @@ requires-dist = [ { name = "moviepy", marker = "extra == 'video'", specifier = ">=1.0.3,<2.0.0.dev0" }, { name = "myst-parser", marker = "extra == 'dev'" }, { name = "newton", extras = ["optix"], marker = "extra == 'optix'" }, - { name = "newton", extras = ["sim"], git = "https://github.com/newton-physics/newton.git?rev=b5767ad39b52c1452b006c9fbed923dd5223fb0a" }, + { name = "newton", extras = ["sim"], git = "https://github.com/newton-physics/newton.git?rev=14e63213378119beeed1b0502f8580b5bad4042f" }, { name = "newton-neural", marker = "extra == 'newton-neural'", git = "https://github.com/newton-physics/newton-neural.git?rev=06da4d2a604f3dbb48127a9010c41511cdd37a32" }, { name = "newton-usd-schemas", specifier = ">=0.8.0" }, { name = "numba", specifier = ">=0.63.1" }, @@ -3611,7 +3611,7 @@ wheels = [ [[package]] name = "newton" version = "1.9.0.dev0" -source = { git = "https://github.com/newton-physics/newton.git?rev=b5767ad39b52c1452b006c9fbed923dd5223fb0a#b5767ad39b52c1452b006c9fbed923dd5223fb0a" } +source = { git = "https://github.com/newton-physics/newton.git?rev=14e63213378119beeed1b0502f8580b5bad4042f#14e63213378119beeed1b0502f8580b5bad4042f" } dependencies = [ { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, marker = "platform_machine == 'x86_64' and sys_platform != 'win32'" }, { name = "warp-lang", version = "1.20.0+cu12", source = { url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, marker = "platform_machine != 'x86_64' and sys_platform != 'win32'" }, From ba0bf5d6e9f6c206182b2adabb516d3ffe0f0caa Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Wed, 2 Dec 2026 12:07:14 -0800 Subject: [PATCH 10/12] Remove redundant Warp dependency overrides --- pyproject.toml | 3 --- source/isaaclab/test/cli/test_uv_run_pyproject.py | 2 +- tools/wheel_builder/uv-overrides.txt | 3 --- uv.lock | 3 --- 4 files changed, 1 insertion(+), 10 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 30a478d28fbd..b77dc9a5e5a6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -440,9 +440,6 @@ override-dependencies = [ # Capture CloudXR requires >=17.3; override Isaac Sim 6.2's <15 and Viser 1.0's <17 caps. "websockets>=17.3", "numpy>=2", - "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl ; sys_platform == 'linux' and platform_machine == 'x86_64'", - "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl ; sys_platform == 'linux' and platform_machine == 'aarch64'", - "warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-win_amd64.whl ; sys_platform == 'win32'", # Isaac Sim 6.2 pins MuJoCo and MuJoCo Warp 3.12; align them with Newton 4.1. "mujoco~=4.1.0", "mujoco-warp~=4.1.0", diff --git a/source/isaaclab/test/cli/test_uv_run_pyproject.py b/source/isaaclab/test/cli/test_uv_run_pyproject.py index 25a488d6581a..2b7a364241ee 100644 --- a/source/isaaclab/test/cli/test_uv_run_pyproject.py +++ b/source/isaaclab/test/cli/test_uv_run_pyproject.py @@ -207,7 +207,7 @@ def spec(package: str) -> str: # The official CUDA 12 wheels keep conditional graph compilation compatible with CI drivers. warp_pins = {requirement for requirement in dependencies if requirement.startswith("warp-lang @ ")} - assert warp_pins == {requirement for requirement in overrides if requirement.startswith("warp-lang @ ")} + assert not any(requirement.startswith("warp-lang") for requirement in overrides) warp_packages = [package for package in lock["package"] if package["name"] == "warp-lang"] assert {package["version"] for package in warp_packages} == {versions["warp"]} assert {package["source"]["url"] for package in warp_packages} == { diff --git a/tools/wheel_builder/uv-overrides.txt b/tools/wheel_builder/uv-overrides.txt index abb5f5991cb5..c2a0a2542503 100644 --- a/tools/wheel_builder/uv-overrides.txt +++ b/tools/wheel_builder/uv-overrides.txt @@ -1,8 +1,5 @@ websockets>=17.3 numpy>=2 -warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl ; sys_platform == 'linux' and platform_machine == 'x86_64' -warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl ; sys_platform == 'linux' and platform_machine == 'aarch64' -warp-lang @ https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-win_amd64.whl ; sys_platform == 'win32' mujoco~=4.1.0 mujoco-warp~=4.1.0 newton[sim] @ git+https://github.com/newton-physics/newton.git@14e63213378119beeed1b0502f8580b5bad4042f ; extra != 'optix' diff --git a/uv.lock b/uv.lock index 862a3927a1bb..2a0e91055111 100644 --- a/uv.lock +++ b/uv.lock @@ -33,9 +33,6 @@ overrides = [ { name = "urllib3", specifier = ">=2.8.0" }, { name = "usd-exchange", specifier = "==3.0.1" }, { name = "usd-optimize", specifier = "~=1.3.1" }, - { name = "warp-lang", marker = "platform_machine == 'aarch64' and sys_platform == 'linux'", url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_34_aarch64.whl" }, - { name = "warp-lang", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'", url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-manylinux_2_28_x86_64.whl" }, - { name = "warp-lang", marker = "sys_platform == 'win32'", url = "https://github.com/NVIDIA/warp/releases/download/v1.20.0/warp_lang-1.20.0%2Bcu12-py3-none-win_amd64.whl" }, { name = "websockets", specifier = ">=17.3" }, ] From b4cca152a5a90d11d55d3c41f6ed9e68a5d85643 Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Wed, 2 Dec 2026 13:17:12 -0800 Subject: [PATCH 11/12] Refresh Newton Warp references for shared renderer lighting --- .../renderers/cartpole/newton-newton_warp-rgb.png | 4 ++-- .../renderers/franka_cable/newton-newton_warp-rgb.png | 4 ++-- .../renderers/kuka_heterogeneous/newton-newton_warp-rgb.png | 4 ++-- .../renderers/kuka_materials/newton-newton_warp-rgb.png | 4 ++-- .../renderers/rendering_scene/newton-newton_warp-rgb.png | 4 ++-- .../renderers/shadow_hand/newton-newton_warp-rgb.png | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/source/_isaaclab_testing/test/rendering/golden_images/renderers/cartpole/newton-newton_warp-rgb.png b/source/_isaaclab_testing/test/rendering/golden_images/renderers/cartpole/newton-newton_warp-rgb.png index 8378beb747d2..4e3299c31453 100644 --- a/source/_isaaclab_testing/test/rendering/golden_images/renderers/cartpole/newton-newton_warp-rgb.png +++ b/source/_isaaclab_testing/test/rendering/golden_images/renderers/cartpole/newton-newton_warp-rgb.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2deae617012daee2ec92495e19ffb33bde0bd50d71ce528fa424cf6fdb43c0a1 -size 752 +oid sha256:4d6265419e1837db8cb5a5d993ba290bcadf81a66cce3c8e17217b01c3c0d96a +size 739 diff --git a/source/_isaaclab_testing/test/rendering/golden_images/renderers/franka_cable/newton-newton_warp-rgb.png b/source/_isaaclab_testing/test/rendering/golden_images/renderers/franka_cable/newton-newton_warp-rgb.png index 6ca1d851ab75..48d39f3f7452 100644 --- a/source/_isaaclab_testing/test/rendering/golden_images/renderers/franka_cable/newton-newton_warp-rgb.png +++ b/source/_isaaclab_testing/test/rendering/golden_images/renderers/franka_cable/newton-newton_warp-rgb.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:86de754e0bb1433bbed3bfa7572f39deae048dd079cebb803ea559f74eb1e3c3 -size 9386 +oid sha256:99683916cb79b093e00e893c172c45700d4bcc960c00242aa73bfaba7ddd2982 +size 9076 diff --git a/source/_isaaclab_testing/test/rendering/golden_images/renderers/kuka_heterogeneous/newton-newton_warp-rgb.png b/source/_isaaclab_testing/test/rendering/golden_images/renderers/kuka_heterogeneous/newton-newton_warp-rgb.png index 564baa7cee2a..2af56b2decc4 100644 --- a/source/_isaaclab_testing/test/rendering/golden_images/renderers/kuka_heterogeneous/newton-newton_warp-rgb.png +++ b/source/_isaaclab_testing/test/rendering/golden_images/renderers/kuka_heterogeneous/newton-newton_warp-rgb.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5739c654afe01ff962867359c0abc5a62187f6339694ec0ef5fb1517fbbd9b1e -size 2226 +oid sha256:e425049a8723536207fdd61c947d432ac3c8e6053b2b49aceacc64d8deefddec +size 2174 diff --git a/source/_isaaclab_testing/test/rendering/golden_images/renderers/kuka_materials/newton-newton_warp-rgb.png b/source/_isaaclab_testing/test/rendering/golden_images/renderers/kuka_materials/newton-newton_warp-rgb.png index 921da0fee8bb..e79b8d98de01 100644 --- a/source/_isaaclab_testing/test/rendering/golden_images/renderers/kuka_materials/newton-newton_warp-rgb.png +++ b/source/_isaaclab_testing/test/rendering/golden_images/renderers/kuka_materials/newton-newton_warp-rgb.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d7da20687d91d24a57be6bd13f59b6d84c2b44f90b05259a57a6d599c49351fb -size 12695 +oid sha256:f910e59e5bcaab76c359883e545a9c46af4e251ad4a70bff32117ea96d1e4e8a +size 12743 diff --git a/source/_isaaclab_testing/test/rendering/golden_images/renderers/rendering_scene/newton-newton_warp-rgb.png b/source/_isaaclab_testing/test/rendering/golden_images/renderers/rendering_scene/newton-newton_warp-rgb.png index 0167cb92f28d..65511d48471b 100644 --- a/source/_isaaclab_testing/test/rendering/golden_images/renderers/rendering_scene/newton-newton_warp-rgb.png +++ b/source/_isaaclab_testing/test/rendering/golden_images/renderers/rendering_scene/newton-newton_warp-rgb.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:83bb80b04312787a4850103254560a36fd1d0094e5a3887fcb409e0e1736deb7 -size 6479 +oid sha256:d6e47235a5839a3ee55fef951e41c68296b502bde6f915101e6bd691655bbdf0 +size 6499 diff --git a/source/_isaaclab_testing/test/rendering/golden_images/renderers/shadow_hand/newton-newton_warp-rgb.png b/source/_isaaclab_testing/test/rendering/golden_images/renderers/shadow_hand/newton-newton_warp-rgb.png index 2e8dd83cb751..8a291949666e 100644 --- a/source/_isaaclab_testing/test/rendering/golden_images/renderers/shadow_hand/newton-newton_warp-rgb.png +++ b/source/_isaaclab_testing/test/rendering/golden_images/renderers/shadow_hand/newton-newton_warp-rgb.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2027bb33dcf4a35c963164a11c7d1885aee13fd9b6db65ac29b917823eaf21b8 -size 7436 +oid sha256:3b442b01c3092eb384fa756545458880ed3b8bd9ad2c232f549e59cdeb4fe96e +size 7030 From 2cb5bd37238933f5dc17eb995b9fc1f984b949d6 Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Wed, 2 Dec 2026 14:45:18 -0800 Subject: [PATCH 12/12] Pin LEAPP compiler settings fix in development and CI --- .github/workflows/build.yaml | 2 +- pyproject.toml | 2 +- uv.lock | 9 +++------ 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3028e8443cbe..af9d573ff736 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -577,7 +577,7 @@ jobs: isaacsim-base-image: ${{ needs.config.outputs.isaacsim_image_name }} isaacsim-version: ${{ needs.config.outputs.isaacsim_image_tag }} filter-pattern: "isaaclab_rl" - extra-pip-packages: "leapp==0.8.1 torchrl>=0.13" + extra-pip-packages: "git+https://github.com/nvidia-isaac/leapp.git@e43b3645edf66f34217ecafd26a11e56f7ac7870 torchrl>=0.13" warp-cache: restore test-jobs: "4" container-name: isaac-lab-rl-test diff --git a/pyproject.toml b/pyproject.toml index 601438ae05d3..74685757f4ec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -231,7 +231,7 @@ rlinf = [ "pandas", ] leapp = [ - "leapp==0.8.1", + "leapp @ git+https://github.com/nvidia-isaac/leapp.git@e43b3645edf66f34217ecafd26a11e56f7ac7870", ] # Foveated camera sensors. fovi = [ diff --git a/uv.lock b/uv.lock index 6bd9c5867d60..ee7496c2e4e0 100644 --- a/uv.lock +++ b/uv.lock @@ -2128,7 +2128,7 @@ requires-dist = [ { name = "jinja2" }, { name = "junitparser", marker = "extra == 'test'" }, { name = "lazy-loader", specifier = ">=0.4" }, - { name = "leapp", marker = "extra == 'leapp'", specifier = "==0.8.1" }, + { name = "leapp", marker = "extra == 'leapp'", git = "https://github.com/nvidia-isaac/leapp.git?rev=e43b3645edf66f34217ecafd26a11e56f7ac7870" }, { name = "matplotlib", specifier = ">=3.10.3" }, { name = "meshio", specifier = ">=5.3.5" }, { name = "moviepy", marker = "extra == 'video'", specifier = ">=1.0.3,<2.0.0.dev0" }, @@ -3160,8 +3160,8 @@ wheels = [ [[package]] name = "leapp" -version = "0.8.1" -source = { registry = "https://pypi.nvidia.com/" } +version = "0.8.2" +source = { git = "https://github.com/nvidia-isaac/leapp.git?rev=e43b3645edf66f34217ecafd26a11e56f7ac7870#e43b3645edf66f34217ecafd26a11e56f7ac7870" } dependencies = [ { name = "fast-sugiyama" }, { name = "onnx" }, @@ -3172,9 +3172,6 @@ dependencies = [ { name = "safetensors" }, { name = "torch" }, ] -wheels = [ - { url = "https://pypi.nvidia.com/leapp/leapp-0.8.1-py3-none-any.whl", hash = "sha256:3b6456c890d41e50712c4fb739bbe4faf0c53305dc2bc75d477b67be9dde9a54" }, -] [[package]] name = "libcoal"