Repository navigation
Fix teleop recording success term - #7571
Conversation
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.
Greptile SummaryThis PR keeps an inert
Confidence Score: 5/5The 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
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]
Reviews (1): Last reviewed commit: "Fix teleop recording success term" | Re-trigger Greptile |
There was a problem hiding this comment.
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_demoscontrol. This is a focused change consistent with the existing recording flow. - API: No public API changes were introduced.
_never_terminateis script-private,create_environment_configcontinues 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 referencessuccess, 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.
|
run-ci |
# 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]>
Summary
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