Skip to main content

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


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.


Back to the top