Skip to content

Run concept page examples as Experiments - #1463

Merged
cvolkcvolk merged 14 commits into
mainfrom
cvolk/docs/concepts-experiment-runner
Nov 26, 2026
Merged

cvolkcvolk merged 14 commits into
mainfrom
cvolk/docs/concepts-experiment-runner

Conversation

@cvolkcvolk

@cvolkcvolk cvolkcvolk commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

Run the concept-page examples with experiment_runner.py and checked-in Experiment YAMLs instead of policy_runner.py. Where these pages named runner flags, name the matching environment_builder and policy fields of a Run instead.

Why this change?

Evaluation is moving from policy_runner.py to experiment_runner.py, which reads each evaluation from an Experiment YAML file. The concept pages still showed policy_runner.py commands with flags such as --num_envs, --placement_seed, --presets, and --additional_table_objects. experiment_runner.py accepts the shared builder flags because it uses the Arena argument parser, but it ignores them: each Run reads these values from its environment_builder section. A reader who passes them to the Experiment Runner gets no error and no effect.

Each page now includes the YAML file it runs with literalinclude, so the page and the file cannot drift apart.

What changes?

New Experiments under isaaclab_arena_environments/experiment_configs/concepts/:

  • maple_table_additional_objects_experiment.yaml (concept_object_and_robot_placement.rst). The page shows a runs.additional_objects.environment.additional_table_objects=[...] override to try other objects.
  • maple_table_seeds_experiment.yaml (env_builder.rst and pooled_placement.rst). Its comments describe the seeds as main now uses them: since Seed variations with --seed #1467 the environment seed also fixes build-time and run-time variation values. pooled_placement.rst now uses placement seed 7 instead of 42; the value is arbitrary on that page.
  • droid_table_multi_object_placement_experiment.yaml (homogeneous_and_heterogeneous_placement.rst). The heterogeneous example is the override runs.multi_object_placement.environment.mode=heterogeneous.
  • kitchen_bench_robot_placement_experiment.yaml (solver.rst), which selects the graph spec kitchen_bench/kitchen_bench_lightwheel_pick_and_place.yaml by its path in environment.type.

variations.rst now lists, enables, and tunes variations with droid_pnp_variations_experiment.yaml, which the variations quickstart already uses. The separate "Configuring variations in an experiment config" section goes away. Tuned control parameters are added with +runs.variations_demo.variations.<path>=<value> overrides. The page also says that a command-line override can't change an entry the YAML writes as a dotted key, such as light.hdr_image.enabled: the plain override fails with "Could not override", and the + form loses to the YAML's dotted key in overrides_from_dict. The --list_variations sample keeps main's pick_up_object listing and adds the per-Run header that experiment_runner.py prints.

Other pages:

  • env_builder.rst, pooled_placement.rst, and variations.rst name environment_builder.seed, placement_seed, solve_relations, and resolve_on_reset instead of the runner flags.
  • The physics pages name environment_builder.presets (PHYSX or NEWTON). physics_backend_selection.rst says the Environment Runner supports only PhysX, because environment_runner.py rejects --presets newton and Newton environments.
  • The Camera renderer section that Add a camera renderer option for Newton Warp #1707 added to physics_backend_selection.rst names ArenaEnvBuilderCfg.camera_renderer and keeps its Experiment YAML, without the policy_runner.py command.
  • policy/index.rst describes how policy.type selects a policy by registered name or class path. It still says that policy_runner.py turns each configuration field into a flag, and that device and num_envs defaults must match its shared flags. That rule does not apply to experiment_runner.py, which does not pass those flags to the policy config.
  • in_process_policies.rst shows the replay policy as a Run's policy section. A Run with replay can leave out rollout_limit, because the Experiment Runner uses the policy's episode length. A Run with zero_action must set it.

isaaclab_arena/tests/test_concept_experiment_configs.py loads every Experiment under experiment_configs/concepts/, and loads each one again with the override its page documents. It also loads droid_pnp_variations_experiment.yaml with the tuned variation overrides, and checks that the YAML enables the HDR image and wrist-camera variations that those overrides tune. It runs without Isaac Sim. It does not check variation paths, registered object names, or whether the graph spec builds, because those are resolved only when the environment is built.

Validation

Rebased onto main at 9226352302 (2026-11-26): test_concept_experiment_configs.py passes (9 tests) in the Arena Docker container, and the docs build with -W passes.

Earlier rounds:

In the Arena Docker container, with the branch rebased onto main at c36daa6bb2:

  • Every Experiment the changed pages show composes with load_arena_experiment_from_config_file, with and without each documented override. So does a Run with the replay policy section from in_process_policies.rst and no rollout_limit.
  • runs.variations_demo.variations.light.hdr_image.enabled=false fails with "Could not override", and the + form of it leaves light.hdr_image.enabled=true as the last variation override.

