Farama-Foundation / Minigrid

Simple and easily configurable grid world environments for reinforcement learning
https://minigrid.farama.org/
Other
2.13k stars 611 forks source link

Agent position does not randomise after env reset #183

Closed raymondchua closed 2 years ago

raymondchua commented 2 years ago

Does the agent position not randomise after env reset or when the place_obj function is called? I keep getting the same values from this line of code: https://github.com/maximecb/gym-minigrid/blob/29f8a0973549a54282b7f95cdd691a07bf2d218a/gym_minigrid/minigrid.py#L923

Is this an expected behaviour?

raymondchua commented 2 years ago

Nevermind, I found out this is perhaps done on purpose on manual_control.py: https://github.com/maximecb/gym-minigrid/blob/29f8a0973549a54282b7f95cdd691a07bf2d218a/manual_control.py#L18