Has Sumo a method to block part of the lane? - sumo

Traci has a setDisallowed method to disable vehicles in the whole lane, but I want block part of the lane for road closure in construction area, the closure area may be part of the lane, not always the whole lane. Is there a method or setting to block part of lane ?

Asked Sep 26 '21 22:09
avatar allenzhuyi
allenzhuyi

1 Answer:

The only way to block part of a lane is by placing one or more stopped vehicles with the required length in that area. Note, that the vehicle must be in the 'stopped' state (vehicle.setStop) to trigger correct lane changing behavior by the other vehicles (setSpeed(vehID, 0) is insufficient).

1
Answered Sep 25 '21 at 17:44
avatar  of namdre
namdre