Skip to content
Snippets Groups Projects
Commit bc9dca31 authored by Egli Adrian (IT-SCI-API-PFI)'s avatar Egli Adrian (IT-SCI-API-PFI)
Browse files

FastTreeObs working

parent b911088d
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,7 @@ from flatland.envs.predictions import ShortestPathPredictorForRailEnv ...@@ -9,6 +9,7 @@ from flatland.envs.predictions import ShortestPathPredictorForRailEnv
from flatland.evaluators.client import FlatlandRemoteClient from flatland.evaluators.client import FlatlandRemoteClient
from flatland.evaluators.client import TimeoutException from flatland.evaluators.client import TimeoutException
from utils.dead_lock_avoidance_agent import DeadLockAvoidanceAgent
from utils.deadlock_check import check_if_all_blocked from utils.deadlock_check import check_if_all_blocked
from utils.fast_tree_obs import FastTreeObs from utils.fast_tree_obs import FastTreeObs
...@@ -81,6 +82,8 @@ while True: ...@@ -81,6 +82,8 @@ while True:
nb_agents = len(local_env.agents) nb_agents = len(local_env.agents)
max_nb_steps = local_env._max_episode_steps max_nb_steps = local_env._max_episode_steps
policy = DeadLockAvoidanceAgent(local_env)
tree_observation.set_env(local_env) tree_observation.set_env(local_env)
tree_observation.reset() tree_observation.reset()
observation = tree_observation.get_many(list(range(nb_agents))) observation = tree_observation.get_many(list(range(nb_agents)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment