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

@@ -105,3 +105,8 @@ pip install -e .
![robogauge_levelpipeline](./assets/robogauge_levelpipeline.png)
## 可能的报错
### Mujoco OpenGL Context Error
```mujoco.FatalError: an OpenGL platform library has not been loaded into this process, this most likely means that a valid OpenGL context has not been created before mjr_makeContext was called```
问题原因: Mujoco在无头模式下无法创建OpenGL上下文
解决方案: 在`robogauge/scripts/run.py`和`robogauge/scripts/server.py`中, 将`os.environ['MUJOCO_GL']`设置为`egl`(GPU)或`osmesa`(CPU, 慢)