Skip to content

Generate tabletop tasks from sampled SimReady object categories - #9165

Merged
ooctipus merged 68 commits into
isaac-sim:mainfrom
Fanxing-LI:fansing/heterogeneous-tasks-v2
Nov 25, 2026
Merged

ooctipus merged 68 commits into
isaac-sim:mainfrom
Fanxing-LI:fansing/heterogeneous-tasks-v2

Conversation

@Fanxing-LI

@Fanxing-LI Fanxing-LI commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add IsaacContrib-TableTop-PickPlace-Franka, a flat Franka/Robotiq tabletop environment with 100 NVIDIA-hosted SimReady props and nine real SimReady table variants. Object count, categories, concrete assets, table and collision-free poses are sampled again at reset. Every environment can use every declared task family.

The scene declares eight interchangeable object slots. Each slot contains the same complete catalog plus an invisible, non-colliding placeholder. Reset samples a count from 2–8, samples a compatible source category and an asset uniformly within that category, reserves a fitting receiver, then samples categories and assets for the remaining occupied slots. Occupied objects and placeholders are shuffled across slots. A composition such as one container and two food items therefore uses three slots and five placeholders; no slot is permanently assigned a receiver or object role. Repeated assets are allowed. Placement retries preserve the sampled count.

InclusionSet(assets=["objects", "work_table"], sample_by="category") keeps initial clone planning factorized. Runtime selection uses Newton's existing native body variants through rigid-object and collection APIs, updating geometry, mass, inertia and COM-dependent state. There is no enumeration of complete world combinations or stored catalog-pair product, and no additional ReplicateSession customization. Identical collision-only source meshes share native SDF texture allocations across slots; visual meshes and prebuilt SDFs retain their ownership.

Task rules are declared beside the scene config as put_in_container and put_on_tray. Task IDs are stable indices into env.cfg.tasks, shared across all environments. Requesting a family before reset samples objects that make it evaluable. Instructions and source/target masks are rebuilt from current category- and size-compatible objects after every reset. Success requires release, footprint containment and supporting contact; container placement additionally checks the bottom against the rim.

Reset uses the intersection of the hand-defined robot workspace and each table's measured usable support polygon, including holes. Batched tensor checks test complete footprints against measured edges and holes, while XYZ bounds enforce the workspace; no polygon Boolean construction or Shapely task dependency is needed. Proposal bounds only narrow the search and do not replace the measured surface. Collision geometry is transformed relative to the simulator COM. Full footprints must fit, object pairs need clearance, and Newton's native collision pipeline rejects penetrating placements, including robot intersections. Tables retain their real visual geometry and triangle collisions; articulated table equipment is frozen into one kinematic body. A reset selects a different feasible table. Partial resets preserve untouched worlds. Pending worlds publish their new geometry and poses together; unplaced slots are kept apart outside the workspace during retries. The task declares SAH geometry BVHs: the same dense 64-world reset case passes with SAH and crashes inside Newton’s mesh-overlap kernel with LBVH.

The config composes constants with .copy() and .replace(). Reset and success evaluation stay in task-local MDP terms. There are no per-task configuration files, task YAML, config factories, post-init scene generation, task-local object-cooking subclasses or core task manager. Objects, tables and robot support use NVIDIA-hosted SimReady paths; no Hugging Face cache or custom object/table uploads are required. The known problematic Big_Plastic_Plate_A01 is excluded.

The Newton backend declares optional SDF triangle reduction through NewtonCfg(sdf_mesh_reduction=0.75), retaining original visual geometry and body inertia. This task uses 0.75 mm SDF voxels, four solver substeps with contact refresh, and a shared 5 ms gripper/object contact response. Robot home pose and actuator gains are preserved. Camera lighting comes from scene dome/distant-light assets translated at the builder boundary; renderer configs do not duplicate scene lighting. Unsupported light types are reported, and scenes with no supported lights keep Newton's defaults.

The robot references ISAACLAB_NUCLEUS_DIR/Robots/FrankaEmika/Robotiq/franka_robotiq_2F_85.usd. Its corrected replacement was requested and bucket propagation is pending. Local simulation uses the corrected saved USD through a runner-only override; no robot USD is bundled in this PR.

Based on main after #9156 merged. This PR is a prerequisite for #9184.

