Skip to content

Run the teleop scripts without Kit when nothing needs it - #8828

Merged
ooctipus merged 1 commit into
isaac-sim:mainfrom
rwiltz:rwiltz/teleop-without-kit
Oct 26, 2026
Merged

ooctipus merged 1 commit into
isaac-sim:mainfrom
rwiltz:rwiltz/teleop-without-kit

Conversation

@rwiltz

@rwiltz rwiltz commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Description

Depends on #8797; only the last commit is new until it merges.

teleop_se3_agent.py and record_demos.py set require_kit = True because their input devices and RTX settings used Kit APIs. Since #8797, keyboard, gamepad and SpaceMouse run through Isaac Capture
and read the visualizer windows, so the scripts no longer set require_kit and let launch_simulation decide. --xr (the launcher adds a Kit visualizer for it), PhysX, Isaac RTX cameras and the Kit
visualizer 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 as newton_rtx.

  • The RTX/DLSS settings and record_demos.py's instruction window apply only when Kit is running. Without Kit, recording progress is printed to the console.
  • IsaacTeleopDevice failed to start when Isaac Sim was installed but Kit was not running: carb imports, but its settings interface does not exist. The XR anchor settings and the CloudXR GPU pinning
    now 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=diffik

Type of change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)

Testing

Keyboard teleop with both scripts:

  • No Kit, Reach with Newton physics: --viz newton_rtx, and --viz newton_gl for record_demos.py. Kit stays off and the keyboard attaches to the Newton window.
  • Kit: --viz kit on Lift, --viz newton_gl on Lift (PhysX still starts Kit), no --viz, and --xr (checked that Kit starts; no headset).

Known issue, not introduced here (reproduces on main and without teleop): with Newton GL and Newton physics, env.sim.reset() fails to redraw command markers (connecting_line not found), and the
visualizer is removed. record_demos.py calls it by default, so use --no-reset_sim_buffer_each_episode with newton_gl until that is fixed.

Checklist

Docker and GPU tests run on demand. Push the commits you want tested, then
comment run-ci on the pull request.

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with uv run isaaclab --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have validated the changed behavior with focused coverage and applied the test-audit criteria to any test changes
  • 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)
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@rwiltz
rwiltz requested a review from a team October 26, 2026 15:17
@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team infrastructure labels Oct 26, 2026
@greptile-apps

greptile-apps Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[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

  1. P1 Saved demos miss final steps ▶

Summary

The scripts now let the launcher decide whether Kit is needed.

  • Teleoperation and demo recording can run without Kit when they do not need it.
  • Isaac Capture checks that Kit is running before using Kit settings.

Reviews (2) · Last reviewed commit: "Run the teleop scripts without Kit when ..." · Reviewed by Greptile

Comment thread scripts/tools/record_demos.py Resolved

@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: 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.

Comment thread scripts/tools/record_demos.py Resolved
Comment thread scripts/tools/record_demos.py Resolved
@rwiltz
rwiltz force-pushed the rwiltz/teleop-without-kit branch 2 times, most recently from ea0fe68 to 233db5b Compare October 26, 2026 19:54
@github-actions github-actions Bot added the isaac-mimic Related to Isaac Mimic team label Oct 26, 2026
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
rwiltz force-pushed the rwiltz/teleop-without-kit branch from 233db5b to 048aefc Compare October 26, 2026 21:30
@rwiltz

rwiltz commented Oct 26, 2026

Copy link
Copy Markdown
Contributor Author

@greptile

@ooctipus

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 Oct 26, 2026
@rwiltz

rwiltz commented Oct 26, 2026

Copy link
Copy Markdown
Contributor Author

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 Oct 26, 2026
@rwiltz
rwiltz enabled auto-merge (squash) October 26, 2026 21:56
@ooctipus
ooctipus disabled auto-merge October 26, 2026 22:05
@ooctipus
ooctipus enabled auto-merge (squash) October 26, 2026 22:06

@hougantc-nvda hougantc-nvda 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.

LGTM

@ooctipus
ooctipus merged commit a8ae4d4 into isaac-sim:main Oct 26, 2026
62 of 93 checks passed
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation infrastructure isaac-lab Related to Isaac Lab team isaac-mimic Related to Isaac Mimic team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants