Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [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.postigo@xxxxxx>

An: "Sumo project User discussions" <sumo-user@xxxxxxxxxxx>, "Mirko Barthauer" <m.barthauer@xxxxxxxxxxx>

 

 

 

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.barthauer@xxxxxxxxxxx>
Sent: Friday, February 9, 2024 9:49 AM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Cc: Ivan Postigo <ivan.postigo@xxxxxx>
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.

 

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@xxxxxxxxxxx>

An: "sumo-user@xxxxxxxxxxx" <sumo-user@xxxxxxxxxxx>

 

 

 

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


Back to the top