eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.49k stars 1.41k forks source link

Wrong lane used in lane area detector end position checks #15275

Closed Domsall closed 1 month ago

Domsall commented 1 month ago

During debugging, I ran into the following assert:

https://github.com/eclipse-sumo/sumo/blob/6f9ff4ddaa42305c87f46edd44a88626180a9a71/src/microsim/output/MSE2Collector.cpp#L282

For now, I just deleted "- POSITION_EPS". The test case to reproduce the error:

Delay_based_assert.zip

m-kro commented 1 month ago

I think the detector end position is not detected correctly because the snap function still takes the first lane's length: https://github.com/eclipse-sumo/sumo/blob/6f9ff4ddaa42305c87f46edd44a88626180a9a71/src/microsim/output/MSE2Collector.cpp#L264-L266

m-kro commented 1 month ago

Thanks as always for looking carefully at the code ;-)