isaaclab_teleop

Contents

isaaclab_teleop#

Package providing Isaac Capture-based teleoperation for Isaac Lab.

Classes

IsaacTeleopCfg

Configuration for Isaac Capture-based teleoperation.

IsaacTeleopDevice

An Isaac Capture-based teleoperation device for Isaac Lab.

XrCameraFeedCfg

Configuration for one camera image panel shown in XR.

XrCameraFeedLayoutCfg

Declarative placement and packing for enabled XR camera feeds.

XrCameraFeedSession

Manage the two-phase XR camera-feed lifecycle.

HapticFeedbackCfg

Base configuration for teleop haptic feedback.

ControllerHapticFeedbackCfg

Haptic feedback rendered as XR motion-controller vibration.

GloveHapticFeedbackCfg

Haptic feedback rendered as per-finger power on a haptic glove.

HapticFeedbackReceiver

Protocol for a teleop device that can render haptic feedback.

HapticFeedbackDriver

Reads the per-hand signal from the scene and pushes it to the device.

XrCfg

Configuration for viewing and interacting with the environment through an XR device.

XrAnchorRotationMode

Enumeration for XR anchor rotation modes.

XrAnchorSynchronizer

Adapt the shared anchor policy to Kit Fabric and XRCore pre-sync events.

OvLibrariesXrCfg

Isaac Lab configuration for an Isaac Capture-owned OVXR session.

OvLibrariesXrCameraFeedCfg

One application-selected sensor and its camera-panel policy.

OvLibrariesXrDesktopMirrorCfg

Owner-managed desktop window that mirrors the completed XR and camera-panel images.

OvLibrariesXrSession

Isaac Lab adapter around Isaac Capture's OVXR session.

OvxrRendererCfg

Configuration of the renderer that publishes the simulation's scene for an OVXR session.

Functions

create_isaac_teleop_device(cfg[, ...])

Create an IsaacTeleopDevice with required Omniverse extension setup.

create_haptic_feedback_driver(env, device, ...)

Build a HapticFeedbackDriver when the env and device support haptics.

remove_camera_configs(env_cfg, *[, keep])

Removes cameras from environments when using XR devices.

se2_gamepad_teleop_cfg([v_x_sensitivity, ...])

Build a gamepad pipeline for SE(2) velocity control.

se2_keyboard_teleop_cfg([v_x_sensitivity, ...])

Build a keyboard pipeline for SE(2) velocity control.

se2_spacemouse_teleop_cfg([v_x_sensitivity, ...])

Build a spacemouse pipeline for SE(2) velocity control.

se3_gamepad_teleop_cfg([pos_sensitivity, ...])

Build a gamepad pipeline for SE(3) delta-pose control.

se3_keyboard_teleop_cfg([pos_sensitivity, ...])

Build a keyboard pipeline for SE(3) delta-pose control.

se3_spacemouse_teleop_cfg([pos_sensitivity, ...])

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_builder and retargeters_to_tune explicitly. Both fields must be callables (lambdas / functions) so they survive the deepcopy performed by @configclass on 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_cfg

XR anchor configuration for positioning the user in the simulation.

xr_camera_feeds

Existing task camera outputs to show as XR image panels.

xr_camera_feed_layout

Placement and packing applied to the ordered enabled camera feeds.

pipeline_builder

Callable that builds the Isaac Capture retargeting pipeline.

plugins

List of Isaac Capture plugin configurations.

sim_device

Torch device string for placing output action tensors.

retargeting_execution

Isaac Capture retargeting execution settings.

teleoperation_active_default

Whether teleoperation should be active by default when the session starts.

retargeters_to_tune

Optional callable returning retargeters to expose in the tuning UI.

control_channel_uuid

16-byte UUID for the teleop control message channel.

target_frame_prim_path

Optional USD prim path whose world frame becomes the target coordinate frame for all output poses.

app_name

Application name for the Isaac Capture session.

require_initial_bimanual_hand_tracking

Wait for both hands to be present before the first environment step.

prepare_environment

