Von: sumo-user <sumo-user-bounces@xxxxxxxxxxx>
Im Auftrag von Marcel Guim Marzo via sumo-user
Gesendet: Montag, 4. August 2025 13:35
An: sumo-user@xxxxxxxxxxx
Cc: Marcel Guim Marzo <marcel.guim@xxxxxxx>
Betreff: [sumo-user] Question
I'm a worker at UPC university currently studying different methods and configurations with which we could try and improve the response time of the emergency vehicles in our city, Barcelona. To do it, I'm trying to create a simulation where
emergency vehicles are involved, and I'm doing it using SUMO to make all the simulations.
I recently visited the web page ("https://sumo.dlr.de/docs/Simulation/Emergency.html") where I saw SUMO has implemented methods and parameters to facilitate these types of
simulations. I've been trying to use these parameters in my code, and I've been able to create the vehicles themselves (an ambulance) and to run the simulation with the defined parameters. But I have not found any tutorials on how to define and use the emergency
class and bluelight parameters. I tried the configuration proposed in the web page:
<vType
id="rescue"
vClass="emergency"
speedFactor="1.5">
<param
key="has.bluelight.device"
value="true"/>
</vType>
But it doesn't seem to work how it should. The ambulance is not overtaking using the opposite direction, the cars in front of it are not moving away,
it's not going faster than the speed limit.... I tried setting these configurations in the other vehicles involved in the simulation, configuring parameters like:
<vType
id="real"
accel="2.0"
decel="4.5"
maxSpeed="5"
guiShape="taxi">
<param
key="device.bluelight.device"
value="true"/>
<param
key="device.bluelight.compliance"
value="1"/>
<param
key="device.bluelight.visibility"
value="150"/>
<param
key="device.bluelight.responseTime"
value="0.5"/>
<param
key="device.bluelight.reaction-prob-near"
value="1"/>
<param
key="device.bluelight.reaction-prob-far"
value="1"/>
<param
key="device.bluelight.minGap"
value="1"/>
<param
key="device.bluelight.reactiondist"
value="100"/>
<param
key="device.bluelight.mingapfactor"
value="2"/>
But it still won't work. Is there any tutorial online I can follow to implement it?