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.55k stars 1.43k forks source link

Changing edge lengths after junction computation #14602

Closed aminissn closed 7 months ago

aminissn commented 7 months ago

I define E1 detectors by reading the network in sumolib, but after loading the detectors in NETEDIT, I realized some detectors have invalid positions over lane. The issue is that edge lengths are in (this case) shorter before compute junctions and the given pos is marked as invalid. Even friendlyPos=True doesn't solve the issue.

namdre commented 7 months ago

can you provide example inputs?

aminissn commented 7 months ago

edge ID 683939006 in this network is an example edge_length_issue.net.xml.zip

namdre commented 7 months ago

can you attach the detector file as well?

aminissn commented 7 months ago

I had a typo in writing friendlyPos... so that solves the issue. But the edge lengths are recalculated after computing junctions. Not sure when reading the network with sumolib, does it read with or without computing the junctions.

namdre commented 7 months ago

sumolib reads the computed lane length values from the .net.xml and edge length is simply the length of lane 0