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

[Question] How can I visualize particles in Minigrid? #450

Open troiwill opened 2 months ago

troiwill commented 2 months ago

Question

I want to use Minigrid with tree search algorithms and I want to visualize the belief of the agent using a collection of particles (let's say the particles are small blue triangles). Similar to the existing visual for the agent (the red triangle), I want to set/update the position and direction of each particle before re-rendering the environment.

I thought of creating a particle world object. However, I see that the grid variable assumes only one object occupies a given cell. So, when a particle is in the same cell as lava or any other object, I may inadvertently overwrite the pre-existing world object.

Question: What are some ways I can visualize particles representing the belief of the agent in Minigrid?