Repository navigation
Run concept page examples as Experiments - #1463
Conversation
[Low impact] The PR appears safe to merge; no actionable issues remain. SummaryMoves the concept examples from
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 |
🤖 Isaac Lab-Arena Review BotSummaryThis PR moves the concept-page examples from At review time, the image build for Findings🔵 Improvement: isaaclab_arena/tests/test_concept_experiment_configs.py:97: the documented tuning overrides target A possible follow-up outside this PR: VerdictShip it |
6faec5a to
cffe068
Compare
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>
cffe068 to
9b03924
Compare
Run the concept-page examples with
experiment_runner.pyand checked-in Experiment YAMLs instead ofpolicy_runner.py. Where these pages named runner flags, name the matchingenvironment_builderandpolicyfields of a Run instead.Why this change?
Evaluation is moving from
policy_runner.pytoexperiment_runner.py, which reads each evaluation from an Experiment YAML file. The concept pages still showedpolicy_runner.pycommands with flags such as--num_envs,--placement_seed,--presets, and--additional_table_objects.experiment_runner.pyaccepts the shared builder flags because it uses the Arena argument parser, but it ignores them: each Run reads these values from itsenvironment_buildersection. 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 aruns.additional_objects.environment.additional_table_objects=[...]override to try other objects.maple_table_seeds_experiment.yaml(env_builder.rstandpooled_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.rstnow 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 overrideruns.multi_object_placement.environment.mode=heterogeneous.kitchen_bench_robot_placement_experiment.yaml(solver.rst), which selects the graph speckitchen_bench/kitchen_bench_lightwheel_pick_and_place.yamlby its path inenvironment.type.variations.rstnow lists, enables, and tunes variations withdroid_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 aslight.hdr_image.enabled: the plain override fails with "Could not override", and the+form loses to the YAML's dotted key inoverrides_from_dict. The--list_variationssample keeps main'spick_up_objectlisting and adds the per-Run header thatexperiment_runner.pyprints.Other pages:
env_builder.rst,pooled_placement.rst, andvariations.rstnameenvironment_builder.seed,placement_seed,solve_relations, andresolve_on_resetinstead of the runner flags.environment_builder.presets(PHYSXorNEWTON).physics_backend_selection.rstsays the Environment Runner supports only PhysX, becauseenvironment_runner.pyrejects--presets newtonand Newton environments.physics_backend_selection.rstnamesArenaEnvBuilderCfg.camera_rendererand keeps its Experiment YAML, without thepolicy_runner.pycommand.policy/index.rstdescribes howpolicy.typeselects a policy by registered name or class path. It still says thatpolicy_runner.pyturns each configuration field into a flag, and thatdeviceandnum_envsdefaults must match its shared flags. That rule does not apply toexperiment_runner.py, which does not pass those flags to the policy config.in_process_policies.rstshows thereplaypolicy as a Run'spolicysection. A Run withreplaycan leave outrollout_limit, because the Experiment Runner uses the policy's episode length. A Run withzero_actionmust set it.isaaclab_arena/tests/test_concept_experiment_configs.pyloads every Experiment underexperiment_configs/concepts/, and loads each one again with the override its page documents. It also loadsdroid_pnp_variations_experiment.yamlwith 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.pypasses (9 tests) in the Arena Docker container, and the docs build with-Wpasses.Earlier rounds:
In the Arena Docker container, with the branch rebased onto main at
c36daa6bb2:load_arena_experiment_from_config_file, with and without each documented override. So does a Run with thereplaypolicy section fromin_process_policies.rstand norollout_limit.runs.variations_demo.variations.light.hdr_image.enabled=falsefails with "Could not override", and the+form of it leaveslight.hdr_image.enabled=trueas the last variation override.Before the rebase, on base
7050ecbc9b, every Experiment ran end to end withexperiment_runner.pyand 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 ondroid_pnp_variations_experiment.yamlhave not run end to end.