Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Trouble getting lane-to-lane connections at intersections correct

I solved it!  The problem was not that I was getting the syntax of the connections file wrong. It was that I had gotten the lane numbering in a small number of nodes wrong. Netconvert stopped processing my connections file after the errors, and reverted to its own default connections at nodes. I should have paid more attention to the warnings from netconvert.

Rich Tasgal


On Wed, Jan 8, 2020 at 10:51 AM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
This looks indeed like a misunderstanding. I recommend that you take the following steps:
- create a single intersection in netedit and define connections as desired https://sumo.dlr.de/docs/NETEDIT.html#edit_connections
- save the network as 'plain-xml'
- study the generated .con.xml file
It may help to define connections only from a single edge and remove all others to make the syntax more obvious.

regards,
Jakob
-

Am Mi., 8. Jan. 2020 um 09:37 Uhr schrieb Richard Tasgal <tasgal@xxxxxxxxx>:
The allowed turns at intersections are not coming out like I need them to be. I've done a fair amount of debugging, and at this point I'm thinking either I misunderstand the syntax for the connections file, especially where you specify the lane of an edge, or there is a bug in netconvert. The problem may be especially connections to and from the left lanes of roads. The version of SUMO I have is 1.4.0.

I'll focus on a single interaction to illustrate my difficulties.

In the text below, I'll excerpt what I think are the relevant lines for the intersection in the connections (.con.xml) file, and below that I'll excerpt what l think are the relevant lines in the network (.net.xml) file produced by netconvert. I'm including two pictures of the intersection, very close up and less close up, so the labels of the roads and the intersections are visible. I'm also including a picture of a drawing of what the allowed connections should be. The node is of type priority.

Rich Tasgal

--

From the connections file:

<connection from="NodeX7Y4toNodeX6Y4" to="NodeX6Y4toNodeX6Y5" fromLane="0" toLane="0"/>
<connection from="NodeX7Y4toNodeX6Y4" to="NodeX6Y4toNodeX6Y5" fromLane="1" toLane="1"/>
<connection from="NodeX6Y3toNodeX6Y4" to="NodeX6Y4toNodeX7Y4" fromLane="0" toLane="0"/>
<connection from="NodeX6Y3toNodeX6Y4" to="NodeX6Y4toNodeX7Y4" fromLane="1" toLane="1"/>
<connection from="NodeX6Y3toNodeX6Y4" to="NodeX6Y4toNodeX6Y5" fromLane="1" toLane="1"/>
<connection from="NodeX6Y3toNodeX6Y4" to="NodeX6Y4toNodeX6Y5" fromLane="2" toLane="2"/>
<connection from="NodeX6Y3toNodeX6Y4" to="NodeX6Y4toNodeX5Y4" fromLane="2" toLane="0"/>
<connection from="NodeX6Y3toNodeX6Y4" to="NodeX6Y4toNodeX5Y4" fromLane="3" toLane="1"/>
<connection from="NodeX5Y4toNodeX6Y4" to="NodeX6Y4toNodeX6Y5" fromLane="0" toLane="2"/>
<connection from="NodeX5Y4toNodeX6Y4" to="NodeX6Y4toNodeX6Y5" fromLane="1" toLane="3"/>


From the network file:

<connection from="NodeX5Y4toNodeX6Y4" to="NodeX6Y4toNodeX6Y5" fromLane="0" toLane="1" via=":NodeX6Y4_5_0" dir="l" state="m"/>
<connection from="NodeX6Y3toNodeX6Y4" to="NodeX6Y4toNodeX7Y4" fromLane="0" toLane="0" via=":NodeX6Y4_1_0" dir="r" state="M"/>
<connection from="NodeX6Y3toNodeX6Y4" to="NodeX6Y4toNodeX6Y5" fromLane="0" toLane="0" via=":NodeX6Y4_2_0" dir="s" state="M"/>
<connection from="NodeX6Y3toNodeX6Y4" to="NodeX6Y4toNodeX6Y5" fromLane="1" toLane="1" via=":NodeX6Y4_2_1" dir="s" state="M"/>
<connection from="NodeX6Y3toNodeX6Y4" to="NodeX6Y4toNodeX5Y4" fromLane="1" toLane="0" via=":NodeX6Y4_4_0" dir="l" state="M"/>
<connection from="NodeX7Y4toNodeX6Y4" to="NodeX6Y4toNodeX6Y5" fromLane="0" toLane="0" via=":NodeX6Y4_0_0" dir="r" state="m"/>

IntersectionX6Y4.mediumclose.png
75a24735-ed0c-4783-a6fe-54c8fb4a68a2.jpg
IntersectionX6Y4.closeup.png



On Wed, Dec 25, 2019 at 10:27 AM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
Hello,
right now, the junction-shape algorithm cannot handle a mix of right-hand and left-hand driving. A work-around is to set a custom junction shape:

Note, that turn-around connections from the left-hand roads in a right-hand network will also have the wrong shape. Either remove them or set a custom shape for them as well.

regards,
Jakob

Am Di., 24. Dez. 2019 um 21:40 Uhr schrieb Richard Tasgal <tasgal@xxxxxxxxx>:
I'm trying to model a road network in which some of the streets have driving on the left-hand side rather than the right. I'm not getting the shape of the roads and especially the intersections the way they should be. The best I could do is have the roads with left-hand side driving enter and exit the intersections at angles. For example, the road on the right in this figure is left-side driving; the other roads are right-side driving or one-way. The position of the stop lines is too far away from the intersection and the intersection shape has a small bottleneck that I don't want.

Any suggestions about how to program in a more correct shape?

Rich Tasgal
Ben-Gurion University
Israel

Fig.intersection.four_lane.closeup.PNG
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top