Optional task-owned preparation of the resolved environment configuration.

action_conditioner

Optional task-owned pre-step action conditioner.

action_validator

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_tune directly 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.

sim_device: str#

Torch device string for placing output action tensors.

retargeting_execution: RetargetingExecutionConfig | None#

Isaac Capture retargeting execution settings.

Left as None by default so that importing and constructing this config never requires the optional isaacteleop package (e.g. on platforms where it is not installed). When None, 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))), where isaacteleop is guaranteed to be available. An MCAP replay without Kit resolves it to RetargetingExecutionConfig(mode="sync") instead, so that every step consumes exactly the next recorded frame. Set this explicitly to RetargetingExecutionConfig(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 @configclass deep-copies mutable attributes and retargeter objects often contain non-picklable C++/SWIG handles. Wrapping in a callable makes the value opaque to deepcopy.

When set and the tuning UI is enabled, the returned retargeters will be displayed in the MultiRetargeterTuningUIImGui window, allowing real-time adjustment of their tunable parameters. Only retargeters that have a ParameterState (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_pipeline is created automatically using TeleopMessageProcessor and DefaultTeleopStateManager. The remote client sends UTF-8 control commands over the OpenXR opaque data channel identified by this UUID, and the results are exposed via poll_control_events().

Set to None to 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 ValueError before the session starts. Each frame reads its current world transform and uses its inverse as the target_T_world rebase matrix in advance(). An explicit target_T_world argument to advance() 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 an env_prim_path.

Example:

IsaacTeleopCfg(
    target_frame_prim_path="{ENV_REGEX_NS}/Robot/base_link",
    ...
)
app_name: str#

Application name for the Isaac Capture session.

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 None for 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:

anchor_pos

Specifies the position (in m) of the simulation when viewed in an XR device.

anchor_rot

Specifies the rotation (as a quaternion xyzw) of the simulation when viewed in an XR device.

anchor_prim_path

Specifies the prim path to attach the XR anchor to for dynamic positioning.

anchor_rotation_mode

Specifies how the XR anchor rotation should behave when attached to a prim.

anchor_rotation_smoothing_time

Time constant [s] for rotation smoothing in FOLLOW_PRIM_SMOOTHED mode.

anchor_rotation_custom_func

Specifies the function to calculate the rotation of the XR anchor when anchor_rotation_mode is CUSTOM.

near_plane

Specifies the near plane distance for the XR device.

fixed_anchor_height

Specifies if the anchor height should be fixed.

excluded_visual_meshes

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_path is 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 an env_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_pos and anchor_rot values.

__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:

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:

FIXED

sets rotation once and doesn't change it.

FOLLOW_PRIM

Follow the prim's yaw change relative to its initial orientation, composed with XrCfg.anchor_rot.

FOLLOW_PRIM_SMOOTHED

Smoothly follow the prim's relative yaw change, composed with XrCfg.anchor_rot, using slerp.

CUSTOM

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:

camera_name

Name of the Camera in the interactive scene.

enabled

Whether to create and update this feed.

enable_dlss_ray_reconstruction

Enable DLSS Ray Reconstruction on this feed's RTX render product.

dlss_exec_mode

Optional DLSS execution mode for this feed's RTX render product.

panel_width_m

Physical panel width [m].

distance_m

Distance in front of the viewer anchor [m].

offset_m

Horizontal and vertical panel offset in the selected placement frame [m].

max_update_hz

Maximum provider upload rate [Hz].

label

Optional short label shown above the image.

Methods:

__init__([camera_name, enabled, ...])

camera_name: str#

Name of the Camera in the interactive scene.

enabled: bool#

Whether to create and update this feed.

enable_dlss_ray_reconstruction: bool | None#

Enable DLSS Ray Reconstruction on this feed’s RTX render product.

None preserves the render-product default. When True, 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.

None preserves 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.

panel_width_m: float#

Physical panel width [m].

distance_m: float#

Distance in front of the viewer anchor [m].

This value is unused when XrCameraFeedLayoutCfg.placement is "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.

label: str | None#

Optional short label shown above the image.

__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:

mode

Layout mode.

placement

Reference frame used to place the panels.

center_offset_m

Horizontal and vertical center of an automatic layout [m].

distance_m

Distance of every automatically placed panel from the viewer anchor [m].

panel_gap_m

Edge-to-edge gap between automatically placed panels [m].

max_columns

Maximum number of columns in grid mode.

world_position_m

Layout-plane center in the Isaac Lab USD stage world [m].

world_orientation_xyzw

Panel-local-to-world orientation as a quaternion in xyzw order.

use_scene_partition

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" uses world_position_m and world_orientation_xyzw as a fixed pose in the Isaac Lab USD stage world.

center_offset_m: tuple[float, float]#

Horizontal and vertical center of an automatic layout [m].

distance_m: float#

Distance of every automatically placed panel from the viewer anchor [m].

This value is unused when placement is "world".

panel_gap_m: float#

Edge-to-edge gap between automatically placed panels [m].

max_columns: int#

Maximum number of columns in grid mode.

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 placement is "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 xyzw order.

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=False after renderer initialization and before creating panels. Other scene cameras must also disable partitioning. Geometry starts as shared background; the presenter assigns XR and /ui to 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 call bind() with the constructed environment before entering the session. Close prepared sessions even when environment construction fails, for example with contextlib.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:

enabled

Whether the session has camera feeds to present.

requires_responsive_denoising

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 before bind().

Parameters:
  • env_cfg – Environment configuration containing the Isaac Capture and scene settings.

  • enabled – Whether XR camera feeds are enabled for this run.

  • camera_rendering_enabled – Whether external camera rendering is enabled.

Returns:

A session ready to bind to the constructed environment.

property enabled: bool[source]#

Whether the session has camera feeds to present.

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.

refresh() → None[source]#

Refresh and publish feed buffers after the environment resets.

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_name

Application identifier passed to the OpenXR runtime.

session_mode

augmented or virtual reality.

renderer_settings

Process-global OVXR renderer settings applied before renderer construction.

cloudxr_env_file

CloudXR environment-file path; None leaves runtime launch to the caller.

auto_launch_cloudxr

Whether the session owner launches the CloudXR runtime automatically.

render_products

Stereo RenderProduct paths; an empty selection uses OVXR's default paths.

camera_paths

Exactly two non-empty USD camera paths, ordered left eye then right eye.

create_render_products

Whether OVXR authors the stereo render products; the eye cameras are then declared for it.

meters_per_unit

Finite positive scene scale [m per USD unit].

depth_near_z

Near depth distance [m]; both depth distances zero select provider defaults.

depth_far_z

Far depth distance [m]; explicit distances must satisfy 0 < near < far.

tracking_anchor_path

USD tracking-anchor path; an empty path uses the stage origin.

host_wait_render_output

Whether OVXR waits for render output before returning from frame rendering.

desktop_mirror

Owner-managed desktop mirror; None disables it.

camera_feeds

Up to three uniquely named camera panels; an empty selection disables panels.

extra_openxr_extensions

Additional OpenXR extension names requested when creating the session.

Methods:

__init__([application_name, session_mode, ...])

application_name: str#

Application identifier passed to the OpenXR runtime.

session_mode: Literal['ar', 'vr']#

augmented or virtual reality.

Type:

OpenXR presentation mode

renderer_settings: str#

Process-global OVXR renderer settings applied before renderer construction.

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#
auto_launch_cloudxr: bool#

Whether the session owner launches the CloudXR runtime automatically.

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.

meters_per_unit: float#

Finite positive scene scale [m per USD unit].

depth_near_z: float#

Near depth distance [m]; both depth distances zero select provider defaults.

depth_far_z: float#

Far depth distance [m]; explicit distances must satisfy 0 < near < far.

tracking_anchor_path: str#

USD tracking-anchor path; an empty path uses the stage origin.

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.

extra_openxr_extensions: tuple[str, ...]#

Additional OpenXR extension names requested when creating the session.

class isaaclab_teleop.OvLibrariesXrCameraFeedCfg[source]#

One application-selected sensor and its camera-panel policy.

Attributes:

name

Scene sensor name used for camera selection and as the desktop mirror's camera label.

camera_cfg

Selected sensor configuration, assigned to the session's shared renderer.

max_fps

Finite positive image update cap [Hz].

panel_width_m

Physical panel width [m]; image aspect ratio determines its height.

position

Panel center in OpenXR head space [m], with forward along negative Z.

orientation_xyzw

Panel orientation in head space as an (x, y, z, w) quaternion.

space

Placement space; only head-locked panels are supported.

Methods:

__init__([name, camera_cfg, max_fps, ...])

name: str#

Scene sensor name used for camera selection and as the desktop mirror’s camera label.

camera_cfg: CameraCfg#

Selected sensor configuration, assigned to the session’s shared renderer.

max_fps: float#

Finite positive image update cap [Hz].

panel_width_m: float#

Physical panel width [m]; image aspect ratio determines its height.

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.

__init__(name: str = <factory>, camera_cfg: CameraCfg = <factory>, max_fps: float = <factory>, panel_width_m: float = <factory>, position: tuple[float, float, float] = <factory>, orientation_xyzw: tuple[float, float, float, float] = <factory>, space: Literal['head_locked'] = <factory>) → None#
class isaaclab_teleop.OvLibrariesXrDesktopMirrorCfg[source]#

Owner-managed desktop window that mirrors the completed XR and camera-panel images.

Attributes:

max_fps

Finite positive refresh cap [Hz].

Methods:

__init__([max_fps])

max_fps: float#

Finite positive refresh cap [Hz].

__init__(max_fps: float = <factory>) → None#
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_complete holds. Worker termination alone is insufficient.

prepare() also registers the session’s retirement as the first STOP listener 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:

ExternalAnchorState

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.

external_oxr_handles()

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_shutdown()

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:

retirement_complete

Whether all XR borrowers retired, including after a failed startup.

shutdown_requested

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.ExternalXrAnchor implements this protocol. It drives the anchor of an OVXR session with XrCfg.anchor_prim_path set, which is when external_anchor_state returns it.

Attributes:

external_anchor_paths

Anchor Xform paths written together at each committed pose.

external_reference_path

Absolute path of the physics prim whose world transform drives the anchor.

external_epoch

Reset identity and whether that epoch still needs its seeding publication.

Methods:

commit_external_pose(reference, ...)

Advance the policy from reference and seal its matrices through commit.

__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 reference and seal its matrices through commit.

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:

False when epoch is 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.

property shutdown_requested: bool[source]#

Whether the OVXR session requested application shutdown.

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 env does 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_state does not implement ExternalAnchorState.

  • ValueError – If max_blank_frames is 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 None when render demand is already satisfied. Retry the latest dirty generation until admitted, including while paused. force preserves 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.

request_shutdown() → None[source]#

Request orderly OVXR shutdown.

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. None selects the default OvxrRendererCfg.

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: RendererCfg

Configuration of the renderer that publishes the simulation’s scene for an OVXR session.

The session’s OvxrRenderer creates 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 one OvxrRenderer. Other cameras keep their own renderer configurations, such as OVRTXRendererCfg, which renders on the simulation device. OVRTX selects rendering GPUs once per process, so such cameras can only share the simulation when active_cuda_gpus is unset or names just the simulation GPU.

Attributes:

class_type

Renderer implementation class.

renderer_type

Type identifier for the OVXR renderer.

launcher_type

The launcher that registers the OVRTX runtime before the stage is created.

cloning_contexts

Deliver the scene copies to the renderer's own OVStage.

log_level

"verbose", "info", "warn", "error".

log_file_path

Path for the OVRTX log file.

active_cuda_gpus

Comma-separated CUDA device indices that render the session (e.g. "1" or "0,1").

Methods:

supported_output_types()

Return the outputs a camera panel's render product may provide, with the OVRTX renderer's layouts.

__init__([class_type, renderer_type, ...])

class_type: type[OvxrRenderer] | str#

Renderer implementation class.

renderer_type: str#

Type identifier for the OVXR renderer.

launcher_type: ClassVar[str] = 'isaaclab_ov.app:OvrtxLauncher'#

The launcher that registers the OVRTX runtime before the stage is created.

cloning_contexts: tuple[type | str, ...]#

Deliver the scene copies to the renderer’s own OVStage.

log_level: str#

“verbose”, “info”, “warn”, “error”.

Type:

OVRTX carb log level

log_file_path: str#

Path for the OVRTX log file. Defaults to <system temp>/ovrtx_renderer.log.

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; depth is also accepted, for example to check a panel’s rendered scene directly. The renderer itself writes none of these buffers.

__init__(class_type: type[~isaaclab_teleop.ovxr_renderer.OvxrRenderer] | str = <factory>, renderer_type: str = <factory>, cloning_contexts: tuple[type | str, ...] = <factory>, log_level: str = <factory>, log_file_path: str = <factory>, active_cuda_gpus: str | None = <factory>) → None#

Device#

class isaaclab_teleop.IsaacTeleopDevice[source]#

Bases: object

An 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:

  1. XR anchor configuration and synchronization

  2. Isaac Capture session lifecycle

  3. 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_path to 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_world matrix directly to advance().

In both cases the device composes target_T_world @ world_T_anchor before 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, the B / P / R keys 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.

request_start()

Start teleoperation without an XR client.

notify_reset()

Notify the device that the environment has reset, without requesting another reset.

request_stop()

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:

target_frame_prim_path

Concrete target frame for external scene readers, after environment-path expansion.

xr_render_anchor_path

Anchor prim that frames the rendered XR view.

external_anchor_state

The dynamic anchor capability consumed by Lab's external scene publisher.

required_openxr_extensions

Return extensions required by the built teleop graphs.

session_cleanup_failed

Whether borrowed XR handles could not be safely drained.

last_control_events

Control events from the most recent advance().

hand_tracking_presence

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 .env file. When provided and auto_launch_cloudxr is True, the CloudXR runtime is launched automatically during session start. When None, 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) with isaacteleop owning its own OpenXR session through the CloudXR runtime – teleop I/O with no Kit XR rendering. Typically wired to the --xr CLI 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.REPLAY with 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, …). None disables 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 xr_render_anchor_path: str[source]#

