On such a road, some rules are enforced:
most of the time, vehicles behave as usual;
however, they try to predict collisions with other vehicles through the
when it is the case, right of way is arbitrated through the
respect_priorities()method, and the yielding vehicle target velocity is set to 0 until the conflict is resolved.
- class highway_env.road.regulation.RegulatedRoad(network: Optional[RoadNetwork] = None, vehicles: Optional[List[Vehicle]] = None, obstacles: Optional[List[Obstacle]] = None, np_random: Optional[RandomState] = None, record_history: bool = False)¶
- step(dt: float) None ¶
Step the dynamics of each entity on the road.
dt – timestep [s]
- enforce_road_rules() None ¶
Find conflicts and resolve them by assigning yielding vehicles and stopping them.