flatland.envs.rail_trainrun_data_structures module#

class flatland.envs.rail_trainrun_data_structures.TrainrunWaypoint(scheduled_at, waypoint)#

Bases: tuple

scheduled_at: int#

Alias for field number 0

waypoint: Waypoint#

Alias for field number 1

class flatland.envs.rail_trainrun_data_structures.Waypoint(position: Tuple[int, int], direction)[source]#

Bases: object

A way point is the entry into a cell defined by
  • the row and column coordinates of the cell entered

  • direction, in which the agent is facing to enter the cell.

This induces a graph on top of the FLATland cells:
  • four possible way points per cell

  • edges are the possible transitions in the cell.

direction#
position#