benchmarl.environments.PettingZooTask
- class PettingZooTask(value)[source]
Bases:
TaskEnum for PettingZoo tasks.
- MULTIWALKER = 1
- WATERWORLD = 2
- SIMPLE_ADVERSARY = 3
- SIMPLE_CRYPTO = 4
- SIMPLE_PUSH = 5
- SIMPLE_REFERENCE = 6
- SIMPLE_SPEAKER_LISTENER = 7
- SIMPLE_SPREAD = 8
- SIMPLE_TAG = 9
- SIMPLE_WORLD_COMM = 10
- get_task(config: Dict[str, Any] | None = None) TaskClass
Get the
TaskClassobject associated with this enum element by passing it the task name and config.If no config is given, it will be loaded from
benchmarl/conf/task/self.env_name()/self.nameusingTask.get_from_yaml().
- property config
- static log_info(batch: TensorDictBase) Dict[str, float]
- static render_callback(experiment, env: EnvBase, data: TensorDictBase)