Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Lane changing in SUMO

TraCI commands generally take effect, regardless of lane change mode.
The only thing that can prevent a TraCI request from being followed are the safety checks.
If you want to disable automatic changing,  you can use either 0, 256 or 512 (depending on the desired safety checks).

The default mode is suitable for all the lane changing functionality of the SL2015 lane change model (and overriding with TraCI works either way).

Am Mo., 7. Feb. 2022 um 18:28 Uhr schrieb Hriday Sanghvi via sumo-user <sumo-user@xxxxxxxxxxx>:
Hello,

I have a question about the lane changing models vs. lane changing mode in SUMO.

Knowing that the default lane change mode in SUMO is 1621 (12 bits as 0b011001010101) and that in this mode: laneChangeModel may execute all changes unless in conflict with TraCI, where bit 8 and bit 9 are set to 0 and 1 respectively (as highlighted previously).

I am trying to set lane change mode to a mode where only TraCI's changeLane command would affect any/all lane changes, for example:

traci.vehicle.changeLane(vehID='veh1', laneIndex=0, duration=10)

So if I set bit 8 as well, making it 011101010101 = 1621 + 2^8 = 1621 + 256 = 1877

Or would the right thing be to unset the 9th bit, making it 010001010101 = 1621 - 2^9 = 1621 - 512 = 1109

Also, is it correct to assume that unsetting bit 10 and 11 ("do no sublane changes") is only to disable sublane changes made by SUMO's lane change model but allows any from TraCI?

Which mode would be suitable for all the lane changing functionality of SL2015 lane change model, but being able to override them with TraCI commands?

Thank you.

Sincerely,
Hriday
_______________________________________________
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