Skip to content

[Backport release/3.0.0] Make stack teleop dependency optional - #8498

Merged
kellyguo11 merged 1 commit into
isaac-sim:release/3.0.0from
kellyguo11:codex/backport-optional-teleop-release-3.0.0
Oct 12, 2026
Merged

kellyguo11 merged 1 commit into
isaac-sim:release/3.0.0from
kellyguo11:codex/backport-optional-teleop-release-3.0.0

Conversation

@kellyguo11

@kellyguo11 kellyguo11 commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Description

Backports the optional stack teleop dependency fix for NVBug 6916688.

StackEnvCfg eagerly imported the legacy XrCfg compatibility export, which forwards to the optional isaaclab_teleop package. As a result, non-teleop stack tasks such as IsaacContrib-Stack-Cube-Franka-IK-Rel-Blueprint failed during configuration loading when the base or isaacsim extras were used without teleop.

This change defers creation of the default XR configuration. It preserves the existing XR defaults when isaaclab_teleop is installed, returns None only when that package itself is unavailable, and re-raises unrelated transitive import failures. The regression test loads the exact task reported in the NVBug while deliberately blocking isaaclab_teleop.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Validation

  • ruff check on the changed Python files
  • ruff format --check on the changed Python files
  • All applicable pre-commit hooks on the changed files
  • Changelog gate against upstream/release/3.0.0
  • git diff --check
  • Python 3.12 static compilation of the changed Python files

The focused pytest test could not run locally because the release/3.0.0 lockfile supports Linux and Windows only, while the available host is macOS. PR CI is required for the runtime result.

Checklist

  • I have read and understood the contribution guidelines
  • I have run uv run isaaclab --format (the project environment rejects macOS; equivalent changed-file hooks passed)
  • Documentation is not required for this regression fix
  • My changes generate no new static warnings
  • I have validated the changed behavior with focused coverage and applied the test-audit criteria
  • I have added a changelog fragment for isaaclab_tasks
  • My name is already present in CONTRIBUTORS.md

@kellyguo11
kellyguo11 requested a review from a team October 12, 2026 20:14
@kellyguo11

Copy link
Copy Markdown
Contributor Author

run-ci

@github-actions github-actions Bot added the isaac-lab Related to Isaac Lab team label Oct 12, 2026
@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Oct 12, 2026
@greptile-apps

greptile-apps Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

[Medium impact] Makes an optional dependency truly optional in stack configuration.

The PR appears safe to merge, with a non-blocking request to cover the other XR helper outcomes.

Findings

  1. P2 Two outcomes remain untested ▶

Summary

Makes isaaclab_teleop optional when loading stack configurations.

  • Stack task configs load without the optional teleop package.

Reviews (1) · Last reviewed commit: "Make stack teleop dependency optional" · Reviewed by Greptile

Comment on lines +203 to +205
def block_teleop(name, *args, **kwargs):
if name == "isaaclab_teleop" or name.startswith("isaaclab_teleop."):
raise ModuleNotFoundError("No module named 'isaaclab_teleop'", name="isaaclab_teleop")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Two outcomes remain untested

The new test covers only a missing isaaclab_teleop package. It would still pass if _make_default_xr_cfg swallowed every missing-dependency error or changed the XR defaults.

Add cases that check the existing anchor values when the package is available and that a ModuleNotFoundError naming another dependency escapes. These are explicit promises of this fix.

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!

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isaac Lab Review Bot

Needs attention: Style consistency (1). Other reviewed categories look good.

  • PR description: Replace “defers creation of the default XR configuration” with “conditionally imports teleop,” because the default is still constructed during class definition.
  • Design and architecture: Architecture looks good.
  • Scope and over-engineering: No over-engineering issues.
  • API: API changes look good.
  • Compatibility and deprecation: No breaking changes identified.
  • Implementation: Implementation looks good.
  • Style consistency: The private helper precedes public functions and classes, violating required module ordering; replace it with a guarded _DEFAULT_XR_CFG constant in the constants section.
  • Test quality: Test quality looks good.

Minor fixes needed. Posted 1 inline finding.

Automated review; human maintainers own approval decisions.

]


def _make_default_xr_cfg() -> XrCfg | None:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Warning · Style Consistency — Private helper precedes public functions

Guide file order is constants, public functions, public classes, then private functions; this helper precedes both public functions. Replace it with a guarded _DEFAULT_XR_CFG constant in the constants section.

@kellyguo11
kellyguo11 merged commit a31b191 into isaac-sim:release/3.0.0 Oct 12, 2026
60 of 61 checks passed
kellyguo11 added a commit that referenced this pull request Oct 15, 2026
#8601)

# Description

Backports the remaining fix from #8600 for NVBug 6916688 to
`release/3.0.0`.

PR #8498 made the shared stack XR configuration optional, but
robot-specific stack configs still coupled `IsaacTeleopCfg` construction
to `env_cfg.xr`. Pick-place and locomanipulation configs also continued
to import `isaaclab_teleop` eagerly.

This backport:
- centralizes the optional-package availability check for contributed
teleop configs;
- preserves stack viewport and SO-101 leader-arm teleoperation when
`xr=None`;
- forwards `xr_cfg` only when explicitly configured;
- defers teleop, XR camera-feed, and haptic configuration imports in all
pick-place and locomanipulation configs;
- keeps G1 contact reporting enabled for always-present hand contact
sensors even without teleop; and
- dynamically covers all 31 registrations from the stack, pick-place,
and locomanipulation task packages.

No new dependencies are required.

## Type of change

- Bug fix (non-breaking change which fixes an issue)

## Screenshots

Not applicable.

## Validation

- All 31 registered stack, pick-place, and locomanipulation configs
resolve and validate with `isaaclab_teleop` blocked
- Both locomanip G1 configs retain their hand contact sensors and robot
contact reporters without teleop\n- All 31 teleop-installed config trees
match the corresponding target-branch configs
- Five representative stack configs with `xr=None` retain
`IsaacTeleopCfg` and its default XR/session config
- All seven pick-place and locomanipulation configs retain Isaac Capture
configuration with the teleop extra installed
- `uv run python -m pytest
source/isaaclab_tasks/test/core/test_env_cfg_no_forbidden_imports.py -q`
(`49 passed`)
- `uv run --extra teleop python -m pytest
source/isaaclab_tasks/test/core/test_xr_camera_feed_presets.py -q` (`6
passed`)
- `uv run isaaclab --format`
- `git diff --check`

## Checklist

- [x] I have read and understood the contribution guidelines
- [x] I have run the pre-commit checks with `uv run isaaclab --format`
- [x] Documentation changes are not required for this dependency-loading
fix
- [x] My changes generate no new warnings
- [x] I have validated the changed behavior with focused coverage and
applied the test-audit criteria
- [x] I have added a changelog fragment under
`source/isaaclab_tasks/changelog.d/`
- [x] My name already exists in `CONTRIBUTORS.md`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant