mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-10-24 02:56:51 +02:00
renaming
This commit is contained in:
0
marl_factory_grid/quickstart/__init__.py
Normal file
0
marl_factory_grid/quickstart/__init__.py
Normal file
68
marl_factory_grid/quickstart/default_config.yaml
Normal file
68
marl_factory_grid/quickstart/default_config.yaml
Normal file
@@ -0,0 +1,68 @@
|
||||
---
|
||||
General:
|
||||
level_name: rooms
|
||||
env_seed: 69
|
||||
verbose: !!bool False
|
||||
pomdp_r: 5
|
||||
individual_rewards: !!bool True
|
||||
|
||||
Entities:
|
||||
Defaults: {}
|
||||
DirtPiles:
|
||||
initial_dirt_ratio: 0.3 # On INIT, on max how many tiles does the dirt spawn in percent.
|
||||
dirt_spawn_r_var: 0.05 # How much does the dirt spawn amount vary?
|
||||
initial_amount: 3
|
||||
max_local_amount: 5 # Max dirt amount per tile.
|
||||
max_global_amount: 20 # Max dirt amount in the whole environment.
|
||||
Doors:
|
||||
closed_on_init: True
|
||||
auto_close_interval: 10
|
||||
indicate_area: False
|
||||
Agents:
|
||||
Wolfgang:
|
||||
Actions:
|
||||
- Move8
|
||||
- Noop
|
||||
- DoorUse
|
||||
- CleanUp
|
||||
Observations:
|
||||
- Self
|
||||
- Placeholder
|
||||
- Walls
|
||||
- DirtPiles
|
||||
- Placeholder
|
||||
- Doors
|
||||
- Doors
|
||||
Björn:
|
||||
Actions:
|
||||
# Move4, Noop
|
||||
- Move4
|
||||
- DoorUse
|
||||
- CleanUp
|
||||
Observations:
|
||||
- Defaults
|
||||
- Combined
|
||||
Jürgen:
|
||||
Actions:
|
||||
# Move4, Noop
|
||||
- Defaults
|
||||
- DoorUse
|
||||
- CleanUp
|
||||
Observations:
|
||||
- Walls
|
||||
- Placeholder
|
||||
- Agent[Björn]
|
||||
Rules:
|
||||
Defaults: {}
|
||||
Collision:
|
||||
done_at_collisions: !!bool False
|
||||
DirtRespawnRule:
|
||||
spawn_freq: 5
|
||||
DirtSmearOnMove:
|
||||
smear_amount: 0.12
|
||||
DoorAutoClose: {}
|
||||
DirtAllCleanDone: {}
|
||||
Assets:
|
||||
- Defaults
|
||||
- Dirt
|
||||
- Doors
|
||||
14
marl_factory_grid/quickstart/init.py
Normal file
14
marl_factory_grid/quickstart/init.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import os
|
||||
import shutil
|
||||
from pathlib import Path
|
||||
|
||||
from marl_factory_grid.utils.tools import ConfigExplainer
|
||||
|
||||
if __name__ == '__main__':
|
||||
print('Retrieving available options...')
|
||||
ce = ConfigExplainer()
|
||||
cwd = Path(os.getcwd())
|
||||
ce.save_all(cwd / 'full_config.yaml')
|
||||
template_path = Path(__file__) / 'marl_factory_grid' / 'modules' / '_template'
|
||||
shutil.copytree(template_path, cwd)
|
||||
print()
|
||||
Reference in New Issue
Block a user