fixed agent collision viz. bug

This commit is contained in:
romue 2021-06-09 13:43:36 +02:00
parent ef51625b6e
commit 435d62bbac
11 changed files with 3 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

View File

@ -59,11 +59,11 @@ class SimpleFactory(BaseFactory):
if 'agent' in cols:
return 'agent_collision', 'blank'
elif not agent.action_valid or 'level' in cols or 'agent' in cols:
return f'agent{agent.i + 1}', 'invalid'
return 'agent', 'invalid'
elif self._is_clean_up_action(agent.action):
return f'agent{agent.i + 1}', 'valid'
return 'agent', 'valid'
else:
return f'agent{agent.i + 1}', 'idle'
return 'agent', 'idle'
agents = []
for i, agent in enumerate(self._agent_states):
name, state = asset_str(agent)