Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] How to retrieve thru TraCI all the vehicle types included in a vTypeDistribution ?

This isn't supported at the moment (https://github.com/eclipse/sumo/issues/2862). As a workaroud, use sumolib to parse the input files directly: https://sumo.dlr.de/docs/Tools/Sumolib.html

for vTDist in parse(somefile, 'vTypeDistribution'):
    typeIDs = [t.id for t in vTDist.vType]

Am Fr., 10. Juni 2022 um 05:16 Uhr schrieb Hervé Diedie <hervediedie@xxxxxxxxx>:
Please can someone help me ?

Best regards.
_______________________________________________
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