flatland.core.configuration_distance_map module#
- class flatland.core.configuration_distance_map.ConfigurationDistanceMap(agents: List[EnvAgent], waypoint_init: Callable[[UnderlyingConfigurationType], UnderlyingWaypointType])[source]#
Bases:
Generic[UnderlyingTransitionMapType,UnderlyingDistanceMapType,UnderlyingConfigurationType,UnderlyingWaypointType]Base distance map collecting the distance from every configuration visited during the BFS walk to the effective target configuration reached, keyed by (source_configuration, target_configuration) - agnostic of any numeric target_nr (agent handle), which DistanceMapWalker has no notion of.