Repository navigation
Conversation
A mask-only Articulation.reset called ActuatorCollection.reset(None), which cleared delay buffers, network history, and Newton-native actuator state for every environment. Newton rigid objects and collections dropped the mask before resetting their wrench composers, clearing every environment's persistent wrench. ActuatorCollection.reset now takes env_mask. Isaac Lab actuator models still reset by index, so the collection converts the mask to indices once for all groups, and skips the conversion when no group carries reset state. Native actuator state resets from the mask through a new ActuatorControl.reset_native_actuators_mask hook; Newton and OVPhysX pass the mask to the Newton actuator adapter, and the base default converts to indices so backends that only implement the index hook stay correct.
InteractiveSceneWarp.reset passed env_ids=None to deformable objects, surface grippers, and sensors on a masked reset, so every environment's sensor state was cleared on each partial reset, and it never reset cable objects. Forward the mask to every entity family in the stable scene's order. Surface grippers use their reset_mask method. Cable objects take env_mask like the other scene assets, so the scene does not convert the mask for a reset that holds no state.
RigidObjectCollection.write_body_*_to_sim_mask converted masks to indices with torch.nonzero before delegating to the index writers, so the mask writers synchronized the host and could not be captured in a CUDA graph, although their docstrings name them as the graph-capable path. They now launch masked kernels over the full environment-body grid, and body_ids selections resolve to a mask through a preallocated scratch buffer. BaseRayCaster.reset compacted a mask with nonzero before resampling drift. A masked reset now resamples every environment and keeps the new values where the mask is set; index and slice selections are unchanged.
isaac-sim#8079 added ObservationGroupCfg.history_order and taught the stable observation manager to skip it as a group setting. The Warp manager's skip list was not updated, so it parsed the field as a term and raised a TypeError for every observation group, and no manager-based Warp environment could be constructed. Skip history_order like the other group settings. The Warp manager raises NotImplementedError for any term with history, and history_order only takes effect with history, so a time-ordered group cannot be silently reordered wrong.
The fixed-tendon set_*_mask methods and write_fixed_tendon_properties_to_sim_mask converted masks to indices with torch.nonzero and delegated to the index writers, so they synchronized the host and could not be captured in a CUDA graph. Write the masked cells in-kernel instead: scalar and full data go into the staging buffers through masked kernels, and the property writer copies the masked cells of each staging buffer into its simulation binding. The mask compaction helpers have no remaining callers and are removed.
A masked Articulation.reset on the Newton-native actuator path allocated a per-DOF mask for every actuator on each call, and a masked ray-caster reset sampled drift with torch ops and uploaded its ranges, so neither could run inside a CUDA graph captured on Warp's stream. NewtonActuatorAdapter preallocates its per-DOF reset masks. BaseRayCaster resamples masked drift in a Warp kernel from per-environment random states seeded from torch's global generator at initialization, with the ranges passed as launch arguments; index and slice resets keep the torch path.
The Newton fixed-tendon position-target setters raised a host-side dirty flag, and write_data_to_sim scattered the buffered targets into MuJoCo's controls only while it was set. A setter recorded in a CUDA graph raised the flag once, at capture time, so later replays updated the target buffer on the device but never reached the solver. Write the buffered targets on every step whenever the articulation has tendon actuators, and drop the flag from the Newton setters. The write costs about 60 us per call on Shadow Hand; gating it on a device-side flag would need Newton's control-array mapping re-implemented in a kernel.
…buffers ActuatorBase.reset, ActuatorControl.reset_native_actuators and DelayBuffer take an explicit env_mask or batch_mask, replacing reset_native_actuators_mask. DelayedPD validates its delay range at construction because the masked path skips the host-side check.
PhysX articulation, rigid object and rigid object collection resets pass env_mask to their actuators and wrench composers instead of resetting every environment.
Environments initialize WarpRng once at construction and configure_seed reseeds it in place. The ray caster, experimental managers, events, noise models and Warp tasks read WarpRng.state instead of keeping their own copies; rng_state_wp is removed.
…nt mask Articulation resets now forward env_mask to their actuators. The Multirotor thruster collection and the test_reset actuator stubs still took only env_ids and raised TypeError; the collection now resets the masked environments' thrusters.
…-mask-native # Conflicts: # docs/source/concepts/warp_environment_migration.rst # source/isaaclab_newton/isaaclab_newton/assets/articulation/actuator_control.py # source/isaaclab_newton/isaaclab_newton/assets/articulation/articulation.py # source/isaaclab_newton/test/assets/test_articulation.py # source/isaaclab_newton/test/assets/test_newton_actuators_newton.py # source/isaaclab_newton/test/assets/test_rigid_object.py # source/isaaclab_newton/test/sensors/test_newton_raycast_sensor.py
# Conflicts: # source/isaaclab_newton/test/assets/test_articulation.py
# Conflicts: # source/isaaclab/test/assets/contract/articulation_factory.py # source/isaaclab/test/assets/contract/rigid_object_factory.py # source/isaaclab_newton/isaaclab_newton/assets/articulation/articulation.py # source/isaaclab_newton/isaaclab_newton/assets/kernels.py # source/isaaclab_newton/isaaclab_newton/assets/rigid_object_collection/rigid_object_collection.py # source/isaaclab_physx/isaaclab_physx/assets/articulation/articulation.py
This was referenced Nov 10, 2026
hujc7
added a commit
that referenced
this pull request
Nov 13, 2026
…rs (#8821) ## Review Map - A number is one feature and its letters are that feature's PRs, in merge order; an arrow points from a PR to the PRs that build on it. - A stacked PR's page shows the cumulative diff of its dependency chain; the "Exact changes" link opens that PR's Files changed page on its own changes (parent head to PR head). #6646's head merges `main` for one conflict, so its link also shows `main`'s #8928. - #8783 and #6607 are no longer part of the series. | PR | Status | Depends on | Exact changes | |---|---|---|---| | 📌 #8821 Part 1a/8: shared id and mask helpers, mask writers without host sync |  | — | — | | #8824 Part 1b/8: PhysX tendon mask setters through the masks |  | 1a | [link](https://github.com/isaac-sim/IsaacLab/pull/8824/changes/84470f4c0c5dfe1905dd1b5d822f6faf50832d4d..2fbbcc5a98a91f34c129f1ce65b227201ec50f60) | | #6646 Part 2a/8: reset only the masked environments |  | 1a | [link](https://github.com/isaac-sim/IsaacLab/pull/6646/changes/84470f4c0c5dfe1905dd1b5d822f6faf50832d4d..41ed0c0775175ad2f76db6bb9c31202d80e1519b) | | #8997 Part 2b/8: actuator networks reset by mask |  | 2a | [link](https://github.com/isaac-sim/IsaacLab/pull/8997/changes/41ed0c0775175ad2f76db6bb9c31202d80e1519b..cb14223b1d957f7fd8ac232ea50605618ce53de3) | | #8856 Part 3a/8: env origins as a ProxyArray, `SceneEntityCfg` Warp selections |  | 2a | [link](https://github.com/isaac-sim/IsaacLab/pull/8856/changes/41ed0c0775175ad2f76db6bb9c31202d80e1519b..f8944ad680d2bb4b09b13d2adb4b740eafe7b363) | | #8228 Part 3b/8: ray caster camera frames as a ProxyArray, Rough velocity tasks (re-cut not pushed yet) |  | 3a | — | | #8998 Part 4a/8: recording utilities, lazy buffers correct under recording |  | 2b, 3a | [link](https://github.com/isaac-sim/IsaacLab/pull/8998/changes/9d74ad2de08a152312833dbe3ad9260b02f683b0..0e2a77d842051fb3946feb988f2e14d010aac3fb) | | Parts 4b-4h/8: the Warp frontend on the stable managers (not opened) | — | 4a | — | | Part 5/8: OVPhysX on the Warp frontend (not opened) | — | 4h | — | | Part 6/8: Warp noise model with an additive bias (not opened) | — | 4h | — | | #7012 Part 7/8: `--video` on the Warp frontend (re-cut not pushed yet) |  | 4h | — | | Part 8a/8: Direct Warp environment step (not opened) | — | 5, 7 | — | | #6582 Part 8b/8: Shadow Hand Warp twin, Allegro twin fix (re-cut not pushed yet) |  | 8a | — | | #8861 [DO-NOT-MERGE] all parts combined for review |  | ALL | — | ```mermaid --- config: look: neo flowchart: curve: basis --- flowchart TD A1("📌 <b>#8821</b> · 1a<br/>id/mask helpers") B1("<b>#8824</b> · 1b<br/>PhysX tendon masks") A2("<b>#6646</b> · 2a<br/>masked resets") B2("<b>#8997</b> · 2b<br/>actuator net reset") A3("<b>#8856</b> · 3a<br/>env origins, Warp selections") B3("<b>#8228</b> · 3b<br/>Rough velocity") A4("<b>#8998</b> · 4a<br/>recording utilities") P4("4b-4h<br/>Warp frontend on the stable managers") P5("5<br/>OVPhysX") P6("6<br/>noise model") P7("<b>#7012</b> · 7<br/>--video") A8("8a<br/>Direct env step") B8("<b>#6582</b> · 8b<br/>Shadow twin") A1 --> B1 A1 --> A2 A2 --> B2 A2 --> A3 A3 --> B3 B2 --> A4 A3 --> A4 A4 --> P4 P4 --> P5 P4 --> P6 P4 --> P7 P5 --> A8 P7 --> A8 A8 --> B8 style A1 stroke-width:3px ``` ## Summary Id and mask selections in the Newton, OVPhysX and PhysX assets, the camera and the wrench composer resolve through main's `resolve_1d_mask` and a new `resolve_ids`, both in `isaaclab.utils.warp.memory`, instead of hand-written copies (−907 / +410 source lines). Newton mask writers that converted masks to ids now write through the mask: the fixed-tendon setters are 2.7-5.4x faster. # Description **Update (2026-11-12):** a Newton model-property write recorded into a graph capture now refreshes the solver on every replay, not only the first (`NewtonManager.add_model_change` records the refresh inside a capture); merged main `616f517707d`. **Update (2026-11-10):** a mask longer than its destination raises instead of being written past the end (the Newton fixed-tendon writer launches over the mask), and the PhysX and rigid-object selection docstrings say ids come first, as `resolve_ids` does. The `all_ids=slice(None)` form of `resolve_ids` leaves this PR for the part that first uses it. ## 1. Changes 1. **Helpers** (`isaaclab/utils/warp/memory.py`, next to main's `resolve_1d_mask`): new `resolve_ids` (ids or a boolean mask → ids on the device of the caller's all-ids array; callers that need contiguous int32 ids pass the result through main's `resolve_1d_indices`, as main's indexed writers do). `resolve_1d_mask` takes `scratch_mask` as optional again: a mask passed without one is used as given when it is not longer than the destination, so a shorter mask writes only the rows it covers, as main's Newton mask writers do; a longer mask raises with or without a scratch mask. New `write_2d_with_mask` writes a scalar or a 2-D array into a buffer where an env mask and an item mask are both true, launching main's masked copy and fill kernels over the mask lengths on the output's device (torch vector data with strided components goes through scalar views, without a copy); the Newton articulation and collection mask writers use it. 2. **All assets, `Camera` and `WrenchComposer` use them**, so every selection accepts the same inputs: integer sequences, negative-step slices, ids on another device. A `ProxyArray` raises `TypeError`. 3. **Newton writes without a host sync:** the fixed-tendon mask setters write through the masks; joint-coordinate writes reuse a scratch mask. The `RigidObjectCollection` mask writers (main's, since #8870) launch over the mask lengths like the other Newton mask writers, so a mask shorter than the asset dimension writes only the rows it covers. 4. **Fixes:** the deformable `write_nodal_*_to_sim_mask` writers raised whenever `env_mask` was given (OVPhysX, PhysX); the Newton fixed-tendon mask setters accepted data of the wrong shape; a Newton model-property write recorded into a graph capture (such as the fixed-tendon mask writer, now capturable) left the solver on the first replay's values, because `NewtonManager.add_model_change` only queued the refresh on the host. ## 2. Performance (MEASURED) 8gpu L40, Newton contract mocks, 4096 envs, host µs per call including the GPU wait, main `299af193136` against this PR at `b75b5a81585` (same source as the head but for main's #8971), 3 alternated runs per arm. | Write | main | this PR | | |---|---|---|---| | Fixed-tendon stiffness mask, half envs, 2 tendons | 455 | 84 | 5.4x | | Fixed-tendon position limit mask, all | 216 | 80 | 2.7x | | Fixed-tendon position limit mask, half envs, 2 tendons | 393 | 84 | 4.7x | | `write_fixed_tendon_properties_to_sim_mask`, all | 373 | 124 | 3.0x | | `write_fixed_tendon_properties_to_sim_mask`, half envs, 2 tendons | 573 | 127 | 4.5x | | Joint position index write, half envs | 290 | 249 | 1.17x | | Joint state index write, half envs | 321 | 281 | 1.14x | | Joint position mask write; collection pose and velocity mask writes | | | within ±1% | ## Type of change - Bug fix (non-breaking change which fixes an issue) - New feature (non-breaking change which adds functionality) ## Screenshots Not applicable. ## Checklist Docker and GPU tests run on demand. Push the commits you want tested, then comment `run-ci` on the pull request. - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `uv run isaaclab --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump package versions — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
hujc7
added a commit
that referenced
this pull request
Nov 15, 2026
…ks (#8824) ## Review Map - A number is one feature and its letters are that feature's PRs, in merge order; an arrow points from a PR to the PRs that build on it. - A stacked PR's page shows the cumulative diff of its dependency chain; the "Exact changes" link opens that PR's Files changed page on its own changes (parent head to PR head). - #8783 and #6607 are no longer part of the series. | PR | Status | Depends on | Exact changes | |---|---|---|---| | #8821 Part 1a/8: shared id and mask helpers, mask writers without host sync |  | — | — | | 📌 #8824 Part 1b/8: PhysX tendon mask setters through the masks |  | 1a | — | | #8997 Part 2b/8: actuator networks reset by mask |  | 1a | — | | #8856 Part 3a/8: env origins as a ProxyArray, `SceneEntityCfg` Warp selections |  | 2b | [link](https://github.com/isaac-sim/IsaacLab/pull/8856/changes/1a3ef00daac107596034140a6a36633fec2a5f65..401b0191f04f6480c1ed03deffdd966f9f469009) | | #8228 Part 3b/8: ray caster camera frames as a ProxyArray, Rough velocity tasks (re-cut not pushed yet) |  | 3a | — | | #8998 Part 4a/8: recording utilities, lazy buffers correct under recording |  | 3a | [link](https://github.com/isaac-sim/IsaacLab/pull/8998/changes/9d74ad2de08a152312833dbe3ad9260b02f683b0..0e2a77d842051fb3946feb988f2e14d010aac3fb) | | Parts 4b-4h/8: the Warp frontend on the stable managers (not opened) | — | 4a | — | | Part 5/8: OVPhysX on the Warp frontend (not opened) | — | 4h | — | | Part 6/8: Warp noise model with an additive bias (not opened) | — | 4h | — | | #7012 Part 7/8: `--video` on the Warp frontend (re-cut not pushed yet) |  | 4h | — | | Part 8a/8: Direct Warp environment step (not opened) | — | 5, 7 | — | | #6582 Part 8b/8: Shadow Hand Warp twin, Allegro twin fix (re-cut not pushed yet) |  | 8a | — | | #8861 [DO-NOT-MERGE] all parts combined for review |  | ALL | — | ```mermaid --- config: look: neo flowchart: curve: basis --- flowchart TD A1("<b>#8821</b> · 1a<br/>id/mask helpers") B1("📌 <b>#8824</b> · 1b<br/>PhysX tendon masks") B2("<b>#8997</b> · 2b<br/>actuator net reset") A3("<b>#8856</b> · 3a<br/>env origins, Warp selections") B3("<b>#8228</b> · 3b<br/>Rough velocity") A4("<b>#8998</b> · 4a<br/>recording utilities") P4("4b-4h<br/>Warp frontend on the stable managers") P5("5<br/>OVPhysX") P6("6<br/>noise model") P7("<b>#7012</b> · 7<br/>--video") A8("8a<br/>Direct env step") B8("<b>#6582</b> · 8b<br/>Shadow twin") A1 --> B1 A1 --> B2 B2 --> A3 A3 --> B3 A3 --> A4 A4 --> P4 P4 --> P5 P4 --> P6 P4 --> P7 P5 --> A8 P7 --> A8 A8 --> B8 style B1 stroke-width:3px ``` ## Summary The 11 PhysX tendon `set_*_mask` setters no longer turn their masks into ids with a GPU→host wait: they fill the tendon buffers through the masks, 83-91 → 18.5 µs per call (5x) with half the environments selected. # Description The setters only fill Isaac Lab's tendon buffers; the push to PhysX stays index based in `write_*_tendon_properties_to_sim_*`. Each setter now resolves its masks, checks the shape and launches a masked kernel, as the Newton setters do. - MEASURED (desk RTX PRO 6000, PhysX, 4096 envs, half selected): 5x for stiffness, damping, limit stiffness, rest length and offset; 4.5x for position limit and target; unchanged with all environments selected. - No task calls these setters per step, so task FPS does not change. ## Type of change - New feature (non-breaking change which adds functionality) ## Screenshots Not applicable. ## Checklist Docker and GPU tests run on demand. Push the commits you want tested, then comment `run-ci` on the pull request. - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `uv run isaaclab --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump package versions — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Review Map
SceneEntityCfgWarp selections (re-cut not pushed yet)--videoon the Warp frontend--- config: look: neo flowchart: curve: basis --- flowchart TD P1("<b>#8821</b> · Part 1<br/>id/mask helpers") P2("<b>#8824</b> · Part 2<br/>PhysX tendon masks") P3("<b>#6646</b> · Part 3<br/>masked resets") P4("📌 <b>#8783</b> · Part 4<br/>WarpRng") P5("<b>#8856</b> · Part 5<br/>ProxyArray core") P6("<b>#6607</b> · Part 6<br/>per-term capture") P7("Part 7<br/>stable alignment, not opened") P8("<b>#8228</b> · Part 8<br/>commands, Rough") P9("Part 9<br/>into stable, local") P10("<b>#6582</b> · Part 10<br/>Shadow twin") P11("<b>#7012</b> · Part 11<br/>--video, independent") P1 --> P2 P1 --> P3 P3 --> P4 P1 --> P5 P4 --> P6 P5 --> P6 P6 --> P7 P7 --> P8 P8 --> P9 P6 --> P10 style P4 stroke-width:3pxSummary
Warp environments, MDP terms, managers, noise models, the ray caster and the Warp tasks draw from one per-environment RNG state per process instead of each allocating and seeding its own.
configure_seedreseeds that state in place, so CUDA graphs captured before reseeding keep drawing from it.Description
Split out of #6646 unchanged.
isaaclab.utils.seed.WarpRng.state: onewp.uint32per environment, initialized by the environment and reseeded in place byconfigure_seed; unseeded Warp environments seed it fromtorch.initial_seed().state[env]into a local, draw, and store it back, so every launch or replay draws new numbers.RuntimeErrorwhenWarpRng.stateis not initialized (it launched onNonesilently).ManagerBasedEnvWarp.rng_state_wpis removed; readWarpRng.state.WarpRng, Warp MDP parity, ray-caster, Warp observation manager andDelayBuffertests pass (87); Cartpole, Cartpole-Direct, Ant-Direct and Allegro-Direct advance the state in 16/16 environments ([Warp] Part 2a/8: Reset only the masked environments #6646 review round, older tree).Type of change
Release backport
mainScreenshots
Not applicable.
Checklist
Docker and GPU tests run on demand. Push the commits you want tested, then
comment
run-cion the pull request.pre-commitchecks withuv run isaaclab --formatWarpRng.statesource/<pkg>/changelog.d/for every touched package (do not editCHANGELOG.rstor bump package versions — CI handles that)CONTRIBUTORS.mdor my name already exists there