Before the rebase, on base 7050ecbc9b, every Experiment ran end to end with experiment_runner.py and a 2-step limit, including heterogeneous mode, placement_seed=null, and tuned variations on the earlier variations YAML. The Lightwheel kitchen Experiment downloaded its background through the Lightwheel SDK. I did not rerun them after the rebase, and the tuned overrides on droid_pnp_variations_experiment.yaml have not run end to end.

@greptile-apps

greptile-apps Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issues remain.

Summary

Moves the concept examples from policy_runner.py commands to checked-in Experiment YAMLs run by experiment_runner.py.

  • Maple-table examples load their objects and seeds from Experiment Runs.
  • Placement examples run from Experiments, including the kitchen graph spec.
  • Variation examples tune Run settings through the Experiment Runner.
  • Concept docs map runner options to the right Run fields.

Review was based on source inspection; simulation runs were not repeated.

Reviews (2) · Last reviewed commit: "Clarify policy page rollout and flag sen..." · Reviewed by Greptile

@cvolkcvolk
cvolkcvolk marked this pull request as draft October 16, 2026 08:39
@arena-review-bot

arena-review-bot Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Isaac Lab-Arena Review Bot

Summary

This PR moves the concept-page examples from policy_runner.py to experiment_runner.py. Four new Experiment YAMLs under experiment_configs/concepts/ are included directly in the pages, and a new Phase 1 test loads them with the documented overrides. The earlier review points are addressed, and the conversion looks accurate. There is one small test suggestion below.

At review time, the image build for cffe068a3a was still running and the test and docs-build jobs had not run yet. So CI had not yet confirmed that the new test or the -W docs build passes.

Findings

🔵 Improvement: isaaclab_arena/tests/test_concept_experiment_configs.py:97: the documented tuning overrides target droid_rel_joint_pos.camera_extrinsics_wrist_camera. The test doesn't check that droid_pnp_variations_experiment.yaml still enables that path. An assert on its enabled key, like the existing HDR check, would catch an embodiment change in the shared YAML.

A possible follow-up outside this PR: parse_experiment_runner_args (isaaclab_arena/evaluation/experiment_runner_cli.py:108) builds on get_isaaclab_arena_cli_parser(). So --num_envs, --seed, --placement_seed, --presets, and --resolve_on_reset are still accepted and then ignored; of these builder settings, only --device reaches the Runs. The pages no longer show these flags, but an old command still runs with the YAML's values and no warning. The [typed-config-migration] TODO in isaaclab_arena/cli/isaaclab_arena_cli.py will eventually remove these flags from the shared parser. Until then, could the Experiment Runner reject them?

Verdict

Ship it

@cvolkcvolk
cvolkcvolk force-pushed the cvolk/docs/concepts-experiment-runner branch from 6faec5a to cffe068 Compare November 19, 2026 11:28
@cvolkcvolk
cvolkcvolk marked this pull request as ready for review November 20, 2026 16:14
The placement, solver, pooled-placement, and environment builder pages
showed policy_runner.py commands with flags. Evaluation is moving to
YAML Experiments run by experiment_runner.py, so each documented
command now has a checked-in Experiment under experiment_configs/
concepts/ and a short experiment_runner.py command.

Variants that change one value, such as heterogeneous mode or a
different set of table objects, are shown as runs.<name>.* overrides
instead of extra YAML files. Prose that named builder flags now points
to the matching environment_builder fields, because experiment_runner.py
reads those settings from the YAML.

The pooled placement and environment builder pages now share one
seeds Experiment. It keeps placement seed 7 from the environment
builder page, so the pooled placement example no longer uses placement
seed 42. That page does not depend on the value.

Signed-off-by: Clemens Volk <cvolk@nvidia.com>
The variations page listed and enabled variations with
policy_runner.py, then repeated the steps for experiment_runner.py
with a different YAML. Use one Experiment for listing, enabling, and
tuning the variations so the page shows a single workflow, and drop the
duplicate section.

The tuned control parameters are added with +runs.<name>.variations
overrides because the Run does not declare those keys. The sample
listing gets the per-Run header that experiment_runner.py prints. The
record_demos.py paragraph no longer points back to command-line tokens
on the page, so it names the token format itself.

Signed-off-by: Clemens Volk <cvolk@nvidia.com>
The policy page said registration makes a policy available to both
runners and described the flags that policy_runner.py generates from
the config. Describe how a Run's policy.type selects the policy by
registered name or class path instead.

experiment_runner.py does not pass the shared device or num_envs flags
to the policy config, so the rule that their defaults must match the
runner defaults applies only to policy_runner.py. Say so.

Signed-off-by: Clemens Volk <cvolk@nvidia.com>
The rigid object set and physics backend pages told readers to pass
--num_envs and --presets. experiment_runner.py accepts both flags
because it shares the Arena argument parser, but it ignores them: each
Run reads these values from environment_builder.num_envs and
environment_builder.presets. A reader who passes the flags to the
Experiment Runner gets no error and no effect.

