Repository navigation
Normalize task scene bindings to canonical env-regex form - #6534
Conversation
Replace expanded '/World/envs/env_.*' prim paths with the canonical
'{ENV_REGEX_NS}' macro across task scene configurations, declare the
Franka Cabinet robot and end-effector frame in the scene configuration
instead of mutating them after construction, and align the Reach and
OpenArm Lift table bindings and initial states.
Greptile SummaryThis PR normalizes task scene prim path bindings from the expanded form (
Confidence Score: 4/5Safe to merge; all path normalisations are behaviour-preserving and the Franka Cabinet refactor produces an identical configuration at runtime. The macro substitutions expand identically to the old regex strings via InteractiveScene's format call. The FrankaCabinetSceneCfg class correctly reproduces the prior post_init assignments. The locomanip files resolve a previously latent prim_path=MISSING issue. The only concern is a dropped ordering comment on the ee_frame target_frames list that documents a constraint relied upon by downstream MDP reward indexing. source/isaaclab_tasks/isaaclab_tasks/core/cabinet/config/franka/joint_pos_env_cfg.py — confirm the dropped TCP/finger ordering comment is acceptable, or restore it on the new class-level ee_frame declaration. Important Files Changed
Class Diagram%%{init: {'theme': 'neutral'}}%%
classDiagram
class InteractiveSceneCfg {
+num_envs: int
+env_spacing: float
}
class CabinetSceneCfg {
+robot: ArticulationCfg = MISSING
+ee_frame: FrameTransformerCfg = MISSING
+cabinet: ArticulationCfg
+cabinet_frame: FrameTransformerCfg
}
class FrankaCabinetSceneCfg {
+robot = FRANKA_PANDA_CFG
+ee_frame = FrameTransformerCfg
}
class CabinetEnvCfg {
+scene: CabinetSceneCfg
+__post_init__()
}
class FrankaCabinetEnvCfg {
+scene: FrankaCabinetSceneCfg
+__post_init__() sets actions and rewards
}
class FrankaCabinetEnvCfg_PLAY {
+__post_init__() reduces num_envs
}
InteractiveSceneCfg <|-- CabinetSceneCfg
CabinetSceneCfg <|-- FrankaCabinetSceneCfg
CabinetEnvCfg <|-- FrankaCabinetEnvCfg
FrankaCabinetEnvCfg <|-- FrankaCabinetEnvCfg_PLAY
FrankaCabinetEnvCfg *-- FrankaCabinetSceneCfg
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
classDiagram
class InteractiveSceneCfg {
+num_envs: int
+env_spacing: float
}
class CabinetSceneCfg {
+robot: ArticulationCfg = MISSING
+ee_frame: FrameTransformerCfg = MISSING
+cabinet: ArticulationCfg
+cabinet_frame: FrameTransformerCfg
}
class FrankaCabinetSceneCfg {
+robot = FRANKA_PANDA_CFG
+ee_frame = FrameTransformerCfg
}
class CabinetEnvCfg {
+scene: CabinetSceneCfg
+__post_init__()
}
class FrankaCabinetEnvCfg {
+scene: FrankaCabinetSceneCfg
+__post_init__() sets actions and rewards
}
class FrankaCabinetEnvCfg_PLAY {
+__post_init__() reduces num_envs
}
InteractiveSceneCfg <|-- CabinetSceneCfg
CabinetSceneCfg <|-- FrankaCabinetSceneCfg
CabinetEnvCfg <|-- FrankaCabinetEnvCfg
FrankaCabinetEnvCfg <|-- FrankaCabinetEnvCfg_PLAY
FrankaCabinetEnvCfg *-- FrankaCabinetSceneCfg
Reviews (1): Last reviewed commit: "Normalize task scene bindings to canonic..." | Re-trigger Greptile |
| ee_frame = FrameTransformerCfg( | ||
| prim_path="{ENV_REGEX_NS}/Robot/panda_link0", | ||
| debug_vis=False, | ||
| visualizer_cfg=FRAME_MARKER_SMALL_CFG.replace(prim_path="/Visuals/EndEffectorFrameTransformer"), | ||
| target_frames=[ | ||
| FrameTransformerCfg.FrameCfg( | ||
| prim_path="{ENV_REGEX_NS}/Robot/panda_hand", | ||
| name="ee_tcp", | ||
| offset=OffsetCfg( | ||
| pos=(0.0, 0.0, 0.1034), | ||
| ), | ||
| ), | ||
| FrameTransformerCfg.FrameCfg( | ||
| prim_path="{ENV_REGEX_NS}/Robot/panda_leftfinger", | ||
| name="tool_leftfinger", | ||
| offset=OffsetCfg( | ||
| pos=(0.0, 0.0, 0.046), | ||
| ), | ||
| ), | ||
| FrameTransformerCfg.FrameCfg( | ||
| prim_path="{ENV_REGEX_NS}/Robot/panda_rightfinger", | ||
| name="tool_rightfinger", | ||
| offset=OffsetCfg( | ||
| pos=(0.0, 0.0, 0.046), | ||
| ), | ||
| ), | ||
| ], | ||
| ) |
There was a problem hiding this comment.
Ordering comment dropped during refactor
The old __post_init__ code included # IMPORTANT: The order of the frames in the list is important. The first frame is the tool center point (TCP) / the other frames are the fingers. The MDP rewards reference frame indices by position (target_frames[0] = TCP, target_frames[1/2] = fingers), so this ordering constraint is still real. Adding the comment to ee_frame here would preserve that intent for future maintainers who subclass or copy this config.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
> [!IMPORTANT] > **Depends on #6534** (task scene-binding normalization). Merge #6534 first — this PR's task-side diffs assume the canonical `{ENV_REGEX_NS}` bindings introduced there. ## Summary - Added heterogeneous clone-plan support so one `InteractiveScene` can instantiate different task asset sets across different environment rows. - Added `scene_add` composition utilities for folding registered task scene configs into a single declarative scene with clone combinations. - Added `scripts/demos/multitask_clone_scene.py`, which composes supported task scenes, skips global floor/light assets, and runs the resulting scene directly without task envs or managers. - Converted env-local static task props such as tables, stands, and static scene props from plain `AssetBaseCfg` to kinematic `RigidObjectCfg`, so they participate in normal physics/USD replication instead of needing scene-level special <img width="1349" height="752" alt="Screenshot from 2026-07-14 19-56-19" src="https://github.com/user-attachments/assets/f8a06a24-e7d2-4532-8b83-086d7c803124" /> handling. ## Motivation This PR is meant to support multitask scene demos where each cloned environment may contain a different robot/task asset bundle. The previous clone flow assumed every env received the same source assets, which made it hard to build one scene from multiple existing task configs without manually rewriting each task into a shared schema. The composition path keeps the existing task scene configs as the source of truth. It reads their declarative scene fields, deduplicates equivalent asset slots, and emits clone-combination rows that the cloner can use to populate only the assets needed by each task group. ## Design Notes - `scene_add` only composes env-scoped, spawned, physics-backed assets rooted at literal `{ENV_REGEX_NS}/Leaf` paths. Global floors/lights should be skipped during composition and added once to the composed scene. - Plain env-scoped `AssetBaseCfg` is rejected in `scene_add`; env-local props that need per-env instances should be modeled as `RigidObjectCfg` or `ArticulationCfg` instead. - Static props that should not move are represented as kinematic rigid objects, which keeps them fixed while letting the existing backend replication paths handle them. - The demo filters out scenes outside its current scope, including Newton-only scenes and scenes without a level-0 declarative flat floor. ## Test Plan - `./isaaclab.sh -p -m py_compile source/isaaclab/isaaclab/scene/interactive_scene.py source/isaaclab/isaaclab/scene/scene_composition.py source/isaaclab_tasks/isaaclab_tasks/core/lift/lift_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/core/lift/config/franka_soft/franka_soft_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/core/reach/reach_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/stack/stack_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/stack/stack_instance_randomize_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/deploy/reach/reach_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/deploy/gear_assembly/gear_assembly_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/lift/config/openarm/lift_openarm_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/reach/config/openarm/unimanual/reach_openarm_uni_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/core/lift/config/franka_soft/franka_cloth_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/assemble_trocar/g129_dex3_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/place/config/agibot/place_toy2box_rmp_rel_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/place/config/agibot/place_upright_mug_rmp_rel_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/pick_place/nutpour_gr1t2_base_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/pick_place/exhaustpipe_gr1t2_base_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/locomanip_pick_place/locomanipulation_g1_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/locomanip_pick_place/fixed_base_upper_body_ik_g1_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/pick_place/pickplace_gr1t2_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/pick_place/pickplace_unitree_g1_inspire_hand_env_cfg.py` - Searched for remaining env-scoped plain table/stand/scene/cube `AssetBaseCfg` assignments after converting static props to `RigidObjectCfg`.
…6534) # Description Replaces expanded `/World/envs/env_.*` prim paths with the canonical `{ENV_REGEX_NS}` macro across task scene configurations, declares the Franka Cabinet robot and end-effector frame in the scene configuration instead of mutating them after construction, and aligns the Reach and OpenArm Lift table bindings and initial states. These are behavior-preserving config normalizations (`{ENV_REGEX_NS}` expands to the same regex at scene construction). They are split out of isaac-sim#6529, which composes task scenes and requires the canonical literal-binding form. ## Type of change - This change requires a documentation update (changelog fragment included) ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` - [x] My name is in the `CONTRIBUTORS.md` 🤖 Generated with [Claude Code](https://claude.com/claude-code)
> [!IMPORTANT] > **Depends on isaac-sim#6534** (task scene-binding normalization). Merge isaac-sim#6534 first — this PR's task-side diffs assume the canonical `{ENV_REGEX_NS}` bindings introduced there. ## Summary - Added heterogeneous clone-plan support so one `InteractiveScene` can instantiate different task asset sets across different environment rows. - Added `scene_add` composition utilities for folding registered task scene configs into a single declarative scene with clone combinations. - Added `scripts/demos/multitask_clone_scene.py`, which composes supported task scenes, skips global floor/light assets, and runs the resulting scene directly without task envs or managers. - Converted env-local static task props such as tables, stands, and static scene props from plain `AssetBaseCfg` to kinematic `RigidObjectCfg`, so they participate in normal physics/USD replication instead of needing scene-level special <img width="1349" height="752" alt="Screenshot from 2026-07-14 19-56-19" src="https://github.com/user-attachments/assets/f8a06a24-e7d2-4532-8b83-086d7c803124" /> handling. ## Motivation This PR is meant to support multitask scene demos where each cloned environment may contain a different robot/task asset bundle. The previous clone flow assumed every env received the same source assets, which made it hard to build one scene from multiple existing task configs without manually rewriting each task into a shared schema. The composition path keeps the existing task scene configs as the source of truth. It reads their declarative scene fields, deduplicates equivalent asset slots, and emits clone-combination rows that the cloner can use to populate only the assets needed by each task group. ## Design Notes - `scene_add` only composes env-scoped, spawned, physics-backed assets rooted at literal `{ENV_REGEX_NS}/Leaf` paths. Global floors/lights should be skipped during composition and added once to the composed scene. - Plain env-scoped `AssetBaseCfg` is rejected in `scene_add`; env-local props that need per-env instances should be modeled as `RigidObjectCfg` or `ArticulationCfg` instead. - Static props that should not move are represented as kinematic rigid objects, which keeps them fixed while letting the existing backend replication paths handle them. - The demo filters out scenes outside its current scope, including Newton-only scenes and scenes without a level-0 declarative flat floor. ## Test Plan - `./isaaclab.sh -p -m py_compile source/isaaclab/isaaclab/scene/interactive_scene.py source/isaaclab/isaaclab/scene/scene_composition.py source/isaaclab_tasks/isaaclab_tasks/core/lift/lift_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/core/lift/config/franka_soft/franka_soft_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/core/reach/reach_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/stack/stack_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/stack/stack_instance_randomize_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/deploy/reach/reach_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/deploy/gear_assembly/gear_assembly_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/lift/config/openarm/lift_openarm_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/reach/config/openarm/unimanual/reach_openarm_uni_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/core/lift/config/franka_soft/franka_cloth_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/assemble_trocar/g129_dex3_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/place/config/agibot/place_toy2box_rmp_rel_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/place/config/agibot/place_upright_mug_rmp_rel_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/pick_place/nutpour_gr1t2_base_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/pick_place/exhaustpipe_gr1t2_base_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/locomanip_pick_place/locomanipulation_g1_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/locomanip_pick_place/fixed_base_upper_body_ik_g1_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/pick_place/pickplace_gr1t2_env_cfg.py source/isaaclab_tasks/isaaclab_tasks/contrib/pick_place/pickplace_unitree_g1_inspire_hand_env_cfg.py` - Searched for remaining env-scoped plain table/stand/scene/cube `AssetBaseCfg` assignments after converting static props to `RigidObjectCfg`.
Description
Replaces expanded
/World/envs/env_.*prim paths with the canonical{ENV_REGEX_NS}macro across task scene configurations, declares the Franka Cabinet robot and end-effector frame in the scene configuration instead of mutating them after construction, and aligns the Reach and OpenArm Lift table bindings and initial states.These are behavior-preserving config normalizations (
{ENV_REGEX_NS}expands to the same regex at scene construction). They are split out of #6529, which composes task scenes and requires the canonical literal-binding form.Type of change
Checklist
pre-commitchecks with./isaaclab.sh --formatsource/<pkg>/changelog.d/CONTRIBUTORS.md🤖 Generated with Claude Code