From 1d79adcb41b4fed2d9716bf618c3fb6f1f75f2f0 Mon Sep 17 00:00:00 2001 From: Jay Yang Date: Tue, 3 Mar 2026 22:18:21 +0800 Subject: [PATCH] Fix: Add headless config to AppLauncher in export_env_for_envhub Closes #29 - Add 'headless' and 'enable_cameras' to default config in _parse_config - Pass headless=cfg.headless to AppLauncher to prevent implicit override - Fixes RuntimeError when running on headless servers with NO_GUI_OR_RENDERING --- lw_benchhub/utils/envhub_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lw_benchhub/utils/envhub_utils.py b/lw_benchhub/utils/envhub_utils.py index c279b92..79e1f7b 100644 --- a/lw_benchhub/utils/envhub_utils.py +++ b/lw_benchhub/utils/envhub_utils.py @@ -32,6 +32,8 @@ def _parse_config(config_path: str): "object_projects": None, "execute_mode": "eval", "replay_cfgs": {"add_camera_to_observation": True}, + "headless": True, + "enable_cameras": False, } for key, value in defaults.items(): if key not in config: @@ -118,7 +120,7 @@ def export_env_for_envhub(config_path: str): cfg = _parse_config(config_path) from isaaclab.app import AppLauncher - app_launcher = AppLauncher(enable_cameras=cfg.enable_cameras) + app_launcher = AppLauncher(headless=cfg.headless, enable_cameras=cfg.enable_cameras) environment = f"{cfg.task}-{cfg.robot}" task = cfg.task