mirror of
https://github.com/Ahp06/SUMO_Emissions.git
synced 2024-11-24 20:46:29 +00:00
Fix lock_area with correct speed value (9 m/s)
This commit is contained in:
parent
89ffc95426
commit
938e64b1f4
@ -22,8 +22,8 @@ class SUMOFactory(object):
|
|||||||
|
|
||||||
def lock_area(self, area):
|
def lock_area(self, area):
|
||||||
for lane_id in self.lanes_in_area(area):
|
for lane_id in self.lanes_in_area(area):
|
||||||
print(f'Setting max speed of {lane_id} to 30.')
|
print(f'Setting max speed of {lane_id} to 9.')
|
||||||
traci.lane.setMaxSpeed(lane_id, 30)
|
traci.lane.setMaxSpeed(lane_id, 9)
|
||||||
|
|
||||||
for veh_id in traci.vehicle.getIDList():
|
for veh_id in traci.vehicle.getIDList():
|
||||||
traci.vehicle.rerouteTraveltime(veh_id, True)
|
traci.vehicle.rerouteTraveltime(veh_id, True)
|
||||||
|
Loading…
Reference in New Issue
Block a user