Skip to content

Commit

Permalink
added tests refs #8873
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Aug 9, 2021
1 parent 63d469c commit d8bb6c9
Show file tree
Hide file tree
Showing 33 changed files with 700 additions and 0 deletions.
Empty file.
81 changes: 81 additions & 0 deletions tests/sumo/sublane_model/latAlignment/arbitrary/fcd.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2021-08-09 13:03:10 by Eclipse SUMO sumo Version v1_9_2+1006-63d469c
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/sumoConfiguration.xsd">
<input>
<net-file value="net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<write-license value="true"/>
<fcd-output value="fcd.xml"/>
</output>
<time>
<end value="6"/>
<step-length value="0.5"/>
</time>
<processing>
<lateral-resolution value="0.8"/>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<xml-validation.routes value="never"/>
<no-step-log value="true"/>
</report>
<gui_only>
<tracker-interval value="0.5"/>
</gui_only>
</configuration>
-->

<fcd-export xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/fcd_file.xsd">
<timestep time="0.00">
<vehicle id="ego" x="5.10" y="0.55" angle="90.00" type="t0" speed="0.00" pos="5.10" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="0.50">
<vehicle id="ego" x="5.75" y="0.55" angle="90.00" type="t0" speed="1.30" pos="5.75" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="1.00">
<vehicle id="ego" x="7.05" y="0.55" angle="90.00" type="t0" speed="2.60" pos="7.05" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="1.50">
<vehicle id="ego" x="9.00" y="0.55" angle="90.00" type="t0" speed="3.90" pos="9.00" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="2.00">
<vehicle id="ego" x="11.60" y="0.55" angle="90.00" type="t0" speed="5.20" pos="11.60" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="2.50">
<vehicle id="ego" x="14.85" y="0.55" angle="90.00" type="t0" speed="6.50" pos="14.85" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="3.00">
<vehicle id="ego" x="18.75" y="0.55" angle="90.00" type="t0" speed="7.80" pos="18.75" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="3.50">
<vehicle id="ego" x="23.30" y="0.55" angle="90.00" type="t0" speed="9.10" pos="23.30" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="4.00">
<vehicle id="ego" x="28.50" y="0.55" angle="90.00" type="t0" speed="10.40" pos="28.50" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="4.50">
<vehicle id="ego" x="34.35" y="0.55" angle="90.00" type="t0" speed="11.70" pos="34.35" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="5.00">
<vehicle id="ego" x="40.85" y="0.55" angle="90.00" type="t0" speed="13.00" pos="40.85" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="5.50">
<vehicle id="ego" x="47.80" y="0.55" angle="90.00" type="t0" speed="13.89" pos="47.80" lane="beg_1" slope="0.00"/>
</timestep>
</fcd-export>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<routes>
<vType id="t0" sigma="0" latAlignment="arbitrary"/>
<vehicle id="ego" type="t0" depart="0" departLane="1" departPosLat="random">
<route edges="beg"/>
</vehicle>
</routes>
Empty file.
Empty file.
81 changes: 81 additions & 0 deletions tests/sumo/sublane_model/latAlignment/center/fcd.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2021-08-09 13:01:52 by Eclipse SUMO sumo Version v1_9_2+1006-63d469c
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/sumoConfiguration.xsd">
<input>
<net-file value="net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<write-license value="true"/>
<fcd-output value="fcd.xml"/>
</output>
<time>
<end value="6"/>
<step-length value="0.5"/>
</time>
<processing>
<lateral-resolution value="0.8"/>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<xml-validation.routes value="never"/>
<no-step-log value="true"/>
</report>
<gui_only>
<tracker-interval value="0.5"/>
</gui_only>
</configuration>
-->

