Repository navigation
Conversation
SuperMimic's learned dynamics required environments to capture physical successors before resets and interval events on every step, so isaac-sim#9193 added final_obs_every_step to the manager-based, direct and multi-agent environments. rsl-rl-lib-extras 6.0.0.2 takes the successors of finished episodes from the regular final observations, like SAC, and the others from the returned observations; resets are handled as before and replay windows still stop at dones. Only interval edits such as pushes now enter the world model's targets, about one transition in 600 in G1 motion tracking, with no measurable effect on training. The environments return to their state before isaac-sim#9193. The SuperMimic runner configuration enables compute_final_obs instead, and the dependency moves to rsl-rl-lib-extras 6.0.0.2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Compatibility and deprecation (2), Style consistency (1). Other reviewed categories look good.
- PR description: Correct “only interval edits” to include command updates, remove the deprecation exemption, and complete supplied learning comparisons with baseline/candidate revisions, command, hardware, backend, environment count, warmup, and metrics.
- Design and architecture: Architecture looks good.
- Scope and over-engineering: No over-engineering issues.
- API: API changes look good.
- Compatibility and deprecation: Breaking changes: Removing final_obs_every_step configurations and the validity signal lacks functional compatibility, targeted warnings, migration guidance, removal guidance, and transition coverage; SuperMimic's new default also rejects supported mask-native reset overrides.
- Implementation: Implementation looks good.
- Style consistency: Deleting the isaaclab changelog fragment leaves its configuration and behavior changes undocumented; replace it with a package-local transition entry.
- Test quality: Test quality looks good.
Significant concerns. Posted 3 inline findings.
Automated review; human maintainers own approval decisions.
|
|
||
| final_obs_every_step: bool = True | ||
| """Capture physical observations before resets and interval events on every step.""" | ||
| compute_final_obs: bool = True |
There was a problem hiding this comment.
🔴 Critical · Compatibility — Keep mask-native SuperMimic resets working
This default makes DirectRLEnv.step raise whenever a mask-native reset override returns None, even without a reset; the previous SuperMimic default allowed that path. Support capture for these overrides before enabling the default.
| @@ -1 +0,0 @@ | |||
| * Added optional physical successor observations on every step in manager-based, direct single-agent and direct multi-agent environments for learned dynamics, captured before resets and interval events. | |||
There was a problem hiding this comment.
🟡 Warning · Style Consistency — Replace the isaaclab changelog fragment
Deleting this fragment leaves the changed isaaclab environment behavior without a package-local changelog entry. Replace it with a fragment describing terminal-only capture and the configuration transition.
| Currently consumed by the :class:`~isaaclab_rl.sb3.Sb3VecEnvWrapper` wrapper. | ||
| """ | ||
|
|
||
| final_obs_every_step: bool = False |
There was a problem hiding this comment.
🟡 Warning · Compatibility — Preserve every-step capture during deprecation
Removing this public field and its direct, MARL, runner, and adapter paths rejects existing configurations and removes the documented successor signal. Keep them functional with targeted warnings, migration guidance, and transition tests.
[Medium impact] The changes affect optional final-observation capture across environment types and the SuperMimic training path. Capture final observations for manual resets before merging so SuperMimic keeps the true final states of finished episodes. Findings
SummaryRemoves
Acknowledgments: Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Advance physics] --> B{Automatic episode end?}
B -->|Yes| C[Capture final observations]
C --> D[Reset finished environments]
B -->|No| E{Manual reset requested?}
D --> E
E -->|Yes| F[Mark remaining episodes finished]
F --> G[Reset without capturing final observations]
E -->|No| H[Update commands and interval events]
G --> H
H --> I[Return observations]
Reviews (1) · Last reviewed commit: "Drop the every-step final observation fl..." · Reviewed by Greptile |
| # capture the terminal observation before reset and expose it for Same-Step autoreset. | ||
| if self.cfg.compute_final_obs: | ||
| self.extras["final_obs"] = self.observation_manager.compute() |
There was a problem hiding this comment.
Manual resets lose final states
When a user requests a reset and no environment ends naturally that step, SuperMimic no longer receives the observations from before the reset. final_obs is captured only in the automatic-reset branch. The later manual-reset branch marks episodes as terminated and resets them without capturing their final observations.
Previously, every-step capture preserved these states. The returned observations now describe new episodes, leaving the finished transitions without their true successors. Capture observations before manual resets too. The direct single-agent and multi-agent paths have the same gap.
Knowledge Base Used: Environment architecture
SuperMimic's learned dynamics needed environments to capture physical successors before resets and interval events on every step, so #9193 added
final_obs_every_stepto the manager-based, direct and multi-agent environments.rsl-rl-lib-extras6.0.0.2 (leggedrobotics/rsl_rl#308) no longer needs it: the successors of finished episodes come from the regular final observations, as for SAC, and the others from the returned observations.Resets are handled as before, and replay windows still stop at dones. Only interval edits such as pushes now enter the world model's targets. In G1 motion tracking that is about one transition in 600. A comparison with and without every-step capture (3 seeds × 60 minutes per recipe) showed no measurable difference.
The environments return to their state before #9193. The SuperMimic runner configuration enables
compute_final_obsinstead, and the dependency moves torsl-rl-lib-extras6.0.0.2. The flag hasn't been released, so it is removed without deprecation.To train:
On one RTX 6000 Ada with 1024 environments, the reward rose from 0.17 to 7.4 in under 8 minutes.
🤖 Generated with Claude Code