Skip to content

Commit

Permalink
Update RoboCup to work with the latest Mava version.
Browse files Browse the repository at this point in the history
  • Loading branch information
DriesSmit committed Nov 24, 2021
1 parent fa3a5ea commit aca4ce8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mava/wrappers/robocup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def reset(self) -> Tuple[dm_env.TimeStep, np.array]:
proc_obs = self._proc_robocup_obs(observations=raw_obs, done=False)
proccessed_state = self._proc_robocup_state(state, proc_obs)
timestep = dm_env.restart(proc_obs)
return timestep, {"env_state": proccessed_state}
return timestep, {"s_t": proccessed_state}

def step(self, nn_actions: types.NestedArray) -> Tuple[dm_env.TimeStep, np.array]:
"""Steps the environment."""
Expand Down Expand Up @@ -71,7 +71,7 @@ def step(self, nn_actions: types.NestedArray) -> Tuple[dm_env.TimeStep, np.array
discount=self._discount,
step_type=self._step_type,
),
{"env_state": proccessed_state},
{"s_t": proccessed_state},
)

@property
Expand Down

0 comments on commit aca4ce8

Please sign in to comment.