sumo icon indicating copy to clipboard operation
sumo copied to clipboard

lane change question

Open ckh0715 opened this issue 3 years ago • 10 comments

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

070SV)8HCYX(S8)JZ }IB~4

K (773R7MUBD}7PQFRE9711

ckh0715 avatar Dec 13 '22 11:12 ckh0715

Could you please share your simulation files? It is difficult to guess from the screenshots what is happening.

m-kro avatar Dec 13 '22 12:12 m-kro

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

ckh0715 avatar Dec 13 '22 12:12 ckh0715

No, please attach the SUMO files like the network, routes definition and so on (e.g. in a zip archive).

m-kro avatar Dec 13 '22 12:12 m-kro

~~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.

namdre avatar Dec 13 '22 12:12 namdre

Actually the vehicles move/are animated in the opposite direction of their target lane (lanechange.duration is set).

m-kro avatar Dec 13 '22 12:12 m-kro

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.

ckh0715 avatar Dec 13 '22 13:12 ckh0715

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

namdre avatar Dec 13 '22 13:12 namdre

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.

ckh0715 avatar Dec 13 '22 13:12 ckh0715

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

namdre avatar Dec 13 '22 13:12 namdre