<fcd-export xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/fcd_file.xsd">
<timestep time="0.00">
<vehicle id="ego" x="5.10" y="0.00" angle="90.00" type="t0" speed="0.00" pos="5.10" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="0.50">
<vehicle id="ego" x="5.75" y="0.00" angle="90.00" type="t0" speed="1.30" pos="5.75" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="1.00">
<vehicle id="ego" x="7.05" y="0.00" angle="90.00" type="t0" speed="2.60" pos="7.05" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="1.50">
<vehicle id="ego" x="9.00" y="0.00" angle="90.00" type="t0" speed="3.90" pos="9.00" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="2.00">
<vehicle id="ego" x="11.60" y="0.00" angle="90.00" type="t0" speed="5.20" pos="11.60" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="2.50">
<vehicle id="ego" x="14.85" y="0.00" angle="90.00" type="t0" speed="6.50" pos="14.85" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="3.00">
<vehicle id="ego" x="18.75" y="0.00" angle="90.00" type="t0" speed="7.80" pos="18.75" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="3.50">
<vehicle id="ego" x="23.30" y="0.00" angle="90.00" type="t0" speed="9.10" pos="23.30" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="4.00">
<vehicle id="ego" x="28.50" y="0.00" angle="90.00" type="t0" speed="10.40" pos="28.50" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="4.50">
<vehicle id="ego" x="34.35" y="0.00" angle="90.00" type="t0" speed="11.70" pos="34.35" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="5.00">
<vehicle id="ego" x="40.85" y="0.00" angle="90.00" type="t0" speed="13.00" pos="40.85" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="5.50">
<vehicle id="ego" x="47.80" y="0.00" angle="90.00" type="t0" speed="13.89" pos="47.80" lane="beg_1" slope="0.00"/>
</timestep>
</fcd-export>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<routes>
<vType id="t0" sigma="0" latAlignment="center"/>
<vehicle id="ego" type="t0" depart="0" departLane="1">
<route edges="beg"/>
</vehicle>
</routes>
Empty file.
Empty file.
81 changes: 81 additions & 0 deletions tests/sumo/sublane_model/latAlignment/default/fcd.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2021-08-09 13:01:52 by Eclipse SUMO sumo Version v1_9_2+1006-63d469c
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/sumoConfiguration.xsd">
<input>
<net-file value="net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<write-license value="true"/>
<fcd-output value="fcd.xml"/>
</output>
<time>
<end value="6"/>
<step-length value="0.5"/>
</time>
<processing>
<lateral-resolution value="0.8"/>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<xml-validation.routes value="never"/>
<no-step-log value="true"/>
</report>
<gui_only>
<tracker-interval value="0.5"/>
</gui_only>
</configuration>
-->

<fcd-export xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/fcd_file.xsd">
<timestep time="0.00">
<vehicle id="ego" x="5.10" y="0.00" angle="90.00" type="t0" speed="0.00" pos="5.10" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="0.50">
<vehicle id="ego" x="5.75" y="0.00" angle="90.00" type="t0" speed="1.30" pos="5.75" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="1.00">
<vehicle id="ego" x="7.05" y="0.00" angle="90.00" type="t0" speed="2.60" pos="7.05" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="1.50">
<vehicle id="ego" x="9.00" y="0.00" angle="90.00" type="t0" speed="3.90" pos="9.00" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="2.00">
<vehicle id="ego" x="11.60" y="0.00" angle="90.00" type="t0" speed="5.20" pos="11.60" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="2.50">
<vehicle id="ego" x="14.85" y="0.00" angle="90.00" type="t0" speed="6.50" pos="14.85" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="3.00">
<vehicle id="ego" x="18.75" y="0.00" angle="90.00" type="t0" speed="7.80" pos="18.75" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="3.50">
<vehicle id="ego" x="23.30" y="0.00" angle="90.00" type="t0" speed="9.10" pos="23.30" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="4.00">
<vehicle id="ego" x="28.50" y="0.00" angle="90.00" type="t0" speed="10.40" pos="28.50" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="4.50">
<vehicle id="ego" x="34.35" y="0.00" angle="90.00" type="t0" speed="11.70" pos="34.35" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="5.00">
<vehicle id="ego" x="40.85" y="0.00" angle="90.00" type="t0" speed="13.00" pos="40.85" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="5.50">
<vehicle id="ego" x="47.80" y="0.00" angle="90.00" type="t0" speed="13.89" pos="47.80" lane="beg_1" slope="0.00"/>
</timestep>
</fcd-export>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<routes>
<vType id="t0" sigma="0"/>
<vehicle id="ego" type="t0" depart="0" departLane="1">
<route edges="beg"/>
</vehicle>
</routes>
Empty file.
Empty file.
103 changes: 103 additions & 0 deletions tests/sumo/sublane_model/latAlignment/given-2/fcd.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2021-08-09 13:07:00 by Eclipse SUMO sumo Version v1_9_2+1006-63d469c
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/sumoConfiguration.xsd">
<input>
<net-file value="net.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<write-license value="true"/>
<fcd-output value="fcd.xml"/>
</output>
<time>
<end value="10"/>
<step-length value="0.5"/>
</time>
<processing>
<lateral-resolution value="0.8"/>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<xml-validation.routes value="never"/>
<no-step-log value="true"/>
</report>
<gui_only>
<tracker-interval value="0.5"/>
</gui_only>
</configuration>
-->

<fcd-export xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/fcd_file.xsd">
<timestep time="0.00">
<vehicle id="ego" x="5.10" y="0.00" angle="90.00" type="t0" speed="0.00" pos="5.10" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="0.50">
<vehicle id="ego" x="5.75" y="-0.25" angle="94.54" type="t0" speed="1.30" pos="5.75" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="1.00">
<vehicle id="ego" x="7.05" y="-0.75" angle="97.50" type="t0" speed="2.60" pos="7.05" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="1.50">
<vehicle id="ego" x="9.00" y="-1.25" angle="96.41" type="t0" speed="3.90" pos="9.00" lane="beg_1" slope="0.00"/>
</timestep>
<timestep time="2.00">
<vehicle id="ego" x="11.60" y="-1.75" angle="95.60" type="t0" speed="5.20" pos="11.60" lane="beg_0" slope="0.00"/>
</timestep>
<timestep time="2.50">
<vehicle id="ego" x="14.85" y="-2.25" angle="94.97" type="t0" speed="6.50" pos="14.85" lane="beg_0" slope="0.00"/>
</timestep>
<timestep time="3.00">
<vehicle id="ego" x="18.75" y="-2.75" angle="94.47" type="t0" speed="7.80" pos="18.75" lane="beg_0" slope="0.00"/>
</timestep>
<timestep time="3.50">
<vehicle id="ego" x="23.30" y="-3.25" angle="94.06" type="t0" speed="9.10" pos="23.30" lane="beg_0" slope="0.00"/>
</timestep>
<timestep time="4.00">
<vehicle id="ego" x="28.50" y="-3.50" angle="91.86" type="t0" speed="10.40" pos="28.50" lane="beg_0" slope="0.00"/>
</timestep>
<timestep time="4.50">
<vehicle id="ego" x="34.35" y="-3.90" angle="92.74" type="t0" speed="11.70" pos="34.35" lane="beg_0" slope="0.00"/>
</timestep>
<timestep time="5.00">
<vehicle id="ego" x="40.85" y="-3.90" angle="90.00" type="t0" speed="13.00" pos="40.85" lane="beg_0" slope="0.00"/>
</timestep>
<timestep time="5.50">
<vehicle id="ego" x="47.80" y="-3.90" angle="90.00" type="t0" speed="13.89" pos="47.80" lane="beg_0" slope="0.00"/>
</timestep>
<timestep time="6.00">
<vehicle id="ego" x="54.74" y="-3.90" angle="90.00" type="t0" speed="13.89" pos="54.74" lane="beg_0" slope="0.00"/>
</timestep>
<timestep time="6.50">
<vehicle id="ego" x="61.69" y="-3.90" angle="90.00" type="t0" speed="13.89" pos="61.69" lane="beg_0" slope="0.00"/>
</timestep>
<timestep time="7.00">
<vehicle id="ego" x="68.63" y="-3.90" angle="90.00" type="t0" speed="13.89" pos="68.63" lane="beg_0" slope="0.00"/>
</timestep>
<timestep time="7.50">
<vehicle id="ego" x="75.57" y="-3.90" angle="90.00" type="t0" speed="13.89" pos="75.57" lane="beg_0" slope="0.00"/>
</timestep>
<timestep time="8.00">
<vehicle id="ego" x="82.52" y="-3.90" angle="90.00" type="t0" speed="13.89" pos="82.52" lane="beg_0" slope="0.00"/>
</timestep>
<timestep time="8.50">
<vehicle id="ego" x="89.46" y="-3.90" angle="90.00" type="t0" speed="13.89" pos="89.46" lane="beg_0" slope="0.00"/>
</timestep>
<timestep time="9.00">
<vehicle id="ego" x="96.41" y="-3.90" angle="90.00" type="t0" speed="13.89" pos="96.41" lane="beg_0" slope="0.00"/>
</timestep>
<timestep time="9.50"/>
</fcd-export>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<routes>
<vType id="t0" sigma="0" latAlignment="-2"/>
<vehicle id="ego" type="t0" depart="0" departLane="1">
<route edges="beg"/>
</vehicle>
</routes>
1 change: 1 addition & 0 deletions tests/sumo/sublane_model/latAlignment/given-2/options.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-e 10
Empty file.
Empty file.

0 comments on commit d8bb6c9

Please sign in to comment.