Anchor prim that frames the rendered XR view.

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 reset ExecutionEvents for 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. keyboard R). Defaults to False for 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 ControlEvents derived 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 subsequent advance() 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.

add_callback(key: str, func: Callable) → None[source]#

Add a callback function for teleop commands.

Parameters:
  • key – The command type to bind to. Valid values are “START”, “STOP”, “RESET”, and “R”.

  • func – The function to call when the command is received. Should take no arguments.

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_anchor instead of just world_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_world so that an IK controller receives end-effector poses in the robot’s base link frame.

Accepts any object supporting the DLPack buffer protocol (__dlpack__), including numpy.ndarray, torch.Tensor, and wp.array.

For Kit sessions, when None and target_frame_prim_path is 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. With None, 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.Tensor ready for the Isaac Lab environment, or None if 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 HapticFeedbackReceiver protocol. The vector is cached and injected into the haptic sink on the next advance(). This is a no-op unless the device was constructed with a haptic_cfg.

Parameters:
  • endpoint – "left" or "right" (see ENDPOINT_LEFT).

  • values – The per-hand output vector (one scalar for a rumble motor, one value per finger for a glove); an all-zero vector stops feedback.

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 IsaacTeleopDevice with required Omniverse extension setup.

This helper centralises the boilerplate that every script must execute before constructing an IsaacTeleopDevice:

  1. Disable default OpenXR input bindings (prevents conflicts).

  2. Enable the isaacsim.kit.xr.teleop.bridge extension (live mode only – replay mode skips this since it never touches the XR runtime).

  3. Optionally override IsaacTeleopCfg.sim_device so 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_device in place.

