flatland.core.distance_map_walker module#
- class flatland.core.distance_map_walker.DistanceMapWalker(distance_map: EntryPointDistanceMap)[source]#
Bases:
Generic[EntryPointDistanceMapT,TransitionMapT,EntryPointT]- “All-to-any-one-in-cluster”: utility class to compute distance maps from each entry point in the rail network (cell and each possible orientation within it in grid case)
to any one in the set of target entry points using backwards BFS. Agnostic of any agent/target_nr - operates purely in terms of entry points.