Skip to content

Commit

Permalink
added test refs #4585
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Sep 13, 2018
1 parent eb082d6 commit cb5fec2
Show file tree
Hide file tree
Showing 6 changed files with 270 additions and 0 deletions.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Thu 13 Sep 2018 10:06:59 AM CEST by Eclipse SUMO netedit Version v1_0_0+0161-7e6aac7
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/netconvertConfiguration.xsd">
<input>
<sumo-net-file value="input_net.net.xml"/>
</input>
<output>
<output-file value="input_net.net.xml"/>
</output>
<processing>
<offset.disable-normalization value="true"/>
<lefthand value="false"/>
</processing>
<junctions>
<no-turnarounds value="true"/>
<junctions.corner-detail value="0"/>
<junctions.limit-turn-speed value="-1"/>
<rectangular-lane-cut value="false"/>
</junctions>
<pedestrian>
<walkingareas value="false"/>
</pedestrian>
</configuration>
-->

<net version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/net_file.xsd">

<location netOffset="100.00,100.00" convBoundary="100.00,0.00,103.52,200.88" origBoundary="-10000000000.00,-10000000000.00,10000000000.00,10000000000.00" projParameter="!"/>

<edge id=":C_0" function="internal">
<lane id=":C_0_0" index="0" speed="13.89" length="0.35" shape="95.21,100.29 95.20,99.88"/>
<lane id=":C_0_1" index="1" speed="13.89" length="0.35" shape="98.41,100.18 98.40,99.88"/>
</edge>
<edge id=":C_2" function="internal">
<lane id=":C_2_0" index="0" speed="13.89" length="2.34" shape="98.41,100.18 99.16,98.95 99.95,98.52"/>
</edge>
<edge id=":C_6" function="internal">
<lane id=":C_6_0" index="0" speed="13.89" length="2.34" shape="99.95,98.52 100.76,98.89 101.60,100.06"/>
</edge>
<edge id=":C_3" function="internal">
<lane id=":C_3_0" index="0" speed="13.89" length="0.14" shape="104.80,99.88 104.80,99.95"/>
<lane id=":C_3_1" index="1" speed="13.89" length="0.14" shape="101.60,99.88 101.60,100.06"/>
</edge>
<edge id=":C_5" function="internal">
<lane id=":C_5_0" index="0" speed="13.89" length="2.34" shape="101.60,99.88 100.80,101.08 100.00,101.48"/>
</edge>
<edge id=":C_7" function="internal">
<lane id=":C_7_0" index="0" speed="13.89" length="2.34" shape="100.00,101.48 99.20,101.08 98.40,99.88"/>
</edge>
<edge id=":N_0" function="internal">
<lane id=":N_0_0" index="0" speed="13.89" length="4.67" shape="105.12,200.82 104.36,202.05 103.58,202.48 102.76,202.11 101.92,200.94"/>
</edge>
<edge id=":S_0" function="internal">
<lane id=":S_0_0" index="0" speed="13.89" length="4.67" shape="98.40,0.00 99.20,-1.20 100.00,-1.60 100.80,-1.20 101.60,0.00"/>
</edge>

<edge id="CN" from="C" to="N" priority="2">
<lane id="CN_0" index="0" speed="13.89" length="100.82" shape="104.80,99.95 108.32,200.71"/>
<lane id="CN_1" index="1" speed="13.89" length="100.82" shape="101.60,100.06 105.12,200.82">
<neigh lane="NC_1"/>
</lane>
</edge>
<edge id="CS" from="C" to="S" priority="2">
<lane id="CS_0" index="0" speed="13.89" length="99.88" shape="95.20,99.88 95.20,0.00"/>
<lane id="CS_1" index="1" speed="13.89" length="99.88" shape="98.40,99.88 98.40,0.00">
<neigh lane="SC_1"/>
</lane>
</edge>
<edge id="NC" from="N" to="C" priority="2">
<lane id="NC_0" index="0" speed="13.89" length="100.82" shape="98.72,201.05 95.21,100.29"/>
<lane id="NC_1" index="1" speed="13.89" length="100.82" shape="101.92,200.94 98.41,100.18">
<neigh lane="CN_1"/>
</lane>
</edge>
<edge id="SC" from="S" to="C" priority="2">
<lane id="SC_0" index="0" speed="13.89" length="99.88" shape="104.80,0.00 104.80,99.88"/>
<lane id="SC_1" index="1" speed="13.89" length="99.88" shape="101.60,0.00 101.60,99.88">
<neigh lane="CS_1"/>
</lane>
</edge>

