mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-06-25 04:41:34 +02:00
Fixed agent observation and inventory init
This commit is contained in:
@ -5,6 +5,12 @@ from marl_factory_grid.environment.groups.collection import Collection
|
||||
class Agents(Collection):
|
||||
_entity = Agent
|
||||
|
||||
@property
|
||||
def obs_pairs(self):
|
||||
pair_list = [(self.name, self)]
|
||||
pair_list.extend([(a.name, a) for a in self])
|
||||
return pair_list
|
||||
|
||||
@property
|
||||
def spawn_rule(self):
|
||||
return {}
|
||||
|
Reference in New Issue
Block a user