mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-07-07 01:51:35 +02:00
fixed default_config
This commit is contained in:
@ -69,24 +69,23 @@ General:
|
||||
verbose: false
|
||||
|
||||
Rules:
|
||||
Btry:
|
||||
initial_charge: 0.8
|
||||
per_action_costs: 0.02
|
||||
BtryDoneAtDischarge: {}
|
||||
Collision:
|
||||
done_at_collisions: false
|
||||
AssignGlobalPositions: {}
|
||||
DestinationReachAny: {}
|
||||
DestinationSpawn:
|
||||
DestinationReachReward: {}
|
||||
SpawnDestinations:
|
||||
n_dests: 1
|
||||
spawn_frequency: 5
|
||||
spawn_mode: GROUPED
|
||||
DirtAllCleanDone: {}
|
||||
DirtRespawnRule:
|
||||
DoneOnAllDirtCleaned: {}
|
||||
SpawnDirt:
|
||||
initial_n: 4
|
||||
initial_amount: 0.5
|
||||
respawn_n: 2
|
||||
respawn_amount: 0.2
|
||||
spawn_freq: 15
|
||||
DirtSmearOnMove:
|
||||
smear_amount: 0.2
|
||||
DoorAutoClose:
|
||||
EntitiesSmearDirtOnMove: {}
|
||||
DoDoorAutoClose:
|
||||
close_frequency: 10
|
||||
ItemRules:
|
||||
max_dropoff_storage_size: 0
|
||||
|
@ -13,7 +13,7 @@ from marl_factory_grid.modules.destinations.entitites import Destination
|
||||
|
||||
class DestinationReachReward(Rule):
|
||||
|
||||
def __init__(self, dest_reach_reward=marl_factory_grid.modules.destinations.constants.REWARD_DEST_REACHED):
|
||||
def __init__(self, dest_reach_reward=d.REWARD_DEST_REACHED):
|
||||
"""
|
||||
This rule introduces the basic functionality, so that targts (Destinations) can be reached and marked as such.
|
||||
Additionally, rewards are reported.
|
||||
@ -50,7 +50,7 @@ class DestinationReachReward(Rule):
|
||||
|
||||
class DoneAtDestinationReachAll(DestinationReachReward):
|
||||
|
||||
def __init__(self, reward_at_done=marl_factory_grid.modules.destinations.constants.REWARD_DEST_DONE, **kwargs):
|
||||
def __init__(self, reward_at_done=d.REWARD_DEST_DONE, **kwargs):
|
||||
"""
|
||||
This rule triggers and sets the done flag if ALL Destinations have been reached.
|
||||
|
||||
|
Reference in New Issue
Block a user