Hi all, I am using Sumo via libsumo/C++ (and TraCI/Python for testing) as a traffic generator in a simulation environment that has a human in the loop.
I would like to be able to create roadblocks while the simulation is running, for example a stationary truck that is placed diagonally on two lanes or in the middle of a junction. Other vehicles should stop or reroute if possible. I am currently doing that by adding a vehicle and calling moveToXY with the desired position and angle on every step. The problem is that the roadblock / stationary vehicle blocks at most one lane, regardless of the angle, type, width, etc. I guess it's because of the way Sumo calculates intersections / collisions. How would you recommend to achieve this functionality? I read "How to simulate an accident" on the FAQ but I don't think it answers my needs - I am already halting the vehicle, and closing a whole lane or edge seems too much. The only idea I could think of is to place additional "dummy" vehicles on each lane that the roadblock should be blocking. But that will require analyzing the road network, intersection the geometries and managing the dummy vehicles. Is there a simpler way? Thank you, Shawn -- Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/ _______________________________________________ sumo-user mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