<junction id="C" type="priority" x="100.00" y="100.00" incLanes="NC_0 NC_1 SC_0 SC_1" intLanes=":C_0_0 :C_0_1 :C_6_0 :C_3_0 :C_3_1 :C_7_0" shape="93.61,100.34 106.40,99.90 93.60,99.88">
<request index="0" response="000000" foes="100000" cont="0"/>
<request index="1" response="000000" foes="100000" cont="0"/>
<request index="2" response="011000" foes="011000" cont="1"/>
<request index="3" response="000000" foes="000100" cont="0"/>
<request index="4" response="000000" foes="000100" cont="0"/>
<request index="5" response="000011" foes="000011" cont="1"/>
</junction>
<junction id="N" type="priority" x="103.52" y="200.88" incLanes="CN_0 CN_1" intLanes=":N_0_0" shape="103.52,200.88 109.92,200.66 103.52,200.88">
<request index="0" response="0" foes="0" cont="0"/>
</junction>
<junction id="S" type="priority" x="100.00" y="0.00" incLanes="CS_0 CS_1" intLanes=":S_0_0" shape="100.00,0.00 93.60,0.00 100.00,0.00">
<request index="0" response="0" foes="0" cont="0"/>
</junction>

<junction id=":C_6_0" type="internal" x="99.95" y="98.52" incLanes=":C_2_0 SC_0 SC_1" intLanes=":C_3_0 :C_3_1"/>
<junction id=":C_7_0" type="internal" x="100.00" y="101.48" incLanes=":C_5_0 NC_0 NC_1" intLanes=":C_0_0 :C_0_1"/>

<connection from="CN" to="NC" fromLane="1" toLane="1" via=":N_0_0" dir="t" state="M"/>
<connection from="CS" to="SC" fromLane="1" toLane="1" via=":S_0_0" dir="t" state="M"/>
<connection from="NC" to="CS" fromLane="0" toLane="0" via=":C_0_0" dir="s" state="M"/>
<connection from="NC" to="CS" fromLane="1" toLane="1" via=":C_0_1" dir="s" state="M"/>
<connection from="NC" to="CN" fromLane="1" toLane="1" via=":C_2_0" dir="t" state="m"/>
<connection from="SC" to="CN" fromLane="0" toLane="0" via=":C_3_0" dir="s" state="M"/>
<connection from="SC" to="CN" fromLane="1" toLane="1" via=":C_3_1" dir="s" state="M"/>
<connection from="SC" to="CS" fromLane="1" toLane="1" via=":C_5_0" dir="t" state="m"/>

<connection from=":C_0" to="CS" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from=":C_0" to="CS" fromLane="1" toLane="1" dir="s" state="M"/>
<connection from=":C_2" to="CN" fromLane="0" toLane="1" via=":C_6_0" dir="t" state="m"/>
<connection from=":C_6" to="CN" fromLane="0" toLane="1" dir="t" state="M"/>
<connection from=":C_3" to="CN" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from=":C_3" to="CN" fromLane="1" toLane="1" dir="s" state="M"/>
<connection from=":C_5" to="CS" fromLane="0" toLane="1" via=":C_7_0" dir="t" state="m"/>
<connection from=":C_7" to="CS" fromLane="0" toLane="1" dir="t" state="M"/>
<connection from=":N_0" to="NC" fromLane="0" toLane="1" dir="t" state="M"/>
<connection from=":S_0" to="SC" fromLane="0" toLane="1" dir="t" state="M"/>

