From 938e64b1f4a3f2c72814377b824098bbeeea366d Mon Sep 17 00:00:00 2001 From: Thibaud Date: Fri, 16 Nov 2018 16:39:01 +0100 Subject: [PATCH] Fix lock_area with correct speed value (9 m/s) --- sumo_project/SUMOFactory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sumo_project/SUMOFactory.py b/sumo_project/SUMOFactory.py index 4037fb0..8f529db 100644 --- a/sumo_project/SUMOFactory.py +++ b/sumo_project/SUMOFactory.py @@ -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)