isaaclab.envs.ui#

Sub-module providing UI window implementation for environments.

The UI elements are used to control the environment and visualize the state of the environment. This includes functionalities such as tracking a robot in the simulation, toggling different debug visualization tools, and other user-defined functionalities.

Classes

BaseEnvWindow

Window manager for the basic environment.

ManagerBasedRLEnvWindow

Window manager for the RL environment.

ViewportCameraController

Deprecated compatibility shim for ViewportCameraController.

Base Environment UI#

class isaaclab.envs.ui.BaseEnvWindow[source]#

Window manager for the basic environment.

This class creates a window that is used to control the environment. The window contains controls for rendering, debug visualization, and other environment-specific UI elements.

Users can add their own UI elements to the window by using the with context manager. This can be done either be inheriting the class or by using the env.window object directly from the standalone execution script.

Example for adding a UI element from the standalone execution script:
>>> with env.window.ui_window_elements["main_vstack"]:
>>>     ui.Label("My UI element")

Methods:

__init__(env[, window_name])

Initialize the window.

__init__(env: ManagerBasedEnv, window_name: str = 'IsaacLab')[source]#

Initialize the window.

Parameters:
  • env – The environment object.

  • window_name – The name of the window. Defaults to “IsaacLab”.

Config Based RL Environment UI#

class isaaclab.envs.ui.ManagerBasedRLEnvWindow[source]#

Bases: BaseEnvWindow

Window manager for the RL environment.

On top of the basic environment window, this class adds controls for the RL environment. This includes visualization of the command manager.

Methods:

__init__(env[, window_name])

Initialize the window.

__init__(env: ManagerBasedRLEnv, window_name: str = 'IsaacLab')[source]#

Initialize the window.

Parameters:
  • env – The environment object.

  • window_name – The name of the window. Defaults to “IsaacLab”.

Viewport Camera Controller#

class isaaclab.envs.ui.ViewportCameraController[source]#

Deprecated compatibility shim for ViewportCameraController.

Deprecated since version :class:`ViewportCameraController`: has been removed. Camera tracking is now built into KitVisualizer. Set origin_type, origin_track_path, eye, and lookat directly on KitVisualizerCfg and pass it to visualizer_cfgs.

Methods:

__init__(env, cfg)

set_view_env_index(env_index)

Deprecated.

update_view_to_world()

Deprecated.

update_view_to_env()

Deprecated.

update_view_to_asset_root(asset_name)

Deprecated.

update_view_to_asset_body(asset_name, body_name)

Deprecated.

update_view_location([eye, lookat])

Deprecated.

__init__(env: object, cfg: ViewerCfg)[source]#
set_view_env_index(env_index: int) None[source]#

Deprecated. Update origin_env_index on the visualizer instead.

update_view_to_world() None[source]#

Deprecated. Set origin_type='world' on KitVisualizerCfg instead.

update_view_to_env() None[source]#

Deprecated. Set origin_type='env' on KitVisualizerCfg instead.

update_view_to_asset_root(asset_name: str) None[source]#

Deprecated. Set origin_type='asset' and origin_track_path on KitVisualizerCfg instead.

update_view_to_asset_body(asset_name: str, body_name: str) None[source]#

Deprecated. Set origin_type='asset' and origin_track_path on KitVisualizerCfg instead.

update_view_location(eye: tuple[float, float, float] | None = None, lookat: tuple[float, float, float] | None = None) None[source]#

Deprecated. Call set_camera_view() directly instead.