openai / safety-gym

Tools for accelerating safe exploration research.
https://openai.com/blog/safety-gym/
MIT License
493 stars 134 forks source link

Rendering mode "rgb" is always disabled by VideoRecorder #6

Open hnyu opened 3 years ago

hnyu commented 3 years ago

Because the safety env class doesn't have the field metadata = {'render.modes': ["rgb_array", "human"]}, VideoRecorder won't be enabled (see https://github.com/openai/gym/blob/master/gym/wrappers/monitoring/video_recorder.py#L41). I can see that safety env does support rendering in "rgb" mode, so adding this field in the class will resolve the issue.

amir-rahnama commented 2 years ago

+1 to this. None of the safety gym environments have video rendering. Is there a way to achieve this with the least amount of change in the code?