This commit is contained in:
Johannes Fischer
2022-02-24 14:18:26 +01:00
parent a3280893af
commit 8e12996dfe

View File

@@ -32,7 +32,7 @@ for agent in range(151):
# print('step', i, 'reward', reward) # print('step', i, 'reward', reward)
if done: if done:
if reward < -500: if reward < -500:
collising_agents.append(agent) colliding_agents.append(agent)
print(" Collision") print(" Collision")
break break
env.close(filestr='idm/agent_{}'.format(agent)) env.close(filestr='idm/agent_{}'.format(agent))