Skip to content

Fix teleop recording success term - #7571

Merged
kellyguo11 merged 1 commit into
isaac-sim:release/3.0.0from
maxkra15:maximiliank/isaaclab-teleop-record-regex-mismatch-release-3-0-0
Sep 4, 2026
Merged

kellyguo11 merged 1 commit into
isaac-sim:release/3.0.0from
maxkra15:maximiliank/isaaclab-teleop-record-regex-mismatch-release-3-0-0

Conversation

@maxkra15

@maxkra15 maxkra15 commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • keep an inert success termination registered while record_demos evaluates the original condition manually
  • preserve reward-manager references without allowing automatic success resets during demonstration capture
  • add a Franka Reach diffik startup regression test and changelog fragment

Root cause

record_demos removed the success termination before gym.make. The Franka Reach reward configuration now references that term through is_terminated_term, so reward-manager initialization could no longer resolve the success key and raised the regular-expression mismatch.

Testing

  • verified the new regression test fails with the original behavior and the reported success: [] error
  • verified the regression test passes with the fix
  • uv run --frozen --extra teleop --with pytest python -m pytest source/isaaclab/test/cli/test_teleop_entrypoints.py -q
  • ./isaaclab.sh -f

Keep an inert success termination registered while record_demos evaluates
the original condition manually. This preserves reward-manager references
without allowing automatic success resets during demonstration capture.

Add a startup regression test for the Franka Reach diffik workflow.
@maxkra15
maxkra15 requested a review from a team September 4, 2026 13:13
@github-actions github-actions Bot added the isaac-lab Related to Isaac Lab team label Sep 4, 2026
@greptile-apps

greptile-apps Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR keeps an inert success termination registered during demonstration recording so dependent manager terms can initialize while the recorder continues evaluating the original success condition manually.

  • Adds an always-false vectorized termination callback and installs it as a placeholder.
  • Adds a Franka Reach DiffIK startup regression test covering reward references to the success term.
  • Adds a teleoperation changelog fragment describing the fix.

Confidence Score: 5/5

The PR appears safe to merge with no actionable correctness or security issues identified.

The placeholder preserves manager-term resolution without automatic success resets, while the untouched original configuration remains available for manual success detection and successful-episode export.

Important Files Changed

Filename Overview
scripts/tools/record_demos.py Preserves the success-term key with a correctly shaped always-false callback while retaining the original configuration for manual episode-success evaluation.
source/isaaclab_teleop/test/test_teleop_scripts_smoke.py Adds a Franka Reach DiffIK startup smoke test that waits until all environment managers have initialized and rejects the prior manager-term resolution error.
source/isaaclab_teleop/changelog.d/maximiliank-teleop-success-placeholder.rst Accurately documents restored demonstration recording for tasks whose rewards reference the success termination.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Original success configuration] --> B[Retain for manual evaluation]
  A --> C[Replace registered term with inert callback]
  C --> D[Initialize termination and reward managers]
  D --> E[Step teleoperated environment without automatic success reset]
  B --> F[Evaluate actual success in recording loop]
  F --> G[Mark and export successful episode]
Loading

Reviews (1): Last reviewed commit: "Fix teleop recording success term" | Re-trigger Greptile

@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

The change preserves the registered success termination key with an inert function while retaining the original term for manual demonstration-success evaluation, addressing reward-manager reference resolution without restoring automatic success resets.

  • Design and architecture: The placeholder keeps termination-manager dependencies intact while leaving success evaluation under record_demos control. This is a focused change consistent with the existing recording flow.
  • API: No public API changes were introduced. _never_terminate is script-private, create_environment_config continues returning the original success term, and the placeholder returns a boolean tensor with the expected environment count and device.
  • Implementation: The candidate concern about replace(params={}) retaining the original parameter mapping is not supported by the supplied patch or context. The regression test covers manager initialization for a Franka Reach configuration whose reward references success, and the package includes an appropriate changelog fragment. The test stops at successful environment setup rather than exercising a simulation step, which is a limited coverage tradeoff but does not establish a defect.

No blocking issues. No inline issue met the actionable-evidence threshold; the assessment above records the review feedback.

Automated review; human maintainers own approval decisions.

@AntoineRichard

Copy link
Copy Markdown
Collaborator

run-ci

@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 Sep 4, 2026
@kellyguo11
kellyguo11 changed the base branch from release/3.0.0 to develop September 4, 2026 17:20
@kellyguo11
kellyguo11 changed the base branch from develop to release/3.0.0 September 4, 2026 17:20
@kellyguo11 kellyguo11 mentioned this pull request Sep 4, 2026
6 of 8 tasks
@kellyguo11
kellyguo11 merged commit 5c610f0 into isaac-sim:release/3.0.0 Sep 4, 2026
53 checks passed
kellyguo11 added a commit that referenced this pull request Sep 4, 2026
# Description

Ports #7571 to `develop`.

`record_demos.py` removed the `success` termination before environment
initialization. The Franka Reach reward configuration references that
term through `is_terminated_term`, so reward-manager initialization
could not resolve the `success` key.

This change:

- keeps an inert `success` termination registered while demonstration
recording evaluates the original condition manually;
- preserves reward-manager references without restoring automatic
success resets;
- adds a Franka Reach DiffIK startup regression test;
- adds the `isaaclab_teleop` changelog fragment.

Release-branch counterpart: #7571.

The independent `develop` pre-commit baseline failure is split into
#7582. This PR's repository-wide pre-commit job depends on that fix
landing first.

## Type of change

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

## Release backport

- [ ] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

An explicit release PR already exists as #7571, so no additional
automated backport is requested.

## Screenshots

Not applicable.

## Testing

- Focused pre-commit checks passed for all three changed files.
- `uv run --no-project python tools/changelog/cli.py check
--include-worktree` passed.
- `git diff --check upstream/develop...HEAD` passed.
- The simulator smoke test cannot run locally because the project
lockfile does not support the current Apple Silicon macOS host; it is
included for Linux CI.
- The repository-wide pre-commit baseline is repaired separately by
#7582.

## Checklist

- [x] I have read and understood the contribution guidelines
- [ ] I have run the full repository-wide pre-commit checks (blocked on
#7582)
- [x] Documentation changes are not required because no public API
changed
- [x] My changes generate no new warnings
- [x] I have added a test that proves the teleop fix is effective
- [x] I have added the `isaaclab_teleop` changelog fragment
- [x] Maximilian Krause already appears in `CONTRIBUTORS.md`

Co-authored-by: Maximilian Krause <[email protected]>
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.

4 participants