mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-06-26 21:21:35 +02:00
new rules, new spawn logic, small fixes, default and narrow corridor debugged
This commit is contained in:
@ -22,26 +22,41 @@ Agents:
|
||||
- Inventory
|
||||
- DropOffLocations
|
||||
- Maintainers
|
||||
# This is special for agents, as each one is differten and can act as an adversary e.g.
|
||||
Positions:
|
||||
- (16, 7)
|
||||
- (16, 6)
|
||||
- (16, 3)
|
||||
- (16, 4)
|
||||
- (16, 5)
|
||||
Entities:
|
||||
Batteries:
|
||||
initial_charge: 0.8
|
||||
per_action_costs: 0.02
|
||||
ChargePods: {}
|
||||
Destinations: {}
|
||||
ChargePods:
|
||||
coords_or_quantity: 2
|
||||
Destinations:
|
||||
coords_or_quantity: 1
|
||||
spawn_mode: GROUPED
|
||||
DirtPiles:
|
||||
coords_or_quantity: 10
|
||||
initial_amount: 2
|
||||
clean_amount: 1
|
||||
dirt_spawn_r_var: 0.1
|
||||
initial_amount: 2
|
||||
initial_dirt_ratio: 0.05
|
||||
max_global_amount: 20
|
||||
max_local_amount: 5
|
||||
Doors: {}
|
||||
DropOffLocations: {}
|
||||
Doors:
|
||||
DropOffLocations:
|
||||
coords_or_quantity: 1
|
||||
max_dropoff_storage_size: 0
|
||||
GlobalPositions: {}
|
||||
Inventories: {}
|
||||
Items: {}
|
||||
Machines: {}
|
||||
Maintainers: {}
|
||||
Items:
|
||||
coords_or_quantity: 5
|
||||
Machines:
|
||||
coords_or_quantity: 2
|
||||
Maintainers:
|
||||
coords_or_quantity: 1
|
||||
Zones: {}
|
||||
|
||||
General:
|
||||
@ -49,32 +64,31 @@ General:
|
||||
individual_rewards: true
|
||||
level_name: large
|
||||
pomdp_r: 3
|
||||
verbose: false
|
||||
verbose: True
|
||||
tests: false
|
||||
|
||||
Rules:
|
||||
SpawnAgents: {}
|
||||
DoneAtBatteryDischarge: {}
|
||||
Collision:
|
||||
done_at_collisions: false
|
||||
AssignGlobalPositions: {}
|
||||
DoneAtDestinationReachAny: {}
|
||||
DestinationReachReward: {}
|
||||
SpawnDestinations:
|
||||
n_dests: 1
|
||||
spawn_mode: GROUPED
|
||||
DoneOnAllDirtCleaned: {}
|
||||
SpawnDirt:
|
||||
spawn_freq: 15
|
||||
# Environment Dynamics
|
||||
EntitiesSmearDirtOnMove:
|
||||
smear_ratio: 0.2
|
||||
DoorAutoClose:
|
||||
close_frequency: 10
|
||||
ItemRules:
|
||||
max_dropoff_storage_size: 0
|
||||
n_items: 5
|
||||
n_locations: 5
|
||||
spawn_frequency: 15
|
||||
MaxStepsReached:
|
||||
MoveMaintainers:
|
||||
|
||||
# Respawn Stuff
|
||||
RespawnDirt:
|
||||
respawn_freq: 15
|
||||
RespawnItems:
|
||||
respawn_freq: 15
|
||||
|
||||
# Utilities
|
||||
WatchCollisions:
|
||||
done_at_collisions: false
|
||||
|
||||
# Done Conditions
|
||||
DoneAtDestinationReachAny:
|
||||
DoneOnAllDirtCleaned:
|
||||
DoneAtBatteryDischarge:
|
||||
DoneAtMaintainerCollision:
|
||||
DoneAtMaxStepsReached:
|
||||
max_steps: 500
|
||||
# AgentSingleZonePlacement:
|
||||
# n_zones: 4
|
||||
|
@ -1,3 +1,10 @@
|
||||
General:
|
||||
env_seed: 69
|
||||
individual_rewards: true
|
||||
level_name: narrow_corridor
|
||||
pomdp_r: 0
|
||||
verbose: true
|
||||
|
||||
Agents:
|
||||
Wolfgang:
|
||||
Actions:
|
||||
@ -10,6 +17,7 @@ Agents:
|
||||
Positions:
|
||||
- (2, 1)
|
||||
- (2, 5)
|
||||
is_blocking_pos: true
|
||||
Karl-Heinz:
|
||||
Actions:
|
||||
- Noop
|
||||
@ -21,26 +29,30 @@ Agents:
|
||||
Positions:
|
||||
- (2, 1)
|
||||
- (2, 5)
|
||||
Entities:
|
||||
Destinations: {}
|
||||
is_blocking_pos: true
|
||||
|
||||
General:
|
||||
env_seed: 69
|
||||
individual_rewards: true
|
||||
level_name: narrow_corridor
|
||||
pomdp_r: 0
|
||||
verbose: true
|
||||
Entities:
|
||||
Destinations:
|
||||
ignore_blocking: true
|
||||
spawnrule:
|
||||
SpawnDestinationsPerAgent:
|
||||
coords_or_quantity:
|
||||
Wolfgang:
|
||||
- (2, 1)
|
||||
- (2, 5)
|
||||
Karl-Heinz:
|
||||
- (2, 1)
|
||||
- (2, 5)
|
||||
# Whether you want to provide a numeric Position observation.
|
||||
# GlobalPositions:
|
||||
# normalized: false
|
||||
|
||||
Rules:
|
||||
SpawnAgents: {}
|
||||
Collision:
|
||||
# Utilities
|
||||
WatchCollisions:
|
||||
done_at_collisions: false
|
||||
FixedDestinationSpawn:
|
||||
per_agent_positions:
|
||||
Wolfgang:
|
||||
- (2, 1)
|
||||
- (2, 5)
|
||||
Karl-Heinz:
|
||||
- (2, 1)
|
||||
- (2, 5)
|
||||
DestinationReachAll: {}
|
||||
# Done Conditions
|
||||
# DoneAtDestinationReachAny:
|
||||
DoneAtDestinationReachAll:
|
||||
DoneAtMaxStepsReached:
|
||||
max_steps: 500
|
||||
|
Reference in New Issue
Block a user