Name the environment_builder fields for Experiment Runs and keep
--presets for the Environment Runner. The presets field takes the
PhysicsBackend member names PHYSX and NEWTON, so the backend selection
page lists those values. The rigid object set page does not mention
the Environment Runner, because it supports only one environment.

Signed-off-by: Clemens Volk <cvolk@nvidia.com>
Since #1467 the environment seed also fixes build-time and run-time
variation values. The comment in the seeds Experiment still said it
covers simulation randomness and run-time variation draws only, and
the variations page still named the --seed flag.

Match the comment to the env_builder page, name
environment_builder.seed on the variations page, and describe the
placement seed by the layouts it fixes.

Signed-off-by: Clemens Volk <cvolk@nvidia.com>
maple_table_variations_experiment.yaml repeated the example that main
already ships in droid_pnp_variations_experiment.yaml, which the
variations quickstart also uses. That file also sets its embodiment,
so readers can see where the droid_rel_joint_pos prefix of the
variation keys comes from.

List, enable, and tune the variations with
droid_pnp_variations_experiment.yaml and delete the extra file. It
sets num_rebuilds itself, so the pointer to the quickstart for
num_rebuilds goes away.

Signed-off-by: Clemens Volk <cvolk@nvidia.com>
The variations page implied that an entry the Run's variations field
already declares could be overridden without +. The DROID variations
Experiment writes its entries as dotted keys, such as
light.hdr_image.enabled. A plain override of that path fails with
"Could not override". The + form adds a separate nested entry, and
overrides_from_dict emits the YAML's dotted key after it, so the YAML
value wins without an error.

State that these entries must be changed in the YAML.

Signed-off-by: Clemens Volk <cvolk@nvidia.com>
The physics pages said the Environment Runner takes --presets newton.
environment_runner.py asserts that --presets is unset or physx, and it
rejects an environment whose default backend is Newton, because its
mouse interaction requires PhysX.

Say that the Environment Runner supports only PhysX on the backend
selection page. The physics configuration and env_cfg_override pages
explain how to switch the backend, so they now name only
environment_builder.presets. The backend hooks paragraph and the
environment index name presets instead of the CLI flag.

Signed-off-by: Clemens Volk <cvolk@nvidia.com>
The asset selection docs will replace concept_rigid_object_set.rst, so
this PR leaves that page as it is on main.

In the text this PR changes, describe the heterogeneous droid table Run
by the objects it places, the placement seed by the layouts it fixes,
and the num_envs note by the objects readers see.

Signed-off-by: Clemens Volk <cvolk@nvidia.com>
The in-process policies page, added after this PR started, showed
replay with policy_runner.py flags. Show the policy section of a Run
instead, like the other concept pages.

A Run with the replay policy can leave out rollout_limit, because the
Experiment Runner uses the policy's episode length when no limit is
set.

Signed-off-by: Clemens Volk <cvolk@nvidia.com>
No test loaded the Experiments under experiment_configs/concepts/ or
the overrides the concept pages show. Renaming a Run, an environment
field, or a builder field would break those pages without failing CI.

Load every concept Experiment, and load each one again with the
override its page documents. Also load
droid_pnp_variations_experiment.yaml with the tuned variation
overrides from the variations page. The test does not start Isaac Sim.
It does not check variation paths or registered object names, because
those are resolved only when the environment is built.

Signed-off-by: Clemens Volk <cvolk@nvidia.com>
in_process_policies.rst said the quickstart runs zero_action "the same
way" right after saying a replay Run can leave out rollout_limit. That
read as if a zero_action Run could too. ZeroActionPolicy has no length,
so _resolve_rollout_limit requires a limit. Say so, and say that the
quickstart Experiment sets rollout_limit.num_steps.

policy/index.rst kept the rule that device and num_envs defaults must
match the shared runner flags, but lost the reason. Say that
policy_runner.py turns each config field into a flag and that these two
fields use its shared --device and --num_envs flags instead.

Signed-off-by: Clemens Volk <cvolk@nvidia.com>
The variations page tunes droid_rel_joint_pos.camera_extrinsics_wrist_camera
with + overrides, which add the entry whether or not the YAML enables
it. Assert that droid_pnp_variations_experiment.yaml still enables it,
as the test already does for the HDR image.

Signed-off-by: Clemens Volk <cvolk@nvidia.com>
main added a Camera renderer section with a policy_runner.py command.
Like the rest of the page, it now names ArenaEnvBuilderCfg.camera_renderer
and shows the environment_builder fields of an Experiment Run.

Signed-off-by: Clemens Volk <cvolk@nvidia.com>
@cvolkcvolk
cvolkcvolk force-pushed the cvolk/docs/concepts-experiment-runner branch from cffe068 to 9b03924 Compare November 26, 2026 11:58
@cvolkcvolk
cvolkcvolk enabled auto-merge (squash) November 26, 2026 12:00
@cvolkcvolk
cvolkcvolk merged commit 6f2ce6d into main Nov 26, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants