Farama-Foundation / Gymnasium-Robotics

A collection of robotics simulation environments for reinforcement learning
https://robotics.farama.org/
MIT License
485 stars 79 forks source link

[Question] In Maze environment, how to add multiple goals that exist simultaneously #203

Closed Dhanushvarma closed 6 months ago

Dhanushvarma commented 6 months ago

Question

In Maze environment, how to add multiple goals that exist simultaneously. Currently, the env is designed in such a manner that the goal spawns in the location that are set to "G", how can I make it such that there exists multiple goals that exist simultaneously?

Kallinteris-Andreas commented 6 months ago

There can be multiple goals in the same maze, and one of them will be randomly selected when the environment is reset.

The simplest possible implementation would be to have a sequence of goals, that after one is complete the next one is activated

Having multiple goals at the same time might not work with the GoalEnv API

Dhanushvarma commented 6 months ago

From what I see, the GoalEnv does not have anything to with single goal at a timepoint, do you think, if I modify the MazeEnv Class, it can be implemented?

Kallinteris-Andreas commented 6 months ago

From what I have checked, there are 0 restrictions on what desiredGoal should be, so yes you can implement that in your fork without breaking the API