From 89c6fbda29da55d558c5efe776f2113af1a01015 Mon Sep 17 00:00:00 2001 From: Clemens Volk Date: Wed, 18 Nov 2026 12:44:12 +0100 Subject: [PATCH 1/2] Evaluate the sequential GR00T workflow with Experiments Replace the policy_runner.py commands on the sequential static manipulation evaluation page with experiment_runner.py and two new Experiment files. The multi-object step uses the asset selection variation instead of an object set, so each bottle gets its own success rate. Sample outputs come from running these Experiments on main with the pre-trained checkpoint. Signed-off-by: Clemens Volk --- .../step_5_evaluation.rst | 168 ++++++++++-------- ...nch_bottle_in_fridge_gr00t_experiment.yaml | 24 +++ ...ce_bottles_in_fridge_gr00t_experiment.yaml | 31 ++++ 3 files changed, 151 insertions(+), 72 deletions(-) create mode 100644 isaaclab_arena_environments/experiment_configs/gr1_put_ranch_bottle_in_fridge_gr00t_experiment.yaml create mode 100644 isaaclab_arena_environments/experiment_configs/gr1_put_sauce_bottles_in_fridge_gr00t_experiment.yaml diff --git a/docs/pages/example_workflows/sequential_static_manipulation/step_5_evaluation.rst b/docs/pages/example_workflows/sequential_static_manipulation/step_5_evaluation.rst index 39a88f7c6c9..c3eddf432ef 100644 --- a/docs/pages/example_workflows/sequential_static_manipulation/step_5_evaluation.rst +++ b/docs/pages/example_workflows/sequential_static_manipulation/step_5_evaluation.rst @@ -61,6 +61,10 @@ leave it running: --embodiment-tag GR1 \ --device cuda --host 127.0.0.1 --port 5555 +If you trained with the Low Hardware Requirements option in :doc:`step_4_policy_training`, pass +``checkpoint-30000`` to ``--model-path`` instead. That training also keeps ``checkpoint-20000``, which +is only two thirds of the way through training. + Step 1: Run Single Environment Evaluation ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -88,75 +92,76 @@ The Arena GR00T evaluation client is configured by a config file at ``isaaclab_a target_image_size: [512, 512, 3] -Test the policy in a single environment with visualization via the GUI run: +The evaluation itself is an :doc:`Arena Experiment <../../concepts/concept_arena_experiments>` with +one Run. It selects the environment, the ``gr1_joint`` embodiment and the ranch dressing bottle, loads +the GR00T client config above, connects the client to the server, and stops after 2000 steps. -.. code-block:: bash +.. dropdown:: Experiment file (``gr1_put_ranch_bottle_in_fridge_gr00t_experiment.yaml``): + :animate: fade-in - python isaaclab_arena/evaluation/policy_runner.py \ - --viz kit \ - --policy_type isaaclab_arena_gr00t.policy.gr00t_remote_closedloop_policy.Gr00tRemoteClosedloopPolicy \ - --policy_config_yaml_path isaaclab_arena_policies/isaaclab_arena_gr00t/policy/config/gr1_manip_ranch_bottle_gr00t_closedloop_config.yaml \ - --remote_host 127.0.0.1 \ - --remote_port 5555 \ - --num_steps 2000 \ - --enable_cameras \ - put_item_in_fridge_and_close_door \ - --embodiment gr1_joint \ - --object ranch_dressing_hope_robolab + .. literalinclude:: ../../../../isaaclab_arena_environments/experiment_configs/gr1_put_ranch_bottle_in_fridge_gr00t_experiment.yaml + :language: yaml + :lines: 6- -At the end of the evaluation, the policy runner writes the evaluation report, which shows the number of finished -episodes and the success rate for this sequential task. -Each episode's subtask completion is recorded in the ``progress`` field of its episode results record. -You should see similar results. The success rate shall be greater than 0.9, and the number of episodes should be in the range of 3-6. +Test the policy in a single environment with visualization via the GUI run: -Note that the success rate is computed over the entire evaluation process, and is affected by the quality of -post-trained policy, the quality of the dataset, and number of steps in the evaluation. +.. code-block:: bash -.. tab-set:: + python isaaclab_arena/evaluation/experiment_runner.py \ + --viz kit \ + --experiment_config isaaclab_arena_environments/experiment_configs/gr1_put_ranch_bottle_in_fridge_gr00t_experiment.yaml - .. tab-item:: Best Quality +At the end of the evaluation, the console shows the Run table with the number of recorded episodes, +the success rate, and the success rate of each subtask: placing the bottle, then closing the door. +With the pre-trained checkpoint, the output looks like this: - 5 episodes with a success rate of 1.0. +.. code-block:: text - .. tab-item:: Low Hardware Requirements + +-----------------------------------------------+-----------+-------------------------+----------+-----------+--------------+--------------+-------------------+--------------+-----------------------+ + | Run Name | Status | Policy Type | Num Envs | Num Steps | Num Episodes | Num Rebuilds | Recorded Episodes | Success Rate | Subtask Success Rates | + +-----------------------------------------------+-----------+-------------------------+----------+-----------+--------------+--------------+-------------------+--------------+-----------------------+ + | gr1_put_ranch_bottle_in_fridge_and_close_door | completed | gr00t_remote_closedloop | 1 | 2000 | None | 1 | 5 | 0.8000 | 0.8000, 0.8000 | + +-----------------------------------------------+-----------+-------------------------+----------+-----------+--------------+--------------+-------------------+--------------+-----------------------+ - Evaluated with checkpoint-30000, instead of checkpoint-20000 referenced in the policy configuration file. - 4 episodes with a success rate of 0.75. +The rates cover all episodes that finish within the 2000 steps. They depend on the quality of the +post-trained policy, the quality of the dataset, and the number of steps in the evaluation, and they +vary between evaluations, especially with few episodes. Step 2: Run Parallel environments Evaluation ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -Parallel evaluation of the policy in multiple parallel environments is also supported by the policy runner. +The same Experiment can evaluate the policy in several parallel environments. Set the number of +environments on the command line instead of editing the file: ``runs..=`` +changes one field of that Run. Test the policy in 10 parallel environments with visualization via the GUI run: .. code-block:: bash - python isaaclab_arena/evaluation/policy_runner.py \ + python isaaclab_arena/evaluation/experiment_runner.py \ --viz kit \ - --policy_type isaaclab_arena_gr00t.policy.gr00t_remote_closedloop_policy.Gr00tRemoteClosedloopPolicy \ - --policy_config_yaml_path isaaclab_arena_policies/isaaclab_arena_gr00t/policy/config/gr1_manip_ranch_bottle_gr00t_closedloop_config.yaml \ - --remote_host 127.0.0.1 \ - --remote_port 5555 \ - --num_steps 2000 \ - --num_envs 10 \ - --enable_cameras \ - put_item_in_fridge_and_close_door \ - --embodiment gr1_joint \ - --object ranch_dressing_hope_robolab - - -And during the evaluation, you should see the following output on the console at the end of the evaluation -indicating which environments are terminated (task-specific conditions like the microwave door is opened), -or truncated (if timeouts are enabled, like the maximum episode length is exceeded). + --experiment_config isaaclab_arena_environments/experiment_configs/gr1_put_ranch_bottle_in_fridge_gr00t_experiment.yaml \ + runs.gr1_put_ranch_bottle_in_fridge_and_close_door.environment_builder.num_envs=10 + + +During the evaluation, the console shows which environments reset because their episode ended, +for example because the task finished or the episode ran out of time: .. code-block:: text - Resetting policy for terminated env_ids: tensor([7], device='cuda:0') and truncated env_ids: tensor([], device='cuda:0', dtype=torch.int64) + Resetting policy state for env_ids: tensor([5], device='cuda:0') + +At the end of the evaluation, the console shows the Run table. With 10 environments, the same number of +steps covers about ten times as many episodes as the single environment evaluation, so the success +rate is a more reliable estimate. + +.. code-block:: text -At the end of the evaluation, the evaluation report shows 50 finished episodes with a success rate of 0.98. -The success rate might not be 1.0 as more trials are being evaluated, and the number of episodes is more -than the single environment evaluation because of the parallel evaluation. + +-----------------------------------------------+-----------+-------------------------+----------+-----------+--------------+--------------+-------------------+--------------+-----------------------+ + | Run Name | Status | Policy Type | Num Envs | Num Steps | Num Episodes | Num Rebuilds | Recorded Episodes | Success Rate | Subtask Success Rates | + +-----------------------------------------------+-----------+-------------------------+----------+-----------+--------------+--------------+-------------------+--------------+-----------------------+ + | gr1_put_ranch_bottle_in_fridge_and_close_door | completed | gr00t_remote_closedloop | 10 | 2000 | None | 1 | 46 | 0.8261 | 0.8261, 0.8261 | + +-----------------------------------------------+-----------+-------------------------+----------+-----------+--------------+--------------+-------------------+--------------+-----------------------+ .. note:: @@ -168,51 +173,70 @@ than the single environment evaluation because of the parallel evaluation. ``gr1_joint`` for closed-loop policy inference. -Step 3: Multi-object Heterogeneous Evaluation -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +Step 3: Evaluate on Several Sauce Bottles +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +This step evaluates the same policy on four sauce bottles: ketchup, ranch dressing, barbecue sauce and +mayonnaise. The :ref:`asset selection ` variation makes the Run build the +scene once per bottle, in list order. All 10 parallel environments of a build use the same bottle, +and each build runs 10 of the 40 episodes. -This step demonstrates evaluation of the policy in heterogeneous environments with multiple objects. +The variation belongs to the object that the robot puts in the fridge. That object keeps the name +``ranch_dressing_hope_robolab`` from ``environment.object``, while the variation replaces its asset +with each listed bottle in turn. + +.. dropdown:: Experiment file (``gr1_put_sauce_bottles_in_fridge_gr00t_experiment.yaml``): + :animate: fade-in + + .. literalinclude:: ../../../../isaaclab_arena_environments/experiment_configs/gr1_put_sauce_bottles_in_fridge_gr00t_experiment.yaml + :language: yaml + :lines: 6- Test the policy in 10 parallel environments with visualization via the GUI run: .. code-block:: bash - python isaaclab_arena/evaluation/policy_runner.py \ - --viz kit \ - --policy_type isaaclab_arena_gr00t.policy.gr00t_remote_closedloop_policy.Gr00tRemoteClosedloopPolicy \ - --policy_config_yaml_path isaaclab_arena_policies/isaaclab_arena_gr00t/policy/config/gr1_manip_ranch_bottle_gr00t_closedloop_config.yaml \ - --remote_host 127.0.0.1 \ - --remote_port 5555 \ - --num_steps 2000 \ - --num_envs 10 \ - --enable_cameras \ - put_item_in_fridge_and_close_door \ - --embodiment gr1_joint \ - --object_set ketchup_bottle_hope_robolab ranch_dressing_hope_robolab bbq_sauce_bottle_hope_robolab mayonnaise_bottle_hope_robolab + python isaaclab_arena/evaluation/experiment_runner.py \ + --viz kit \ + --experiment_config isaaclab_arena_environments/experiment_configs/gr1_put_sauce_bottles_in_fridge_gr00t_experiment.yaml +At the end of the evaluation, the console shows the Run table over all 40 episodes, followed by the +success rate for each bottle: -Each environment has a different object spawned from the object set. The same policy is used for all those environments. -At the end of the evaluation, the evaluation report shows 30 finished episodes with a success rate of 0.87. +.. code-block:: text -The policy demonstrates robust intra-class generalization, achieving an average success rate of 86.67% -when evaluated on structurally similar sauce bottles. -While this represents a slight performance regression compared to the training object, -it indicates that the model has successfully learned geometric features common to the category rather than -just over-fitting to a single object mesh. + +------------------------------------------------+-----------+-------------------------+----------+-----------+--------------+--------------+-------------------+--------------+-----------------------+ + | Run Name | Status | Policy Type | Num Envs | Num Steps | Num Episodes | Num Rebuilds | Recorded Episodes | Success Rate | Subtask Success Rates | + +------------------------------------------------+-----------+-------------------------+----------+-----------+--------------+--------------+-------------------+--------------+-----------------------+ + | gr1_put_sauce_bottles_in_fridge_and_close_door | completed | gr00t_remote_closedloop | 10 | None | 40 | 4 | 40 | 0.6000 | 0.7000, 0.7000 | + +------------------------------------------------+-----------+-------------------------+----------+-----------+--------------+--------------+-------------------+--------------+-----------------------+ + +------------------------------------------------+---------------------------------------------+----------------------------------+----------+-----------+---------+--------------+ + | Run | Variation | Value | Episodes | Successes | Unknown | Success Rate | + +------------------------------------------------+---------------------------------------------+----------------------------------+----------+-----------+---------+--------------+ + | gr1_put_sauce_bottles_in_fridge_and_close_door | ranch_dressing_hope_robolab.asset_selection | "bbq_sauce_bottle_hope_robolab" | 10 | 5 | 0 | 50.0% | + | gr1_put_sauce_bottles_in_fridge_and_close_door | ranch_dressing_hope_robolab.asset_selection | "ketchup_bottle_hope_robolab" | 10 | 6 | 0 | 60.0% | + | gr1_put_sauce_bottles_in_fridge_and_close_door | ranch_dressing_hope_robolab.asset_selection | "mayonnaise_bottle_hope_robolab" | 10 | 5 | 0 | 50.0% | + | gr1_put_sauce_bottles_in_fridge_and_close_door | ranch_dressing_hope_robolab.asset_selection | "ranch_dressing_hope_robolab" | 10 | 8 | 0 | 80.0% | + +------------------------------------------------+---------------------------------------------+----------------------------------+----------+-----------+---------+--------------+ + +The policy was trained only on the ranch dressing bottle and succeeds with it in 8 of 10 episodes. +On each of the other three bottles it succeeds in 5 or 6 of 10 episodes, so it partly transfers to +bottles it has not seen. Step 4: Sequential Batch Evaluation ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -A sequential batch of runs, i.e. different tasks, objects, embodiments or policies, can be evaluated by the ``experiment_runner.py`` script. -It minimizes the overhead of reloading system modules and environment classes for each run while keeping the simulation application alive. -The batch is defined in an Experiment YAML file. The example below evaluates the policy on an unseen jug and on the ranch dressing bottle. +An Experiment can also hold several Runs. ``experiment_runner.py`` evaluates them one after another +in the same simulation application, and each Run reports its own success rate. +The Experiment below evaluates the policy on an unseen jug and on the ranch dressing bottle as two Runs. -.. dropdown:: Configuration file (``gr1_sequential_static_manip_gr00t_experiment.yaml``): +.. dropdown:: Experiment file (``gr1_sequential_static_manip_gr00t_experiment.yaml``): :animate: fade-in .. literalinclude:: ../../../../isaaclab_arena_environments/experiment_configs/gr1_sequential_static_manip_gr00t_experiment.yaml :language: yaml + :lines: 6- Run the batch evaluation: diff --git a/isaaclab_arena_environments/experiment_configs/gr1_put_ranch_bottle_in_fridge_gr00t_experiment.yaml b/isaaclab_arena_environments/experiment_configs/gr1_put_ranch_bottle_in_fridge_gr00t_experiment.yaml new file mode 100644 index 00000000000..92100eefa32 --- /dev/null +++ b/isaaclab_arena_environments/experiment_configs/gr1_put_ranch_bottle_in_fridge_gr00t_experiment.yaml @@ -0,0 +1,24 @@ +# Copyright (c) 2026, The Isaac Lab Arena Project Developers (https://github.com/isaac-sim/IsaacLab-Arena/blob/main/CONTRIBUTORS.md). +# All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +# Evaluate the GR00T policy from the sequential static manipulation workflow on the ranch dressing +# bottle it was trained on, in one environment for 2000 steps. +# To evaluate 10 parallel environments, add this override to the experiment_runner.py command: +# runs.gr1_put_ranch_bottle_in_fridge_and_close_door.environment_builder.num_envs=10 +runs: + gr1_put_ranch_bottle_in_fridge_and_close_door: + environment: + type: put_item_in_fridge_and_close_door + enable_cameras: true + embodiment: gr1_joint + object: ranch_dressing_hope_robolab + policy: + type: isaaclab_arena_gr00t.policy.gr00t_remote_closedloop_policy.Gr00tRemoteClosedloopPolicy + policy_config_yaml_path: isaaclab_arena_policies/isaaclab_arena_gr00t/policy/config/gr1_manip_ranch_bottle_gr00t_closedloop_config.yaml + policy_device: cuda:0 + remote_host: 127.0.0.1 + remote_port: 5555 + rollout_limit: + num_steps: 2000 diff --git a/isaaclab_arena_environments/experiment_configs/gr1_put_sauce_bottles_in_fridge_gr00t_experiment.yaml b/isaaclab_arena_environments/experiment_configs/gr1_put_sauce_bottles_in_fridge_gr00t_experiment.yaml new file mode 100644 index 00000000000..156e052281b --- /dev/null +++ b/isaaclab_arena_environments/experiment_configs/gr1_put_sauce_bottles_in_fridge_gr00t_experiment.yaml @@ -0,0 +1,31 @@ +# Copyright (c) 2026, The Isaac Lab Arena Project Developers (https://github.com/isaac-sim/IsaacLab-Arena/blob/main/CONTRIBUTORS.md). +# All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +# Evaluate the GR00T policy from the sequential static manipulation workflow on four sauce bottles. +# Asset selection builds the scene once per bottle, in list order, with the same bottle in all +# 10 parallel environments. Each build runs 10 of the 40 episodes. The variation belongs to the +# object named ranch_dressing_hope_robolab after environment.object and replaces its asset. +runs: + gr1_put_sauce_bottles_in_fridge_and_close_door: + environment: + type: put_item_in_fridge_and_close_door + enable_cameras: true + embodiment: gr1_joint + object: ranch_dressing_hope_robolab + environment_builder: + num_envs: 10 + policy: + type: isaaclab_arena_gr00t.policy.gr00t_remote_closedloop_policy.Gr00tRemoteClosedloopPolicy + policy_config_yaml_path: isaaclab_arena_policies/isaaclab_arena_gr00t/policy/config/gr1_manip_ranch_bottle_gr00t_closedloop_config.yaml + policy_device: cuda:0 + remote_host: 127.0.0.1 + remote_port: 5555 + num_rebuilds: 4 + rollout_limit: + num_episodes: 40 + variations: + ranch_dressing_hope_robolab.asset_selection.enabled: true + ranch_dressing_hope_robolab.asset_selection.registry_names: + [ketchup_bottle_hope_robolab, ranch_dressing_hope_robolab, bbq_sauce_bottle_hope_robolab, mayonnaise_bottle_hope_robolab] From a69acc78e3b80816131d36491357f551ae68f9d6 Mon Sep 17 00:00:00 2001 From: Clemens Volk Date: Wed, 18 Nov 2026 12:44:18 +0100 Subject: [PATCH 2/2] Evaluate the locomanipulation GR00T workflow with an Experiment Replace the policy_runner.py commands on the locomanipulation evaluation page with experiment_runner.py and a new Experiment file. The parallel step now keeps 1500 steps instead of 1200. An episode times out after 1500 steps, so with 1200 steps the attempts that time out never counted and the sample showed a success rate of 1.0. The device note now matches the commands, which run physics on the GPU. Signed-off-by: Clemens Volk --- .../locomanipulation/step_5_evaluation.rst | 96 +++++++++++-------- .../g1_locomanip_gr00t_experiment.yaml | 25 +++++ 2 files changed, 79 insertions(+), 42 deletions(-) create mode 100644 isaaclab_arena_environments/experiment_configs/g1_locomanip_gr00t_experiment.yaml diff --git a/docs/pages/example_workflows/locomanipulation/step_5_evaluation.rst b/docs/pages/example_workflows/locomanipulation/step_5_evaluation.rst index c180316493b..2db247ce89e 100644 --- a/docs/pages/example_workflows/locomanipulation/step_5_evaluation.rst +++ b/docs/pages/example_workflows/locomanipulation/step_5_evaluation.rst @@ -85,65 +85,77 @@ The Arena GR00T evaluation client is configured by a config file at ``isaaclab_a gr00t_embodiment_adapter: g1_wbc +The evaluation itself is an :doc:`Arena Experiment <../../concepts/concept_arena_experiments>` with +one Run. It selects the environment, the ``g1_wbc_joint`` embodiment and the brown box, loads the +GR00T client config above, connects the client to the server, and stops after 1500 steps. An episode +times out after 30 seconds, which is 1500 steps. + +.. dropdown:: Experiment file (``g1_locomanip_gr00t_experiment.yaml``): + :animate: fade-in + + .. literalinclude:: ../../../../isaaclab_arena_environments/experiment_configs/g1_locomanip_gr00t_experiment.yaml + :language: yaml + :lines: 6- + Test the policy in a single environment with visualization via the GUI run: .. code-block:: bash - python isaaclab_arena/evaluation/policy_runner.py \ + python isaaclab_arena/evaluation/experiment_runner.py \ --viz kit \ - --policy_type isaaclab_arena_gr00t.policy.gr00t_remote_closedloop_policy.Gr00tRemoteClosedloopPolicy \ - --policy_config_yaml_path isaaclab_arena_policies/isaaclab_arena_gr00t/policy/config/g1_locomanip_gr00t_closedloop_config.yaml \ - --remote_host 127.0.0.1 \ - --remote_port 5555 \ - --num_steps 1500 \ - --enable_cameras \ - galileo_g1_locomanip_pick_and_place \ - --object brown_box \ - --embodiment g1_wbc_joint - -At the end of the evaluation, the policy runner writes the evaluation report, which shows the number of finished -episodes and the success rate. You should see similar results: 1 episode with a success rate of 1.0. - -Note that the success rate is computed over the entire evaluation process, and is affected -by the quality of post-trained policy, the quality of the dataset, and number of steps in the evaluation. + --experiment_config isaaclab_arena_environments/experiment_configs/g1_locomanip_gr00t_experiment.yaml + +At the end of the evaluation, the console shows the Run table with the number of recorded episodes +and the success rate. With the pre-trained checkpoint, the output looks like this: + +.. code-block:: text + + +-----------------------------+-----------+-------------------------+----------+-----------+--------------+--------------+-------------------+--------------+ + | Run Name | Status | Policy Type | Num Envs | Num Steps | Num Episodes | Num Rebuilds | Recorded Episodes | Success Rate | + +-----------------------------+-----------+-------------------------+----------+-----------+--------------+--------------+-------------------+--------------+ + | g1_pick_and_place_brown_box | completed | gr00t_remote_closedloop | 1 | 1500 | None | 1 | 1 | 1.0000 | + +-----------------------------+-----------+-------------------------+----------+-----------+--------------+--------------+-------------------+--------------+ + +The success rate covers all episodes that finish within the 1500 steps. It depends on the quality of +the post-trained policy, the quality of the dataset, and the number of steps in the evaluation, and it +varies between evaluations, especially with few episodes. Step 2: Run Parallel Environments Evaluation ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -Parallel evaluation of the policy in multiple parallel environments is also supported by the policy runner. +The same Experiment can evaluate the policy in several parallel environments. Set the number of +environments on the command line instead of editing the file: ``runs..=`` +changes one field of that Run. Test the policy in 5 parallel environments with visualization via the GUI run: .. code-block:: bash - python isaaclab_arena/evaluation/policy_runner.py \ + python isaaclab_arena/evaluation/experiment_runner.py \ --viz kit \ - --policy_type isaaclab_arena_gr00t.policy.gr00t_remote_closedloop_policy.Gr00tRemoteClosedloopPolicy \ - --policy_config_yaml_path isaaclab_arena_policies/isaaclab_arena_gr00t/policy/config/g1_locomanip_gr00t_closedloop_config.yaml \ - --remote_host 127.0.0.1 \ - --remote_port 5555 \ - --num_steps 1200 \ - --num_envs 5 \ - --enable_cameras \ - --device cuda \ - --policy_device cuda \ - galileo_g1_locomanip_pick_and_place \ - --object brown_box \ - --embodiment g1_wbc_joint - - -And during the evaluation, you should see the following output on the console at the end of the evaluation -indicating which environments are terminated (task-specific conditions like the brown box is placed into the blue bin, -or the episode length is exceeded by 30 seconds), -or truncated (if timeouts are enabled, like the maximum episode length is exceeded). + --experiment_config isaaclab_arena_environments/experiment_configs/g1_locomanip_gr00t_experiment.yaml \ + runs.g1_pick_and_place_brown_box.environment_builder.num_envs=5 + + +During the evaluation, the console shows which environments reset because their episode ended, +for example because the brown box was placed in the blue bin or the episode ran out of time: .. code-block:: text - Resetting policy for terminated env_ids: tensor([3], device='cuda:0') and truncated env_ids: tensor([], device='cuda:0', dtype=torch.int64) + Resetting policy state for env_ids: tensor([3], device='cuda:0') + +At the end of the evaluation, the console shows the Run table. An episode ends after 1500 steps at +the latest, so every environment finishes at least one episode and the success rate also counts the +attempts that time out. Environments that finish early start a new episode, which counts only if it +also ends within the 1500 steps. + +.. code-block:: text -At the end of the evaluation, the evaluation report shows 4 finished episodes with a success rate of 1.0. -The success rate might not be 1.0 as more trials are being evaluated and randomizations are being introduced, -and the number of episodes is more than the single environment evaluation because of the parallelization. + +-----------------------------+-----------+-------------------------+----------+-----------+--------------+--------------+-------------------+--------------+ + | Run Name | Status | Policy Type | Num Envs | Num Steps | Num Episodes | Num Rebuilds | Recorded Episodes | Success Rate | + +-----------------------------+-----------+-------------------------+----------+-----------+--------------+--------------+-------------------+--------------+ + | g1_pick_and_place_brown_box | completed | gr00t_remote_closedloop | 5 | 1500 | None | 1 | 6 | 0.5000 | + +-----------------------------+-----------+-------------------------+----------+-----------+--------------+--------------+-------------------+--------------+ .. note:: @@ -156,5 +168,5 @@ and the number of episodes is more than the single environment evaluation becaus .. note:: - The policy was trained on datasets generated using CPU-based physics, therefore the evaluation uses ``--device cpu`` to ensure physics reproducibility. - If you have GPU-generated datasets, you can switch to using GPU-based physics for evaluation by providing the ``--device cuda`` flag. + The training dataset was generated with CPU physics, while the commands above run physics on the GPU, + the default device. To evaluate with CPU physics instead, add ``--device cpu``. diff --git a/isaaclab_arena_environments/experiment_configs/g1_locomanip_gr00t_experiment.yaml b/isaaclab_arena_environments/experiment_configs/g1_locomanip_gr00t_experiment.yaml new file mode 100644 index 00000000000..2f342a5991b --- /dev/null +++ b/isaaclab_arena_environments/experiment_configs/g1_locomanip_gr00t_experiment.yaml @@ -0,0 +1,25 @@ +# Copyright (c) 2026, The Isaac Lab Arena Project Developers (https://github.com/isaac-sim/IsaacLab-Arena/blob/main/CONTRIBUTORS.md). +# All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +# Evaluate the GR00T policy from the locomanipulation workflow on picking up the brown box and placing +# it in the bin, in one environment for 1500 steps. An episode times out after 30 s, which is +# 1500 steps, so every environment finishes at least one episode. +# To evaluate 5 parallel environments, add this override to the experiment_runner.py command: +# runs.g1_pick_and_place_brown_box.environment_builder.num_envs=5 +runs: + g1_pick_and_place_brown_box: + environment: + type: galileo_g1_locomanip_pick_and_place + enable_cameras: true + embodiment: g1_wbc_joint + object: brown_box + policy: + type: isaaclab_arena_gr00t.policy.gr00t_remote_closedloop_policy.Gr00tRemoteClosedloopPolicy + policy_config_yaml_path: isaaclab_arena_policies/isaaclab_arena_gr00t/policy/config/g1_locomanip_gr00t_closedloop_config.yaml + policy_device: cuda:0 + remote_host: 127.0.0.1 + remote_port: 5555 + rollout_limit: + num_steps: 1500