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

[Bug Fix] Correct assertions in Maze environment reset #179

Closed rodrigodelazcano closed 10 months ago

rodrigodelazcano commented 10 months ago

Description

This PR fixes the comment in this previous PR https://github.com/Farama-Foundation/Gymnasium-Robotics/issues/163#issuecomment-1675839059

The elements of "goal_cell" and "reset_cell" need to be inverted for the assertions since they represent the (i,j) cell in the maze map list of lists structure as specified in the docs.

The changes are made in both maze.py and maze_v4.py

Type of change

Please delete options that are not relevant.

Screenshots

Please attach before and after screenshots of the change if applicable.

Checklist: