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
Window manager for the basic environment. |
|
Window manager for the RL environment. |
|
Deprecated compatibility shim for |
Base Environment UI#
- class isaaclab.envs.ui.BaseEnvWindow[源代码]#
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.
Config Based RL Environment UI#
Viewport Camera Controller#
- class isaaclab.envs.ui.ViewportCameraController[源代码]#
Deprecated compatibility shim for
ViewportCameraController.自 :class:`ViewportCameraController` 版本弃用: has been removed. Camera tracking is now built into
KitVisualizer. Setorigin_type,origin_track_path,eye, andlookatdirectly onKitVisualizerCfgand pass it tovisualizer_cfgs.Methods:
__init__(env, cfg)set_view_env_index(env_index)Deprecated.
Deprecated.
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.
- set_view_env_index(env_index: int) None[源代码]#
Deprecated. Update
origin_env_indexon the visualizer instead.
- update_view_to_asset_root(asset_name: str) None[源代码]#
Deprecated. Set
origin_type='asset'andorigin_track_pathonKitVisualizerCfginstead.
Additional Public Classes#
The following classes are part of the public isaaclab.envs.ui API.
Creates an empty UI window that can be docked in the Omniverse Kit environment. |
- class isaaclab.envs.ui.EmptyWindow[源代码]#
基类:
objectCreates an empty UI window that can be docked in the Omniverse Kit environment.
The class initializes a dockable UI window and provides a main frame with a vertical stack. You can add custom UI elements to this vertical stack.
- 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: ManagerBasedEnv, window_name: str)[源代码]#
Initialize the window.
- classmethod __new__(*args, **kwargs)#