Parameters:
  • cfg – Isaac Capture configuration.

  • sim_device – If provided, overrides cfg.sim_device so 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 .env file. When provided and auto_launch_cloudxr is True, the CloudXR runtime and WSS proxy are launched automatically during session start. When None, no CloudXR runtime is launched.

  • auto_launch_cloudxr – Whether to auto-launch the CloudXR runtime when cloudxr_env_file is set. Set to False to skip the launch (e.g. when running the runtime externally). Ignored when cloudxr_env_file is None.

  • use_kit_xr_bridge – Whether to drive the session from Kit’s XR bridge (the full XR rendering / anchor path). When True (default) the isaacsim.kit.xr.teleop.bridge extension is enabled and the session sources its OpenXR handles from Kit. When False the session runs standalone – the bridge is left untouched and isaacteleop creates its own OpenXR session through the CloudXR runtime, so teleop I/O works headless without Kit XR rendering. Typically wired to the --xr CLI 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.REPLAY and 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 HapticFeedbackReceiver and 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 IsaacTeleopDevice ready for use in a with block.

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.

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.

  • sim_device – Torch device string for the pipeline’s output tensors.

Returns:

IsaacTeleopCfg driving this pipeline.

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:
  • pos_sensitivity – Position delta scale per step [m].

  • rot_sensitivity – Rotation delta scale per step [rad].

  • 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.

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.

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.

  • sim_device – Torch device string for the pipeline’s output tensors.

