flatland.envs.step_utils.speed_counter module# class flatland.envs.step_utils.speed_counter.SpeedCounter(speed: float, max_speed: float | None = None)[source]# Bases: object property distance# Distance travelled in current cell. property is_cell_entry# Have just entered the cell in the previous step? is_cell_exit(speed: float)[source]# With the given speed, do we exit cell at next time step? property max_speed# reset()[source]# property speed# step(speed: float | None = None)[source]# Step the speed counter. Parameters# speedfloatSet new speed effective immediately.