Skip to content
Snippets Groups Projects
Commit 0334070a authored by Erik Nygren's avatar Erik Nygren :bullettrain_front:
Browse files

introduced cities and intersections. These will make up the sparse network....

introduced cities and intersections. These will make up the sparse network. THen you can add trainstations to the cities and populate them with tasks for agents (start/target). Orientation of agents needs to be fixed. Also check for invalid transitions in cities and nodes needs to be implemented.
parent c5def882
No related branches found
No related tags found
No related merge requests found
...@@ -24,17 +24,6 @@ def test_realistic_rail_generator(): ...@@ -24,17 +24,6 @@ def test_realistic_rail_generator():
def test_sparse_rail_generator(): def test_sparse_rail_generator():
env = RailEnv(width=20,
height=20,
rail_generator=sparse_rail_generator(nr_nodes=3, min_node_dist=8,
node_radius=4),
number_of_agents=15,
env = RailEnv(width=20,
height=20,
rail_generator=sparse_rail_generator(nr_nodes=3, min_node_dist=8,
node_radius=4),
number_of_agents=15,
env = RailEnv(width=50, env = RailEnv(width=50,
height=50, height=50,
rail_generator=sparse_rail_generator(num_cities=10, # Number of cities in map rail_generator=sparse_rail_generator(num_cities=10, # Number of cities in map
......
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