Returns:

IsaacTeleopCfg driving this pipeline.

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:
  • pos_sensitivity – Position delta scale per step [m].

  • rot_sensitivity – Rotation delta scale per step [rad].

  • 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.

Haptic Feedback#

class isaaclab_teleop.HapticFeedbackCfg[source]#

Base configuration for teleop haptic feedback.

Device-agnostic. Attach a concrete subclass (ControllerHapticFeedbackCfg or GloveHapticFeedbackCfg) to an environment config as a sibling of isaac_teleop (e.g. self.haptic_feedback = ... in __post_init__). The teleop scripts discover it via hasattr(env_cfg, "haptic_feedback").

A subclass supplies the two pluggable pieces: make_signal_fn() (how the per-hand vector is read from the environment) and build_sink() (how that vector is rendered by an isaacteleop device).

Attributes:

left_sensor_name

Scene entity name of the left-hand ContactSensor.

right_sensor_name

Scene entity name of the right-hand ContactSensor.

num_taxels

1 for a single rumble motor, one channel per finger for a glove.

gain

Signal-to-output gain applied after the deadband (see the subclass docs for units).

deadband

Signal magnitude below which no output is produced (rejects sensor noise).

saturation

Upper clamp on the normalized output amplitude in [0, 1].

Methods:

