Skip to content

Commit

Permalink
added MazeEnv.model and MazeEnv.data
Browse files Browse the repository at this point in the history
  • Loading branch information
Kallinteris-Andreas committed Feb 17, 2024
1 parent c6b53dd commit 4355697
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gymnasium_robotics/envs/maze/ant_maze.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,11 @@ def render(self):
def close(self):
super().close()
self.ant_env.close()

@property
def model(self):
return self.ant_env.model

@property
def data(self):
return self.ant_env.data
8 changes: 8 additions & 0 deletions gymnasium_robotics/envs/maze/ant_maze_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,3 +328,11 @@ def render(self):
def close(self):
super().close()
self.ant_env.close()

@property
def model(self):
return self.ant_env.model

@property
def data(self):
return self.ant_env.data
8 changes: 8 additions & 0 deletions gymnasium_robotics/envs/maze/point_maze.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,3 +424,11 @@ def render(self):
def close(self):
super().close()
self.point_env.close()

@property
def model(self):
return self.point_env.model

@property
def data(self):
return self.point_env.data

0 comments on commit 4355697

Please sign in to comment.