Skip to content

Commit

Permalink
add reset mode to vectorized_single_agent_race.py
Browse files Browse the repository at this point in the history
  • Loading branch information
axelbr committed Dec 1, 2020
1 parent 3de64a5 commit 8cf0732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion racecar_gym/envs/vectorized_single_agent_race.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def step(self, actions: Tuple[Dict]):

def reset(self, mode: str = 'grid'):
observations = []
for i, conn in self._env_connections:
for i, conn in enumerate(self._env_connections):
conn.send('reset')
conn.send(mode)
obs = conn.recv()
Expand Down

0 comments on commit 8cf0732

Please sign in to comment.