Validation

  • Automated coverage includes the catalog/factorization check and backend collision-approximation and visual-import checks.
  • A 1,000-entry, five-category catalog remains factorized across eight slots, with at most 128 materialized world prototypes for 128 environments.
  • A negative control fails when identical collision meshes allocate separate SDF textures. An isolated replay of the captured dense mesh-overlap query also reproduces the LBVH crash and passes with SAH.
  • The actual 100-asset scene passed 896 forced resets across 64 worlds: every count from 2–8 and both task families in every environment. All 100 concrete props were observed. Partial resets preserved untouched object variants and poses, and 30 subsequent simulation steps kept object states finite. These checks used the cached NVIDIA assets and the corrected local robot override; MJWarp still emitted line-search iteration-limit warnings.
  • The Shapely-free support check matches an independent geometry oracle on 90,000 cases, including concave outlines, enclosed holes and three clearance distances. Local physical reset/task-success and actual Robotiq validation passed after removing the direct dependency. Shapely remains a transitive dependency of the existing Newton alphashape importer.
  • Repository formatting/lint, changelog checks and offline lockfile validation pass.

The workspace is hand-defined rather than an IK reachability calculation. Size compatibility is conservative, not a grasp planner, and bounded placement can fail explicitly for infeasible configurations. The current documentation image was rendered before this reset change; no new policy success rate is claimed.

Screenshot

16 sampled SimReady tabletop worlds in a clean 4×4 view

Type of change

  • New feature
  • Documentation update

Checklist

  • Read the contribution guidelines
  • Run formatting and lint checks
  • Update documentation
  • Validate behavior with focused coverage and apply the test-audit criteria
  • Add package changelog fragments
  • Contributor names already exist in CONTRIBUTORS.md

FRANKA_ROBOTIQ_GRIPPER_CFG spawned the Isaac Sim Franka asset, whose arm
links carry placeholder inertias (centers of mass at the link origins,
inertias near 1e-6 kg m^2), and disabled gravity only on PhysX, as Newton
reads gravity switches on the physics scene. It now spawns the corrected
asset hosted with the Robotiq gripper on Hugging Face until it is on the
Isaac Lab Nucleus, compensates gravity in MuJoCo Warp, and limits the arm
torques to the Franka limits.
The franka_robotiq dataset now holds the OmniPBR MDL modules its materials reference next to the USD, so loading the robot no longer queries the server for a missing file.
@Fanxing-LI
Fanxing-LI requested a review from a team November 23, 2026 15:29
@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels Nov 23, 2026
@Fanxing-LI Fanxing-LI changed the title Fansing/heterogeneous tasks v2 Add heterogeneous Franka pick-and-place tasks on Newton Nov 23, 2026
@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[High impact] The PR changes how batched environments select scenes and evaluate task completion.

Restore task-specific object velocities before merging so task selection preserves the intended starting state.

Findings

  1. P1 Tasks inherit the wrong velocity ▶

Summary

Adds 256 Newton pick-and-place tasks and a shared environment that can select a different task for each environment.

  • Environments in one batch can run different tasks and switch them on reset.
  • Clone combinations can keep selected assets on fixed variants.
  • Task success checks cover common object placement goals and follow each environment’s task.
  • The VLA task bank adds 256 Franka pick-and-place scenes and a combined environment.

Acknowledged scope:

  • Fanxing-LI describes Hugging Face hosting as intentional until the assets move to Nucleus.
  • Fanxing-LI describes excluding these tasks from shared smoke tests because their assets download from Hugging Face.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Task configurations] --> B[Compose shared object slots]
    B --> C[Pin initial clone variants]
    C --> D[Select task on reset]
    D --> E[Switch object variants and default poses]
    E --> F[Reset scene]
    F --> G[Evaluate success by task]
Loading

Reviews (1) · Last reviewed commit: "Adapt the heterogeneous tasks to the def..." · Reviewed by Greptile

Comment on lines +238 to +239
for slot, obj in enumerate(self._slots):
obj.data.default_root_pose.torch[env_ids] = self._poses[slot, tasks]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Tasks inherit the wrong velocity

