Hello Jakob,

 

Thanks for your
help. I am now able to get the left turn pocket by using split in edg.xml (as 
“1.”
shown in the pic)

 

Would you
please let me know if there is a way to eliminate the gap between the westbound
and eastbound edges? (as “2.” shown in the pic)

 

 

And also, I
managed to add the right turn pocket by using NBEdgeCont::splitAt() in
netconvert/netedit, I have to create another node separate based on node
2i.70/2o.70 to split the edge and specify the pos=1 (cannot be “0”). (as “3.” 
shown
in the pic)

 

myTestEdgeCont.splitAt(dc, edge(2i.70->0),
1, nA, edge(2i.70->nA), edge(nA->0), 3, 4, -1, 0);

myTestEdgeCont.splitAt(dc, edge(2o.70->2),
1, nB, edge(2o.70->nB), edge(nB->2), 3, 4, -1, 0);

 

 



Would you please tell me if I can add the right turn pocket exactly
at the node 2i.70/2o.70 position? So that fewer unnecessary edges will be
created. 

And is there any way to eliminate the gap between those
westbound and eastbound edges? (as “4.” shown in the pic, similar to “2.”)

 

 

At last, how does SUMO model the reversible lane, center two-way
lane (or two-way left turn lane)?

I see in the wiki 
http://sumo.dlr.de/wiki/Networks/Building_Networks_from_own_XML-descriptions#Neighboring_opposite-direction_Lanes

And tried it, but it seem that this does not model one lane with
two directions? Would you please also let me know how can I model a center lane 
with dual-directions?

 

 

My test network is attached below.

Again, thank you very much for your consistent help and prompt
reply.

 

 

Best,

 

Yifeng

 

 



 

<nodes>

 

   <node id="0" x="0.0"
y="0.0"/>

   <node id="1"
x="-100.0" y="0.0"/>

   <node id="2"
x="+100.0" y="0.0"/>

   <node id="3" x="0.0"
y="-100.0"/>

   <node id="4" x="0.0"
y="+100.0"/>

               <node id="X"
x="+50.0" y="+50.0"/>

               <node id="Y"
x="+100.0" y="+50.0"/>

</nodes>



 



 

<edges>

   <edge id="1i"
from="1" to="0" numLanes="3" />

   <edge id="1o"
from="0" to="1" numLanes="2" />

 

   <edge id="2i"
from="2" to="0" numLanes="3">

                              <split
pos="0" lanes="0 1"/>

                              <split
pos="70" lanes="0 1 2"/>

   </edge>

   

   <edge id="2o"
from="0" to="2" numLanes="3">

                              <!--lane
index="0" width="1"/-->

                              <!--lane
index="1" width="1"/-->

                              <!--lane
index="2" width="1"/-->

                              <split
pos="0" lanes="0 1"/>

                              <split
pos="70" lanes="0 1 2" />

   </edge>

                                                   

   <edge id="3i"
from="3" to="0" numLanes="2" >

                              <neigh
lane="3i_1"/>

    </edge>

   

   <edge id="3o"
from="0" to="3" numLanes="2" >

                              <neigh
lane="3o_1"/>

    </edge>

                                                  


   <edge id="4i"
from="4" to="0" numLanes="3" />

   <edge id="4o"
from="0" to="4" numLanes="2" />

   

   <edge id="a" from="X"
to="Y" numLanes="2">

       <neigh lane="b_0"/>

    </edge>

 

    <edge id="b"
from="Y" to="X">

       <neigh lane="a_1"/>

    </edge>

               



</edges>

 



 

From: [email protected]
Date: Tue, 21 Jun 2016 08:32:35 +0200
Subject: Re: [sumo-devel] NBEdgeCont::splitAt(), split on left to model left 
turn pocket
To: [email protected]
CC: [email protected]

Hello,
left turn pockets should be added by defining splits in an added xml file: 
http://sumo.dlr.de/wiki/Networks/Building_Networks_from_own_XML-descriptions#Road_Segment_Refining
Or you could just add them with Netedit: 
http://sumo.dlr.de/wiki/NETEDIT#Edge_and_Lane

If you need to send screenshots, make them smaller or send them directly to me.
regards,
Jakob

2016-06-20 18:33 GMT+02:00 Yifeng Zeng <[email protected]>:
Hello All,

I was trying to model the left turn pocket. And I use NBEdgeCont::splitAt() 
function to split an edge near the junction/intersection:



                        myTestEdgeCont.splitAt(dc, MyTestEdge, 
distance_to_split_from_usn, n3, "e_first_"+std::to_string(edge_id), 
"e_second_"+std::to_string(edge_id), 3, 4, -1, 1);



I specified 1 lane that is added on the left side of the edge (changedLeft = 
1), but as shown in the "LeftTurnPocket.PNG" picture, the lane added is still 
on the right side of the edge.



Am I doing anything wrong? Would you please let me know how I can get the left 
turn pocket as shown in the "LeftTurnPocketDesired.PNG" picture?



Thanks,



Yifeng

                                          
------------------------------------------------------------------------------

What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic

patterns at an interface-level. Reveals which users, apps, and protocols are

consuming the most bandwidth. Provides multi-vendor support for NetFlow,

J-Flow, sFlow and other flows. Make informed decisions using capacity planning

reports. http://sdm.link/zohomanageengine
_______________________________________________

sumo-devel mailing list

[email protected]

https://lists.sourceforge.net/lists/listinfo/sumo-devel



                                          
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
sumo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-devel

Reply via email to