Repository navigation
More Visualizer Fixes and other General Fixes [cherrypicked on release branch] - #6066
Conversation
There was a problem hiding this comment.
🤖 Isaac Lab Review Bot
Summary
This PR adds experience-file incompatibility detection for livestream mode, ensures Kit visualizer is implicitly requested when livestreaming, refactors the tiled camera tutorial to dynamically discover ego cameras from scene configs, and adds default Kit visualizer defaults to several showcase/tutorial scripts. The changes are well-structured, well-tested, and appropriately scoped for a release-branch cherry-pick.
Design Assessment
Architecture: The separation of concerns is clean — AppLauncher._resolve_experience_file handles the static experience-file validation at startup, while sim_launcher._ensure_livestream_kit_visualizer handles the dynamic runtime injection at launch_simulation time. This avoids circular dependencies between the core isaaclab package and isaaclab_tasks.
Tiled camera tutorial: The refactoring to pass env_cfg into _make_kit_visualizer_cfg / _make_newton_visualizer_cfg and dynamically resolve ego_cam is a good pattern — it makes the tutorial work correctly across different tasks rather than hardcoding robot-specific camera paths.
Default visualizers in scripts: Using parser.set_defaults(visualizer=["kit"]) is the correct argparse pattern — it sets a default without overriding explicit CLI arguments.
Findings
🟡 Warning: Cross-package test import creates coupling
source/isaaclab/test/app/test_kwarg_launch.py:12 imports _ensure_livestream_kit_visualizer from isaaclab_tasks.utils.sim_launcher. This creates a test dependency from the core isaaclab package tests on the higher-level isaaclab_tasks package. If these test suites are ever run in isolation (e.g., only isaaclab is installed), these tests will fail with an ImportError. Consider either:
- Moving these two tests to
source/isaaclab_tasks/test/, or - Adding a
pytest.importorskip("isaaclab_tasks")guard.
🔵 Suggestion: _experience_depends_on_isaacsim_exp_full could handle missing files gracefully
The static method opens the file without a try/except. While in practice _resolve_experience_file already validates the file exists before calling this method, a defensive FileNotFoundError handler or a docstring note clarifying the precondition would be clearer for future maintainers.
🔵 Suggestion: Newton fallback in tiled camera tutorial uses glob-style path inconsistently
In run_tiled_camera_visualizer.py, the Newton fallback (when no ego_cam is found) uses "/World/envs/*/Robot/base" as tiled_cam_target_prim_path with a shell-glob *, while other paths in the file use regex pattern env_.*. If the visualizer backend expects regex patterns here, this may silently not match. Verify whether * vs env_.* is intentional for the target prim path.
Test Coverage
Good coverage for the new functionality:
- ✅
test_livestream_injects_kit_visualizer_when_missing— verifies automatic Kit injection - ✅
test_livestream_rejects_disabled_visualizers— verifies the error case when user explicitly disables - ✅
test_rejects_isaacsim_full_streaming_experience_with_livestream— core incompatibility detection - ✅
test_rejects_custom_experience_with_isaacsim_full_dependency_and_livestream— multi-dependency case - ✅
test_allows_isaacsim_full_streaming_experience_when_livestream_disabled— negative case (no false positive)
Gap: No test for the case where LIVESTREAM is set via environment variable (rather than CLI arg) in _ensure_livestream_kit_visualizer. The env-fallback path in _get_livestream_mode is untested.
CI Status
| Check | Status |
|---|---|
| pre-commit | ❌ Failed |
| Build Wheel | ✅ Pass |
| Check for Broken Links | ✅ Pass |
| Installation Tests | ⏳ Pending |
| Docker Builds | ⏳ Pending |
| Changelog fragments | ⏳ Pending |
The pre-commit failure should be investigated — it may indicate formatting issues that need to be addressed before merge.
Verdict
Minor fixes needed — The core logic is sound and well-tested. The cross-package test import (🟡) is the main structural concern worth addressing. The pre-commit CI failure needs resolution.
🔄 Update (commit 7fc7104)
New commits reviewed: 37aa766 → 7fc7104
Changes in new commits:
- Added blank line formatting fix in
test_kwarg_launch.py(whitespace only) - Added changelog fragment
mtrepte-tiled-camera-visualizer-tutorial.rst
Previous concerns status: None addressed in these commits (the cross-package test import
New issues: None — these are trivial formatting/documentation changes.
No action needed on these specific commits.
🔄 Update (commit 3cc1566)
New commit reviewed: 7fc7104 → 3cc1566 ("fix script")
Changes:
scripts/tutorials/00_sim/set_rendering_mode.py: Addedadd_remote_usd_reference()helper to load remote USD references without localizing through the temp asset cache; changed defaultrendering_modefrom"performance"to"balanced"; replacedsim_utils.UsdFileCfgpattern with direct reference addition.
Previous concerns status: All previous suggestions (cross-package test import, regex backreference, glob pattern, livestream guard ordering) remain open — not addressed in this commit.
New issues: None. The new helper function is clean, well-documented, and the rendering mode change is a reasonable default for a tutorial script.
🔄 Update (commit d8aaba7)
New commits reviewed: 3cc1566 → d8aaba7 (15 commits)
This update is a large merge of release/3.0.0-beta2 into the feature branch, bringing in extensive release-preparation fixes.
Key changes:
-
COMPASS docs refactored (
d3ee8a4): The tutorial content moved to the COMPASS repo handbook; the Isaac Lab docs now redirect users there. -
MDL module dependency fix (
d40ad54): Extended_find_asset_dependencies()to parse MDL relative imports (e.g.,import .::OmniUe4Function;), fixing local asset retrieval for Hospital materials that import sibling modules. -
Quadruped tutorial noise import fix (
876fdd8): ChangedAdditiveUniformNoiseCfg→UniformNoiseCfgimport alias. -
Environment destructor shutdown guard (
97b4210): All three env base classes (DirectRLEnv,DirectMARLEnv,ManagerBasedEnv) now checksys.meta_path is not Nonebefore cleanup to avoid tracebacks during Python shutdown. Also starts_is_closed=Trueuntil init completes. -
AutoMate fixes (
3aa2083,fc6e8c8): Increased PhysXgpu_collision_stack_sizeto 2²⁷; replaced Numba-based SoftDTW with pure Torch implementation (removes Numba dependency); added assembly ID validation to reject placeholderASSEMBLY_ID. -
Lula discovery for pip installs (
90c86c7): Extendedfind_lula_prebundle_dir()to searchextscache/andextsDeprecated/layouts used by pip-based Isaac Sim; adds prebundle tosys.pathbefore attempting Kit extension enable. -
Newton site frame camera pose fix (
1ba9842): Fixed incorrect camera pose calculation inNewtonSiteFrameViewby properly extracting the instance suffix. -
Galbot isaacteleop optional (
4597a2c): Guardsisaacteleopimport in Galbot stack configs so keyboard/spacemouse teleoperation works whenisaacteleopis not installed (e.g., DGX Spark). -
Docker non-root volume docs (
b3f8fcf): Added attention blocks in docker.rst and cloudxr_teleoperation.rst explaining uid/gid 1000 permission issues. -
skrl JAX multihost import (
d03dae2): Preloadsjax.experimental.multihost_utilsto fix import failure on recent JAX versions. -
Kit wheeled robots optional (
9fc9988): Markedisaacsim.robot.experimental.wheeled_robotsandisaacsim.robot.wheeled_robots.nodesas optional inisaaclab.python.kit. -
LEAPP RSL-RL recurrent policy fix (
1a88953): Refactored hidden state helpers to support RSL-RL 5.x RNNModel API; addedRSL_RL_MIN_VERSIONcheck. -
LEAPP docs improvements (
97777cf): Added explicit--viz kitexample to LEAPP deployment docs. -
Changelog compilation (
aafb977): Auto-compiled changelog fragments into version 6.1.5/0.13.2/0.4.1/1.1.2/1.10.4.
Previous concerns status:
- Cross-package test import warning (🟡) — not addressed in these commits
- All documentation/suggestion items remain open
New issues: None — these are well-scoped release-prep fixes with appropriate test coverage (e.g., test_env_destructors.py, test_automate_soft_dtw.py, test_rsl_rl_export_flow.py additions).
CI Status: Should be re-evaluated after this merge.
|
|
||
| import isaaclab.app.app_launcher as app_launcher_module | ||
| from isaaclab.app import AppLauncher | ||
| from isaaclab_tasks.utils.sim_launcher import _ensure_livestream_kit_visualizer |
There was a problem hiding this comment.
🟡 Cross-package test dependency: This imports a private function from isaaclab_tasks into the core isaaclab test suite. If these tests run in an environment where only isaaclab is installed, they will fail with ImportError.
Consider either moving the _ensure_livestream_kit_visualizer tests to source/isaaclab_tasks/test/ or adding:
| from isaaclab_tasks.utils.sim_launcher import _ensure_livestream_kit_visualizer | |
| pytest.importorskip("isaaclab_tasks") | |
| from isaaclab_tasks.utils.sim_launcher import _ensure_livestream_kit_visualizer |
| visualizer_cfg.tiled_cam_eye = None | ||
| visualizer_cfg.tiled_cam_target_prim_path = None | ||
| return visualizer_cfg | ||
|
|
There was a problem hiding this comment.
🔵 Glob vs regex pattern: This uses shell-glob * while other env paths in this file use regex env_.*. If the visualizer backend expects regex for target prim paths, this should be /World/envs/env_.*/Robot/base. If it uses USD glob semantics, this is fine — just flagging the inconsistency.
Greptile SummaryThis PR adds livestream compatibility guards, injects a Kit visualizer when livestreaming without one, raises on incompatible
Confidence Score: 3/5The Kit-injection logic lands after both the OVRTX+Kit and OvPhysX+Kit guards, meaning those guards can be silently bypassed when livestreaming implicitly adds Kit to the visualizer set. The new source/isaaclab_tasks/isaaclab_tasks/utils/sim_launcher.py — the ordering of Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[launch_simulation called] --> B{OVRTX + kit? early check}
B -- kit not in visualizer_types --> C[validate_runtime_compatibility]
B -- kit present + ovrtx --> Z1[ValueError: OVRTX+Kit crash]
C --> D{OvPhysX + Kit?}
D -- yes --> Z2[ValueError: OvPhysX+Kit invalid]
D -- no --> E[_ensure_livestream_kit_visualizer NEW]
E --> F{livestream active?}
F -- no --> G[compute_kit_requirements]
F -- yes --> H{kit already in visualizers?}
H -- yes --> G
H -- no --> I{visualizer_explicit+no kit?}
I -- yes --> Z3[ValueError: requires Kit]
I -- no --> J[inject kit - bypasses guards above]
J --> G
G --> K[Launch]
Reviews (1): Last reviewed commit: "Fix debug_v2 release launcher test port" | Re-trigger Greptile |
| validate_runtime_compatibility(env_cfg, launcher_args) | ||
| _ensure_livestream_kit_visualizer(launcher_args) | ||
| needs_kit, has_kit_cameras, visualizer_types = compute_kit_requirements(env_cfg, launcher_args) |
There was a problem hiding this comment.
_ensure_livestream_kit_visualizer called after compatibility checks
_ensure_livestream_kit_visualizer (line 388) mutates launcher_args.visualizer by injecting "kit", but both guarding checks — the early OVRTX+Kit crash check (lines 373–385) and validate_runtime_compatibility (line 387) — read launcher_args before that mutation.
Concrete failure: a user running an OvPhysX or OVRTX task with livestream enabled and no --viz kit passes both guards (no "kit" in visualizer set yet), then gets Kit injected post-validation. compute_kit_requirements returns needs_kit=True, Kit launches, and the incompatible combination those guards were written to block is assembled silently.
Moving _ensure_livestream_kit_visualizer(launcher_args) to before line 373 would let both guards see the final visualizer set.
| with open(experience_file, encoding="utf-8") as file: | ||
| return re.search(r'^\s*["\']isaacsim\.exp\.full["\']\s*=', file.read(), re.MULTILINE) is not None |
There was a problem hiding this comment.
The regex uses independent character classes
["\'] for opening and closing quote, so it matches mismatched pairs like "isaacsim.exp.full'. A backreference enforces that both delimiters are the same character.
| with open(experience_file, encoding="utf-8") as file: | |
| return re.search(r'^\s*["\']isaacsim\.exp\.full["\']\s*=', file.read(), re.MULTILINE) is not None | |
| with open(experience_file, encoding="utf-8") as file: | |
| return re.search(r"""^\s*(['"])isaacsim\.exp\.full\1\s*=""", file.read(), re.MULTILINE) is not None |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
|
@matthewtrepte could you link which PRs are related to this cherry picking? |
Linked PR: #5977 |
Description
Linked PR: #5977
Type of change
Screenshots
Please attach before and after screenshots of the change if applicable.
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there