mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-07-06 09:31:35 +02:00
Merge branch 'main' into unit_testing
# Conflicts: # marl_factory_grid/modules/doors/groups.py # marl_factory_grid/utils/states.py
This commit is contained in:
@ -9,6 +9,9 @@ from . import constants as M
|
||||
class MoveMaintainers(Rule):
|
||||
|
||||
def __init__(self):
|
||||
"""
|
||||
This rule is responsible for moving the maintainers at every step of the environment.
|
||||
"""
|
||||
super().__init__()
|
||||
|
||||
def tick_step(self, state) -> List[TickResult]:
|
||||
@ -22,6 +25,9 @@ class MoveMaintainers(Rule):
|
||||
class DoneAtMaintainerCollision(Rule):
|
||||
|
||||
def __init__(self):
|
||||
"""
|
||||
When active, this rule stops the environment after a maintainer reports a collision with another entity.
|
||||
"""
|
||||
super().__init__()
|
||||
|
||||
def on_check_done(self, state) -> List[DoneResult]:
|
||||
|
Reference in New Issue
Block a user