mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-07-04 16:41:36 +02:00
updated simple factory
This commit is contained in:
environments/factory
@ -46,7 +46,6 @@ class BaseFactory(object):
|
||||
x, y = np.argwhere(agent_slice == 1)[0]
|
||||
collisions_vec = self.state[:, x, y].copy() # otherwise you overwrite the grid/state
|
||||
collisions_vec[i+1] = 0 # no self-collisions
|
||||
#collision_vecs.append(collisions_vec)
|
||||
collision_vecs[i] += collisions_vec
|
||||
reward, info = self.step_core(np.array(collision_vecs), actions, r)
|
||||
r += reward
|
||||
|
Reference in New Issue
Block a user