mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-07-05 17:11:35 +02:00
Include modified version of two_rooms_one_door_config + small changes on two other configs and a rl study file
This commit is contained in:
@ -8,7 +8,7 @@ General:
|
|||||||
# Radius of Partially observable Markov decision process
|
# Radius of Partially observable Markov decision process
|
||||||
pomdp_r: 3
|
pomdp_r: 3
|
||||||
# Print all messages and events
|
# Print all messages and events
|
||||||
verbose: true
|
verbose: false
|
||||||
# Run tests
|
# Run tests
|
||||||
tests: false
|
tests: false
|
||||||
|
|
||||||
|
@ -6,14 +6,14 @@ General:
|
|||||||
level_name: simple_crossing
|
level_name: simple_crossing
|
||||||
# View Radius; 0 = full observatbility
|
# View Radius; 0 = full observatbility
|
||||||
pomdp_r: 0
|
pomdp_r: 0
|
||||||
verbose: true
|
verbose: false
|
||||||
tests: false
|
tests: false
|
||||||
|
|
||||||
Agents:
|
Agents:
|
||||||
Agent_horizontal:
|
Agent_horizontal:
|
||||||
Actions:
|
Actions:
|
||||||
- Noop
|
- Noop
|
||||||
- Move8
|
- Move4
|
||||||
Observations:
|
Observations:
|
||||||
- Walls
|
- Walls
|
||||||
- Other
|
- Other
|
||||||
@ -27,7 +27,7 @@ Agents:
|
|||||||
Agent_vertical:
|
Agent_vertical:
|
||||||
Actions:
|
Actions:
|
||||||
- Noop
|
- Noop
|
||||||
- Move8
|
- Move4
|
||||||
Observations:
|
Observations:
|
||||||
- Walls
|
- Walls
|
||||||
- Other
|
- Other
|
||||||
|
72
marl_factory_grid/configs/two_rooms_one_door_modified.yaml
Normal file
72
marl_factory_grid/configs/two_rooms_one_door_modified.yaml
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
General:
|
||||||
|
env_seed: 69
|
||||||
|
# Individual vs global rewards
|
||||||
|
individual_rewards: true
|
||||||
|
# The level.txt file to load from marl_factory_grid/levels
|
||||||
|
level_name: two_rooms_modified
|
||||||
|
# View Radius; 0 = full observatbility
|
||||||
|
pomdp_r: 3
|
||||||
|
# Print all messages and events
|
||||||
|
verbose: false
|
||||||
|
# Run tests
|
||||||
|
tests: false
|
||||||
|
|
||||||
|
# In "two rooms one door" scenario 2 agents spawn in 2 different rooms that are connected by a single door. Their aim
|
||||||
|
# is to reach the destination in the room they didn't spawn in leading to a conflict at the door.
|
||||||
|
Agents:
|
||||||
|
Wolfgang:
|
||||||
|
Actions:
|
||||||
|
- Move8
|
||||||
|
- Noop
|
||||||
|
- DestAction
|
||||||
|
- DoorUse
|
||||||
|
Observations:
|
||||||
|
- Walls
|
||||||
|
- Other
|
||||||
|
- Doors
|
||||||
|
- Destination
|
||||||
|
Positions:
|
||||||
|
- (3,1)
|
||||||
|
Sigmund:
|
||||||
|
Actions:
|
||||||
|
- Move8
|
||||||
|
- Noop
|
||||||
|
- DestAction
|
||||||
|
- DoorUse
|
||||||
|
Observations:
|
||||||
|
- Other
|
||||||
|
- Walls
|
||||||
|
- Destination
|
||||||
|
- Doors
|
||||||
|
Positions:
|
||||||
|
- (3,13)
|
||||||
|
|
||||||
|
Entities:
|
||||||
|
Destinations:
|
||||||
|
spawnrule:
|
||||||
|
SpawnDestinationsPerAgent:
|
||||||
|
coords_or_quantity:
|
||||||
|
Wolfgang:
|
||||||
|
- (3,12)
|
||||||
|
Sigmund:
|
||||||
|
- (3,2)
|
||||||
|
|
||||||
|
Doors: { }
|
||||||
|
GlobalPositions: { }
|
||||||
|
|
||||||
|
Rules:
|
||||||
|
# Environment Dynamics
|
||||||
|
DoorAutoClose:
|
||||||
|
close_frequency: 10
|
||||||
|
|
||||||
|
# Utilities
|
||||||
|
# This rule defines the collision mechanic, introduces a related DoneCondition and lets you specify rewards.
|
||||||
|
WatchCollisions:
|
||||||
|
done_at_collisions: false
|
||||||
|
|
||||||
|
# Init
|
||||||
|
AssignGlobalPositions: { }
|
||||||
|
|
||||||
|
# Done Conditions
|
||||||
|
DoneAtMaxStepsReached:
|
||||||
|
max_steps: 100
|
7
marl_factory_grid/levels/two_rooms_modified.txt
Normal file
7
marl_factory_grid/levels/two_rooms_modified.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
###############
|
||||||
|
#111111#222222#
|
||||||
|
#111111#222222#
|
||||||
|
#111111D222222#
|
||||||
|
#111111#222222#
|
||||||
|
#111111#222222#
|
||||||
|
###############
|
@ -1,6 +1,6 @@
|
|||||||
from algorithms.utils import Checkpointer
|
from marl_factory_grid.algorithms.utils import Checkpointer
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from algorithms.utils import load_yaml_file, add_env_props, instantiate_class, load_class
|
from marl_factory_grid.algorithms.utils import load_yaml_file, add_env_props, instantiate_class, load_class
|
||||||
|
|
||||||
# from algorithms.marl import LoopSNAC, LoopIAC, LoopSEAC
|
# from algorithms.marl import LoopSNAC, LoopIAC, LoopSEAC
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user