</net>
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Thu Sep 13 10:07:11 2018 by Eclipse SUMO netconvert Version v1_0_0+0161-7e6aac7
This data file and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html
SPDX-License-Identifier: EPL-2.0
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/netconvertConfiguration.xsd">
<input>
<sumo-net-file value="input_net.net.xml"/>
</input>
<output>
<write-license value="true"/>
<output-file value="net.net.xml"/>
</output>
<processing>
<offset.disable-normalization value="true"/>
<opposites.guess value="true"/>
<lefthand value="false"/>
</processing>
<junctions>
<no-turnarounds value="true"/>
<junctions.corner-detail value="0"/>
<junctions.limit-turn-speed value="-1"/>
<rectangular-lane-cut value="false"/>
</junctions>
<pedestrian>
<walkingareas value="false"/>
</pedestrian>
<report>
<xml-validation value="never"/>
</report>
</configuration>
-->

<net version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/net_file.xsd">

<location netOffset="100.00,100.00" convBoundary="100.00,0.00,103.52,200.88" origBoundary="-10000000000.00,-10000000000.00,10000000000.00,10000000000.00" projParameter="!"/>

<edge id=":C_0" function="internal">
<lane id=":C_0_0" index="0" speed="13.89" length="0.35" shape="95.21,100.29 95.20,99.88"/>
<lane id=":C_0_1" index="1" speed="13.89" length="0.35" shape="98.41,100.18 98.40,99.88"/>
</edge>
<edge id=":C_2" function="internal">
<lane id=":C_2_0" index="0" speed="13.89" length="2.34" shape="98.41,100.18 99.16,98.95 99.95,98.52"/>
</edge>
<edge id=":C_6" function="internal">
<lane id=":C_6_0" index="0" speed="13.89" length="2.34" shape="99.95,98.52 100.76,98.89 101.60,100.06"/>
</edge>
<edge id=":C_3" function="internal">
<lane id=":C_3_0" index="0" speed="13.89" length="0.14" shape="104.80,99.88 104.80,99.95"/>
<lane id=":C_3_1" index="1" speed="13.89" length="0.14" shape="101.60,99.88 101.60,100.06"/>
</edge>
<edge id=":C_5" function="internal">
<lane id=":C_5_0" index="0" speed="13.89" length="2.34" shape="101.60,99.88 100.80,101.08 100.00,101.48"/>
</edge>
<edge id=":C_7" function="internal">
<lane id=":C_7_0" index="0" speed="13.89" length="2.34" shape="100.00,101.48 99.20,101.08 98.40,99.88"/>
</edge>
<edge id=":N_0" function="internal">
<lane id=":N_0_0" index="0" speed="13.89" length="4.67" shape="105.12,200.82 104.36,202.05 103.58,202.48 102.76,202.11 101.92,200.94"/>
</edge>
<edge id=":S_0" function="internal">
<lane id=":S_0_0" index="0" speed="13.89" length="4.67" shape="98.40,0.00 99.20,-1.20 100.00,-1.60 100.80,-1.20 101.60,0.00"/>
</edge>

<edge id="CN" from="C" to="N" priority="2">
<lane id="CN_0" index="0" speed="13.89" length="100.82" shape="104.80,99.95 108.32,200.71"/>
<lane id="CN_1" index="1" speed="13.89" length="100.82" shape="101.60,100.06 105.12,200.82">
<neigh lane="NC_1"/>
</lane>
</edge>
<edge id="CS" from="C" to="S" priority="2">
<lane id="CS_0" index="0" speed="13.89" length="99.88" shape="95.20,99.88 95.20,0.00"/>
<lane id="CS_1" index="1" speed="13.89" length="99.88" shape="98.40,99.88 98.40,0.00">
<neigh lane="SC_1"/>
</lane>
</edge>
<edge id="NC" from="N" to="C" priority="2">
<lane id="NC_0" index="0" speed="13.89" length="100.82" shape="98.72,201.05 95.21,100.29"/>
<lane id="NC_1" index="1" speed="13.89" length="100.82" shape="101.92,200.94 98.41,100.18">
<neigh lane="CN_1"/>
</lane>
</edge>
<edge id="SC" from="S" to="C" priority="2">
<lane id="SC_0" index="0" speed="13.89" length="99.88" shape="104.80,0.00 104.80,99.88"/>
<lane id="SC_1" index="1" speed="13.89" length="99.88" shape="101.60,0.00 101.60,99.88">
<neigh lane="CS_1"/>
</lane>
</edge>

