mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-07-06 17:41:36 +02:00
fixes to maintainer test
This commit is contained in:
@ -3,7 +3,7 @@ Agents:
|
||||
Actions:
|
||||
- Noop
|
||||
- Charge
|
||||
- CleanUp
|
||||
- Clean
|
||||
- DestAction
|
||||
- DoorUse
|
||||
- ItemAction
|
||||
@ -23,6 +23,7 @@ Agents:
|
||||
- DropOffLocations
|
||||
- Maintainers
|
||||
Entities:
|
||||
|
||||
Batteries:
|
||||
initial_charge: 0.8
|
||||
per_action_costs: 0.02
|
||||
@ -58,7 +59,7 @@ General:
|
||||
level_name: large
|
||||
pomdp_r: 3
|
||||
verbose: false
|
||||
tests: true
|
||||
tests: false
|
||||
|
||||
Rules:
|
||||
# Environment Dynamics
|
||||
|
@ -22,7 +22,7 @@ if __name__ == '__main__':
|
||||
if render:
|
||||
factory.render()
|
||||
action_spaces = factory.action_space
|
||||
# agents = [TSPDirtAgent(factory, 0)]
|
||||
agents = [TSPDirtAgent(factory, 0)]
|
||||
while not done:
|
||||
a = [randint(0, x.n - 1) for x in action_spaces]
|
||||
obs_type, _, _, done, info = factory.step(a)
|
||||
|
Reference in New Issue
Block a user