diff --git a/flatland/envs/grid4_generators_utils.py b/flatland/envs/grid4_generators_utils.py index 1dcd2a31f0f24686621c9d114cc32547326e72df..fce3ffdf320a3c38d7f0551151ffdc8debe6ab5d 100644 --- a/flatland/envs/grid4_generators_utils.py +++ b/flatland/envs/grid4_generators_utils.py @@ -21,7 +21,8 @@ def connect_basic_operation( flip_end_node_trans=False, a_star_distance_function: IntVector2DDistance = Vec2d.get_manhattan_distance) -> IntVector2DArray: """ - Creates a new path [start,end] in `grid_map.grid`, based on rail_trans. + Creates a new path [start,end] in `grid_map.grid`, based on rail_trans, and + returns the path created as a list of positions. """ # in the worst case we will need to do a A* search, so we might as well set that up path: IntVector2DArray = a_star(grid_map, start, end, a_star_distance_function)