make_signal_fn()

Return the signal source (environment -> per-hand vector) for this config.

build_sink(force_inputs, tracker_provider)

Build the isaacteleop HapticSink that 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

gain: float#

Signal-to-output gain applied after the deadband (see the subclass docs for units).

deadband: float#

Signal magnitude below which no output is produced (rejects sensor noise).

saturation: float#

Upper clamp on the normalized output amplitude in [0, 1].

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 isaacteleop HapticSink that renders the cached vectors.

Parameters:
  • force_inputs – Per-endpoint graph output nodes, each carrying a TactileVector(num_taxels) fed from the driver every step.

  • tracker_provider – Callable returning a DeviceIO tracker to reuse for devices that need one (e.g. a controller). Cross-process devices (e.g. a glove) may ignore it.

Returns:

A (connected_sink, tracker) tuple. connected_sink is the HapticSink.connect(...) result for TeleopSessionConfig(sinks=[...]) (a subgraph, not the sink node). tracker is the device’s DeviceIO tracker (or None); the session uses it to request the device’s OpenXR extensions (e.g. a glove’s XR_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>) → None#
class isaaclab_teleop.ControllerHapticFeedbackCfg[source]#

Bases: HapticFeedbackCfg

Haptic feedback rendered as XR motion-controller vibration.

