fixes to maintainer test

This commit is contained in:
Chanumask
2023-11-23 15:28:47 +01:00
parent fcea1972a4
commit ef440356e0
4 changed files with 26 additions and 22 deletions

View File

@ -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

View File

@ -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)