Repository navigation
Run the teleop scripts without Kit when nothing needs it - #8828
Merged
Merged
Conversation
rwiltz
requested review from
AntoineRichard,
StafaH,
hougantc-nvda,
kellyguo11 and
ooctipus
as code owners
October 26, 2026 15:17
Contributor
[Medium impact] The change reaches teleoperation and demo-recording workflows. The PR still needs the earlier recording fix before merging: a paused recording can export without its final simulation steps. Findings
SummaryThe scripts now let the launcher decide whether Kit is needed.
Reviews (2) · Last reviewed commit: "Run the teleop scripts without Kit when ..." · Reviewed by Greptile |
Contributor
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Design and architecture (1), Compatibility and deprecation (1), Implementation (1), Style consistency (1), Test quality (2). Other reviewed categories look good.
- PR description: The title and body omit the final diff’s Isaac Capture dependency migration and public device APIs; update the scope and list the Kit and kitless launch validations performed.
- Design and architecture: Headless recording fabricates discarded UI labels in the script, leaving InstructionDisplay’s no-window lifecycle outside its owner; add a label-less mode there and remove the stubs.
- Scope and over-engineering: No over-engineering issues.
- API: API changes look good.
- Compatibility and deprecation: Breaking changes: native keyboard, SpaceMouse, and gamepad CLI and environment selections now require Isaac Capture without a functional fallback, targeted warning, migration period, or transition coverage.
- Implementation: The control-event reset branch duplicates
reset_recording_instance’s success guard, creating two policy owners; call the callback unconditionally. - Style consistency: The new stub import uses a magic trailing comma that Ruff will expand; apply the repository formatter before committing.
- Test quality: The added source-structure test asserts imports, paths, call counts, and keyword spelling rather than behavior; delete it and collapse the repeated missing-dependency rows.
Significant concerns. Posted 6 inline findings.
Automated review; human maintainers own approval decisions.
rwiltz
force-pushed
the
rwiltz/teleop-without-kit
branch
2 times, most recently
from
October 26, 2026 19:54
ea0fe68 to
233db5b
Compare
rwiltz
requested review from
fatimaanes,
pbarejko and
peterd-NV
as code owners
October 26, 2026 19:54
teleop_se3_agent.py and record_demos.py forced Kit so the input devices and RTX settings could use Kit APIs. Keyboard, gamepad and SpaceMouse now run through Isaac Capture and read the visualizer windows, so the scripts no longer set require_kit and let launch_simulation decide: --xr, PhysX, Isaac RTX cameras and the Kit visualizer still start Kit. This lets them run with kitless visualizers such as newton_rtx. The RTX settings and record_demos' instruction window apply only when Kit is running. IsaacTeleopDevice no longer reads or writes carb settings when carb is importable but Kit is not running. Signed-off-by: Rafael Wiltz <[email protected]>
rwiltz
force-pushed
the
rwiltz/teleop-without-kit
branch
from
October 26, 2026 21:30
233db5b to
048aefc
Compare
Contributor
Author
ooctipus
approved these changes
Oct 26, 2026
Collaborator
|
run-ci |
Contributor
Author
|
run-ci |
rwiltz
enabled auto-merge (squash)
October 26, 2026 21:56
ooctipus
disabled auto-merge
October 26, 2026 22:05
ooctipus
enabled auto-merge (squash)
October 26, 2026 22:06
7 tasks done
5 of 7 tasks
kellyguo11
pushed a commit
that referenced
this pull request
Oct 29, 2026
# Description Moves `teleop_se3_agent.py`, `record_demos.py` and `teleop_replay_agent.py` into `isaaclab_teleop.entrypoints`, following the `isaaclab_rl.entrypoints` pattern (#6553, #6793), and untangles `record_demos.py` from `isaaclab_mimic`, which is slated for deprecation. - **Entrypoints:** `run_teleop_se3_agent_cli`, `run_record_demos_cli` and `run_teleop_replay_agent_cli` take the command line without the program name. The function bodies are unchanged; the argument parsing that ran at import time becomes `_parse_args(argv)`. Git tracks the modules as renames, so review with rename detection. - **Scripts kept as thin wrappers** at their current paths (same shape as `random_agent.py`), so documented commands and the wheel staging list keep working. - **`isaaclab teleop run|record` call the entrypoints in process,** like `isaaclab train`, instead of launching the scripts. `replay` still runs `scripts/tools/replay_demos.py`, which is not moved. - **Out-of-tree tasks:** each entrypoint calls `load_external_tasks()` before parsing, so tasks registered through the `isaaclab.tasks` entry point work with the scripts and `isaaclab teleop`. - **Mimic untangled from `record_demos.py`:** - Mimic task variants (`*-Mimic-v0`) are registered only when `isaaclab_mimic` is installed. - The instruction display, whose only user was `record_demos.py`, moves from `isaaclab_mimic.ui` into the entrypoints package as a private module. - Without Kit the display has no labels and shows nothing, replacing the `SimpleNamespace` stand-ins from #8828. Notes for review: - The entrypoints import `isaaclab_tasks` without `isaaclab_teleop` declaring it. Declaring it would create a cycle, since `isaaclab_tasks` imports `isaaclab_teleop`; the import only happens when a CLI function runs. - The instruction display moves from isaaclab_mimic with its original Apache-2.0 and BSD-3-Clause notices; .pre-commit-config.yaml licenses it like the mimic files so the header hooks keep them. - The modules keep a module-level `args_cli`, so the moved functions stay unchanged. Passing it explicitly, as the RL backends do, is left for a follow-up. ## Type of change - New feature (non-breaking change which adds functionality) - Breaking change (`isaaclab_mimic.ui.instruction_display` is removed; its only user was `record_demos.py`) ## Checklist Docker and GPU tests run on demand. Push the commits you want tested, then comment `run-ci` on the pull request. - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `uv run isaaclab --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package (do **not** edit `CHANGELOG.rst` or bump package versions — CI handles that) - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Signed-off-by: Rafael Wiltz <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Depends on #8797; only the last commit is new until it merges.
teleop_se3_agent.pyandrecord_demos.pysetrequire_kit = Truebecause their input devices and RTX settings used Kit APIs. Since #8797, keyboard, gamepad and SpaceMouse run through Isaac Captureand read the visualizer windows, so the scripts no longer set
require_kitand letlaunch_simulationdecide.--xr(the launcher adds a Kit visualizer for it), PhysX, Isaac RTX cameras and the Kitvisualizer still start Kit. The remaining native devices are XR ones that need
--xr, plus Haply, which does not use Kit. The scripts can now run with kitless visualizers such asnewton_rtx.record_demos.py's instruction window apply only when Kit is running. Without Kit, recording progress is printed to the console.IsaacTeleopDevicefailed to start when Isaac Sim was installed but Kit was not running:carbimports, but its settings interface does not exist. The XR anchor settings and the CloudXR GPU pinningnow check
has_kit().Example:
./isaaclab.sh -p scripts/environments/teleoperation/teleop_se3_agent.py --task Isaac-Reach-Franka --teleop_device keyboard --viz newton_rtx physics=newton_mjwarp presets=diffikType of change
Testing
Keyboard teleop with both scripts:
--viz newton_rtx, and--viz newton_glforrecord_demos.py. Kit stays off and the keyboard attaches to the Newton window.--viz kiton Lift,--viz newton_glon Lift (PhysX still starts Kit), no--viz, and--xr(checked that Kit starts; no headset).Known issue, not introduced here (reproduces on
mainand without teleop): with Newton GL and Newton physics,env.sim.reset()fails to redraw command markers (connecting_line not found), and thevisualizer is removed.
record_demos.pycalls it by default, so use--no-reset_sim_buffer_each_episodewithnewton_gluntil that is fixed.Checklist
Docker and GPU tests run on demand. Push the commits you want tested, then
comment
run-cion the pull request.pre-commitchecks withuv run isaaclab --formatsource/<pkg>/changelog.d/for every touched package (do not editCHANGELOG.rstor bump package versions — CI handles that)CONTRIBUTORS.mdor my name already exists there