<junction id="C" type="priority" x="100.00" y="100.00" incLanes="NC_0 NC_1 SC_0 SC_1" intLanes=":C_0_0 :C_0_1 :C_6_0 :C_3_0 :C_3_1 :C_7_0" shape="93.61,100.34 106.40,99.90 93.60,99.88">
<request index="0" response="000000" foes="100000" cont="0"/>
<request index="1" response="000000" foes="100000" cont="0"/>
<request index="2" response="011000" foes="011000" cont="1"/>
<request index="3" response="000000" foes="000100" cont="0"/>
<request index="4" response="000000" foes="000100" cont="0"/>
<request index="5" response="000011" foes="000011" cont="1"/>
</junction>
<junction id="N" type="priority" x="103.52" y="200.88" incLanes="CN_0 CN_1" intLanes=":N_0_0" shape="103.52,200.88 109.92,200.66 103.52,200.88">
<request index="0" response="0" foes="0" cont="0"/>
</junction>
<junction id="S" type="priority" x="100.00" y="0.00" incLanes="CS_0 CS_1" intLanes=":S_0_0" shape="100.00,0.00 93.60,0.00 100.00,0.00">
<request index="0" response="0" foes="0" cont="0"/>
</junction>

<junction id=":C_6_0" type="internal" x="99.95" y="98.52" incLanes=":C_2_0 SC_0 SC_1" intLanes=":C_3_0 :C_3_1"/>
<junction id=":C_7_0" type="internal" x="100.00" y="101.48" incLanes=":C_5_0 NC_0 NC_1" intLanes=":C_0_0 :C_0_1"/>

<connection from="CN" to="NC" fromLane="1" toLane="1" via=":N_0_0" dir="t" state="M"/>
<connection from="CS" to="SC" fromLane="1" toLane="1" via=":S_0_0" dir="t" state="M"/>
<connection from="NC" to="CS" fromLane="0" toLane="0" via=":C_0_0" dir="s" state="M"/>
<connection from="NC" to="CS" fromLane="1" toLane="1" via=":C_0_1" dir="s" state="M"/>
<connection from="NC" to="CN" fromLane="1" toLane="1" via=":C_2_0" dir="t" state="m"/>
<connection from="SC" to="CN" fromLane="0" toLane="0" via=":C_3_0" dir="s" state="M"/>
<connection from="SC" to="CN" fromLane="1" toLane="1" via=":C_3_1" dir="s" state="M"/>
<connection from="SC" to="CS" fromLane="1" toLane="1" via=":C_5_0" dir="t" state="m"/>

<connection from=":C_0" to="CS" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from=":C_0" to="CS" fromLane="1" toLane="1" dir="s" state="M"/>
<connection from=":C_2" to="CN" fromLane="0" toLane="1" via=":C_6_0" dir="t" state="m"/>
<connection from=":C_6" to="CN" fromLane="0" toLane="1" dir="t" state="M"/>
<connection from=":C_3" to="CN" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from=":C_3" to="CN" fromLane="1" toLane="1" dir="s" state="M"/>
<connection from=":C_5" to="CS" fromLane="0" toLane="1" via=":C_7_0" dir="t" state="m"/>
<connection from=":C_7" to="CS" fromLane="0" toLane="1" dir="t" state="M"/>
<connection from=":N_0" to="NC" fromLane="0" toLane="1" dir="t" state="M"/>
<connection from=":S_0" to="SC" fromLane="0" toLane="1" dir="t" state="M"/>

</net>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-s input_net.net.xml --opposites.guess --output net.net.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Success.
3 changes: 3 additions & 0 deletions tests/netconvert/function/opposites/testsuite.netconvert
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ internal_lanes
# guess opposites for internal lanes
internal_lanes2

# guess opposites for internal lanes with a slight curve
internal_lanes_curved

# guess opposites returns edges with different length
different_lengths

Expand Down

0 comments on commit cb5fec2

Please sign in to comment.