This commit is contained in:
Steffen Illium
2023-06-21 11:28:36 +02:00
parent 95c85bfedd
commit d11b1a8172
133 changed files with 225 additions and 225 deletions
README.md
marl_factory_grid
__init__.py
algorithms
environment
logging
modules
plotting
quickstart
utils
mfg_package/algorithms/marl
reload_agent.pysetup.py

@ -1,68 +0,0 @@
---
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

@ -1,14 +0,0 @@
import os
import shutil
from pathlib import Path
from mfg_package.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__) / 'mfg_package' / 'modules' / '_template'
shutil.copytree(template_path, cwd)
print()