Renders a single scalar per hand (total gripper contact force) as controller rumble via ControllerHapticDevice + TactileVectorToControllerPulse.

Attributes:

num_taxels

1 for a single rumble motor, one channel per finger for a glove.

gain

Force-to-amplitude gain [1/N] applied after the deadband.

deadband

Contact force [N] below which no vibration is produced.

frequency_hz

Vibration frequency [Hz].

duration_s

Pulse duration [s].

left_sensor_name

Scene entity name of the left-hand ContactSensor.

right_sensor_name

Scene entity name of the right-hand ContactSensor.

saturation

Upper clamp on the normalized output amplitude in [0, 1].

Methods:

make_signal_fn()

Return the signal source (environment -> per-hand vector) for this config.

build_sink(force_inputs, tracker_provider)

Build the isaacteleop HapticSink that 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.

deadband: float#

Contact force [N] below which no vibration is produced.

frequency_hz: float#

Vibration frequency [Hz]. 0 selects the XR runtime default.

duration_s: float#

Pulse duration [s]. 0 selects 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 isaacteleop HapticSink that renders the cached vectors.

Parameters:
  • force_inputs – Per-endpoint graph output nodes, each carrying a TactileVector(num_taxels) fed from the driver every step.

  • tracker_provider – Callable returning a DeviceIO tracker to reuse for devices that need one (e.g. a controller). Cross-process devices (e.g. a glove) may ignore it.

Returns:

A (connected_sink, tracker) tuple. connected_sink is the HapticSink.connect(...) result for TeleopSessionConfig(sinks=[...]) (a subgraph, not the sink node). tracker is the device’s DeviceIO tracker (or None); the session uses it to request the device’s OpenXR extensions (e.g. a glove’s XR_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.

saturation: float#

Upper clamp on the normalized output amplitude in [0, 1].

class isaaclab_teleop.GloveHapticFeedbackCfg[source]#

Bases: HapticFeedbackCfg

Haptic 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:

gain

Force-to-power gain [1/N] applied after the deadband.

deadband

Contact force [N] below which no vibration is produced.

smoothing

EMA new-sample weight in [0, 1] (1.0 = no smoothing) applied to each finger power.

left_sensor_name

Scene entity name of the left-hand ContactSensor.

right_sensor_name

Scene entity name of the right-hand ContactSensor.

num_taxels

1 for a single rumble motor, one channel per finger for a glove.

saturation

Upper clamp on the normalized output amplitude in [0, 1].

collection_id

Push-tensor collection id pairing Isaac Capture with the glove plugin process (the Manus plugin's default).

finger_order

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, ...])

make_signal_fn()

Return the signal source (environment -> per-hand vector) for this config.

build_sink(force_inputs, tracker_provider)

Build the isaacteleop HapticSink that renders the cached vectors.

gain: float#

Force-to-power gain [1/N] applied after the deadband. Default maps ~10 N to full power.

deadband: float#

Contact force [N] below which no vibration is produced.

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

saturation: float#

Upper clamp on the normalized output amplitude in [0, 1].

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 isaacteleop HapticSink that renders the cached vectors.

Parameters:
  • force_inputs – Per-endpoint graph output nodes, each carrying a TactileVector(num_taxels) fed from the driver every step.

  • tracker_provider – Callable returning a DeviceIO tracker to reuse for devices that need one (e.g. a controller). Cross-process devices (e.g. a glove) may ignore it.

Returns:

