isaaclab_teleop#
Package providing Isaac Capture-based teleoperation for Isaac Lab.
Classes
Configuration for Isaac Capture-based teleoperation. |
|
An Isaac Capture-based teleoperation device for Isaac Lab. |
|
Configuration for one camera image panel shown in XR. |
|
Declarative placement and packing for enabled XR camera feeds. |
|
Manage the two-phase XR camera-feed lifecycle. |
|
Base configuration for teleop haptic feedback. |
|
Haptic feedback rendered as XR motion-controller vibration. |
|
Haptic feedback rendered as per-finger power on a haptic glove. |
|
Protocol for a teleop device that can render haptic feedback. |
|
Reads the per-hand signal from the scene and pushes it to the device. |
|
Configuration for viewing and interacting with the environment through an XR device. |
|
Enumeration for XR anchor rotation modes. |
|
Adapt the shared anchor policy to Kit Fabric and XRCore pre-sync events. |
|
Isaac Lab configuration for an Isaac Capture-owned OVXR session. |
|
One application-selected sensor and its camera-panel policy. |
|
Owner-managed desktop window that mirrors the completed XR and camera-panel images. |
|
Isaac Lab adapter around Isaac Capture's OVXR session. |
|
Configuration of the renderer that publishes the simulation's scene for an OVXR session. |
Functions
|
Create an |
|
Build a |
|
Removes cameras from environments when using XR devices. |
|
Build a gamepad pipeline for SE(2) velocity control. |
|
Build a keyboard pipeline for SE(2) velocity control. |
|
Build a spacemouse pipeline for SE(2) velocity control. |
|
Build a gamepad pipeline for SE(3) delta-pose control. |
|
Build a keyboard pipeline for SE(3) delta-pose control. |
|
Build a spacemouse pipeline for SE(3) delta-pose control. |
Configuration#
- class isaaclab_teleop.IsaacTeleopCfg[source]#
Configuration for Isaac Capture-based teleoperation.
This configuration class defines the parameters needed to create an Isaac Capture teleoperation session integrated with Isaac Lab environments.
The pipeline_builder is a callable that constructs the Isaac Capture retargeting pipeline. It should return an OutputCombiner with a single “action” output that contains the flattened action tensor (typically via TensorReorderer).
If the pipeline builder also produces retargeters that should be exposed in the tuning UI, the env cfg should call the builder, unpack the results, and populate both
pipeline_builderandretargeters_to_tuneexplicitly. Both fields must be callables (lambdas / functions) so they survive thedeepcopyperformed by@configclasson mutable attributes.Example
def build_pipeline(): controllers = ControllersSource(name="controllers") se3 = Se3AbsRetargeter(cfg, name="ee_pose") # ... connect and flatten with TensorReorderer ... pipeline = OutputCombiner({"action": reorderer.output("output")}) return pipeline, [se3] # return retargeters separately pipeline, retargeters = build_pipeline() teleop_cfg = IsaacTeleopCfg( xr_cfg=XrCfg(anchor_pos=(0.5, 0.0, 0.5)), pipeline_builder=lambda: pipeline, retargeters_to_tune=lambda: retargeters, )
Methods:
__init__([xr_cfg, xr_camera_feeds, ...])Attributes:
XR anchor configuration for positioning the user in the simulation.
Existing task camera outputs to show as XR image panels.
Placement and packing applied to the ordered enabled camera feeds.
Callable that builds the Isaac Capture retargeting pipeline.
List of Isaac Capture plugin configurations.
Torch device string for placing output action tensors.
Isaac Capture retargeting execution settings.
Whether teleoperation should be active by default when the session starts.
Optional callable returning retargeters to expose in the tuning UI.
16-byte UUID for the teleop control message channel.
Optional USD prim path whose world frame becomes the target coordinate frame for all output poses.
Application name for the Isaac Capture session.
Wait for both hands to be present before the first environment step.
Optional task-owned preparation of the resolved environment configuration.
Optional task-owned pre-step action conditioner.
Optional task-owned fail-closed action validator.
- __init__(xr_cfg: XrCfg = <factory>, xr_camera_feeds: list[XrCameraFeedCfg] = <factory>, xr_camera_feed_layout: XrCameraFeedLayoutCfg = <factory>, pipeline_builder: Callable[[], OutputCombiner] = <factory>, plugins: list[PluginConfig] = <factory>, sim_device: str = <factory>, retargeting_execution: RetargetingExecutionConfig | None = <factory>, teleoperation_active_default: bool = <factory>, retargeters_to_tune: Callable[[], list[BaseRetargeter]] | None = <factory>, control_channel_uuid: bytes | None = <factory>, target_frame_prim_path: str | None = <factory>, app_name: str = <factory>, require_initial_bimanual_hand_tracking: bool = <factory>, prepare_environment: Callable[[ManagerBasedRLEnvCfg], None] | None = <factory>, action_conditioner: Callable[[Any, Any, dict[str, Any]], Any] | None = <factory>, action_validator: Callable[[Any], str | None] | None = <factory>) None#
- xr_cfg: XrCfg#
XR anchor configuration for positioning the user in the simulation.
This includes anchor position, rotation, and optional dynamic anchoring to follow a prim (e.g., robot base) during locomotion tasks.
- xr_camera_feeds: list[XrCameraFeedCfg]#
Existing task camera outputs to show as XR image panels.
The default empty list disables PiP.
- xr_camera_feed_layout: XrCameraFeedLayoutCfg#
Placement and packing applied to the ordered enabled camera feeds.
- pipeline_builder: Callable[[], OutputCombiner]#
Callable that builds the Isaac Capture retargeting pipeline.
The function should return an OutputCombiner with an “action” output containing the flattened action tensor matching the Isaac Lab action space. Use TensorReorderer to flatten multiple retargeter outputs into a single array.
To expose retargeters for the tuning UI, populate
retargeters_to_tunedirectly when constructing this config rather than encoding them into the builder’s return value.
- plugins: list[PluginConfig]#
List of Isaac Capture plugin configurations.
Plugins can provide additional functionality like synthetic hand tracking from controller inputs.
- retargeting_execution: RetargetingExecutionConfig | None#
Isaac Capture retargeting execution settings.
Left as
Noneby default so that importing and constructing this config never requires the optionalisaacteleoppackage (e.g. on platforms where it is not installed). WhenNone, Isaac Lab resolves it at session start to Isaac Capture’s pipelined, deadline-paced default (RetargetingExecutionConfig(mode="pipelined", pacing=DeadlinePacingConfig(safety_margin_s=0.025))), whereisaacteleopis guaranteed to be available. An MCAP replay without Kit resolves it toRetargetingExecutionConfig(mode="sync")instead, so that every step consumes exactly the next recorded frame. Set this explicitly toRetargetingExecutionConfig(mode="sync")for exact current-frame retargeting while debugging or comparing behavior.
- teleoperation_active_default: bool#
Whether teleoperation should be active by default when the session starts.
When
False(the default), the teleop session remains inactive until a"START"command is received from xr_core via the message bus.
- retargeters_to_tune: Callable[[], list[BaseRetargeter]] | None#
Optional callable returning retargeters to expose in the tuning UI.
Must be a callable (e.g.
lambda: [retargeter1, retargeter2]) rather than a plain list because@configclassdeep-copies mutable attributes and retargeter objects often contain non-picklable C++/SWIG handles. Wrapping in a callable makes the value opaque todeepcopy.When set and the tuning UI is enabled, the returned retargeters will be displayed in the
MultiRetargeterTuningUIImGuiwindow, allowing real-time adjustment of their tunable parameters. Only retargeters that have aParameterState(i.e. tunable parameters) will appear.If
None, the tuning UI will not be opened.
- control_channel_uuid: bytes | None#
16-byte UUID for the teleop control message channel.
Defaults to
TELEOP_CONTROL_CHANNEL_UUID(uuid5(NAMESPACE_DNS, "teleop_command")), which is the well-known channel both the Isaac Lab server and CloudXR JS client use to exchange start/stop/reset commands.When set, a
teleop_control_pipelineis created automatically usingTeleopMessageProcessorandDefaultTeleopStateManager. The remote client sends UTF-8 control commands over the OpenXR opaque data channel identified by this UUID, and the results are exposed viapoll_control_events().Set to
Noneto disable the control channel entirely.
- target_frame_prim_path: str | None#
Optional USD prim path whose world frame becomes the target coordinate frame for all output poses.
The prim must exist when entering the device context. Its Fabric attribute is bound once at that point; a missing prim raises
ValueErrorbefore the session starts. Each frame reads its current world transform and uses its inverse as thetarget_T_worldrebase matrix inadvance(). An explicittarget_T_worldargument toadvance()takes precedence over this config.Typical usage: set to the robot base link prim path so that an IK controller receives end-effector poses in the robot’s base frame.
create_isaac_teleop_device()expands{ENV_REGEX_NS}when given anenv_prim_path.Example:
IsaacTeleopCfg( target_frame_prim_path="{ENV_REGEX_NS}/Robot/base_link", ... )
- require_initial_bimanual_hand_tracking: bool#
Wait for both hands to be present before the first environment step.
An environment or device reset clears the initialization latch. Later tracking loss follows the configured retargeting pipeline’s behavior.
- prepare_environment: Callable[[ManagerBasedRLEnvCfg], None] | None#
Optional task-owned preparation of the resolved environment configuration.
The teleoperation launchers (live, replay and recording) call this once, after launcher validation and before creating any simulation resources, including the OVXR bootstrap. The hook may rely on resolved presets and on the validated runtime selections, such as the physics and renderer backends, and must not change them. A task’s environment entry point may apply the same preparation again, so it must be idempotent. Keep this callable’s imports safe before simulator startup.
Note
This hook is experimental and may change or be removed in a future release, for example once tasks declare their backend-specific settings through presets.
- action_conditioner: Callable[[Any, Any, dict[str, Any]], Any] | None#
Optional task-owned pre-step action conditioner.
The callable receives
(env, action, state). The launcher retains the state dictionary across active frames and clears it on pause or reset. State updates from a frame that fails validation after conditioning are discarded.Note
This hook is experimental and may change or be removed in a future release, for example once the task’s action term conditions its own targets.
- action_validator: Callable[[Any], str | None] | None#
Optional task-owned fail-closed action validator.
Return
Nonefor a valid action or a concise reason to render without a physics step. Validation runs both before and after conditioning.Note
This hook is experimental and may change or be removed in a future release, for example once the task’s action term validates its own targets.
- class isaaclab_teleop.XrCfg[source]#
Configuration for viewing and interacting with the environment through an XR device.
Attributes:
Specifies the position (in m) of the simulation when viewed in an XR device.
Specifies the rotation (as a quaternion xyzw) of the simulation when viewed in an XR device.
Specifies the prim path to attach the XR anchor to for dynamic positioning.
Specifies how the XR anchor rotation should behave when attached to a prim.
Time constant [s] for rotation smoothing in FOLLOW_PRIM_SMOOTHED mode.
Specifies the function to calculate the rotation of the XR anchor when anchor_rotation_mode is CUSTOM.
Specifies the near plane distance for the XR device.
Specifies if the anchor height should be fixed.
Mesh-path regexes hidden from the OVXR render, including the eye cameras and camera panels.
Methods:
__init__([anchor_pos, anchor_rot, ...])- anchor_pos: tuple[float, float, float]#
Specifies the position (in m) of the simulation when viewed in an XR device.
Specifically: this position will appear at the origin of the XR device’s local coordinate frame.
- anchor_rot: tuple[float, float, float, float]#
Specifies the rotation (as a quaternion xyzw) of the simulation when viewed in an XR device.
Specifically: this rotation will determine how the simulation is rotated with respect to the origin of the XR device’s local coordinate frame.
This rotation also applies when no
anchor_prim_pathis set.
- anchor_prim_path: str | None#
Specifies the prim path to attach the XR anchor to for dynamic positioning.
When set, the XR anchor will be attached to the specified prim (e.g., robot root prim), allowing the XR camera to move with the prim. This is particularly useful for locomotion robot teleoperation where the robot moves and the XR camera should follow it.
create_isaac_teleop_device()expands{ENV_REGEX_NS}when given anenv_prim_path; direct device construction requires a concrete path.Kit sessions use XRCore to follow the reference. Application-owned OVXR presentation uses committed physics references for the same rotation and height policies. Input cannot consume an unseeded or failed publication epoch; no static pose is substituted.
If None, the anchor will use the static
anchor_posandanchor_rotvalues.
- __init__(anchor_pos: tuple[float, float, float] = <factory>, anchor_rot: tuple[float, float, float, float] = <factory>, anchor_prim_path: str | None = <factory>, anchor_rotation_mode: ~isaaclab_teleop.xr_cfg.XrAnchorRotationMode = <factory>, anchor_rotation_smoothing_time: float = <factory>, anchor_rotation_custom_func: ~collections.abc.Callable[[~numpy.ndarray, ~numpy.ndarray], ~numpy.ndarray] = <factory>, near_plane: float = <factory>, fixed_anchor_height: bool = <factory>, excluded_visual_meshes: list[str] = <factory>) None#
- anchor_rotation_mode: XrAnchorRotationMode#
Specifies how the XR anchor rotation should behave when attached to a prim.
The available modes are:
XrAnchorRotationMode.FIXED: Sets rotation once to anchor_rot valueXrAnchorRotationMode.FOLLOW_PRIM: Follows the prim’s yaw change relative to its initial orientation, composed withanchor_rot; roll and pitch are ignoredXrAnchorRotationMode.FOLLOW_PRIM_SMOOTHED: Smoothly follows the same relative yaw target using slerpXrAnchorRotationMode.CUSTOM: user provided function to calculate the rotation
- anchor_rotation_smoothing_time: float#
Time constant [s] for rotation smoothing in FOLLOW_PRIM_SMOOTHED mode.
Kit smoothing uses
isaaclab.sim.SimulationContext.get_rendering_dt(), which returns the configured rendering timestep or a visualizer override. OVXR uses elapsed XR-frame time. The interpolation factor is clamped to [0.05, 1.0] per update. Smaller values (e.g., 0.1) result in faster/snappier response but less smoothing. Larger values (e.g., 0.75–2.0) result in slower/smoother response but more lag. Typical useful range: 0.3 – 1.5 seconds depending on rendering timestep and comfort.
- anchor_rotation_custom_func: Callable[[ndarray, ndarray], ndarray]#
Specifies the function to calculate the rotation of the XR anchor when anchor_rotation_mode is CUSTOM.
- Parameters:
headpose – Previous head pose as a NumPy array [x, y, z, qx, qy, qz, qw] (position [m] and xyzw quaternion).
primpose – Anchor prim pose as a NumPy array [x, y, z, qx, qy, qz, qw] (position [m] and xyzw quaternion).
- Returns:
Quaternion as a NumPy array [qx, qy, qz, qw] (xyzw).
- near_plane: float#
Specifies the near plane distance for the XR device.
This value determines the closest distance at which objects will be rendered in the XR device.
- fixed_anchor_height: bool#
Specifies if the anchor height should be fixed.
If True, the anchor height will be fixed to the initial height of the anchor prim.
- excluded_visual_meshes: list[str]#
Mesh-path regexes hidden from the OVXR render, including the eye cameras and camera panels.
Only matching visual meshes in the single-environment render export become invisible; the source scene is unchanged. Collisions and link/camera transforms must not be matched.
- class isaaclab_teleop.XrAnchorRotationMode[source]#
Enumeration for XR anchor rotation modes.
Attributes:
sets rotation once and doesn't change it.
Follow the prim's yaw change relative to its initial orientation, composed with
XrCfg.anchor_rot.Smoothly follow the prim's relative yaw change, composed with
XrCfg.anchor_rot, using slerp.user provided function to calculate the rotation.
- FIXED = 'fixed'#
sets rotation once and doesn’t change it.
- Type:
Fixed rotation mode
- FOLLOW_PRIM = 'follow_prim'#
Follow the prim’s yaw change relative to its initial orientation, composed with
XrCfg.anchor_rot.
- FOLLOW_PRIM_SMOOTHED = 'follow_prim_smoothed'#
Smoothly follow the prim’s relative yaw change, composed with
XrCfg.anchor_rot, using slerp.
- CUSTOM = 'custom_rotation'#
user provided function to calculate the rotation.
- Type:
Custom rotation mode
XR Camera Feedback#
- class isaaclab_teleop.XrCameraFeedCfg[source]#
Configuration for one camera image panel shown in XR.
Render-product policy authored for a feed remains on the selected camera render product until that prim is replaced or destroyed. Closing the PiP panel releases display resources but does not restore prior policy values.
Attributes:
Name of the
Camerain the interactive scene.Whether to create and update this feed.
Enable DLSS Ray Reconstruction on this feed's RTX render product.
Optional DLSS execution mode for this feed's RTX render product.
Physical panel width [m].
Distance in front of the viewer anchor [m].
Horizontal and vertical panel offset in the selected placement frame [m].
Maximum provider upload rate [Hz].
Optional short label shown above the image.
Methods:
__init__([camera_name, enabled, ...])- enable_dlss_ray_reconstruction: bool | None#
Enable DLSS Ray Reconstruction on this feed’s RTX render product.
Nonepreserves the render-product default. WhenTrue, the teleoperation and recording scripts also enable responsive denoising before environment construction. The private PiP adapter applies this setting on a best-effort basis when binding to a compatible render product. Backends without one keep using the Camera-buffer fallback.
- dlss_exec_mode: Literal['performance', 'balanced', 'quality', 'auto', 'rtxaa', 'manual'] | None#
Optional DLSS execution mode for this feed’s RTX render product.
Nonepreserves the render-product default. The private PiP adapter applies this setting on a best-effort basis when binding to a compatible render product; it does not author the value on other render products.
- distance_m: float#
Distance in front of the viewer anchor [m].
This value is unused when
XrCameraFeedLayoutCfg.placementis"world".
- offset_m: tuple[float, float]#
Horizontal and vertical panel offset in the selected placement frame [m].
- max_update_hz: float#
Maximum provider upload rate [Hz]. Set to zero to update after every rendered frame.
- __init__(camera_name: str = <factory>, enabled: bool = <factory>, enable_dlss_ray_reconstruction: bool | None = <factory>, dlss_exec_mode: ~typing.Literal['performance', 'balanced', 'quality', 'auto', 'rtxaa', 'manual'] | None = <factory>, panel_width_m: float = <factory>, distance_m: float = <factory>, offset_m: tuple[float, float] = <factory>, max_update_hz: float = <factory>, label: str | None = <factory>) None#
- class isaaclab_teleop.XrCameraFeedLayoutCfg[source]#
Declarative placement and packing for enabled XR camera feeds.
Attributes:
Layout mode.
Reference frame used to place the panels.
Horizontal and vertical center of an automatic layout [m].
Distance of every automatically placed panel from the viewer anchor [m].
Edge-to-edge gap between automatically placed panels [m].
Maximum number of columns in grid mode.
Layout-plane center in the Isaac Lab USD stage world [m].
Panel-local-to-world orientation as a quaternion in
xyzworder.Isolate the entire SceneUI root from robot cameras.
Methods:
__init__([mode, placement, center_offset_m, ...])- mode: Literal['manual', 'horizontal', 'vertical', 'grid']#
Layout mode. Manual preserves each feed’s offset and distance.
- placement: Literal['viewer_start', 'head_locked', 'world']#
Reference frame used to place the panels.
"viewer_start"captures the first valid viewer eye position and yaw, then leaves the panels fixed in the world."head_locked"follows the viewer with full pose."world"usesworld_position_mandworld_orientation_xyzwas a fixed pose in the Isaac Lab USD stage world.
- distance_m: float#
Distance of every automatically placed panel from the viewer anchor [m].
This value is unused when
placementis"world".
- world_position_m: tuple[float, float, float] | None#
Layout-plane center in the Isaac Lab USD stage world [m].
Isaac Lab stages are Z-up. This value is required when
placementis"world".
- __init__(mode: ~typing.Literal['manual', 'horizontal', 'vertical', 'grid'] = <factory>, placement: ~typing.Literal['viewer_start', 'head_locked', 'world'] = <factory>, center_offset_m: tuple[float, float] = <factory>, distance_m: float = <factory>, panel_gap_m: float = <factory>, max_columns: int = <factory>, world_position_m: tuple[float, float, float] | None = <factory>, world_orientation_xyzw: tuple[float, float, float, float] = <factory>, use_scene_partition: bool = <factory>) None#
- world_orientation_xyzw: tuple[float, float, float, float]#
Panel-local-to-world orientation as a quaternion in
xyzworder.Panel local +X is image right, +Y is image up, and +Z points from the panel’s readable side toward the viewer. Feed and layout offsets are applied in the resulting local XY plane.
- use_scene_partition: bool#
Isolate the entire SceneUI root from robot cameras. Defaults to False.
Preparation disables selected Isaac RTX cameras’ environment partitioning before environment construction. Binding sets
showAllPartitionsByDefault=Falseafter renderer initialization and before creating panels. Other scene cameras must also disable partitioning. Geometry starts as shared background; the presenter assigns XR and/uito the PiP partition and refreshes inheritance when SceneUI children appear. Camera configuration is restored after the last prepared session closes; the global setting’s bind-time value is restored after the last bound session closes, unless changed externally.
- class isaaclab_teleop.XrCameraFeedSession[source]#
Manage the two-phase XR camera-feed lifecycle.
Use
prepare()before constructing the environment, then callbind()with the constructed environment before entering the session. Close prepared sessions even when environment construction fails, for example withcontextlib.closing()around preparation and construction.Methods:
__init__(cfgs, layout_cfg, presenter, *, ...)prepare(env_cfg, *, enabled, ...)Prepare task-configured camera feeds before constructing the environment.
bind(env)Bind the prepared feeds to a constructed environment.
refresh()Refresh and publish feed buffers after the environment resets.
close()Close feed display resources and allow the session to be rebound.
Attributes:
Whether the session has camera feeds to present.
Whether the selected feeds require responsive DLSS denoising.
- __init__(cfgs: list[XrCameraFeedCfg], layout_cfg: XrCameraFeedLayoutCfg | None, presenter: Any | None, *, requires_responsive_denoising: bool)[source]#
- classmethod prepare(env_cfg: Any, *, enabled: bool, camera_rendering_enabled: bool) XrCameraFeedSession[source]#
Prepare task-configured camera feeds before constructing the environment.
Isolated feeds acquire temporary camera configuration overrides. The caller must arrange
close()on every exit, including failures beforebind().
- property requires_responsive_denoising: bool[source]#
Whether the selected feeds require responsive DLSS denoising.
- bind(env: Any) XrCameraFeedSession[source]#
Bind the prepared feeds to a constructed environment.
Acquire the global isolation setting after renderer initialization and before creating panels, preserving its current value for cleanup.
- Parameters:
env¶ – Constructed environment containing the selected scene cameras.
- Returns:
This session, ready to use as a context manager.
- close() None[source]#
Close feed display resources and allow the session to be rebound.
Render-product policy authored while binding persists for the selected camera render product’s lifetime. Camera configuration is restored after the last prepared session closes; the global setting’s bind-time value is restored after the last bound session closes, unless changed externally.
Kitless OVXR Session#
- class isaaclab_teleop.OvLibrariesXrCfg[source]#
Isaac Lab configuration for an Isaac Capture-owned OVXR session.
Attributes:
Application identifier passed to the OpenXR runtime.
augmented or virtual reality.
Process-global OVXR renderer settings applied before renderer construction.
CloudXR environment-file path; None leaves runtime launch to the caller.
Whether the session owner launches the CloudXR runtime automatically.
Stereo RenderProduct paths; an empty selection uses OVXR's default paths.
Exactly two non-empty USD camera paths, ordered left eye then right eye.
Whether OVXR authors the stereo render products; the eye cameras are then declared for it.
Finite positive scene scale [m per USD unit].
Near depth distance [m]; both depth distances zero select provider defaults.
Far depth distance [m]; explicit distances must satisfy 0 < near < far.
USD tracking-anchor path; an empty path uses the stage origin.
Whether OVXR waits for render output before returning from frame rendering.
Owner-managed desktop mirror; None disables it.
Up to three uniquely named camera panels; an empty selection disables panels.
Additional OpenXR extension names requested when creating the session.
Methods:
__init__([application_name, session_mode, ...])- cloudxr_env_file: str | None#
CloudXR environment-file path; None leaves runtime launch to the caller.
- __init__(application_name: str = <factory>, session_mode: ~typing.Literal['ar', 'vr'] = <factory>, renderer_settings: str = <factory>, cloudxr_env_file: str | None = <factory>, auto_launch_cloudxr: bool = <factory>, render_products: tuple[str, ...] = <factory>, camera_paths: tuple[str, ...] = <factory>, create_render_products: bool = <factory>, meters_per_unit: float = <factory>, depth_near_z: float = <factory>, depth_far_z: float = <factory>, tracking_anchor_path: str = <factory>, host_wait_render_output: bool = <factory>, desktop_mirror: ~isaaclab_teleop.ovxr_cfg.OvLibrariesXrDesktopMirrorCfg | None = <factory>, camera_feeds: tuple[~isaaclab_teleop.ovxr_cfg.OvLibrariesXrCameraFeedCfg, ...] = <factory>, extra_openxr_extensions: tuple[str, ...] = <factory>) None#
- render_products: tuple[str, ...]#
Stereo RenderProduct paths; an empty selection uses OVXR’s default paths.
- camera_paths: tuple[str, ...]#
Exactly two non-empty USD camera paths, ordered left eye then right eye.
- create_render_products: bool#
Whether OVXR authors the stereo render products; the eye cameras are then declared for it.
- host_wait_render_output: bool#
Whether OVXR waits for render output before returning from frame rendering.
- desktop_mirror: OvLibrariesXrDesktopMirrorCfg | None#
Owner-managed desktop mirror; None disables it.
- camera_feeds: tuple[OvLibrariesXrCameraFeedCfg, ...]#
Up to three uniquely named camera panels; an empty selection disables panels.
- class isaaclab_teleop.OvLibrariesXrCameraFeedCfg[source]#
One application-selected sensor and its camera-panel policy.
Attributes:
Scene sensor name used for camera selection and as the desktop mirror's camera label.
Selected sensor configuration, assigned to the session's shared renderer.
Finite positive image update cap [Hz].
Physical panel width [m]; image aspect ratio determines its height.
Panel center in OpenXR head space [m], with forward along negative Z.
Panel orientation in head space as an (x, y, z, w) quaternion.
Placement space; only head-locked panels are supported.
Methods:
__init__([name, camera_cfg, max_fps, ...])- position: tuple[float, float, float]#
Panel center in OpenXR head space [m], with forward along negative Z.
- orientation_xyzw: tuple[float, float, float, float]#
Panel orientation in head space as an (x, y, z, w) quaternion.
- space: Literal['head_locked']#
Placement space; only head-locked panels are supported.
- class isaaclab_teleop.OvLibrariesXrDesktopMirrorCfg[source]#
Owner-managed desktop window that mirrors the completed XR and camera-panel images.
Attributes:
Finite positive refresh cap [Hz].
Methods:
__init__([max_fps])
- class isaaclab_teleop.OvLibrariesXrSession[source]#
Isaac Lab adapter around Isaac Capture’s OVXR session.
The host owns the environment. Stop the XR input borrowers, close this session, and close the environment and desktop windows on the host thread once
retirement_completeholds. Worker termination alone is insufficient.prepare()also registers the session’s retirement as the firstSTOPlistener of the kitless simulation, which dispatches STOP when its context is cleared, for example by closing the environment. Isaac Capture’s render worker therefore drains and the render lease is released before cameras, renderers, the native OVRTX engine and the OVStage close. The listener closes a session that is still open only if it handed out no OpenXR handles, since only the host can confirm that their input borrowers stopped. A STOP while the simulation runs, from a hard reset or a physics re-warm, raises instead and leaves the session open: the raise ends that dispatch before anything is released.When the listener cannot prove retirement during a shutdown, it keeps the leased renderer and OVStage alive for the rest of the process and raises, so the simulation’s teardown destroys neither under a live render owner. The pair cannot be reused; recreate the session in a new process.
Classes:
Dynamic XR-anchor policy sealed together with complete scene publications.
Methods:
__init__(bootstrap, cfg)start_render_worker(env, *[, ...])Give Isaac Capture the application pair and report whether XR started.
Return Isaac Capture's typed external handles once its owner is ready.
request_render(physics_step_id, *[, force])Offer one complete application generation for Isaac Capture to render.
report_host_timing(physics_step_count[, ...])Publish physics counter and optional simulation timestep [s] to the mirror.
get_target_frame_T_world(prim_path)Read world-to-target transform [4, 4], float32, with translation in scene units.
close()Retire XR borrowers before the host releases the environment.
Request orderly OVXR shutdown.
set_external_anchor_state(state)Adopt the current replay device's anchor policy between runs.
wait_for_shutdown(timeout_s)Wait up to timeout_s [s]; return whether application cancellation was requested.
prepare(sim_cfg, cfg[, renderer_cfg])Snapshot session selection, create simulation and reserve its OVRTX lease.
Attributes:
Whether all XR borrowers retired, including after a failed startup.
Whether the OVXR session requested application shutdown.
- class ExternalAnchorState[source]#
Dynamic XR-anchor policy sealed together with complete scene publications.
isaaclab_teleop.xr_anchor_manager.ExternalXrAnchorimplements this protocol. It drives the anchor of an OVXR session withXrCfg.anchor_prim_pathset, which is whenexternal_anchor_statereturns it.Attributes:
Anchor Xform paths written together at each committed pose.
Absolute path of the physics prim whose world transform drives the anchor.
Reset identity and whether that epoch still needs its seeding publication.
Methods:
commit_external_pose(reference, ...)Advance the policy from
referenceand seal its matrices throughcommit.__init__(*args, **kwargs)- property external_anchor_paths: tuple[str, ...][source]#
Anchor Xform paths written together at each committed pose.
- property external_reference_path: str[source]#
Absolute path of the physics prim whose world transform drives the anchor.
- property external_epoch: tuple[int, bool][source]#
Reset identity and whether that epoch still needs its seeding publication.
- Raises:
RuntimeError – If a previous anchor publication failed.
- commit_external_pose(reference: ndarray, rendering_dt: float, epoch: int, commit: Callable[[ndarray], None]) bool[source]#
Advance the policy from
referenceand seal its matrices throughcommit.- Parameters:
reference¶ – World transform of
external_reference_path[4, 4].rendering_dt¶ – Elapsed XR-frame time since the last committed pose [s].
epoch¶ – Reset identity read from
external_epoch.commit¶ – Callable that writes and seals the anchor matrices [N, 4, 4].
- Returns:
Falsewhenepochis stale and nothing was committed.
- __init__(*args, **kwargs)#
- __init__(bootstrap: OvxrSessionBootstrap, cfg: OvLibrariesXrCfg) None[source]#
- property retirement_complete: bool[source]#
Whether all XR borrowers retired, including after a failed startup.
This remains readable after close succeeds or raises. A stopped or joined worker alone does not authorize destruction of the borrowed environment.
- start_render_worker(env: Any, *, tracking_anchor_path: str | None = None, required_openxr_extensions: Iterable[str] = (), excluded_visual_meshes: Iterable[str] = (), max_blank_frames: int = 1, timeout_s: float = 30.0, external_anchor_state: ExternalAnchorState | None = None) bool[source]#
Give Isaac Capture the application pair and report whether XR started.
- Parameters:
env¶ – Constructed environment sharing the prepared simulation context.
tracking_anchor_path¶ – Override the configured USD tracking-anchor path.
required_openxr_extensions¶ – Extensions required by the input pipeline.
excluded_visual_meshes¶ – Mesh patterns hidden from the XR render export.
max_blank_frames¶ – Nonnegative integer bootstrap-frame count; zero skips bootstrap frames.
timeout_s¶ – Maximum worker startup wait [s].
external_anchor_state¶ – Dynamic anchor policy seeded from committed scene publications.
- Raises:
RuntimeError – If the session is closed or already started, or
envdoes not reuse the prepared simulation context, has no completed stage or not exactly one environment, selects a different simulation device or physics time step, or already has a prim of another type at a configured OVXR prim path.TypeError – If
external_anchor_statedoes not implementExternalAnchorState.ValueError – If
max_blank_framesis not a nonnegative integer, selected camera feeds use eager scene sensor updates, or a configured OVXR prim path is not absolute or is requested with two types.
- external_oxr_handles() OpenXRSessionHandles | None[source]#
Return Isaac Capture’s typed external handles once its owner is ready.
- request_render(physics_step_id: Hashable, *, force: bool = False) int | None[source]#
Offer one complete application generation for Isaac Capture to render.
Return the admitted ordinal, or
Nonewhen render demand is already satisfied. Retry the latest dirty generation until admitted, including while paused.forcepreserves reset/lifecycle discontinuities.
- report_host_timing(physics_step_count: int, physics_dt_s: float | None = None) None[source]#
Publish physics counter and optional simulation timestep [s] to the mirror.
- get_target_frame_T_world(prim_path: str) ndarray[source]#
Read world-to-target transform [4, 4], float32, with translation in scene units.
- close() None[source]#
Retire XR borrowers before the host releases the environment.
Failed retirement leaves the session open, and closing the environment then keeps the leased renderer and OVStage alive. Stop all input borrowers before calling, including after worker failure.
A render worker that is still attaching the scene cannot be cancelled and uses the environment, so this call waits for the attachment to end, however long it takes. When the retirement completed despite a worker failure, only the first call raises that failure.
- set_external_anchor_state(state: ExternalAnchorState | None) None[source]#
Adopt the current replay device’s anchor policy between runs.
- wait_for_shutdown(timeout_s: float) bool[source]#
Wait up to timeout_s [s]; return whether application cancellation was requested.
- classmethod prepare(sim_cfg: SimulationCfg, cfg: OvLibrariesXrCfg, renderer_cfg: OvxrRendererCfg | None = None) OvLibrariesXrSession[source]#
Snapshot session selection, create simulation and reserve its OVRTX lease.
Renderer settings are process-global on the stock renderer interface; use one configured session per process. No supported readback exists here to restore a previous renderer’s settings on close.
- Parameters:
sim_cfg¶ – Simulation configuration used to construct the context immediately before the environment. The environment must reuse that exact context.
cfg¶ – XR session configuration, snapshotted before native preparation.
renderer_cfg¶ – OVXR renderer registered in that context. Camera panels must use the same configuration.
Noneselects the defaultOvxrRendererCfg.
- Returns:
A prepared session whose lease is reserved but has not transferred to a worker. The simulation retires it on STOP, before releasing its cameras and renderers.
- Raises:
RuntimeError – If a simulation context already exists or extension mode is active.
ValueError – If the XR configuration is invalid.
- class isaaclab_teleop.OvxrRendererCfg[source]#
Bases:
RendererCfgConfiguration of the renderer that publishes the simulation’s scene for an OVXR session.
The session’s
OvxrRenderercreates its own OVStage and OVRTX engine and lends them to Isaac Capture’s render worker. Give the session and every camera it shows as a panel the same configuration, so they share oneOvxrRenderer. Other cameras keep their own renderer configurations, such asOVRTXRendererCfg, which renders on the simulation device. OVRTX selects rendering GPUs once per process, so such cameras can only share the simulation whenactive_cuda_gpusis unset or names just the simulation GPU.Attributes:
Renderer implementation class.
Type identifier for the OVXR renderer.
The launcher that registers the OVRTX runtime before the stage is created.
Deliver the scene copies to the renderer's own OVStage.
"verbose", "info", "warn", "error".
Path for the OVRTX log file.
Comma-separated CUDA device indices that render the session (e.g.
"1"or"0,1").Methods:
Return the outputs a camera panel's render product may provide, with the OVRTX renderer's layouts.
__init__([class_type, renderer_type, ...])- launcher_type: ClassVar[str] = 'isaaclab_ov.app:OvrtxLauncher'#
The launcher that registers the OVRTX runtime before the stage is created.
- active_cuda_gpus: str | None#
Comma-separated CUDA device indices that render the session (e.g.
"1"or"0,1").Defaults to the simulation CUDA device; CPU simulations use native GPU selection. The first OVXR engine fixes this selection for the process, even after renderer teardown or failed startup. Later OVXR renderers must request the same selection; conflicting requests raise
ValueError. Start a new process to change rendering GPUs. This does not change physics. When the set excludes a CUDA simulation GPU, rigid transforms and deformable points produced on the simulation GPU are copied to the first listed GPU before OVStage consumes them. Other inputs, such as camera poses, are read from the simulation GPU, and camera panel products use automatic device assignment.Other OVRTX renderers render on the simulation device. A selection other than the simulation GPU alone is therefore rejected when an ordinary OVRTX renderer or engine is registered in the same simulation, both when the session creates its engine and when the Stage is prepared.
- supported_output_types() dict[RenderBufferKind, RenderBufferSpec][source]#
Return the outputs a camera panel’s render product may provide, with the OVRTX renderer’s layouts.
The OVXR session presents a panel’s colour output;
depthis also accepted, for example to check a panel’s rendered scene directly. The renderer itself writes none of these buffers.
Device#
- class isaaclab_teleop.IsaacTeleopDevice[source]#
Bases:
objectAn Isaac Capture-based teleoperation device for Isaac Lab.
This device provides an interface between Isaac Capture’s retargeting pipeline and Isaac Lab environments. It composes three focused collaborators:
XrAnchorManager– XR anchor prim setup, synchronization, and coordinate-frame transform computation.TeleopSessionLifecycle– pipeline building, OpenXR handle acquisition, session creation/destruction, and action-tensor extraction.CommandHandler– callback registration for START / STOP / RESET commands, bridged from the pipeline-based control events.
Together they manage:
XR anchor configuration and synchronization
Isaac Capture session lifecycle
Action tensor generation from the retargeting pipeline
The device uses Isaac Capture’s TensorReorderer to flatten pipeline outputs into a single action tensor matching the environment’s action space.
- Frame rebasing:
By default, all output poses are expressed in the simulation world frame. When an application needs poses in a different frame (e.g. robot base link for IK), there are two options:
Config-driven (recommended): set
target_frame_prim_pathto the USD prim whose frame the output should be expressed in. The device reads the prim’s world transform each frame and applies the rebase automatically.Explicit: pass a
target_T_worldmatrix directly toadvance().
In both cases the device composes
target_T_world @ world_T_anchorbefore feeding the matrix into the retargeting pipeline, so all resulting poses are expressed in the target frame.- Teleop commands:
The device supports callbacks for START, STOP, and RESET commands that can be triggered via the message-channel control pipeline or registered directly via
add_callback(). Without a headset, theB/P/Rkeys typed into a visualizer window start, pause and reset teleoperation, and a SpaceMouse pipeline’s right button resets it.
Example
cfg = IsaacTeleopCfg( pipeline_builder=my_pipeline_builder, sim_device="cuda:0", ) # Poses in world frame (default) with IsaacTeleopDevice(cfg, visualizers=env.sim.visualizers) as device: while running: action = device.advance() env.step(action.repeat(num_envs, 1)) # Config-driven rebase into robot base frame cfg.target_frame_prim_path = "/World/Robot/base_link" with IsaacTeleopDevice(cfg, visualizers=env.sim.visualizers) as device: while running: action = device.advance() env.step(action.repeat(num_envs, 1)) # Explicit rebase into robot base frame with IsaacTeleopDevice(cfg, visualizers=env.sim.visualizers) as device: while running: robot_T_world = get_robot_base_transform() action = device.advance(target_T_world=robot_T_world) env.step(action.repeat(num_envs, 1))
Methods:
__init__(cfg[, cloudxr_env_file, ...])Initialize the Isaac Capture device.
reset([pause])Reset the device state.
Start teleoperation without an XR client.
Notify the device that the environment has reset, without requesting another reset.
Stop (pause) teleoperation without an XR client.
add_callback(key, func)Add a callback function for teleop commands.
advance([target_T_world])Process current device state and return control commands.
send_haptic(endpoint, values)Render one frame of haptic output on a device endpoint.
send_client_message(message)Queue a JSON message for delivery to the connected XR client.
Attributes:
Concrete target frame for external scene readers, after environment-path expansion.
Anchor prim that frames the rendered XR view.
The dynamic anchor capability consumed by Lab's external scene publisher.
Return extensions required by the built teleop graphs.
Whether borrowed XR handles could not be safely drained.
Control events from the most recent
advance().Left/right hand presence in the latest input frame, or None before hand data is available.
- __init__(cfg: IsaacTeleopCfg, cloudxr_env_file: str | None = None, auto_launch_cloudxr: bool = True, use_kit_xr_bridge: bool = True, mcap_record_path: str | None = None, mcap_replay_path: str | None = None, enable_debug_visualization: bool = False, haptic_cfg: HapticFeedbackCfg | None = None, visualizers: Sequence[BaseVisualizer] = (), *, external_oxr_handles_provider: Callable[[], OpenXRSessionHandles | None] | None = None, ovxr_session: bool = False)[source]#
Initialize the Isaac Capture device.
- Parameters:
cfg¶ – Configuration object for Isaac Capture settings.
cloudxr_env_file¶ – Optional path to a CloudXR
.envfile. When provided and auto_launch_cloudxr isTrue, the CloudXR runtime is launched automatically during session start. WhenNone, no CloudXR runtime is launched.auto_launch_cloudxr¶ – Whether to auto-launch the CloudXR runtime when cloudxr_env_file is set. Ignored when cloudxr_env_file is
None.use_kit_xr_bridge¶ – Whether to source live OpenXR handles from Kit’s XR bridge (
True, the full XR rendering / anchor path) or run standalone (False) withisaacteleopowning its own OpenXR session through the CloudXR runtime – teleop I/O with no Kit XR rendering. Typically wired to the--xrCLI flag.external_oxr_handles_provider¶ – Optional callback returning handles borrowed from an application-owned OVXR context. Supplying this capability delegates XR rendering/anchoring to that owner. Static anchors use the configured pose; dynamic anchors use the owner’s committed physics pose and the configured height/rotation policy. The owner must commit a scene pose before input is read initially and after reset.
ovxr_session¶ – Use application-owned presentation and anchoring without borrowing live input handles. Static and dynamic anchors follow the same policy as live OVXR, allowing recorded input to drive a separately presented scene.
mcap_record_path¶ – Optional MCAP file path to record the live teleop session into. Mutually exclusive with mcap_replay_path. Debug-grade only – the produced file has no per-episode segmentation, no world-frame anchor, and no public Python decoder.
mcap_replay_path¶ – Optional MCAP file path to replay. When set, the device runs in
SessionMode.REPLAYwith no live XR connection and feeds the recorded tracker stream through the pipeline. Mutually exclusive with mcap_record_path.enable_debug_visualization¶ – Whether tracking debug visualization (red sphere markers at each OpenXR hand joint, RGB axis markers at the controller aim poses) is enabled at session start. When
False(the default), the pipeline carries no visualization overhead.haptic_cfg¶ – Optional haptic-feedback configuration. When provided, the device renders per-hand output vectors pushed via
send_haptic()on the configured device (controller, glove, …).Nonedisables haptics.visualizers¶ – Live sequence of windows supplying keyboard input, usually
sim.visualizers. The default empty sequence disables window input.
- property target_frame_prim_path: str | None[source]#
Concrete target frame for external scene readers, after environment-path expansion.
- property external_anchor_state: ExternalXrAnchor | None[source]#
The dynamic anchor capability consumed by Lab’s external scene publisher.
- property required_openxr_extensions: tuple[str, ...][source]#
Return extensions required by the built teleop graphs.
- property session_cleanup_failed: bool[source]#
Whether borrowed XR handles could not be safely drained.
- reset(pause: bool = False) None[source]#
Reset the device state.
Resets the XR anchor synchronizer and schedules a
resetExecutionEventsfor the next pipeline step so that all retargeters reinitialize their cross-step state. Also clears any pending haptic force so a pulse in progress at reset time does not persist into the next episode.- Parameters:
pause¶ – When
True, also pause a running session so teleop resumes from a paused state – the behavior for an operator reset (e.g. keyboardR). Defaults toFalsefor a host reset (e.g. environment auto-reset after task success), which keeps the session running into the next episode.
- request_start() None[source]#
Start teleoperation without an XR client.
Drives the internal teleop state machine toward RUNNING (see
TeleopSessionLifecycle.request_start()). Useful for headless or keyboard-driven control when no headset UI is available to send START. No-op when no control channel is configured.
- notify_reset() None[source]#
Notify the device that the environment has reset, without requesting another reset.
Reset anchor and haptic state immediately, and reset main-pipeline retargeters on their next execution. Operator pause/start/reset commands remain on the control channel and are not consumed by this notification.
- request_stop() None[source]#
Stop (pause) teleoperation without an XR client.
Drives the internal teleop state machine to PAUSED (see
TeleopSessionLifecycle.request_stop()). No-op when no control channel is configured.
- property last_control_events: ControlEvents[source]#
Control events from the most recent
advance().Returns a
ControlEventsderived from the teleop control pipeline. When no control channel is configured, returns a default (no-op)ControlEvents. Repeated property reads return the same events. RESET is emitted only once per returned input frame, even if subsequentadvance()calls reuse that frame.
- property hand_tracking_presence: tuple[bool, bool] | None[source]#
Left/right hand presence in the latest input frame, or None before hand data is available.
- advance(target_T_world: np.ndarray | torch.Tensor | SupportsDLPack | None = None) torch.Tensor | None[source]#
Process current device state and return control commands.
If the Isaac Capture session has not been started yet (because the OpenXR handles were not available at
__enter__time), this method will attempt to start it on each call. Once the selected Kit or external XR provider exposes handles, the session is created transparently.- Parameters:
target_T_world¶ –
Optional 4x4 transform matrix that rebases all output poses into an arbitrary target coordinate frame. When provided, the matrix sent to the retargeting pipeline becomes
target_T_world @ world_T_anchorinstead of justworld_T_anchor, so all resulting poses are expressed in the target frame rather than the simulation world frame.Typical use case: pass
robot_base_T_worldso that an IK controller receives end-effector poses in the robot’s base link frame.Accepts any object supporting the DLPack buffer protocol (
__dlpack__), includingnumpy.ndarray,torch.Tensor, andwp.array.For Kit sessions, when
Noneandtarget_frame_prim_pathis set, the transform is computed automatically by reading the prim’s world matrix from Fabric and inverting it. External OVXR sessions do not read Fabric: callers must supply this matrix to rebase into a target frame. WithNone, external output remains in the simulation world frame, using the configured static anchor or the owner’s latest committed dynamic anchor.- Returns:
A flattened action
torch.Tensorready for the Isaac Lab environment, orNoneif the session has not started yet (e.g. still waiting for the user to start AR).- Raises:
RuntimeError – If called outside of a context manager or an external dynamic anchor has no committed pose for the current reset epoch.
- send_haptic(endpoint: str, values) None[source]#
Render one frame of haptic output on a device endpoint.
Implements the
HapticFeedbackReceiverprotocol. The vector is cached and injected into the haptic sink on the nextadvance(). This is a no-op unless the device was constructed with ahaptic_cfg.
- send_client_message(message: dict) None[source]#
Queue a JSON message for delivery to the connected XR client.
Delivery is deferred until the control channel is connected, so a message queued before the headset connects still reaches the client. This is a no-op unless a control channel is configured.
- Parameters:
message¶ – A JSON-serializable dict carrying a
"type"discriminator the client recognizes, e.g.{"type": "system_notice", "message": {...}}.
- isaaclab_teleop.create_isaac_teleop_device(cfg: IsaacTeleopCfg, sim_device: str | None = None, callbacks: dict[str, Callable] | None = None, cloudxr_env_file: str | None = None, auto_launch_cloudxr: bool = True, use_kit_xr_bridge: bool = True, mcap_record_path: str | None = None, mcap_replay_path: str | None = None, enable_debug_visualization: bool = False, haptic_cfg: HapticFeedbackCfg | None = None, *, env_prim_path: str | None = None, visualizers: Sequence[BaseVisualizer] = (), external_oxr_handles_provider: Callable[[], OpenXRSessionHandles | None] | None = None, ovxr_session: bool = False) IsaacTeleopDevice[source]#
Create an
IsaacTeleopDevicewith required Omniverse extension setup.This helper centralises the boilerplate that every script must execute before constructing an
IsaacTeleopDevice:Disable default OpenXR input bindings (prevents conflicts).
Enable the
isaacsim.kit.xr.teleop.bridgeextension (live mode only – replay mode skips this since it never touches the XR runtime).Optionally override
IsaacTeleopCfg.sim_deviceso action tensors land on the same device the caller uses for the simulation.
Note
Supplying env_prim_path copies the configuration before expanding paths. Otherwise, sim_device overrides
cfg.sim_devicein place.- Parameters:
cfg¶ – Isaac Capture configuration.
sim_device¶ – If provided, overrides
cfg.sim_deviceso action tensors are placed on the requested torch device (e.g."cuda:0").callbacks¶ – Optional mapping of command keys (e.g.
"START","STOP","RESET") to callables registered on the device.cloudxr_env_file¶ – Optional path to a CloudXR
.envfile. When provided and auto_launch_cloudxr isTrue, the CloudXR runtime and WSS proxy are launched automatically during session start. WhenNone, no CloudXR runtime is launched.auto_launch_cloudxr¶ – Whether to auto-launch the CloudXR runtime when cloudxr_env_file is set. Set to
Falseto skip the launch (e.g. when running the runtime externally). Ignored when cloudxr_env_file isNone.use_kit_xr_bridge¶ – Whether to drive the session from Kit’s XR bridge (the full XR rendering / anchor path). When
True(default) theisaacsim.kit.xr.teleop.bridgeextension is enabled and the session sources its OpenXR handles from Kit. WhenFalsethe session runs standalone – the bridge is left untouched andisaacteleopcreates its own OpenXR session through the CloudXR runtime, so teleop I/O works headless without Kit XR rendering. Typically wired to the--xrCLI flag.external_oxr_handles_provider¶ – Optional callback returning handles borrowed from an application-owned OVXR context. That owner supplies static anchoring or commits dynamic anchor poses before input reads.
ovxr_session¶ – Use application-owned OVXR presentation and the configured static or dynamic anchor policy even when input comes from an MCAP reader rather than live XR handles.
mcap_record_path¶ – Optional MCAP file path to record the live teleop session into. Debug-grade only. Mutually exclusive with mcap_replay_path.
mcap_replay_path¶ – Optional MCAP file path to replay. When set, the returned device runs in
SessionMode.REPLAYand the XR teleop bridge is left untouched. Mutually exclusive with mcap_record_path.enable_debug_visualization¶ – Whether tracking debug visualization is enabled at session start. See
IsaacTeleopDevice.enable_debug_visualization.haptic_cfg¶ – Optional haptic-feedback configuration. When provided, the returned device implements
HapticFeedbackReceiverand renders per-hand output vectors on the configured device (controller, glove, …).env_prim_path¶ – Concrete environment root used for
{ENV_REGEX_NS}in target and XR anchor paths.visualizers¶ – Live sequence of windows supplying keyboard input, usually
sim.visualizers.
- Returns:
A fully configured
IsaacTeleopDeviceready for use in awithblock.
Keyboard#
- isaaclab_teleop.se2_keyboard_teleop_cfg(v_x_sensitivity: float = 0.8, v_y_sensitivity: float = 0.4, omega_z_sensitivity: float = 1.0, sim_device: str = 'cpu') IsaacTeleopCfg[source]#
Build a keyboard pipeline for SE(2) velocity control.
Use arrows/numpad 8/2 and 4/6 for translation, and Z/X or numpad 7/9 for rotation.
- isaaclab_teleop.se3_keyboard_teleop_cfg(pos_sensitivity: float = 0.4, rot_sensitivity: float = 0.8, gripper_term: bool = True, sim_device: str = 'cpu') IsaacTeleopCfg[source]#
Build a keyboard pipeline for SE(3) delta-pose control.
See Keyboard, SpaceMouse, and Gamepad Environments for bindings, focus and device permissions.
- Parameters:
- Returns:
IsaacTeleopCfg driving this pipeline.
Gamepad#
- isaaclab_teleop.se2_gamepad_teleop_cfg(v_x_sensitivity: float = 1.0, v_y_sensitivity: float = 1.0, omega_z_sensitivity: float = 1.0, dead_zone: float = 0.15, sim_device: str = 'cpu') IsaacTeleopCfg[source]#
Build a gamepad pipeline for SE(2) velocity control.
See Keyboard, SpaceMouse, and Gamepad Environments for bindings, focus and device permissions.
- Parameters:
v_x_sensitivity¶ – Linear x-velocity scale per step.
v_y_sensitivity¶ – Linear y-velocity scale per step.
omega_z_sensitivity¶ – Angular z-velocity scale per step.
dead_zone¶ – Stick deflection magnitude below which input is treated as zero.
sim_device¶ – Torch device string for the pipeline’s output tensors.
- Returns:
IsaacTeleopCfg driving this pipeline.
- isaaclab_teleop.se3_gamepad_teleop_cfg(pos_sensitivity: float = 1.0, rot_sensitivity: float = 1.6, dead_zone: float = 0.15, gripper_term: bool = True, sim_device: str = 'cpu') IsaacTeleopCfg[source]#
Build a gamepad pipeline for SE(3) delta-pose control.
See Keyboard, SpaceMouse, and Gamepad Environments for bindings, focus and device permissions.
- Parameters:
pos_sensitivity¶ – Position delta scale per step [m].
rot_sensitivity¶ – Rotation delta scale per step [rad].
dead_zone¶ – Stick deflection magnitude below which input is treated as zero.
gripper_term¶ – Whether to include a gripper open/close command as a 7th action element.
sim_device¶ – Torch device string for the pipeline’s output tensors.
- Returns:
IsaacTeleopCfg driving this pipeline.
SpaceMouse#
- isaaclab_teleop.se2_spacemouse_teleop_cfg(v_x_sensitivity: float = 0.8, v_y_sensitivity: float = 0.4, omega_z_sensitivity: float = 1.0, sim_device: str = 'cpu') IsaacTeleopCfg[source]#
Build a spacemouse pipeline for SE(2) velocity control.
See Keyboard, SpaceMouse, and Gamepad Environments for bindings, focus and device permissions.
- isaaclab_teleop.se3_spacemouse_teleop_cfg(pos_sensitivity: float = 0.4, rot_sensitivity: float = 0.8, gripper_term: bool = True, sim_device: str = 'cpu') IsaacTeleopCfg[source]#
Build a spacemouse pipeline for SE(3) delta-pose control.
See Keyboard, SpaceMouse, and Gamepad Environments for bindings, focus and device permissions.
- Parameters:
- Returns:
IsaacTeleopCfg driving this pipeline.
Haptic Feedback#
- class isaaclab_teleop.HapticFeedbackCfg[source]#
Base configuration for teleop haptic feedback.
Device-agnostic. Attach a concrete subclass (
ControllerHapticFeedbackCfgorGloveHapticFeedbackCfg) to an environment config as a sibling ofisaac_teleop(e.g.self.haptic_feedback = ...in__post_init__). The teleop scripts discover it viahasattr(env_cfg, "haptic_feedback").A subclass supplies the two pluggable pieces:
make_signal_fn()(how the per-hand vector is read from the environment) andbuild_sink()(how that vector is rendered by anisaacteleopdevice).Attributes:
Scene entity name of the left-hand
ContactSensor.Scene entity name of the right-hand
ContactSensor.1 for a single rumble motor, one channel per finger for a glove.
Signal-to-output gain applied after the deadband (see the subclass docs for units).
Signal magnitude below which no output is produced (rejects sensor noise).
Upper clamp on the normalized output amplitude in
[0, 1].Methods:
Return the signal source (environment -> per-hand vector) for this config.
build_sink(force_inputs, tracker_provider)Build the
isaacteleopHapticSinkthat renders the cached vectors.__init__([left_sensor_name, ...])- left_sensor_name: str#
Scene entity name of the left-hand
ContactSensor.
- right_sensor_name: str#
Scene entity name of the right-hand
ContactSensor.
- num_taxels: int#
1 for a single rumble motor, one channel per finger for a glove.
- Type:
Length of the per-hand output vector
- make_signal_fn() SignalFn[source]#
Return the signal source (environment -> per-hand vector) for this config.
- build_sink(force_inputs: dict[str, Any], tracker_provider: Callable[[], Any]) tuple[Any, Any][source]#
Build the
isaacteleopHapticSinkthat renders the cached vectors.- Parameters:
- Returns:
A
(connected_sink, tracker)tuple.connected_sinkis theHapticSink.connect(...)result forTeleopSessionConfig(sinks=[...])(a subgraph, not the sink node).trackeris the device’s DeviceIO tracker (orNone); the session uses it to request the device’s OpenXR extensions (e.g. a glove’sXR_NVX1_push_tensor). It is returned separately because the connected subgraph does not expose the device.
- class isaaclab_teleop.ControllerHapticFeedbackCfg[source]#
Bases:
HapticFeedbackCfgHaptic feedback rendered as XR motion-controller vibration.
Renders a single scalar per hand (total gripper contact force) as controller rumble via
ControllerHapticDevice+TactileVectorToControllerPulse.Attributes:
1 for a single rumble motor, one channel per finger for a glove.
Force-to-amplitude gain [1/N] applied after the deadband.
Contact force [N] below which no vibration is produced.
Vibration frequency [Hz].
Pulse duration [s].
Scene entity name of the left-hand
ContactSensor.Scene entity name of the right-hand
ContactSensor.Upper clamp on the normalized output amplitude in
[0, 1].Methods:
Return the signal source (environment -> per-hand vector) for this config.
build_sink(force_inputs, tracker_provider)Build the
isaacteleopHapticSinkthat renders the cached vectors.__init__([left_sensor_name, ...])- num_taxels: int#
1 for a single rumble motor, one channel per finger for a glove.
- Type:
Length of the per-hand output vector
- gain: float#
Force-to-amplitude gain [1/N] applied after the deadband. Default maps ~20 N to full scale.
- duration_s: float#
Pulse duration [s].
0selects the shortest supported pulse; refreshed each frame.
- make_signal_fn() SignalFn[source]#
Return the signal source (environment -> per-hand vector) for this config.
- build_sink(force_inputs: dict[str, Any], tracker_provider: Callable[[], Any]) tuple[Any, Any][source]#
Build the
isaacteleopHapticSinkthat renders the cached vectors.- Parameters:
- Returns:
A
(connected_sink, tracker)tuple.connected_sinkis theHapticSink.connect(...)result forTeleopSessionConfig(sinks=[...])(a subgraph, not the sink node).trackeris the device’s DeviceIO tracker (orNone); the session uses it to request the device’s OpenXR extensions (e.g. a glove’sXR_NVX1_push_tensor). It is returned separately because the connected subgraph does not expose the device.
- __init__(left_sensor_name: str = <factory>, right_sensor_name: str = <factory>, num_taxels: int = <factory>, gain: float = <factory>, deadband: float = <factory>, saturation: float = <factory>, frequency_hz: float = <factory>, duration_s: float = <factory>) None#
- left_sensor_name: str#
Scene entity name of the left-hand
ContactSensor.
- right_sensor_name: str#
Scene entity name of the right-hand
ContactSensor.
- class isaaclab_teleop.GloveHapticFeedbackCfg[source]#
Bases:
HapticFeedbackCfgHaptic feedback rendered as per-finger power on a haptic glove.
Renders per-finger grip force against the grasped object as finger vibration via a cross-process
haptic_glove_device+TactileVectorToFingerPower.Attributes:
Force-to-power gain [1/N] applied after the deadband.
Contact force [N] below which no vibration is produced.
EMA new-sample weight in
[0, 1](1.0 = no smoothing) applied to each finger power.Scene entity name of the left-hand
ContactSensor.Scene entity name of the right-hand
ContactSensor.1 for a single rumble motor, one channel per finger for a glove.
Upper clamp on the normalized output amplitude in
[0, 1].Push-tensor collection id pairing Isaac Capture with the glove plugin process (the Manus plugin's default).
Per-channel finger substrings, in glove channel order, matched against the contact sensor's body names to group each finger's links into one channel.
Methods:
__init__([left_sensor_name, ...])Return the signal source (environment -> per-hand vector) for this config.
build_sink(force_inputs, tracker_provider)Build the
isaacteleopHapticSinkthat renders the cached vectors.- gain: float#
Force-to-power gain [1/N] applied after the deadband. Default maps ~10 N to full power.
- smoothing: float#
EMA new-sample weight in
[0, 1](1.0 = no smoothing) applied to each finger power.
- __init__(left_sensor_name: str = <factory>, right_sensor_name: str = <factory>, num_taxels: int = <factory>, gain: float = <factory>, deadband: float = <factory>, saturation: float = <factory>, smoothing: float = <factory>, collection_id: str = <factory>, finger_order: list[str] = <factory>) None#
- left_sensor_name: str#
Scene entity name of the left-hand
ContactSensor.
- right_sensor_name: str#
Scene entity name of the right-hand
ContactSensor.
- num_taxels: int#
1 for a single rumble motor, one channel per finger for a glove.
- Type:
Length of the per-hand output vector
- collection_id: str#
Push-tensor collection id pairing Isaac Capture with the glove plugin process (the Manus plugin’s default). Change it to target a different glove vendor.
- finger_order: list[str]#
Per-channel finger substrings, in glove channel order, matched against the contact sensor’s body names to group each finger’s links into one channel. This is the sole source of the finger-channel count (
num_taxels).
- make_signal_fn() SignalFn[source]#
Return the signal source (environment -> per-hand vector) for this config.
- build_sink(force_inputs: dict[str, Any], tracker_provider: Callable[[], Any]) tuple[Any, Any][source]#
Build the
isaacteleopHapticSinkthat renders the cached vectors.- Parameters:
- Returns:
A
(connected_sink, tracker)tuple.connected_sinkis theHapticSink.connect(...)result forTeleopSessionConfig(sinks=[...])(a subgraph, not the sink node).trackeris the device’s DeviceIO tracker (orNone); the session uses it to request the device’s OpenXR extensions (e.g. a glove’sXR_NVX1_push_tensor). It is returned separately because the connected subgraph does not expose the device.
- class isaaclab_teleop.HapticFeedbackReceiver[source]#
Protocol for a teleop device that can render haptic feedback.
Deliberately a single-method protocol rather than an addition to
DeviceBase: input-only devices (keyboard, space-mouse, gamepad) cannot honor a feedback call, so forcing the method onto every device would break Liskov substitutability. Scripts guard withisinstance(device, HapticFeedbackReceiver)and only drive feedback when the active device actually supports it.Methods:
send_haptic(endpoint, values)Render one frame of haptic output on a device endpoint.
__init__(*args, **kwargs)- send_haptic(endpoint: str, values: Sequence[float]) None[source]#
Render one frame of haptic output on a device endpoint.
- Parameters:
endpoint¶ – Which hand to actuate –
ENDPOINT_LEFTorENDPOINT_RIGHT.values¶ – The per-hand output vector (length
num_taxels): a single scalar for a rumble motor, one value per finger for a glove. An all-zero vector stops any active feedback. The signal-to-device mapping (gain, deadband, saturation) is applied downstream.
- __init__(*args, **kwargs)#
- class isaaclab_teleop.HapticFeedbackDriver[source]#
Reads the per-hand signal from the scene and pushes it to the device.
One driver is shared by every teleop script. Construct it with
create_haptic_feedback_driver()(which returnsNonewhen the env has no haptic config or the device cannot render it), then callupdate()once per step afterenv.stepso the sensors hold fresh post-physics data.Methods:
__init__(env, device, cfg)Initialize the driver.
update()Read the per-hand signal and forward each endpoint's vector to the device.
stop()Zero every endpoint so any active feedback stops.
- __init__(env: ManagerBasedRLEnv, device: HapticFeedbackReceiver, cfg: HapticFeedbackCfg)[source]#
Initialize the driver.
- Parameters:
env¶ – The (unwrapped) environment whose scene owns the sensors.
device¶ – The teleop device implementing
HapticFeedbackReceiver.cfg¶ – Haptic feedback configuration providing the signal source.
- stop() None[source]#
Zero every endpoint so any active feedback stops.
Call this on every frame the robot is not being stepped (teleop paused or session not started). Because the device re-emits the cached vector each frame, forgetting to zero it would leave the device rendering a stale grip force until the next reset.
- isaaclab_teleop.create_haptic_feedback_driver(env: ManagerBasedRLEnv, device: object, env_cfg: object) HapticFeedbackDriver | None[source]#
Build a
HapticFeedbackDriverwhen the env and device support haptics.Follows the same capability-discovery idiom the teleop scripts use for
isaac_teleop: ahaptic_feedbackattribute on the env config plus a device that satisfiesHapticFeedbackReceiver.- Parameters:
env¶ – The (unwrapped) environment.
device¶ – The active teleop device (any type).
env_cfg¶ – The environment configuration; checked for a
haptic_feedbackHapticFeedbackCfgattribute.
- Returns:
A ready driver, or
Noneif haptics are not configured or the device cannot render them.
XR Anchor#
- class isaaclab_teleop.XrAnchorSynchronizer[source]#
Adapt the shared anchor policy to Kit Fabric and XRCore pre-sync events.
Methods:
__init__(xr_core, xr_cfg, xr_anchor_headset_path)Return the anchor world transform.
Sync XR anchor pose in USD for both dynamic and static anchoring.
- get_world_transform() tuple[ndarray, ndarray] | None[source]#
Return the anchor world transform.
Returns the cached world transform that was computed by the most recent call to
sync_headset_to_anchor(). Using the cached value avoids a Fabric/USD layer mismatch: when the XR anchor prim is a child of a physics-driven prim (e.g. the robot pelvis), readingGetFabricHierarchyWorldMatrixAttrwould compose the Fabric-side parent transform (updated by physics) with a local xform that was decomposed against the USD-side parent (which can lag behind), producing an incorrect world matrix that drifts as the robot moves.- Returns:
A
(position, quat_xyzw)tuple of numpy float64 arrays, orNoneifsync_headset_to_anchor()has not run yet.
- sync_headset_to_anchor()[source]#
Sync XR anchor pose in USD for both dynamic and static anchoring.
For dynamic anchoring (
anchor_prim_pathis set), the reference prim’s world position is read from Fabric andanchor_posis added as an offset. For static anchoring (no prim path),anchor_posis used directly as the world position.In both cases the function calls
set_world_transform_matrixon the XR core so that the rendering anchor and the pipeline’sworld_T_anchormatrix are guaranteed to agree, and caches the world transform forget_world_transform().
- isaaclab_teleop.remove_camera_configs(env_cfg: Any, *, keep: tuple[str, ...] = ()) Any[source]#
Removes cameras from environments when using XR devices.
Having additional cameras cause operation performance issues. This function scans the environment configuration for camera objects and removes them, along with any associated observation terms that reference these cameras.
- Parameters:
- Returns:
The modified environment configuration with cameras removed.
Additional Public Classes#
The following classes are part of the public isaaclab_teleop API.
Result of |
|
Duck type for teleop devices that expose control events. |
|
One measured requirement. |
|
Aggregate result of |
- class isaaclab_teleop.ControlEvents[source]#
Bases:
objectResult of
poll_control_events().- is_active#
Truewhen the teleop state machine is in RUNNING,Falsewhen PAUSED or STOPPED, orNonewhen no control channel is configured (callers should leave their own active flag unchanged).- Type:
bool | None
Methods:
- classmethod __new__(*args, **kwargs)#
- class isaaclab_teleop.SupportsControlEvents[source]#
Bases:
ProtocolDuck type for teleop devices that expose control events.
Methods:
- classmethod __new__(*args, **kwargs)#
- __init__(*args, **kwargs)#
Entrypoints#
Command-line entrypoints for teleoperation, demonstration recording and replay, and session replay.
Each run_*_cli function takes the command-line arguments without the program name; run_cli selects
the isaaclab teleop workflow. teleop_se3_agent.py, record_demos.py, replay_demos.py and
teleop_replay_agent.py under scripts/ call them. They need isaaclab_tasks to resolve the task.
- isaaclab_teleop.entrypoints.run_cli(argv: list[str] | None = None) int[source]#
Run a teleoperation workflow: live teleoperation, demonstration recording or demonstration replay.
- Parameters:
argv¶ – The workflow name (
run,recordorreplay) followed by its arguments, excluding the program name. Defaults tosys.argv[1:].- Returns:
The workflow’s process exit code.
- isaaclab_teleop.entrypoints.run_teleop_se3_agent_cli(argv: list[str] | None = None) int[source]#
Run interactive teleoperation from the command line.
- Parameters:
argv¶ – Command-line arguments, excluding the program name. Defaults to
sys.argv[1:].sys.argvis restored on return.- Returns:
The process exit code, 0 once the session ends.
- isaaclab_teleop.entrypoints.run_record_demos_cli(argv: list[str] | None = None) int[source]#
Record teleoperated demonstrations from the command line.
- Parameters:
argv¶ – Command-line arguments, excluding the program name. Defaults to
sys.argv[1:].sys.argvis restored on return.- Returns:
The process exit code, 0 once recording ends.
- isaaclab_teleop.entrypoints.run_replay_demos_cli(argv: list[str] | None = None) int[source]#
Replay recorded demonstrations from the command line.
- Parameters:
argv¶ – Command-line arguments, excluding the program name. Defaults to
sys.argv[1:].sys.argvis restored on return.- Returns:
The process exit code, 0 once the replay ends.
- isaaclab_teleop.entrypoints.run_teleop_replay_agent_cli(argv: list[str] | None = None) int[source]#
Replay a captured Isaac Capture session from the command line.
- Parameters:
argv¶ – Command-line arguments, excluding the program name. Defaults to
sys.argv[1:].sys.argvis restored on return.- Returns:
The process exit code documented in the module docstring.