HeterogeneousTaskManager switches each object's pose but keeps the first task's default velocity. compose_tasks initializes the slot with objects[0].init_state, while resets update only default_root_pose. If tasks specify different init_state.lin_vel or init_state.ang_vel values, reset_scene_to_default starts them with the first task's speed or spin instead. Store task velocities alongside _poses and update default_root_vel for the environments being reset.

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isaac Lab Review Bot

Needs attention: Design and architecture (2), Scope and over-engineering (6), Implementation (2), Style consistency (4), Test quality (4). Other reviewed categories look good.

  • PR description: Name included manager/cloner changes, shorten repeated backend prose, and substantiate “3 ms/step” with baseline/candidate revisions, workload/command, hardware, backend, environment count, warmup, and latency measurements; otherwise remove the claim.
  • Design and architecture: Cross-config composition in post_init violates configuration ownership and can replace caller task edits; move composition to preparation or construction.
  • Scope and over-engineering: Minimal implementation: Extend ReplicateSession, EventManager, and TerminationManager mechanisms; keep heterogeneous_task_manager.py for reset state, package/MDP initializers and stub for contracts, shared environment configuration, objects.py, and test utilities; merge robot_cfg.py into the scene and mdp/utils.py into terminations.py; merge all 256 task modules and their manifest into data-driven construction, preserving registrations and remaining package initializers. Suggested PR breakdown: (1) cloner pins, algebra/Newton tests; (2) manager lifecycle, composition/reset tests; (3) task data and predicates, registered-environment integration.
  • API: API changes look good.
  • Compatibility and deprecation: No breaking changes identified.
  • Implementation: Geometry selection follows task IDs instead of asset.mesh_variant_ids, producing stale success results after independent variant writes and failing standalone multi-variant scenes; read active IDs from each asset.
  • Style consistency: The camera helper omits fixed-length pose types, coordinate frames, and focal-length units; specify those contracts in its signature and docstring.
  • Test quality: The pinning case uses only single-candidate slots, so it does not demonstrate the promised clone-planning behavior; compose distinct candidates and verify initial world selection.

Needs rework. Posted 18 inline findings.

The full PR diff was reviewed; some supplemental surrounding file context was omitted.

Automated review; human maintainers own approval decisions.

# Rows of the geometry tables (N, M).
self._rows = self._offsets + torch.stack(candidates, dim=1)
self.corners = self._to_world(self._corners[self._rows]) # (N, M, 8, 3)
self.box_center = self._to_world(self._box_center[self._rows].unsqueeze(2)).squeeze(2) # (N, M, 3)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Critical · Implementation — Read the active asset variant

Geometry selection uses task IDs, not each object's mesh_variant_ids. A separate variant write makes success evaluate stale geometry; a standalone multi-variant scene has no task_manager. Read the selected IDs from each asset.

if cfg.events is None:
cfg.events = {}
if cfg.terminations is None or isinstance(cfg.terminations, type(MISSING)):
cfg.terminations = {}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Warning · Implementation — Validate before mutating composition

Recomposing different tasks pops select_task before raising, leaving the configuration without its selector; recomposing changed tasks with the same names retains removed generated terms. Reject recomposition before modifying events or terms.

changed = changed[self._slot_task_ids[changed] != self.task_ids[changed]]
if len(changed):
for slot, obj in enumerate(self._slots):
# A slot whose tasks all have the same object has no variant to select.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Warning · Scope Complexity — Cache reset environment indices

Every reset allocates a full device arange before filtering changed environments, including partial resets. Cache the index tensor at initialization and select from it.

)
from isaaclab.managers.heterogeneous_task_manager import task_term

pytestmark = pytest.mark.unit

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Warning · Test Quality — Mark simulator-free tests kitless

These configuration tests need no simulator, but the file lacks pytest.mark.kitless and misses text-based kitless CI selection. Add the file-level marker.

HeterogeneousTaskManager.compose_tasks(cfg, {"shelf": shelf, "cube": cube})
stand_ins = [cfg.scene.object_1.spawn.assets_cfg[1], cfg.scene.object_2.spawn.assets_cfg[1]]
assert [spawn.rigid_props.kinematic_enabled for spawn in stand_ins] == [True, False]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Warning · Test Quality — Exercise actual candidate pinning

One task gives each slot one candidate, so removing the pins does not change initial worlds. Compose distinct candidates and verify the resulting clone plan selects the first task.

