This commit is contained in:
Dominik Moritz Roth 2024-05-19 19:00:06 +02:00
parent 1965899903
commit 3864909174

View File

@ -78,8 +78,7 @@ class DirPointEnv(AgentModel):
self.data.site_xpos[-1][2] = 0.1 # Slightly higher in space
next_obs = self._get_obs()
reward = -1*min(max(0, distance - 3), 100)*self.action_penalty / 1000
return next_obs, reward, False, {}
return next_obs, 0.0, False, {}
def _calculate_maze_size(self) -> float:
"""Calculate the effective size of the maze."""