Repository navigation
Add PhysX-only heterogeneous multitask manipulation environment - #7375
Conversation
Greptile SummaryThe PR adds a PhysX-only manager-based manipulation environment that combines OpenArm lifting, Franka drawer opening, and UR10 reaching under one fixed observation/action interface.
Confidence Score: 5/5The PR appears safe to merge because no concrete changed-code failure remains after checking the heterogeneous indexing, reset lifecycle, and RSL-RL model contracts. The configured clone subsets, fixed observation and action layouts, selection-aware manager terms, task-routed policy behavior, and supported export path remain internally aligned, with focused tests covering the principal contracts. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart LR
Env[Global environment batch] --> TaskID[Task one-hot observation]
Env --> Selection[Global-to-physics-view selection]
TaskID --> Backbone[Shared actor and critic backbones]
Backbone --> LiftHead[OpenArm lift heads]
Backbone --> CabinetHead[Franka cabinet heads]
Backbone --> ReachHead[UR10 reach heads]
LiftHead --> Actions[Fixed-width masked action batch]
CabinetHead --> Actions
ReachHead --> Actions
Actions --> Selection
Selection --> LiftView[Lift physics view]
Selection --> CabinetView[Cabinet physics view]
Selection --> ReachView[Reach physics view]
LiftView --> Terms[Selection-aware observations, rewards, resets, and terminations]
CabinetView --> Terms
ReachView --> Terms
Reviews (1): Last reviewed commit: "Remove obsolete environment table entry" | Re-trigger Greptile |
There was a problem hiding this comment.
Isaac Lab Review Bot
The additive contrib environment consistently wires the fixed 22-dimensional action contract, (8, 8, 6) task heads, one-hot task routing, selection-aware resets, and documentation integration. One cabinet reward path still combines tensors from independently ordered robot and cabinet physics views without applying the new environment-to-instance mapping.
- Design and architecture: The selection abstraction coherently maps heterogeneous asset views into global environment order across resets, observations, actions, commands, and terminations. However, the cabinet reward implementation bypasses that abstraction when combining robot-view grasp values with cabinet-view drawer positions, undermining the ordering guarantees the design is intended to provide.
- API: The change is additive, with registry, RSL-RL configuration entry points, MDP exports, gallery metadata, and the fixed observation/action contracts aligned. No compatibility issue with existing public APIs is established.
- Implementation: In
CabinetOpenDrawerBonusandcabinet_multi_stage_open,drawer_posis in cabinet physics-view order whilegraspableand the associated environment IDs are derived from the robot view. Reindex the cabinet values throughcabinet_cfg.instance_ids[env_ids](or otherwise normalize both tensors to one explicit view basis) before combining and scattering them.
Minor fixes needed. Posted 1 actionable finding inline.
Automated review; human maintainers own approval decisions.
| drawer_pos = torch.nan_to_num(drawer_pos, nan=0.0, posinf=0.0, neginf=0.0) | ||
| drawer_pos = torch.maximum(torch.minimum(drawer_pos, drawer_limits[:, 1]), drawer_limits[:, 0]) | ||
| env_ids, graspable, _, _ = _cabinet_grasp_alignment(env, robot_cfg, cabinet_cfg) | ||
| self.succeeded[env_ids] |= drawer_pos > success_threshold |
There was a problem hiding this comment.
🟡 Warning · Implementation — Cabinet reward mixes two physics-view orderings
drawer_pos follows the cabinet view, while env_ids and graspable follow the robot view; they are combined and scattered without the cabinet_cfg.instance_ids[env_ids] remap that _cabinet_frames applies for handle poses. cabinet_multi_stage_open performs the same mix but scatters through cabinet_cfg, so the two terms assume opposite bases and at most one can be correct. Reindex cabinet-view values through instance_ids before combining.
|
Thanks Rebecca looking awesome! |
Reduce the default environment spacing to 2.0, replace the preview with a cropped JPEG, and remove the obsolete dedicated configuration test.
|
run-ci |
Description
This PR adds
IsaacContrib-Multitask-Manipulation, a contributed manager-based environment for training and evaluating one RSL-RL policy across three heterogeneous manipulation layouts:The environment uses selection-aware physics-view indexing so that each asset only exists in its task subset while observations and actions remain fixed-width in global environment order.
Key changes:
SceneEntitySelectionCfgto resolve task-local assets and map physics-view indices into global environment order, enabling heterogeneous scene subsets across reset, observation, action, reward, command, and termination terms.Design motivation
The three tasks share manipulation structure but differ in robot state, action semantics, and reward scale. A fully shared policy with one padded action distribution would train irrelevant action dimensions and allow the task with the largest reward scale to dominate the update. The design therefore shares representations where transfer is useful while routing task-specific outputs and normalization where the contracts differ.
SceneEntitySelectionCfg, which maps global environment IDs to each asset's physics-view instance rows and scatters task-local values back into global environment order.3 task ID + 28 lift + 23 cabinet + 19 reach + 22 last action. Process it with a shared feature extractor.(8, 8, 6)and task-specific scalar value heads. Mask inactive action dimensions in actions, log-probability, entropy, KL, and last-action observations.No new dependencies are required.
Training and evaluation
Train:
uv run isaaclab train \ --rl_library rsl_rl \ --task IsaacContrib-Multitask-Manipulation \ --num_envs 16384 \ --seed 42 \ --run_name multitask_manipulationEvaluate a specific checkpoint:
uv run isaaclab play \ --rl_library rsl_rl \ --task IsaacContrib-Multitask-Manipulation \ --num_envs 3 \ --checkpoint logs/rsl_rl/multitask_manipulation/<run-dir>/model_3000.pt \ --viz kitType of change
Screenshots
Validation
uv run isaaclab -fuv run --extra test --frozen python -m pytest source/isaaclab_tasks/test/contrib/test_multitask_manipulation_env_cfg.py -q(18 passed)uv run --extra test --frozen python -m pytest source/isaaclab_tasks/test/contrib/test_contrib_environments.py -q -k IsaacContrib-Multitask-Manipulation(1 passed)uv run python scripts/environments/list_envs.py --keyword Multitask --show_presetsuv run --isolated --extra test -- make -C docs current-docsChecklist
source/isaaclab_tasks/changelog.d/.CONTRIBUTORS.md.