Excellent! thank you very much!
________________________________
From: Mirko Barthauer <m.bartha...@t-online.de>
Sent: Friday, February 9, 2024 11:54 AM
To: Ivan Postigo <ivan.post...@liu.se>; Sumo project User discussions 
<sumo-user@eclipse.org>
Subject: AW: [sumo-user] Assing device parameters per vehicle type


Hi Ivan,



in the general case just add a param child tag with attributes key="<device 
option>" ("device.driverstate.headwayErrorCoefficient" in your example) and 
value="<value>" ("0.5" in your case). The general rule is that more specific 
definitions prevail: vehicle types override global options and vehicles 
override vehicle types.



Best regards

Mirko







-----Original-Nachricht-----

Betreff: Re: [sumo-user] Assing device parameters per vehicle type

Datum: 2024-02-09T11:00:07+0100

Von: "Ivan Postigo" <ivan.post...@liu.se>

An: "Sumo project User discussions" <sumo-user@eclipse.org>, "Mirko Barthauer" 
<m.bartha...@t-online.de>







Thanks Mirko,

How about the driver state device?

I would like for example vehicle 1 to have a "headwayErrorCoefficient = 0.5" 
and vehicle 2 to have "headwayErrorCoefficient=0.75" just as an example.

the global option is : --device.driverstate.headwayErrorCoefficient

in the route file the, what would be the "param key" to assign values per 
vehicle type?
Also, what is the hierarchy, in case i also define default values globally, do 
the global options override the per vehicle definition? or the otherway around?

thanks!





________________________________
From: Mirko Barthauer <m.bartha...@t-online.de>
Sent: Friday, February 9, 2024 9:49 AM
To: Sumo project User discussions <sumo-user@eclipse.org>
Cc: Ivan Postigo <ivan.post...@liu.se>
Subject: AW: [sumo-user] Assing device parameters per vehicle type


Hi Ivan,



while it is possible for other devices to define them like you showed below, 
the FCD device is implemented differently. You can restrict output only by the 
global options you can find in the options 
list<https://sumo.dlr.de/docs/sumo.html#fcd_device>.



Best regards

Mirko









-----Original-Nachricht-----

Betreff: [sumo-user] Assing device parameters per vehicle type

Datum: 2024-02-08T22:54:28+0100

Von: "Ivan Postigo via sumo-user" <sumo-user@eclipse.org>

An: "sumo-user@eclipse.org" <sumo-user@eclipse.org>







Hi,
I dont have clear how to assign the same device to 2 different vehicle types, 
but with different device parameters.

for example, in my route file i have :


<vType id="v1">
        <param key="has.fcd.device" value="true"/>
** here i want to assign the fcd.period to be 0.1 for example **
** i want the fcd-output.acceleration to be true **
</vType>
 <vType id="v2">
        <param key="has.fcd.device" value="true"/>
** here i want to assign the fcd.period to be 0.5 **
** i want the fcd-output.max-leader-distanceto be 150m **
 </vType>

How to do this, is it possible? i cant find the way to define my device 
prefereces per vehicle type in my route file.
thanks!
Ivan




w

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

Reply via email to