v1.1.1-rc2; add headless MUJOCO_GL config

This commit is contained in:
wty-yy
2026-01-27 12:42:39 +08:00
parent 493fa04341
commit 1a2cb14da3
3 changed files with 23 additions and 2 deletions

View File

@@ -8,7 +8,15 @@
@Desc : Run Robogauge Pipeline
'''
import os
os.environ['MUJOCO_GL'] = 'glfw' # avoid mujoco.Renderer EGL context error
# Headless solution for mujoco
# For GPU
# os.environ['MUJOCO_GL'] = 'egl'
# For CPU (Slow)
# os.environ['MUJOCO_GL'] = 'osmesa'
# With a graphical user interface (GUI)
os.environ['MUJOCO_GL'] = 'glfw'
os.environ["OMP_NUM_THREADS"] = "1"
os.environ["MKL_NUM_THREADS"] = "1"