Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
1f9c250
Add Checkpoint Ghosts to debug and visualize policy checkpoints in th…
matthewtrepte Nov 24, 2026
8bdd163
Shorten the Checkpoint Ghosts docs
matthewtrepte Nov 24, 2026
b551f50
Reject Checkpoint Ghosts for tasks whose curriculum selects the reset…
matthewtrepte Nov 24, 2026
6aaa857
Fix checkpoint selectors in play and disable physics-randomizing rese…
matthewtrepte Nov 24, 2026
17d4389
Close the ghost session when attaching fails and tighten the controll…
matthewtrepte Nov 24, 2026
df25f84
Disable only the physics randomization reset events for ghosts
matthewtrepte Nov 24, 2026
807a8f1
Reset each ghost slice from the reference's random state
matthewtrepte Nov 24, 2026
cbedd37
Handle recurrent policies and session edge cases, keep the reference …
matthewtrepte Nov 24, 2026
aef66fb
Allow tasks whose cameras use OVRTX and explain why only RSL-RL is su…
matthewtrepte Nov 24, 2026
90dc8d0
Move the checkpoint ghost session into the visualizer package
matthewtrepte Nov 24, 2026
e12da67
Skip stale policy resets when the split changes mid-step and read run…
matthewtrepte Nov 24, 2026
fcc3f4e
Move Checkpoint Ghosts play helpers out of the RSL-RL play script
matthewtrepte Nov 24, 2026
1dd8fc9
Support Checkpoint Ghosts in rl_games, skrl, SB3, and direct environm…
matthewtrepte Nov 24, 2026
46a4132
Address review of the multi-library Checkpoint Ghosts support
matthewtrepte Nov 24, 2026
dcd4288
List every Checkpoint Ghosts limitation in the visualization docs
matthewtrepte Nov 24, 2026
7dd02c8
Comment the Checkpoint Ghosts hooks in the play scripts
matthewtrepte Nov 24, 2026
b0d41a5
Move the Checkpoint Ghosts slot count and folder into the Newton visu…
matthewtrepte Nov 24, 2026
b59bafe
Reject discrete direct actions and SB3 checkpoints without normalizat…
matthewtrepte Nov 24, 2026
2fd8191
Move the per-library Checkpoint Ghosts policy factories out of the pl…
matthewtrepte Nov 24, 2026
7596778
Trim the Checkpoint Ghosts comments and boilerplate in the play scripts
matthewtrepte Nov 24, 2026
9e7a5c6
Read Checkpoint Ghosts options from a deprecated combined Newton conf…
matthewtrepte Nov 24, 2026
4ba0236
Drop the Checkpoint Ghosts comment from the play scripts
matthewtrepte Nov 24, 2026
c744999
Accept list-form continuous action spaces for direct environments
matthewtrepte Nov 24, 2026
448c796
Merge remote-tracking branch 'origin/main' into w/n96
matthewtrepte Nov 25, 2026
0a2664d
Keep each ghost on its reference's world spacing, reject per-environm…
matthewtrepte Nov 25, 2026
d69fed5
Merge remote-tracking branch 'origin/main' into w/n96
matthewtrepte Nov 25, 2026
a9d3b9a
Merge remote-tracking branch 'origin/main' into w/n96
matthewtrepte Nov 25, 2026
e2e38cf
Merge remote-tracking branch 'origin/main' into w/n96
matthewtrepte Dec 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions docs/source/api/lab/isaaclab.visualizers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ The following classes are part of the public :mod:`isaaclab.visualizers` API.
BaseVisualizer
KeyEventSource
KeyboardSubscription
CheckpointGhostCheckpoint
CheckpointGhostController
CheckpointGhostLayout
CheckpointGhostSlot
VisualizerCfg
VisualizerBackendCfg
WindowCfg
Expand All @@ -42,6 +46,25 @@ The following classes are part of the public :mod:`isaaclab.visualizers` API.

.. autofunction:: add_key_callbacks

.. autoclass:: CheckpointGhostCheckpoint
:members:
:show-inheritance:

.. autoclass:: CheckpointGhostController
:members:
:show-inheritance:

.. autoclass:: CheckpointGhostLayout
:members:
:show-inheritance:

.. autoclass:: CheckpointGhostSlot
:members:
:show-inheritance:

.. autodata:: CHECKPOINT_GHOST_COLORS
:no-value:

.. autoclass:: VisualizerCfg
:show-inheritance:

Expand Down
31 changes: 31 additions & 0 deletions docs/source/concepts/visualization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,37 @@ without screen-sharing, running with ``--viz viser``:
The share URL is logged on startup. Rerun has no equivalent config field, but exposes its own
share button in the native UI.

**Comparing checkpoints with Checkpoint Ghosts**