"PickPlace254": PickPlace254EnvCfg(),
"PickPlace255": PickPlace255EnvCfg(),
}
HeterogeneousTaskManager.compose_tasks(self, self.tasks)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Warning · Design Architecture — Compose outside configuration hooks

The post_init hook constructs and merges 256 configurations; copying the config reruns it and replaces caller changes to tasks. Move cross-config composition to launch preparation or construction.

from ..objects import library_object


@configclass

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Warning · Scope Complexity — Replace generated classes with task data

The 256 modules repeat configuration construction while varying instruction, objects, poses, and success parameters. Store those variations as data and construct configs at the registered entry points, preserving task IDs.

"coffee_can", (0.50815, -0.18363, 0.14107), (0.0, 0.0, 0.278894, 0.960322)
)
self.terminations.success = DoneTerm(
func=mdp.object_on_top,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Warning · Design Architecture — Defer runtime term resolution

Resolving mdp.object_on_top while building a configuration imports the predicate module and its pxr/SciPy dependencies before simulator startup. Use resolvable strings for generated predicates and the shared success term.

assert _term(env, mdp.stacked, objects=[SceneEntityCfg("ball"), box])() == [True, False]
both = [SceneEntityCfg("ball"), SceneEntityCfg("ball_b")]
assert _term(env, mdp.object_in_container, objects=both, container=box, logical="any")() == [True, False]
assert _term(env, mdp.object_in_container, objects=both, container=box, logical="choose", count=1)() == [

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Warning · Test Quality — Distinguish exact count from any

The choose and any cases have at most one contained ball, so treating choose(count=1) as any passes. Include two contained balls and assert that exact count rejects them.

This test is the last one: its second environment stays diverged, as no event resets the scene.
"""
ball, box = [SceneEntityCfg("ball")], SceneEntityCfg("box")
place(env, "ball", [(0.5, 0.0, 0.05), (float("nan"),) * 3])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Warning · Test Quality — Restore the scene after divergence

The NaN case leaves the module-scoped environment diverged and relies on running last. Restore finite state in teardown so test order does not determine whether sibling cases pass.

@ooctipus ooctipus changed the title Add heterogeneous Franka pick-and-place tasks on Newton Define heterogeneous Franka tasks from one flat scene catalog Nov 24, 2026
@ooctipus ooctipus changed the title Define heterogeneous Franka tasks from one flat scene catalog Generate tabletop tasks from sampled object categories Nov 24, 2026
@Fanxing-LI Fanxing-LI mentioned this pull request Nov 24, 2026
6 tasks done
@ooctipus ooctipus changed the title Generate tabletop tasks from sampled object categories Generate tabletop tasks from sampled SimReady object categories Nov 24, 2026
ooctipus added a commit that referenced this pull request Nov 24, 2026
…9156)

## Description

Multi-asset spawners can expose an enormous Cartesian product even when
a task only needs a few compatible worlds. Declare compatibility with
existing semantic tags and keep the legal choices compact until scene
planning selects concrete worlds.

```python
InclusionSet(assets=["gear", "fixture"], match_tags=["size", "assembly"])
```

- `InclusionSet` owns only asset membership, inclusion weight, and
matching tag types. No matching subclass, override method, positional
layouts, separate labels, environment count, or random seed is required.
- Selected variants must share a value for each requested tag type. A
universal fixture can list several `size` values. Repeat asset names for
cardinality; all selected instances share the requested tags. Unclaimed
assets remain independent. This expresses shared compatibility, not
separate pairwise constraints or sampling without replacement.
- Scene planning reads individual spawner tags, including inherited
wrapper tags, and resolves compatible tag-value groups. Each slot
retains its candidate prototype IDs instead of expanding every concrete
combination.
- `make_clone_plan` uses the existing scene clone strategy to select
groups and each slot's candidates, materializes only selected worlds,
and reuses identical concrete prototypes. Inclusion weights split
equally across compatible groups. Multi-valued tags can make groups
overlap; this is group-weighted selection, not uniform sampling over the
exhaustive union of concrete worlds.
- Without matching tags, retain the existing independent product and
assignment behavior.
- Replication execution remains unchanged. `ReplicateSession` only
receives broader type annotations for forwarding compact definitions;
inclusion interpretation stays outside it.

This is the generic prerequisite. Downstream task-manager,
heterogeneous-task, and VLA evaluation example changes (#9161, #9165 and
#9184 ) need to adopt the declarative API when restacked.

## Validation

- 36 clone-plan algebra tests, 17 replication-session tests, and one
Newton native asset test passed (54 total).
- Tests cover multi-valued universal tags, multiple matching tag types,
repeated instances, independent unclaimed assets, collection columns,
mixed concrete/factorized definitions, prototype reuse, invalid choices,
and external random-seed reproducibility.
- A case with 1,000 variants, five categories, and eight slots retained
five groups rather than expanding `5 * 200**8` concrete worlds; planning
128 environments created at most 128 concrete world prototypes.
- A standalone scene-planning check passed for collection members,
shared offsets, concrete MultiUsd candidates, inherited tags, and source
preservation. The Isaac Sim scene test cannot launch without its runtime
in this checkout.
- Removing inherited tag propagation makes the native regression fail;
restored code passes.
- Local planning benchmark: approximately 4.37 ms to resolve the
1,000-variant case and 0.85 ms to select 128 worlds, with about 510 KiB
peak Python planning allocation. This measures planning, not asset
loading or simulation.
- Full formatting checks and a file-by-file structural audit passed,
including unchanged replication execution after stripping annotations.

---------

Co-authored-by: Octi Zhang <zhengyuz@nvidia.com>
ManagerBasedRLEnvCfg.tasks lists the tasks that the environments run. Their
rigid objects are composed into switchable slots, their termination terms
are masked to the environments of each task, and their episode lengths are
kept per environment. Each environment runs one task and switches tasks on
reset, only where its task changed.
The environment classes are left as they are: the environment configuration calls HeterogeneousTaskManager.compose_tasks(cfg, tasks), which also adds the reset event that creates the task manager and selects the tasks before the other reset events.

The event creates the manager before the solver is built, where selecting objects has no effect. The clone combinations therefore pin the first candidate of every slot: every environment starts with the objects of the first task, and clone planning does not enumerate the combinations of all candidates.
Cover HeterogeneousTaskManager.task_terms and the rule that a termination defined by the environment configuration is not added again for each task.
Composing other tasks into a composed configuration raises instead of keeping the first select_task event; composing the same tasks again, as copying a configuration does, changes nothing. A configuration without events or terminations gets those of the tasks, and the docstring says when to compose configurations with presets.
Fanxing-LI and others added 8 commits November 25, 2026 00:09
The only plate among the props is a 10 cm dish with 4 cm walls: it takes objects up to 7 cm, does not look like a plate, and no recorded policy trial placed anything on it. The put_on_plate family returns with a suitable asset; the dish stays in the scenes as a prop.
The hold time of the success term is gone: success is judged in a single step again. In its place the object has to be at rest and must not press on the table, so that an object that passes over its target, bounces in it or stands on the table and leans on the target does not count. An object that tipped over inside its container counts now: its center, not a corner of its rotated bounds, has to be above the container's bottom. The speed comes from the center-of-mass velocity, because the link linear velocity of the object collection read zero in every step.
A world with two objects of one name offered no task for them, which left most worlds idle: 14 of the 18 bowls were called "bowl". One instruction now stands for all objects and all targets of the names it uses, and any of those objects resting in or on any of those targets counts; object_ids and target_ids give the first such pair, object_mask and target_mask all of them. Assets can carry a name semantic tag, which ASSET_NAMES sets for the bowls to tell them apart by color.
A world without a tray or bowl, or without anything the gripper can put in it, offered no task and its environment stayed idle: 9 of 16 in the last evaluation. The first object slot now samples from the trays and the bowls of 12 cm or more, the second from the props that suit the gripper and fit every such receiver, and the other slots hold no further receiver. A replay of 8192 sampled worlds with the reset term's own bounds and binding rules gives a task in every one.
@ooctipus

Copy link
Copy Markdown
Collaborator

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Nov 25, 2026
@ooctipus

Copy link
Copy Markdown
Collaborator

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Nov 25, 2026
Comment thread uv.lock Outdated
{ name = "rich" },
{ name = "rsl-rl-lib" },
{ name = "scipy" },
{ name = "shapely" },

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we file an OSRB for this one?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@ooctipus

Copy link
Copy Markdown
Collaborator

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Nov 25, 2026
@ooctipus
ooctipus merged commit e6fc4fd into isaac-sim:main Nov 25, 2026
94 of 95 checks passed
ooctipus added a commit that referenced this pull request Nov 26, 2026
## Description

Evaluate pi0.5 on `IsaacContrib-TableTop-PickPlace-Franka` from merged
#9165 with one command. The first run fetches a pinned OpenPI revision,
prepares its separate Python 3.11 environment, anonymously downloads the
joint-position checkpoint and starts inference. Subsequent runs reuse
the caches. Evaluation shuts down its inference process on completion or
interruption.

The PR adds two scripts: the evaluator owns scene setup, trial
scheduling and local process lifetime; the server entrypoint owns OpenPI
model configuration and loading. There are no framework, task, asset or
dependency-file changes. OpenPI's dependencies stay outside the Isaac
Lab environment.

Any idle world requests the next global task-family ID and resets to a
fresh object count, category composition, assets and table. Each episode
records its instruction, objects, mesh variants, table variant and
success/timeout. Completed worlds discard their remaining action chunk
and hold their reset arm pose with the gripper open. Every terminal
result counts, including one-step episodes.

The client uses the standard OpenPI WebSocket protocol, querying active
worlds serially. No custom batch adapter is required. Camera updates
follow the action chunk interval; both views are letterboxed to 224 ×
224, and DROID gripper closure maps to the environment's binary command.

## Run

With Isaac Lab installed on Linux and an NVIDIA GPU, git and uv
available:

```bash
uv run --with msgpack python scripts/large_models/pi05_evaluate.py --viz none
```

No manual OpenPI installation, server launch or Google login is
required. The first run downloads the approximately 12.4 GB
`gs://openpi-assets-simeval/pi05_droid_jointpos` checkpoint.
Source/environment are cached under `~/.cache/isaaclab/pi05`;
weights/tokenizer use `~/.cache/openpi` (`OPENPI_DATA_HOME` overrides
it). Inference uses the first visible GPU without JAX preallocation;
simulation and inference must fit in available GPU memory.

Optional controls:

- `--num_envs 4 --trials 2`: two trials per task family, distributed
across four worlds.
- `--policy-device 1`: select another inference GPU through
`CUDA_VISIBLE_DEVICES`.
- `--checkpoint /path/to/pi05_droid_jointpos`: reuse existing weights.
- `--policy HOST:PORT`: use an existing standard OpenPI joint-position
server and skip local setup.
- `--tasks put_in_container`: select a task family.
- `env.episode_length_s=10`: ordinary task configuration overrides.

Reports go to a new timestamped directory under `logs/pi05`; `--output
PATH` selects one explicitly. The action contract is seven absolute arm
joint positions and gripper closure in [0, 1]. The standard
velocity-action DROID checkpoint is incompatible.

## Validation

- Started with an empty OpenPI checkout/environment cache: automatic
fetch of revision `215abfb217dbac7d5f1273282331b9b1866c0479` and locked
dependency installation succeeded.
- Real pi0.5 inference completed both task families in two worlds with
three-second episodes: two timeouts, 45 shared control steps, 90 trial
steps and six standard policy requests. This checks integration, not
policy performance.
- That run used the published robot and scene configuration with no
local asset overrides. Existing checkpoint and asset caches were reused;
the full 12.4 GB model was not downloaded again.
- Separately verified anonymous download of checkpoint normalization
assets into a fresh cache, including recursive directory download and
cache reuse.
- Verified cached environment startup, interruption cleanup and
propagation of server startup failure for a missing checkpoint. No
inference process remains after exit.
- Scheduler checks cover global family scheduling, fresh instructions,
one-step episodes, completion within a chunk, idle holds, row ordering,
gripper signs and exact step accounting. Reply guards reject short
chunks, wrong width/rank, NaNs and server errors.
- CLI help, full repository formatting/lint and changelog checks pass.
No new simulation tests were added.

## Type of change

- New example scripts

## Checklist

- [x] Follow contribution guidelines
- [x] Run formatting and lint checks
- [x] Document setup and usage in the scripts
- [x] Validate real inference, lifecycle and scheduling locally
- [x] No source-package changes requiring a changelog fragment

---------

Co-authored-by: Octi Zhang <zhengyuz@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

asset New asset feature or request documentation Improvements or additions to documentation infrastructure isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants