Repository navigation
Add animated Isaac Lab 3 greetings to the loading screen - #7020
AntoineRichard merged 5 commits into
Conversation
Greptile SummaryThe PR replaces hardcoded loading-screen greetings with packaged, compressed still and animated assets, adds environment-based selection and fallback behavior, and introduces authoring and preview tools.
Confidence Score: 4/5The PR appears safe to merge, with two non-blocking CLI validation issues in the animation authoring and preview tools. Runtime loading and fallback paths remain robust, while unrestricted negative frame counts can generate rejected artifacts and non-positive playback rates terminate the viewer with unhandled exceptions. Files Needing Attention: tools/gif2anim.py and tools/anim_view.py Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart LR
Source[GIF / image / procedural sprite] --> Converter[tools/gif2anim.py]
Converter --> Container[Compressed .anim container]
Container --> Package[isaaclab.app.anims]
Package --> Selection[Random or ISAACLAB_LOADING_ANIM selection]
Selection --> Loading[LoadingScreen refresh loop]
Container --> Viewer[tools/anim_view.py]
Loading --> Terminal[ANSI terminal greeting]
Viewer --> Terminal
|
|
|
||
| try: | ||
| animation = resolve(args.target) | ||
| except (KeyError, OSError) as error: |
There was a problem hiding this comment.
There was a problem hiding this comment.
Isaac Lab Review Bot
The animated greeting container, packaged assets, and render-time frame advancement are generally coherent, but two concrete issues remain: size-specific pinning can display a random greeting instead of the requested one, and shutdown still mishandles a valid start time of 0.0.
- Design and architecture: The stdlib-only runtime decoder and Pillow-dependent authoring tools are appropriately separated, and shared slot geometry keeps runtime and tooling aligned. However, retaining a random animation for the non-matching slot conflicts with the pinning design because the responsive layout may prefer that larger random asset.
- API: The documented ISAACLAB_LOADING_ANIM= contract is not consistently honored: pinning a 24x12 greeting on a wide terminal leaves a random 64x12 greeting available, which _format_header selects as the largest fitting asset. The implementation should ensure the requested greeting is displayed at every supported width or document a clear per-width limitation.
- Implementation: ANSI-aware width measurement and the None sentinel in _render and _logos are consistent with the new rendering path. The shutdown elapsed-time calculation still uses self._started or time.monotonic(), so a valid 0.0 start time produces an incorrect 0.0-second result; it should use an explicit None check.
Minor fixes needed. Posted 2 actionable findings inline.
Automated review; human maintainers own approval decisions.
| # a pinned greeting replaces whichever width it was drawn for; the other | ||
| # width keeps its random pick rather than being left empty | ||
| wanted = anims.load(pinned) | ||
| for index, slot in enumerate(anims.SLOTS): |
There was a problem hiding this comment.
🟡 Warning · Api — Pinned greeting ignored on wide terminals
Only the slot whose size matches the pinned greeting is replaced; the other keeps its random pick. _format_header then chooses max(fitting, key=_block_width), so pinning a 24x12 name on a 120+ column terminal always displays the randomly drawn 64x12 greeting instead. The changelog states the variable shows that greeting every run. Either apply the pinned art to every slot (or clear non-matching slots), or state the per-width limitation in the changelog.
| self._write(hidden) | ||
| else: | ||
| elapsed = time.monotonic() - self._started | ||
| elapsed = time.monotonic() - (self._started or time.monotonic()) |
There was a problem hiding this comment.
🔵 Suggestion · Implementation — Shutdown clock keeps falsy start-time check
_render and _logos were corrected to self._started is None, but this line still uses self._started or time.monotonic(), which treats a start time of exactly 0.0 as "not started" and reports Ready in 0.0s. That is the same falsy-zero handling the changelog fragment claims to have fixed. Use the explicit is None check here so all three sites express the condition identically.
|
Thanks both — all four findings were real and are fixed in 5508e4b. Pinned greeting ignored on wide terminals ( Worth calling out that the existing test asserted on Shutdown clock keeps falsy start-time check ( Validate playback frame rates ( Reject negative frame counts ( |
StafaH
left a comment
There was a problem hiding this comment.
I've been trying to keep loading screen very very lightweight. Can we clean up this PR for a more lightweight approach.
- We really don't need tests for loading screen related stuff, maybe 1 simple test but we don't need a whole test suite.
- Reduce files/code down to more lightweight.
StafaH
left a comment
There was a problem hiding this comment.
I think we can strip out the animated from the PR and just keep the green logo. Let's do IsaacLab 3 when we have space, and IL3 when we have less space.
I think we can bring back the animated stuff, let's make a mini-lib like we said for ASCII visualizer and loading screen, and we'll re-introduce it in 3.1, and add some easter eggs for christmas/halloween
c27e18a to
dc58372
Compare
kellyguo11
left a comment
There was a problem hiding this comment.
could we quickly test this on windows to make sure it also works there? we had a QA bug with our previous implementation that caused issues on windows terminals.
) # Description This PR adds a lightweight, static greeting beside the loading-screen summary. - Retains the static Isaac Lab 3 and NVIDIA terminal artwork, selected once at random for each run. - Removes animated greetings, animation containers, environment overrides, packaging, authoring/viewer tooling, and their dedicated tests. - Removes the “The way it’s meant to be trained” tagline. - Starts the wide layout at 130 columns so the Isaac Lab 3 wordmark fits. ## Validation - `uv run isaaclab -f` - Focused loading-screen tests: 14 passed ## Checklist - [x] Added a changelog fragment. - [x] Added focused regression coverage. - [x] Updated the PR branch against current `develop`.
## Description Bundled backport to `release/3.0.0` to reduce CI load. Source PRs reviewed for this bundle: - #7020 — already represented in `release/3.0.0`; its cherry-pick was empty, so no duplicate commit was added. - #7207 - #7229 - #7227 - #7231 - #6762 - #7208 - #7168 — backports the current PR head while the source PR is still open. - #7157 - #7216 ## Type of change - Bug fix - Documentation update - Workflow / packaging update ## Checklist - [x] I have read and understood the contribution guidelines. - [x] I have run formatting checks. - [x] Documentation changes are included. - [x] Documentation build generates no new warnings. - [x] Focused regression coverage passed. - [x] Required changelog fragments are included by the source PRs. - [x] Contributors are already listed or included by the source PRs. --------- Signed-off-by: Kelly Guo <[email protected]> Co-authored-by: Mustafa H <[email protected]> Co-authored-by: Richard Lei <[email protected]> Co-authored-by: Mustafa Haiderbhai <[email protected]> Co-authored-by: Kelly Guo <[email protected]>
) # Description This PR adds a lightweight, static greeting beside the loading-screen summary. - Retains the static Isaac Lab 3 and NVIDIA terminal artwork, selected once at random for each run. - Removes animated greetings, animation containers, environment overrides, packaging, authoring/viewer tooling, and their dedicated tests. - Removes the “The way it’s meant to be trained” tagline. - Starts the wide layout at 130 columns so the Isaac Lab 3 wordmark fits. ## Validation - `uv run isaaclab -f` - Focused loading-screen tests: 14 passed ## Checklist - [x] Added a changelog fragment. - [x] Added focused regression coverage. - [x] Updated the PR branch against current `develop`. (cherry picked from commit 20f1885)


Description
This PR adds a lightweight, static greeting beside the loading-screen summary.
Validation
uv run isaaclab -fChecklist
develop.