flatland.core.distance_map_walker module

flatland.core.distance_map_walker module#

class flatland.core.distance_map_walker.DistanceMapWalker(distance_map: ConfigurationDistanceMap)[source]#

Bases: Generic[UnderlyingDistanceMapType, UnderlyingTransitionMapType, UnderlyingConfigurationType]

“All-to-any-one-in-cluster”: utility class to compute distance maps from each configuration in the rail network (cell and each possible orientation within it in grid case)

to any one in the set of target configurations using backwards BFS. Agnostic of any agent/target_nr - operates purely in terms of configurations.