A (connected_sink, tracker) tuple. connected_sink is the HapticSink.connect(...) result for TeleopSessionConfig(sinks=[...]) (a subgraph, not the sink node). tracker is the device’s DeviceIO tracker (or None); the session uses it to request the device’s OpenXR extensions (e.g. a glove’s XR_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 with isinstance(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_LEFT or ENDPOINT_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 returns None when the env has no haptic config or the device cannot render it), then call update() once per step after env.step so 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.

update() → None[source]#

Read the per-hand signal and forward each endpoint’s vector to the device.

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 HapticFeedbackDriver when the env and device support haptics.

Follows the same capability-discovery idiom the teleop scripts use for isaac_teleop: a haptic_feedback attribute on the env config plus a device that satisfies HapticFeedbackReceiver.

Parameters:
  • env – The (unwrapped) environment.

  • device – The active teleop device (any type).

  • env_cfg – The environment configuration; checked for a haptic_feedback HapticFeedbackCfg attribute.

Returns:

A ready driver, or None if 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)

get_world_transform()

Return the anchor world transform.

sync_headset_to_anchor()

Sync XR anchor pose in USD for both dynamic and static anchoring.

__init__(xr_core: Any, xr_cfg: Any, xr_anchor_headset_path: str)[source]#
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), reading GetFabricHierarchyWorldMatrixAttr would 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, or None if sync_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_path is set), the reference prim’s world position is read from Fabric and anchor_pos is added as an offset. For static anchoring (no prim path), anchor_pos is used directly as the world position.

In both cases the function calls set_world_transform_matrix on the XR core so that the rendering anchor and the pipeline’s world_T_anchor matrix are guaranteed to agree, and caches the world transform for get_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:
  • env_cfg – The environment configuration to modify.

  • keep – Camera attribute names to retain for the OVXR renderer. Observation terms are removed for retained cameras as well, so the application loop never requests a second camera render.

Returns:

The modified environment configuration with cameras removed.

Additional Public Classes#

The following classes are part of the public isaaclab_teleop API.

ControlEvents

Result of poll_control_events().

SupportsControlEvents

Duck type for teleop devices that expose control events.

SystemCheckItem

One measured requirement.

SystemCheckResult

Aggregate result of check_system_requirements().

class isaaclab_teleop.ControlEvents[source]#

Bases: object

Result of poll_control_events().

is_active#

True when the teleop state machine is in RUNNING, False when PAUSED or STOPPED, or None when no control channel is configured (callers should leave their own active flag unchanged).

Type:

bool | None

should_reset#

True when a reset was triggered this frame.

Type:

bool

Methods:

__new__(*args, **kwargs)

__init__([is_active, should_reset])

classmethod __new__(*args, **kwargs)#
__init__(is_active: bool | None = None, should_reset: bool = False) → None#
class isaaclab_teleop.SupportsControlEvents[source]#

Bases: Protocol

Duck type for teleop devices that expose control events.

Methods:

__new__(*args, **kwargs)

__init__(*args, **kwargs)

classmethod __new__(*args, **kwargs)#
__init__(*args, **kwargs)#
class isaaclab_teleop.SystemCheckItem[source]#

Bases: object

One measured requirement.

name#

Human-readable requirement name, e.g. "CPU single-thread".

Type:

str

passed#

True when the measurement meets the threshold. A skipped item (see skipped) is always True so an unavailable probe never produces a false warning.

Type:

bool

actual#

The measured value, formatted for display.

Type:

str

required#

The threshold, formatted for display.

Type:

str

detail#

Optional actionable hint, e.g. a command that fixes the item.

Type:

str

skipped#

True when the probe was unavailable and no verdict could be reached.

Type:

bool

Methods:

__new__(*args, **kwargs)

__init__(name, passed, actual, required[, ...])

classmethod __new__(*args, **kwargs)#
__init__(name: str, passed: bool, actual: str, required: str, detail: str = '', skipped: bool = False) → None#
class isaaclab_teleop.SystemCheckResult[source]#

Bases: object

Aggregate result of check_system_requirements().

Methods:

__new__(*args, **kwargs)

__init__([items])

classmethod __new__(*args, **kwargs)#
__init__(items: tuple[SystemCheckItem, ...] = ()) → None#

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, record or replay) followed by its arguments, excluding the program name. Defaults to sys.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.argv is 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.argv is 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.argv is 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.argv is restored on return.

Returns:

The process exit code documented in the module docstring.