Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Intriguing behaviour by vehicles after merged lane split


After using a script to generate the network scenario:

Nodes file:
<?xml version='1.0' encoding='utf8'?>
<nodes xmlns:xsi="" xsi:noNamespaceSchemaLocation="">
  <node id="nod_begin" type="priority" x="0" y="0" />
  <node id="nod_block_1_begin" type="priority" x="500.0" y="0" />
  <node id="nod_block_1_end" type="priority" x="750.0" y="0" />
  <node id="nod_end" type="priority" x="1000.0" y="0" />

Edges file:
<?xml version='1.0' encoding='utf8'?>
<edges xmlns:xsi="" xsi:noNamespaceSchemaLocation="">
  <edge from="nod_begin" id="1" numLanes="3" to="nod_block_1_begin" />
  <edge from="nod_block_1_begin" id="2" numLanes="2" to="nod_block_1_end" />
  <edge from="nod_block_1_end" id="3" numLanes="3" to="nod_end" />

Connections file: 
<?xml version='1.0' encoding='utf8'?>
<connections xmlns:xsi="" xsi:noNamespaceSchemaLocation="">
  <connection from="1" fromLane="0" to="2" toLane="0" />
  <connection from="1" fromLane="1" to="2" toLane="0" />
  <connection from="1" fromLane="2" to="2" toLane="1" />
  <connection from="2" fromLane="0" to="3" toLane="0" />
  <connection from="2" fromLane="0" to="3" toLane="1" />

  <connection from="2" fromLane="1" to="3" toLane="2" />

Routes file: 

<?xml version='1.0' encoding='utf8'?>
  <vType carFollowModel="Krauss" color="0,1,0" id="veh" latAlignment="center" lcCooperative="1" lcKeepRight="0" lcLookaheadLeft="1" lcOvertakeDeltaSpeedFactor="1" lcOvertakeRight="0" lcSpeedGain="1" lcSpeedGainRight="1" lcStrategic="1" lcSublane="1" length="5" minGap="2.5" sigma="0" speedDev="0" speedFactor="1.0" />
  <route edges="1 2 3" id="r0" />
  <flow arrivalLane="current" arrivalPosLat="center" begin="0" departLane="random" departPosLat="center" departSpeed="random" id="f" number="100" route="r0" type="veh" vehsPerHour="6000" />

Why does a normal SUMO run from edge 2 to edge 3, result in all the vehicles moving using the connection from lane 0 to lane 0 instead of the other connection defined from lane 0 to lane 1?
So the traffic flow on the last edge is divided between lanes 0 and 2 and the central lane is ignored? It has been highlighted for easier analysis. Please also find, attached, a video showing this behaviour.

Attachment: SUMO mergesplit.mp4
Description: video/mp4

Back to the top