Checkpoint Ghosts overlay rollouts of several checkpoints of one task in the Newton window, to see how training changed
the behavior. ``--checkpoint`` drives the reference; ghosts of other checkpoints are tinted, translucent copies that
start from the same terrain, spawn pose, and commands, so the policy is the only difference:

.. code-block:: bash

uv run isaaclab play --rl_library rsl_rl --task Isaac-Velocity-Flat-AnymalD \
--num_envs 32 --checkpoint latest --viz newton --checkpoint_ghosts

``--num_envs`` is the total simulated and is split evenly among the checkpoints shown: the reference starts with all of
them, and each checkpoint you add resizes every slot. A plain ``play`` run shows a greyed-out section that explains the
flag. The Newton backend options ``checkpoint_ghost_slots`` (default eight) and ``checkpoint_ghost_root`` set how many
checkpoints are shown at most and where the browser starts.

In the **Checkpoint Ghosts** section, **Add Checkpoint...** browses folders for the library's checkpoint files, starting in
the experiment's log directory or ``checkpoint_ghost_root``. Each ghost can be shown, changed, or removed, and has
opacity and tint under **Appearance**. The controls are disabled in the RTX view; switch the Renderer to OpenGL.

Limitations:

* Startup and interval events, curriculum terms, and action and observation noise are disabled, since they cannot be
mirrored, so the reference can look steadier than in training. Reset randomization is mirrored from torch's random
state; numpy and warp randomness is not.
* Playback with RSL-RL, rl_games, skrl (``--ml_framework torch``), and Stable-Baselines3 is supported, for
single-agent manager-based and direct environments. torchrl, rlinf, and multi-agent environments are not.
* A direct environment mirrors its reset state, but not goals or commands it resamples during an episode.
* Tasks whose curriculum selects the reset state (such as Franka Pour) are rejected at launch.
* It needs the Newton viewer, and tint and opacity need the OpenGL renderer.

**Choosing how many environments are drawn**

Every Newton viewer has a **Visible Envs** slider in its left panel that sets how many
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
* Fixed Checkpoint Ghosts copying a navigation task's relative targets from the reference. Each ghost now recomputes
``pos_command_b`` and ``heading_command_b`` from its own pose.
* Fixed Checkpoint Ghosts receiving the reference's turn command on velocity tasks that steer toward a heading. A ghost now
copies the reference's sampled velocity and heading target and derives its own yaw rate from its own heading.
* Fixed Checkpoint Ghosts holding joints the actions do not drive, such as the fingers of a reaching arm, at different
targets than the reference after a reset. A ghost now takes the reference's joint targets, so an identical
checkpoint follows the reference.
* Fixed Checkpoint Ghosts running with different reset randomization than the reference, such as per-environment mass,
friction, actuator gains, or a task's own sampled target. Each ghost slice now resets from the same random state as
the reference, so it draws the reference's values.
* Fixed the reference's episode log being overwritten by the ghost resets, and ``--checkpoint_ghosts`` failing on a task
with an observation group set to ``None``.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* Added :meth:`~isaaclab.visualizers.CheckpointGhostController.replace_ghost`, which loads a checkpoint into a given ghost
slot, and :meth:`~isaaclab.visualizers.CheckpointGhostController.apply_pending_restart`, which resets a newly added or
changed ghost while the simulation is paused.
10 changes: 10 additions & 0 deletions source/isaaclab/changelog.d/checkpoint-ghost-session.added.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
* Added :class:`~isaaclab.visualizers.checkpoint_ghost_session.CheckpointGhostSession`, which steps one environment whose
slices are driven by different checkpoints of one task. It splits the environments among the loaded checkpoints,
resets them together from the reference's state, and serves the checkpoint browser. It steps the Isaac Lab
environment itself and needs only a policy factory, so a library's play script supplies only that. RSL-RL, rl_games,
skrl, and Stable-Baselines3 playback provide it.
* Fixed the session failing with recurrent policies when a ghost is added or removed, and handled a ghost added,
changed, or removed on an empty or unknown slot, and a failed re-split, without ending the session. It reuses one
action tensor for every step.
* Fixed the session resetting policies with a stale slice size when a ghost is added or removed while the environment
steps, and a failed rollback after a failed re-split raising out of the viewer instead of returning a message.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* :class:`~isaaclab.envs.utils.checkpoint_ghost_sync.CheckpointGhostSync` now accepts an environment with more worlds than its
slices need, resets the extra worlds on their own, and restores the ghost slices' terrain placement when closed.
3 changes: 3 additions & 0 deletions source/isaaclab/changelog.d/checkpoint-ghost-sync.added.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* Added :class:`~isaaclab.visualizers.CheckpointGhostController` and its slot and checkpoint types, and
:class:`~isaaclab.envs.utils.checkpoint_ghost_sync.CheckpointGhostSync`, which keep ghost slices of one manager-based or direct
environment on the reference slice's terrain, spawn state, and commands.
Loading
Loading