[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] Two lane vehicle flow
|
Hi Leonardo,
the tau value is stored in a vehicle type. Even when you change the tau value of a single vehicle through TraCI, a new vehicle type is derived from the previous one and there the tau value is set.
Best regards,
Mirko
P.S.: Please write always to the mailing list so that everybody can answer your question.
-----Original-Nachricht-----
Betreff: Re: [sumo-user] Two lane vehicle flow
Datum: 2025-02-18T16:50:13+0100
Von: "林紹維" <r11944038@xxxxxxxxxxxxxxx>
An: "Mirko Barthauer" <m.barthauer@xxxxxxxxxxx>
Hi Mirko,
Thank you for the response, the previous problem has been solved.
Another problem I am encountering is that I know by using traci.vehicle.setTau, I can set an individual vehicle to a certain tau value, however, if I am trying to change the tau value in a <MSVehicle> class instance (considering modifying the source code), it seems that there is no function such as “setTau” nor “getTau” to change or retrieve an individual vehicle value, whereas there is only the method (setTau()) to change the tau value of certain <MSVehicleType>. Am I missing something to change the tau value of an individual vehicle? Any help would be appreciated, thank you!
Best regards,
Leonardo
On Feb 18, 2025, at 11:29 PM, Mirko Barthauer <m.barthauer@xxxxxxxxxxx> wrote:
Hi Leonardo,
Use attribute departLane in the flow definition to define which flow should use which lane(s).
Best regards,
Mirko
-----Original-Nachricht-----
Betreff: [sumo-user] Two lane vehicle flow
Datum: 2025-02-18T16:04:15+0100
Von: "林紹維 via sumo-user" <sumo-user@xxxxxxxxxxx>
An: "sumo-user@xxxxxxxxxxx" <sumo-user@xxxxxxxxxxx>
Dear community:
I am currently implementing a two lane highway with car flows on a single edge, “E1”. The .rou.xml file looks like the following, but it seems that two flows (f_0, f_1) do not enter lane 1 and lane 2 respectively, where as the two flows seem to mix together and enter the simulation. I tried visualizing
flow 0 in green and flow 1 in blue, and saw that the green cars enter the edge on both lanes, and so do the blue cars. Is there a way to implement the car flow such that the flows enter the lanes respectively, but still allows lane changing between the lanes, thank you.
Best regards,
Leonardo