Repository navigation
Merge dexsuite into lift - #6732
Conversation
|
Too many files changed for review. ( Bypass the limit by tagging |
There was a problem hiding this comment.
Isaac Lab Review Bot
The dexsuite-to-lift consolidation is internally coherent across registrations, moved modules, inheritance, runner factories, presets, and rendering tests, but several merge-blocking compatibility and runtime issues remain: public task/module APIs are removed without prior deprecation, ADR restores the invalid object-bound floor, Franka exposes an unsupported OVPhysX gravity path, and zero rotation tolerance produces invalid reward behavior. Required skip changelog fragments are also missing for three touched packages.
- Design and architecture: The unified lift/reorient hierarchy and shared runner factories reduce duplication appropriately. However, the shared OVPhysX preset is exposed to Franka while the required removal of runtime gravity randomization remains implemented only in the KukaAllegro-specific configuration; that backend workaround should be colocated with the shared preset behavior.
- API: The moved entry points and imports are internally consistent, but
Isaac-Lift-Cube-Frankaand the publicisaaclab_tasks.core.dexsuitepath are removed outright. Repository policy requires a prior deprecation, so deprecated forwarding registrations/modules must preserve these existing API surfaces before removal. - Implementation: The static out-of-bound floor is correctly derived from table geometry, but the enabled ADR curriculum overwrites it with the old 0.3 m floor at initial difficulty. The
rot_std=0.0orientation branch also divides by zero and cannot latch success with a strict< 0.0comparison. In addition, test-only changes toisaaclab,isaaclab_rl, andisaaclab_physxrequire package-level.skipchangelog fragments.
Significant concerns. Posted 5 actionable findings inline.
Automated review; human maintainers own approval decisions.
| ## | ||
|
|
||
| gym.register( | ||
| id="IsaacContrib-Lift-Cube-Franka", |
There was a problem hiding this comment.
🟡 Warning · Api — Task ID renamed without deprecation alias
Isaac-Lift-Cube-Franka is no longer registered anywhere; only IsaacContrib-Lift-Cube-Franka exists. Existing commands, scripts, and gym.make() callers fail with an unregistered-env error, and the isaaclab_tasks.core.dexsuite module path is removed the same way. Repository policy requires deprecating public symbols in a prior release, so keep the old ID (and dexsuite forwarding modules) as deprecated aliases that warn.
| # The floor must sit below the object's resting height on the table, otherwise the | ||
| # episode terminates as soon as the object settles. Derived from the table top so it | ||
| # cannot drift: TABLE_SLAB[2] is 0.255 and a resting 0.05 cube centres at 0.28. | ||
| "in_bound_range": {"x": (-1.5, 0.5), "y": (-2.0, 2.0), "z": (round(TABLE_SLAB[2] - 0.1, 6), 2.0)}, |
There was a problem hiding this comment.
🟡 Warning · Implementation — Curriculum restores old out-of-bound floor
The derived floor (~0.155) only holds for the static config. AdrCurriculumCfg.oob_adr still writes terminations.object_out_of_bound.params.in_bound_range.z with initial_value=(0.3, 2.0), and the curriculum is enabled by default at difficulty 0, so the floor reverts to 0.3 on the first reset and a cube resting at ~0.28 terminates again — now also penalized by early_termination. Derive oob_adr's initial value from the same constant.
| physx = default | ||
| # ``physx`` resolves to whichever PhysX runtime the launcher picks; these force one. | ||
| isaacsim_physx = default | ||
| ovphysx = OvPhysxCfg( |
There was a problem hiding this comment.
🟡 Warning · Design Architecture — Shared ovphysx preset omits gravity workaround
PhysicsCfg now offers ovphysx to every lift/reorient robot, but only KukaAllegroMixinCfg strips variable_gravity and gravity_adr for OVPhysX, which its own comment states has no runtime gravity setter. Isaac-Lift-Franka and Isaac-Reorient-Franka now advertise physics=ovphysx while EventCfg.variable_gravity still calls randomize_physics_scene_gravity. Move the omission next to the shared preset instead of one robot config.
| pos_dist = torch.linalg.norm(pos_err, dim=1) | ||
| contact_mask = contacts(env, contact_threshold, thumb_name, finger_names) | ||
|
|
||
| if rot_std is not None: |
There was a problem hiding this comment.
🟡 Warning · Implementation — Zero rotation tolerance divides by zero
The changelog documents rot_std=0.0 as an exact-orientation goal, but this branch computes rot_dist / rot_std. An exactly aligned pose yields 0/0 and a NaN reward, and rot_dist < 0.0 can never latch success, so the documented behavior is unreachable. Handle zero as an explicit exact-alignment comparison, or reject it, instead of evaluating the tanh quotient.
| @@ -64,10 +64,10 @@ | |||
| "Isaac-Reach-Franka", | |||
| "Isaac-Reach-UR10", | |||
| # Manipulation Lift | |||
| "Isaac-Lift-Cube-Franka", | |||
| "Isaac-Lift-Franka", | |||
There was a problem hiding this comment.
🔵 Suggestion · Implementation — Missing changelog fragments for touched packages
Fragments are added only under isaaclab_assets/changelog.d and isaaclab_tasks/changelog.d, but the PR also touches isaaclab, isaaclab_rl, and isaaclab_physx (test-only edits). Repository policy requires one fragment per touched package; add a <slug>.skip file under each of those three changelog.d directories.
9f896e5 to
2170682
Compare
2170682 to
740705b
Compare
| super().__init__(cfg, env) | ||
| body_ids = cfg.params["body_asset_cfg"].body_ids | ||
| if isinstance(body_ids, list): | ||
| body_ids = torch.tensor(body_ids, dtype=torch.long, device=env.device) |
There was a problem hiding this comment.
favor int32 for these. The API is long friendly (and fast since the last changes) but still no reason to use a long.
There was a problem hiding this comment.
Claude / Codex, if you read this, look for other occurencies like that in this PR. Also make sure bodies / joint indices are not acquired and converted within a call, this is expensive.
mmichelis
left a comment
There was a problem hiding this comment.
Thanks for the lift env cleanup! Aside from one or two questions (and the CI fix), it looks great!
| self.scene.robot = OPENARM_UNI_CFG.replace(prim_path="{ENV_REGEX_NS}/Robot") | ||
|
|
||
| # Scope the joint-space terms to the OpenArm's own joints. | ||
| openarm_cfg = SceneEntityCfg("robot", joint_names=OPENARM_JOINTS) |
There was a problem hiding this comment.
Give each manager term its own SceneEntityCfg. SceneEntityCfg.resolve() mutates the configuration by populating joint_ids. Because openarm_cfg is shared here, resolving policy/joint_pos mutates it, then resolving policy/joint_vel fails because the populated IDs are compared against the original regex names. This prevents IsaacContrib-Lift-Cube-OpenArm from initializing and currently fails the contrib environment smoke test. Please construct or copy a separate SceneEntityCfg("robot", joint_names=OPENARM_JOINTS) for each term.
| return ((pos_w < self._lower) | (pos_w > self._upper)).any(dim=1) | ||
|
|
||
|
|
||
| def abnormal_robot_state(env: ManagerBasedRLEnv, asset_cfg: SceneEntityCfg = SceneEntityCfg("robot")) -> torch.Tensor: |
There was a problem hiding this comment.
calling this abnormal robot state is a bit general, it currently specifically checks joint velocity limits, not nans or something. The termination should indicate it is specifically for joint velocity limits.
| func=mdp.body_state_b, | ||
| noise=Unoise(n_min=-0.0, n_max=0.0), | ||
| # good behaving number for position in m, velocity in m/s, rad/s, | ||
| # and quaternion are unlikely to exceed -2 to 2 range |
There was a problem hiding this comment.
should we put a termination on this if it exceeds it instead of clipping the state?
There was a problem hiding this comment.
taht could be a good follow up
| object_point_cloud = ObsTerm( | ||
| func=mdp.object_point_cloud_b, | ||
| noise=Unoise(n_min=-0.0, n_max=0.0), | ||
| clip=(-2.0, 2.0), # clamp between -2 m to 2 m |
There was a problem hiding this comment.
what's the reason for the clamp here?
There was a problem hiding this comment.
thats the workspace limit to control the quality of state observation data
Restore int64 indices because LEAPP's ONNX GatherND export requires them.
…ft_env_cfg Upstream/develop merged isaac-sim#6732 (Merge dexsuite into lift) which deleted dexsuite_env_cfg.py and moved its content into lift_env_cfg.py. Our branch had modified dexsuite_env_cfg.py to replace ViewerCfg with VisualizerCfg. Conflict resolution: - Accept deletion of dexsuite_env_cfg.py (content moved to lift) - Apply the same ViewerCfg→VisualizerCfg migration to lift_env_cfg.py: * Remove ViewerCfg import from isaaclab.envs * Add VisualizerCfg import from isaaclab.visualizers * Move viewer eye/lookat into __post_init__ via sim.default_visualizer_cfg
# Description > [!IMPORTANT] > Confirm the pull request base before submitting. Target `develop` for all > contributions. The `release/3.0.0-beta2` branch is a frozen stable landing > snapshot and is not used for ongoing maintenance. <!-- Thank you for your interest in sending a pull request. Please make sure to check the contribution guidelines. Link: https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html 💡 Please try to keep PRs small and focused. Large PRs are harder to review and merge. --> Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. Fixes # (issue) <!-- As a practice, it is recommended to open an issue to have discussions on the proposed pull request. This makes it easier for the community to keep track of what is being developed or added, and if a given feature is demanded by more than one party. --> ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - Bug fix (non-breaking change which fixes an issue) - New feature (non-breaking change which adds functionality) - Breaking change (existing functionality will not work without user modification) - Documentation update ## Screenshots Please attach before and after screenshots of the change if applicable. <!-- Example: | Before | After | | ------ | ----- | | _gif/png before_ | _gif/png after_ | To upload images to a PR -- simply drag and drop an image while in edit mode and it should upload the image directly. You can then paste that source into the above before/after sections. --> ## Checklist - [ ] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump `extension.toml` — CI handles that) - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there <!-- As you go through the checklist above, you can mark something as done by putting an x character in it For example, - [x] I have done this task - [ ] I have not done this task --> --------- Co-authored-by: Octi Zhang <[email protected]>
) Franka Lift can stall while filling its reset-state bank: the updated `franka_panda.usda` defaults to `Colliders=primitives`, whose first-link capsule extends 6 cm below the ground. The existing ground-clearance criterion rejects every candidate, leaving the RSL-RL export batch at `0/2048` until its 600-second timeout. This PR selects `Colliders=convex_hulls` on the robot configuration shared by rigid Franka Lift and Reorient, restoring the previous collision geometry and successful reset sampling. The affected asset and reset setup originated in [#6457](#6457) ([564a008](564a008)), then moved into the current Lift tasks in [#6732](#6732) ([73106da](73106da)). The triggering change is external: the production Franka asset's top layer now selects primitive colliders and reports `Last-Modified: 2026-09-15 22:49:27 GMT`. Controlled comparisons found 0 valid states in 128 draws with the new default; explicit convex hulls and the preserved old asset both produced 63 valid states from the same draws. The same reset hang appeared in CI for #7838, #7608, #7832, #7834, and #7866. [The #7866 RL log](https://github.com/isaac-sim/IsaacLab/actions/runs/35202342707/job/105139978507) shows the batch blocked on Franka Lift after environment setup. #7866 fixes the independently configured Franka Pour task; it does not change Lift's robot configuration. This change covers Lift/Reorient only. Validation: - Fresh regression check on this branch: both Lift/Reorient cases failed without the production fix; all 9 tests in `test_lift_env_cfg.py` passed with it. - `uv run isaaclab -f` passed. - Earlier GPU validation of the identical Lift change completed the original 2,048-state harvest and reset in 22.169 seconds; the existing four-task RSL-RL export batch passed in 107.92 seconds. - Local GPU validation used PyTorch 2.11+cu128, Newton 1.6rc1, and RSL-RL 5.4.1. The identical Lift fix also passed [the full locked-environment RL CI job in #7865](https://github.com/isaac-sim/IsaacLab/actions/runs/35207648168/job/105158711330). Reset-bank sizes, clearance criteria, export behavior, the global Franka defaults, and Pour remain unchanged.
…aac-sim#7870) Franka Lift can stall while filling its reset-state bank: the updated `franka_panda.usda` defaults to `Colliders=primitives`, whose first-link capsule extends 6 cm below the ground. The existing ground-clearance criterion rejects every candidate, leaving the RSL-RL export batch at `0/2048` until its 600-second timeout. This PR selects `Colliders=convex_hulls` on the robot configuration shared by rigid Franka Lift and Reorient, restoring the previous collision geometry and successful reset sampling. The affected asset and reset setup originated in [isaac-sim#6457](isaac-sim#6457) ([564a008](isaac-sim@564a008)), then moved into the current Lift tasks in [isaac-sim#6732](isaac-sim#6732) ([73106da](isaac-sim@73106da)). The triggering change is external: the production Franka asset's top layer now selects primitive colliders and reports `Last-Modified: 2026-09-15 22:49:27 GMT`. Controlled comparisons found 0 valid states in 128 draws with the new default; explicit convex hulls and the preserved old asset both produced 63 valid states from the same draws. The same reset hang appeared in CI for isaac-sim#7838, isaac-sim#7608, isaac-sim#7832, isaac-sim#7834, and isaac-sim#7866. [The isaac-sim#7866 RL log](https://github.com/isaac-sim/IsaacLab/actions/runs/35202342707/job/105139978507) shows the batch blocked on Franka Lift after environment setup. isaac-sim#7866 fixes the independently configured Franka Pour task; it does not change Lift's robot configuration. This change covers Lift/Reorient only. Validation: - Fresh regression check on this branch: both Lift/Reorient cases failed without the production fix; all 9 tests in `test_lift_env_cfg.py` passed with it. - `uv run isaaclab -f` passed. - Earlier GPU validation of the identical Lift change completed the original 2,048-state harvest and reset in 22.169 seconds; the existing four-task RSL-RL export batch passed in 107.92 seconds. - Local GPU validation used PyTorch 2.11+cu128, Newton 1.6rc1, and RSL-RL 5.4.1. The identical Lift fix also passed [the full locked-environment RL CI job in isaac-sim#7865](https://github.com/isaac-sim/IsaacLab/actions/runs/35207648168/job/105158711330). Reset-bank sizes, clearance criteria, export behavior, the global Franka defaults, and Pour remain unchanged. (cherry picked from commit c5d33ef)
…aac-sim#7870) Franka Lift can stall while filling its reset-state bank: the updated `franka_panda.usda` defaults to `Colliders=primitives`, whose first-link capsule extends 6 cm below the ground. The existing ground-clearance criterion rejects every candidate, leaving the RSL-RL export batch at `0/2048` until its 600-second timeout. This PR selects `Colliders=convex_hulls` on the robot configuration shared by rigid Franka Lift and Reorient, restoring the previous collision geometry and successful reset sampling. The affected asset and reset setup originated in [isaac-sim#6457](isaac-sim#6457) ([564a008](isaac-sim@564a008)), then moved into the current Lift tasks in [isaac-sim#6732](isaac-sim#6732) ([73106da](isaac-sim@73106da)). The triggering change is external: the production Franka asset's top layer now selects primitive colliders and reports `Last-Modified: 2026-09-15 22:49:27 GMT`. Controlled comparisons found 0 valid states in 128 draws with the new default; explicit convex hulls and the preserved old asset both produced 63 valid states from the same draws. The same reset hang appeared in CI for isaac-sim#7838, isaac-sim#7608, isaac-sim#7832, isaac-sim#7834, and isaac-sim#7866. [The isaac-sim#7866 RL log](https://github.com/isaac-sim/IsaacLab/actions/runs/35202342707/job/105139978507) shows the batch blocked on Franka Lift after environment setup. isaac-sim#7866 fixes the independently configured Franka Pour task; it does not change Lift's robot configuration. This change covers Lift/Reorient only. Validation: - Fresh regression check on this branch: both Lift/Reorient cases failed without the production fix; all 9 tests in `test_lift_env_cfg.py` passed with it. - `uv run isaaclab -f` passed. - Earlier GPU validation of the identical Lift change completed the original 2,048-state harvest and reset in 22.169 seconds; the existing four-task RSL-RL export batch passed in 107.92 seconds. - Local GPU validation used PyTorch 2.11+cu128, Newton 1.6rc1, and RSL-RL 5.4.1. The identical Lift fix also passed [the full locked-environment RL CI job in isaac-sim#7865](https://github.com/isaac-sim/IsaacLab/actions/runs/35207648168/job/105158711330). Reset-bank sizes, clearance criteria, export behavior, the global Franka defaults, and Pour remain unchanged. (cherry picked from commit c5d33ef)
…aac-sim#7870) Franka Lift can stall while filling its reset-state bank: the updated `franka_panda.usda` defaults to `Colliders=primitives`, whose first-link capsule extends 6 cm below the ground. The existing ground-clearance criterion rejects every candidate, leaving the RSL-RL export batch at `0/2048` until its 600-second timeout. This PR selects `Colliders=convex_hulls` on the robot configuration shared by rigid Franka Lift and Reorient, restoring the previous collision geometry and successful reset sampling. The affected asset and reset setup originated in [isaac-sim#6457](isaac-sim#6457) ([564a008](isaac-sim@564a008)), then moved into the current Lift tasks in [isaac-sim#6732](isaac-sim#6732) ([73106da](isaac-sim@73106da)). The triggering change is external: the production Franka asset's top layer now selects primitive colliders and reports `Last-Modified: 2026-09-15 22:49:27 GMT`. Controlled comparisons found 0 valid states in 128 draws with the new default; explicit convex hulls and the preserved old asset both produced 63 valid states from the same draws. The same reset hang appeared in CI for isaac-sim#7838, isaac-sim#7608, isaac-sim#7832, isaac-sim#7834, and isaac-sim#7866. [The isaac-sim#7866 RL log](https://github.com/isaac-sim/IsaacLab/actions/runs/35202342707/job/105139978507) shows the batch blocked on Franka Lift after environment setup. isaac-sim#7866 fixes the independently configured Franka Pour task; it does not change Lift's robot configuration. This change covers Lift/Reorient only. Validation: - Fresh regression check on this branch: both Lift/Reorient cases failed without the production fix; all 9 tests in `test_lift_env_cfg.py` passed with it. - `uv run isaaclab -f` passed. - Earlier GPU validation of the identical Lift change completed the original 2,048-state harvest and reset in 22.169 seconds; the existing four-task RSL-RL export batch passed in 107.92 seconds. - Local GPU validation used PyTorch 2.11+cu128, Newton 1.6rc1, and RSL-RL 5.4.1. The identical Lift fix also passed [the full locked-environment RL CI job in isaac-sim#7865](https://github.com/isaac-sim/IsaacLab/actions/runs/35207648168/job/105158711330). Reset-bank sizes, clearance criteria, export behavior, the global Franka defaults, and Pour remain unchanged. (cherry picked from commit c5d33ef)
Description
Important
Confirm the pull request base before submitting. Target
developfor allcontributions. The
release/3.0.0-beta2branch is a frozen stable landingsnapshot and is not used for ongoing maintenance.
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Screenshots
Please attach before and after screenshots of the change if applicable.
Checklist
pre-commitchecks with./isaaclab.sh --formatsource/<pkg>/changelog.d/for every touched package (do not editCHANGELOG.rstor bumpextension.toml— CI handles that)CONTRIBUTORS.mdor my name already exists there