Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Question

Sorry to contradict the previous answer but there is not need to define vClass="emergency" for the "normal" vehicles.
- For overtaking through the opposite direction, you need to take extra steps during network preparation https://sumo.dlr.de/docs/Simulation/OppositeDirectionDriving.html
- For rescue lane formation you need to activate the sublane model: https://sumo.dlr.de/docs/Simulation/SublaneModel.html#sublane-model
- Going faster than the speed limit should work for any vehicle with your custom type "rescue" (when there is no slower traffic ahead)

regards,
Jakob


Am Mo., 4. Aug. 2025 um 14:19 Uhr schrieb yun-pang.floetteroed--- via sumo-user <sumo-user@xxxxxxxxxxx>:

Hi,

 

I think, the problem is that vClass="emergency" is not defined in your vType id=”real”.

 

You can find more examples with bluelight under ~\sumo\tests\sumo\devices\bluelight\

 

Kind regards,

Yun-Pang

 

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

 

Hello, 

 

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"/>

    </vType>

 

 

 

But it still won't work. Is there any tutorial online I can follow to implement it?

 

Thank you in advanced,

 

Marcel

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top