Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] sumo-meso: sequence of lane indices

Hi folks, 

Main question: When using sumo in meso mode with meso-junction-control, do the lane indices need to be a complete sequence of integers? In other words,  for a segment with n lanes, should  the sequence of lane indices contain all integers in [0, n-1]? 

Context: I am removing a lane and want to update the network xml file accordingly. Sumo has a way to delete edges/lanes without having to change the edge/lane attributes in the network xml file (see here), but I'd like to edit/update the network xml file directly. 
Say a segment has n lanes, and I want to remove lane j (with j<n). If I simply remove the <lane> entry in the xml file of lane j. Then the edge will have lanes with lane indices that will not be a complete sequence of integers in [0,n-1] because index j will be missing. I wonder if that has any implications in meso mode?

Secondary question, is it recommended to update lane id's after a lane index is changed, so that the lane id reflects the new lane index, or can there be inconsistencies between lane ids and indices? Example of an inconsistency: an edge with lanes ids ('lane_0', 'lane_2', 'lane_3') and lane indices (0,1,2), so the indices do not match the suffix of the lane ids. 

Thanks in advance for any insights or ideas, 
Carolina 
 

Back to the top