1
0
mirror of https://github.com/Ahp06/SUMO_Emissions.git synced 2024-11-24 12:36:30 +00:00

Fix lock_area with correct speed value (9 m/s)

This commit is contained in:
Thibaud Gasser 2018-11-16 16:39:01 +01:00
parent 89ffc95426
commit 938e64b1f4

View File

@ -22,8 +22,8 @@ class SUMOFactory(object):
def lock_area(self, area):
for lane_id in self.lanes_in_area(area):
print(f'Setting max speed of {lane_id} to 30.')
traci.lane.setMaxSpeed(lane_id, 30)
print(f'Setting max speed of {lane_id} to 9.')
traci.lane.setMaxSpeed(lane_id, 9)
for veh_id in traci.vehicle.getIDList():
traci.vehicle.rerouteTraveltime(veh_id, True)