averbraeck / opentrafficsim

Open Source Multi-Level Traffic Simulator
BSD 3-Clause "New" or "Revised" License
28 stars 8 forks source link

Traffic light at start of lane not supported #117

Open WJSchakel opened 3 months ago

WJSchakel commented 3 months ago

When a traffic light is at the start of a lane, the following exception occurs:

org.opentrafficsim.road.gtu.lane.tactical.util.TrafficLightUtil.respondToTrafficLight (98): Traffic light must be downstream.

This is reproduced by adjusting the traffic light position in the T-junction demo to 0.0m.