From 6a7d141e9a9d30dbfd4d6372e2a778e89ec4b6cc Mon Sep 17 00:00:00 2001 From: Frank Lai Date: Sun, 4 Oct 2026 11:36:09 -0700 Subject: [PATCH 1/3] Clarify LEAPP policy export and deployment documentation --- .../exporting_policies_with_leapp.rst | 80 +++++++++---------- 1 file changed, 37 insertions(+), 43 deletions(-) diff --git a/docs/source/policy_deployment/05_leapp/exporting_policies_with_leapp.rst b/docs/source/policy_deployment/05_leapp/exporting_policies_with_leapp.rst index d1752232cde4..9cc4d2212b9e 100644 --- a/docs/source/policy_deployment/05_leapp/exporting_policies_with_leapp.rst +++ b/docs/source/policy_deployment/05_leapp/exporting_policies_with_leapp.rst @@ -1,42 +1,49 @@ -Deploy Policies with LEAPP -========================== +Exporting Policies with LEAPP +=============================== .. currentmodule:: isaaclab +.. role:: leapp-export-benefit + +.. raw:: html + + + This guide covers how to export and deploy trained reinforcement learning policies from Isaac Lab using `LEAPP `__ (Lightweight Export Annotations for Policy Pipelines). The main goal of the LEAPP export path is to package a policy together with the input and output -semantics needed for deployment, so downstream users do not need to reimplement Isaac Lab -observation preprocessing, action postprocessing, or recurrent-state handling by hand. +semantics needed for deployment, :leapp-export-benefit:`so downstream users do not need to reimplement Isaac Lab +observation preprocessing, action postprocessing, or recurrent-state handling by hand.` The Isaac Lab LEAPP exporter traces the data flowing between the policy and the simulation, capturing the operations applied along the way. It also embeds semantic metadata for the exported -policy inputs and outputs. Isaac Lab can consume these exports through :class:`~envs.LeappDeploymentEnv`. - -Supported Workflows -------------------- +policy inputs and outputs. Isaac Lab can consume these exports through :class:`~envs.LeappDeploymentEnv` +for deployment in simulation. You can also deploy LEAPP-exported policies directly on real robots through ROS using +`Isaac ROS Deploy `__ +or build your own deployment orchestration by parsing the YAML. -**Manager-based RL environments:** The standard export and deployment workflow supports manager-based RL environments -(``ManagerBasedRLEnv``) trained with ``rsl_rl``, ``rl_games``, ``skrl``, or -``sb3``. It exports the policy from a manager-based environment and -deploys it through :class:`~envs.LeappDeploymentEnv`. +.. figure:: https://download.isaacsim.omniverse.nvidia.com/isaaclab/images/ur10_sim_vs_real.gif + :width: 100% + :align: center + :alt: Side-by-side UR10 reaching motions in Isaac Lab on the left and on a physical robot on the right. -**Physics backend:** The manager-based exporter relies on the environment's manager interfaces and does -not select a physics backend itself. This includes **Newton** for tasks that expose a Newton -preset. The LEAPP integration test creates an RSL-RL ``Isaac-Humanoid`` checkpoint and exports it -with **Isaac Sim PhysX** (``presets=isaacsim_physx``) and **Newton MJWarp** -(``presets=newton_mjwarp``). When its optional runtime is installed, the same test also covers -**OV PhysX** (``presets=ovphysx``). + A LEAPP-exported UR10e reaching policy deployed on a physical robot. -You do not need to specify a preset when using the task's default backend. To select a backend, -append its ``presets=`` argument to both the training and export commands. Use the -same preset for both commands so the export recreates the environment configuration used by the -checkpoint. +Supported Workflows +------------------- -**Direct RL environments:** ``DirectRLEnv`` environments can be exported with the RSL-RL workflow -after you add LEAPP annotations; see the advanced -:doc:`Direct workflow export guide `. -They are not supported by :class:`~envs.LeappDeploymentEnv`. +- **Manager-based RL environments:** Export policies trained with ``rsl_rl``, ``rl_games``, + ``skrl``, or ``sb3`` and run them in Isaac Lab with :class:`~envs.LeappDeploymentEnv`. +- **Direct RL environments:** Export RSL-RL policies after adding LEAPP annotations; see the + :doc:`Direct workflow export guide `. + These policies are not supported by :class:`~envs.LeappDeploymentEnv`. +- **Physics backends:** Export with Isaac Sim PhysX, Newton MJWarp, or OV PhysX, as supported + by your task. Use the same backend and configuration as training. .. toctree:: :hidden: @@ -100,10 +107,8 @@ checkpoint (or at a custom path). The directory contains: state or last action. - **A graph visualization** — a ``.png`` diagram of the pipeline (can be disabled). -The important outcome for Isaac deployment workflows is that the exported artifact preserves the -same dataflow that was used during training and inference inside Isaac Lab. That means downstream -consumers can run the policy without reconstructing observation ordering, command wiring, actuator -targets, or policy feedback loops themselves. +The exported artifact encapsulates the policy and all observation preprocessing and action +postprocessing performed in Isaac Lab, so deployment frameworks do not need to replicate that logic. For a detailed description of LEAPP's generated artifacts and APIs, refer to the `LEAPP documentation `_. @@ -244,8 +249,7 @@ backend-specific and AppLauncher arguments: exporters, but a published artifact is not available for every task and backend combination. If no matching artifact has been published, the exporter reports that it is unavailable and exits. Train the task locally and omit ``--checkpoint`` for automatic discovery, or pass an - explicit checkpoint path. See :ref:`pretrained-checkpoints` for the publication scope and the - command that lists the targeted task matrix. + explicit checkpoint path. See :ref:`pretrained-checkpoints` for checkpoint availability. How It Works (High Level) @@ -276,7 +280,7 @@ configuration are needed. - **Critical traced operations should avoid unsupported third-party libraries.** PyTorch operations are the best-supported path. NumPy conversions inside the traced node can be captured when they do not cross the graph boundary, but external library calls may not be - traceable. Warp operations will be supported in the future by this export path. + traceable. This export path does not currently support Warp operations. Verifying an Export @@ -305,16 +309,6 @@ For details on ONNX, JIT, and PT2 export formats, see the `LEAPP export guide `__. -Recurrent Policies -^^^^^^^^^^^^^^^^^^ - -LSTM recurrent policies are supported automatically. The exporters detect actor-side LSTM -state for RSL-RL, RL-Games, skrl, and Stable-Baselines3 policies, register it as LEAPP feedback -state, and ensure it appears in the ``feedback_flow`` section of the output YAML. The initial -hidden state values are saved in the ``.safetensors`` file. Other recurrent architectures are -not currently supported by these exporters. - - To run an exported policy in Isaac Lab, see the :doc:`deployment guide `. From 9a612febc420ca3f04e4f879e34a6b8e599f3274 Mon Sep 17 00:00:00 2001 From: Frank Lai Date: Sun, 4 Oct 2026 12:28:01 -0700 Subject: [PATCH 2/3] Use the registered UR10 reach task name in the caption --- .../05_leapp/exporting_policies_with_leapp.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/policy_deployment/05_leapp/exporting_policies_with_leapp.rst b/docs/source/policy_deployment/05_leapp/exporting_policies_with_leapp.rst index 9cc4d2212b9e..16de0e2e5b7c 100644 --- a/docs/source/policy_deployment/05_leapp/exporting_policies_with_leapp.rst +++ b/docs/source/policy_deployment/05_leapp/exporting_policies_with_leapp.rst @@ -32,7 +32,7 @@ or build your own deployment orchestration by parsing the YAML. :align: center :alt: Side-by-side UR10 reaching motions in Isaac Lab on the left and on a physical robot on the right. - A LEAPP-exported UR10e reaching policy deployed on a physical robot. + A LEAPP-exported ``Isaac-Reach-UR10`` policy deployed on a physical robot. Supported Workflows ------------------- From 7716798f61f7ab618d8364e92f55366a996311d4 Mon Sep 17 00:00:00 2001 From: Frank Lai Date: Tue, 6 Oct 2026 15:14:55 -0700 Subject: [PATCH 3/3] Simplify LEAPP export page formatting --- .../05_leapp/exporting_policies_with_leapp.rst | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/docs/source/policy_deployment/05_leapp/exporting_policies_with_leapp.rst b/docs/source/policy_deployment/05_leapp/exporting_policies_with_leapp.rst index f70b244cb2c7..9cca6f218732 100644 --- a/docs/source/policy_deployment/05_leapp/exporting_policies_with_leapp.rst +++ b/docs/source/policy_deployment/05_leapp/exporting_policies_with_leapp.rst @@ -1,24 +1,13 @@ Exporting Policies with LEAPP -=============================== +============================= .. currentmodule:: isaaclab -.. role:: leapp-export-benefit - -.. raw:: html - - - This guide covers how to export and deploy trained reinforcement learning policies from Isaac Lab using `LEAPP `__ (Lightweight Export Annotations for Policy Pipelines). The main goal of the LEAPP export path is to package a policy together with the input and output -semantics needed for deployment, :leapp-export-benefit:`so downstream users do not need to reimplement Isaac Lab -observation preprocessing, action postprocessing, or recurrent-state handling by hand.` +semantics needed for deployment, so downstream users do not need to reimplement Isaac Lab +observation preprocessing, action postprocessing, or recurrent-state handling by hand. The Isaac Lab LEAPP exporter traces the data flowing between the policy and the simulation, capturing the operations applied along the way. It also embeds semantic metadata for the exported