浏览代码

Add rendering to Gym wrapper limitations (#5389)

/colab-links
GitHub 4 年前
当前提交
30a87a48
共有 2 个文件被更改,包括 6 次插入0 次删除
  1. 2
      gym-unity/README.md
  2. 4
      gym-unity/gym_unity/envs/__init__.py

2
gym-unity/README.md


be accessed from the `info` provided by `env.step(action)`.
- Stacked vector observations are not supported.
- Environment registration for use with `gym.make()` is currently not supported.
- Calling env.render() will not render a new frame of the environment. It will
return the latest visual observation if using visual observations.
## Running OpenAI Baselines Algorithms

4
gym-unity/gym_unity/envs/__init__.py


return result
def render(self, mode="rgb_array"):
"""
Return the latest visual observations.
Note that it will not render a new frame of the environment.
"""
return self.visual_obs
def close(self) -> None:

正在加载...
取消
保存