File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ The returned environment `env` will function as a gym.
6767 be accessed from the ` info ` provided by ` env.step(action) ` .
6868- Stacked vector observations are not supported.
6969- Environment registration for use with ` gym.make() ` is currently not supported.
70+ - Calling env.render() will not render a new frame of the environment. It will
71+ return the latest visual observation if using visual observations.
7072
7173## Running OpenAI Baselines Algorithms
7274
Original file line number Diff line number Diff line change @@ -278,6 +278,10 @@ def _get_vec_obs_size(self) -> int:
278278 return result
279279
280280 def render (self , mode = "rgb_array" ):
281+ """
282+ Return the latest visual observations.
283+ Note that it will not render a new frame of the environment.
284+ """
281285 return self .visual_obs
282286
283287 def close (self ) -> None :
You can’t perform that action at this time.
0 commit comments