From e5109863b84d448583af3fff0fc99ccc816d4bbe Mon Sep 17 00:00:00 2001 From: jichuanh Date: Wed, 12 Aug 2026 22:05:26 -0700 Subject: [PATCH 1/2] Read parity fixture poses through the warp accessor The pose-command fixture reached numpy via .torch.cpu().numpy(), routing warp buffers through a torch view and a host copy to get data warp can hand back directly. .warp.numpy() is the accessor for that. Note that ProxyArray.numpy() is not equivalent: unknown attributes forward to the torch view, so it inherits torch's CPU-only restriction and raises on the cuda tensors these fixtures use. The UniformPoseCommand imports move to the top of the file; they were local without a cycle to justify it. --- .../test/envs/mdp/parity_helpers.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/source/isaaclab_experimental/test/envs/mdp/parity_helpers.py b/source/isaaclab_experimental/test/envs/mdp/parity_helpers.py index 9da36f29bf5a..3c60f0d38bf5 100644 --- a/source/isaaclab_experimental/test/envs/mdp/parity_helpers.py +++ b/source/isaaclab_experimental/test/envs/mdp/parity_helpers.py @@ -19,6 +19,8 @@ import torch import warp as wp +from isaaclab.envs.mdp.commands.commands_cfg import UniformPoseCommandCfg +from isaaclab.envs.mdp.commands.pose_command import UniformPoseCommand from isaaclab.utils.warp import ProxyArray # --------------------------------------------------------------------------- @@ -594,15 +596,12 @@ def make_pose_command_term( Returns: The command term, whose ``pose_command_b`` is the (num_envs, 7) command buffer. """ - from isaaclab.envs.mdp.commands.commands_cfg import UniformPoseCommandCfg - from isaaclab.envs.mdp.commands.pose_command import UniformPoseCommand - rng = np.random.RandomState(seed) data = articulation.data - root_pos = data.root_pos_w.torch.cpu().numpy() - root_quat = data.root_quat_w.torch.cpu().numpy() - body_pos = data.body_pos_w.torch.cpu().numpy()[:, body_idx] - body_quat = data.body_quat_w.torch.cpu().numpy()[:, body_idx] + root_pos = data.root_pos_w.warp.numpy() + root_quat = data.root_quat_w.warp.numpy() + body_pos = data.body_pos_w.warp.numpy()[:, body_idx] + body_quat = data.body_quat_w.warp.numpy()[:, body_idx] # position: place the target a known distance off the body, then express it in the root frame offset_dir = rng.randn(num_envs, 3).astype(np.float32) From 7501a9a3254eb24da09ad2f31daa20a9b3b257b2 Mon Sep 17 00:00:00 2001 From: jichuanh Date: Thu, 13 Aug 2026 00:25:51 -0700 Subject: [PATCH 2/2] Say why the warp-supported set is pinned as well as swept Reviewers have twice read the checked-in set as redundant with the sweep that produces it. The sweep reports what adapts today; the set records what must keep adapting, so a task losing support fails instead of quietly shrinking the computed answer. The comment stated what the set is and how to update it, but not that, and the rationale sat forty lines away in the module docstring. --- .../changelog.d/jichuanh-warp-mdp-review-followup.skip | 0 .../test/envs/test_frontend_cfg_conversion.py | 4 ++++ 2 files changed, 4 insertions(+) create mode 100644 source/isaaclab_experimental/changelog.d/jichuanh-warp-mdp-review-followup.skip diff --git a/source/isaaclab_experimental/changelog.d/jichuanh-warp-mdp-review-followup.skip b/source/isaaclab_experimental/changelog.d/jichuanh-warp-mdp-review-followup.skip new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/source/isaaclab_experimental/test/envs/test_frontend_cfg_conversion.py b/source/isaaclab_experimental/test/envs/test_frontend_cfg_conversion.py index c6d345c54934..4cfbcd8bf907 100644 --- a/source/isaaclab_experimental/test/envs/test_frontend_cfg_conversion.py +++ b/source/isaaclab_experimental/test/envs/test_frontend_cfg_conversion.py @@ -43,6 +43,10 @@ # Stable task ids that adapt cleanly under ``--frontend warp``, as produced by # :func:`_sweep_warp_support`. Do not curate this by hand: when the test fails it prints the # exact set to paste back. +# +# The sweep reports what adapts today; this set records what must keep adapting. Without it a +# task losing warp support only shrinks the computed answer, with nothing to compare against — +# which is how Reach lost support unnoticed. _WARP_SUPPORTED_TASKS = frozenset( { "Isaac-Ant",