lane change question
why the posLat error? Please look the yellow and green vehicle, LCM is LC2013.


Could you please share your simulation files? It is difficult to guess from the screenshots what is happening.
Could you please share your simulation files? It is difficult to guess from the screenshots what is happening.
https://user-images.githubusercontent.com/56399136/207315342-c63301e9-5594-4fef-925b-b04e721fc661.mp4
No, please attach the SUMO files like the network, routes definition and so on (e.g. in a zip archive).
~~lateral movements are expected when setting lcSigma != 0. However, this should not cause vehicles to drift outside lane bounds.~~ lcSigma is not used in this scenario.
Actually the vehicles move/are animated in the opposite direction of their target lane (lanechange.duration is set).
I think there are some problems in MSLaneChanger. When vehicle->myPosLat < 0 the vehicle is in the right of it's lane, but when call mayChange and direction is set to -1, the vehicle will change from current lane to the left lane. So I‘m curious about there is such a code comments above mayChange(-1) : check whether the vehicle wants and is able to change to right lane.
The lane numbering in the network is different from the expectation (0 should be the rightmost lane in driving direction). Also, the network is lacking the header. Taken together this strongly suggests that some unusual processing was done on the .net.xml
The lane numbering in the network is different from the expectation (0 should be the rightmost lane in driving direction). Also, the network is lacking the header. Taken together this strongly suggests that some unusual processing was done on the .net.xml
Oh, thank you, I generated the xml by my own code using the real data. I didn't know there was such a rule before, I think I should modify my code.
Instead, please generate plain-xml inputs and let netconvert build the network: https://sumo.dlr.de/docs/FAQ.html#i_made_changes_to_the_netxml-file_but_it_did_not_work_as_expected_why