.
This commit is contained in:
parent
1965899903
commit
3864909174
@ -78,8 +78,7 @@ class DirPointEnv(AgentModel):
|
|||||||
self.data.site_xpos[-1][2] = 0.1 # Slightly higher in space
|
self.data.site_xpos[-1][2] = 0.1 # Slightly higher in space
|
||||||
|
|
||||||
next_obs = self._get_obs()
|
next_obs = self._get_obs()
|
||||||
reward = -1*min(max(0, distance - 3), 100)*self.action_penalty / 1000
|
return next_obs, 0.0, False, {}
|
||||||
return next_obs, reward, False, {}
|
|
||||||
|
|
||||||
def _calculate_maze_size(self) -> float:
|
def _calculate_maze_size(self) -> float:
|
||||||
"""Calculate the effective size of the maze."""
|
"""Calculate the effective size of the maze."""
|
||||||
|
Loading…
Reference in New Issue
Block a user