openai / safety-gym

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

Keyboard agent for safety-gym #3

Open rushitnshah opened 4 years ago

rushitnshah commented 4 years ago

Hello,

I know that a keyboard_agent.py script exists for openai gym which supports human player mode for some classical control problems which have discrete action spaces.

I tried to modify the keyboard_agents.py from gym to enable human players on safety gym but did not get too far. Keyboard inputs during safety gym simulations are handled by MuJoCo via openGL and it seems that using other python libraries (e.g. pynput, getkey, etc.) to monitor the keyboard interferes with that and causes simulations to either crash or behave unpredictably.

Are there any workarounds to this issue or any plans in the future to include this functionality in safety gym?

Thanks in advance.

UPUPGOO commented 4 years ago

Hello,

I know that a keyboard_agent.py script exists for openai gym which supports human player mode for some classical control problems which have discrete action spaces.

I tried to modify the keyboard_agents.py from gym to enable human players on safety gym but did not get too far. Keyboard inputs during safety gym simulations are handled by MuJoCo via openGL and it seems that using other python libraries (e.g. pynput, getkey, etc.) to monitor the keyboard interferes with that and causes simulations to either crash or behave unpredictably.

Are there any workarounds to this issue or any plans in the future to include this functionality in safety gym?

Thanks in advance.

Hi, have you solved this problem? Could you please share some experiences?