Skip to content

Commit

Permalink
added tests refs #21, #14435
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Feb 28, 2024
1 parent a485be3 commit 127a314
Show file tree
Hide file tree
Showing 31 changed files with 1,449 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Warning: Person 'p0' aborted waiting for dummy at edge 'gneE0'.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-02-28 16:11:11 by Eclipse SUMO netedit Version v1_19_0+1077-5e605c89a6b
-->

<additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd">
<!-- StoppingPlaces -->
<trainStop id="A" lane="gneE0_0" startPos="180.00" endPos="300.00">
<access lane="beg2left_0" pos="285.93"/>
</trainStop>
<trainStop id="B" lane="gneE0_0" startPos="1180.00" endPos="1300.00">
<access lane="left2end_0" pos="250.00"/>
<access lane="-left2end_0" pos="273.26"/>
</trainStop>
</additional>
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2022-09-05 15:32:03 by Eclipse SUMO sumo Version v1_14_1+0846-272d113
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
This file may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the Eclipse
Public License 2.0 are satisfied: GNU General Public License, version 2
or later which is available at
https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
<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"/>
<additional-files value="input_additional.add.xml"/>
</input>
<output>
<write-license value="true"/>
<tripinfo-output value="tripinfos.xml"/>
<vehroute-output value="vehroutes.xml"/>
<vehroute-output.skip-ptlines value="false"/>
</output>
<processing>
<default.speeddev value="0"/>
</processing>
<routing>
<persontrip.transfer.car-walk value="ptStops"/>
</routing>
<report>
<xml-validation value="never"/>
<no-step-log value="true"/>
</report>
</configuration>
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vType id="train" vClass="rail_urban"/>
<vehicle id="p0_0" depart="triggered" arrivalPos="450.00" arrivalSpeed="0.00" arrival="46.00">
<routeDistribution>
<route replacedOnEdge="" reason="person:p0" replacedAtTime="0.00" probability="0" edges="beg"/>
<route edges="beg beg2left"/>
</routeDistribution>
</vehicle>

<vehicle id="train.0" type="train" depart="0.00" line="train" arrival="128.00">
<route edges="gneE0"/>
<stop trainStop="A" until="60.00"/>
<stop trainStop="B" until="100.00"/>
</vehicle>

<person id="p0" depart="0.00" arrival="824.00">
<ride from="beg" to="beg2left" trainStop="A" lines="p0_0"/>
<ride from="gneE0" to="gneE0" trainStop="B" lines="train" intended="train.1" depart="310.00"/>
<ride to="end" lines="dummy"/>
</person>

</routes>
171 changes: 171 additions & 0 deletions tests/sumo/basic/person/riding/ride_access_ambiguous_ride/net.net.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-02-28 16:00:52 by Eclipse SUMO netedit Version v1_19_0+1077-5e605c89a6b
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/neteditConfiguration.xsd">
<input>
<sumo-net-file value="net.net.xml"/>
</input>
<output>
<output-file value="net.net.xml"/>
</output>
<processing>
<geometry.min-radius.fix.railways value="false"/>
<geometry.max-grade.fix value="false"/>
<offset.disable-normalization value="true"/>
<lefthand value="0"/>
</processing>
<junctions>
<no-internal-links value="false"/>
<no-turnarounds value="true"/>
<junctions.corner-detail value="0"/>
<junctions.limit-turn-speed value="-1.00"/>
<rectangular-lane-cut value="0"/>
</junctions>
<pedestrian>
<walkingareas value="1"/>
</pedestrian>
</configuration>
-->

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

<location netOffset="500.00,0.00" convBoundary="0.00,0.00,2500.00,500.00" origBoundary="-500.00,0.00,2000.00,500.00" projParameter="!"/>

<edge id=":absBeg_w0" function="walkingarea">
<lane id=":absBeg_w0_0" index="0" allow="pedestrian" speed="2.78" length="0.10" width="3.20" shape="0.00,0.00 0.00,-6.40"/>
</edge>
<edge id=":absEnd_0" function="internal">
<lane id=":absEnd_0_0" index="0" speed="27.80" length="0.10" shape="2000.00,-4.80 2000.00,-4.80"/>
<lane id=":absEnd_0_1" index="1" speed="27.80" length="0.10" shape="2000.00,-1.60 2000.00,-1.60"/>
</edge>
<edge id=":absEnd_w0" function="walkingarea">
<lane id=":absEnd_w0_0" index="0" allow="pedestrian" speed="2.78" length="0.10" width="3.20" shape="2000.00,0.00 2000.00,-6.40 2000.00,0.00"/>
</edge>
<edge id=":beg_0" function="internal">
<lane id=":beg_0_0" index="0" speed="20.85" length="11.77" shape="496.00,-4.80 499.50,-4.30 501.91,-3.20 504.16,-2.10 507.20,-1.60"/>
</edge>
<edge id=":beg_1" function="internal">
<lane id=":beg_1_0" index="0" speed="27.80" length="9.03" shape="496.00,-1.60 498.45,-1.25 500.20,-0.20 501.25,1.55 501.60,4.00"/>
</edge>
<edge id=":beg_w0" function="walkingarea">
<lane id=":beg_w0_0" index="0" allow="pedestrian" speed="2.78" length="10.00" width="3.20" shape="500.00,4.00 503.20,4.00 507.20,0.00 507.20,-3.20 496.00,-6.40 496.00,0.00"/>
</edge>
<edge id=":begleft_0" function="internal">
<lane id=":begleft_0_0" index="0" speed="27.80" length="2.58" shape="501.60,496.80 501.70,497.50 502.00,498.00 502.50,498.30 503.20,498.40"/>
</edge>
<edge id=":end_0" function="internal">
<lane id=":end_0_0" index="0" speed="27.80" length="10.16" shape="1498.40,1.50 1498.79,-1.26 1499.98,-3.22 1501.94,-4.41 1504.70,-4.80"/>
<lane id=":end_0_1" index="1" speed="27.80" length="7.76" shape="1498.40,1.50 1498.79,0.14 1499.98,-0.82 1501.94,-1.41 1504.70,-1.60"/>
</edge>
<edge id=":end_2" function="internal">
<lane id=":end_2_0" index="0" speed="27.80" length="4.67" shape="1498.40,1.50 1499.20,0.30 1500.00,-0.10 1500.80,0.30 1501.60,1.50"/>
</edge>
<edge id=":end_w0" function="walkingarea">
<lane id=":end_w0_0" index="0" allow="pedestrian" speed="2.78" length="6.74" width="3.20" shape="1496.80,1.50 1503.20,1.50 1504.70,0.00 1504.70,-6.40 1495.30,-3.20 1495.30,0.00"/>
</edge>
<edge id=":endleft_0" function="internal">
<lane id=":endleft_0_0" index="0" speed="27.80" length="4.67" shape="1501.60,492.80 1500.80,494.00 1500.00,494.40 1499.20,494.00 1498.40,492.80"/>
</edge>
<edge id=":endleft_w0" function="walkingarea">
<lane id=":endleft_w0_0" index="0" allow="pedestrian" speed="2.78" length="7.18" width="3.20" shape="1503.20,492.80 1496.80,492.80 1492.80,496.80 1492.80,500.00"/>
</edge>
<edge id=":rabsEnd_w0" function="walkingarea">
<lane id=":rabsEnd_w0_0" index="0" allow="pedestrian" speed="2.78" length="0.10" width="3.20" shape="2500.00,-6.40 2500.00,0.00"/>
</edge>

<edge id="-left2end" from="end" to="endleft" priority="-1">
<lane id="-left2end_0" index="0" speed="27.80" length="491.30" shape="1501.60,1.50 1501.60,492.80"/>
</edge>
<edge id="beg" from="absBeg" to="beg" priority="-1">
<lane id="beg_0" index="0" speed="27.80" length="496.00" shape="0.00,-4.80 496.00,-4.80"/>
<lane id="beg_1" index="1" speed="27.80" length="496.00" shape="0.00,-1.60 496.00,-1.60"/>
</edge>
<edge id="beg2left" from="beg" to="begleft" priority="-1">
<lane id="beg2left_0" index="0" speed="27.80" length="492.80" shape="501.60,4.00 501.60,496.80"/>
</edge>
<edge id="end" from="end" to="absEnd" priority="-1">
<lane id="end_0" index="0" speed="27.80" length="495.30" shape="1504.70,-4.80 2000.00,-4.80"/>
<lane id="end_1" index="1" speed="27.80" length="495.30" shape="1504.70,-1.60 2000.00,-1.60"/>
</edge>
<edge id="gneE0" from="gneJ0" to="gneJ1" priority="1">
<lane id="gneE0_0" index="0" allow="rail_urban" speed="13.89" length="1529.03" shape="253.79,275.43 1782.80,268.49"/>
</edge>
<edge id="left" from="begleft" to="endleft" priority="-1">
<lane id="left_0" index="0" speed="27.80" length="989.60" shape="503.20,498.40 1492.80,498.40"/>
</edge>
<edge id="left2end" from="endleft" to="end" priority="-1">
<lane id="left2end_0" index="0" speed="27.80" length="491.30" shape="1498.40,492.80 1498.40,1.50"/>
</edge>
<edge id="middle" from="beg" to="end" priority="-1">
<lane id="middle_0" index="0" speed="13.90" length="988.10" shape="507.20,-1.60 1495.30,-1.60"/>
</edge>
<edge id="rend" from="absEnd" to="rabsEnd" priority="-1">
<lane id="rend_0" index="0" speed="27.80" length="500.00" shape="2000.00,-4.80 2500.00,-4.80"/>
<lane id="rend_1" index="1" speed="27.80" length="500.00" shape="2000.00,-1.60 2500.00,-1.60"/>
</edge>

<junction id="absBeg" type="dead_end" x="0.00" y="0.00" incLanes="" intLanes="" shape="0.00,0.00 0.00,-6.40"/>
<junction id="absEnd" type="priority" x="2000.00" y="0.00" incLanes="end_0 end_1" intLanes=":absEnd_0_0 :absEnd_0_1" shape="2000.00,0.00 2000.00,-6.40 2000.00,0.00">
<request index="0" response="00" foes="00" cont="0"/>
<request index="1" response="00" foes="00" cont="0"/>
</junction>
<junction id="beg" type="priority" x="500.00" y="0.00" incLanes="beg_0 beg_1" intLanes=":beg_0_0 :beg_1_0" shape="500.00,4.00 503.20,4.00 507.20,0.00 507.20,-3.20 496.00,-6.40 496.00,0.00">
<request index="0" response="00" foes="00" cont="0"/>
<request index="1" response="00" foes="00" cont="0"/>
</junction>
<junction id="begleft" type="priority" x="500.00" y="500.00" incLanes="beg2left_0" intLanes=":begleft_0_0" shape="503.20,500.00 503.20,496.80 500.00,496.80">
<request index="0" response="0" foes="0" cont="0"/>
</junction>
<junction id="end" type="priority" x="1500.00" y="0.00" incLanes="left2end_0 middle_0" intLanes=":end_0_0 :end_0_1 :end_2_0" shape="1496.80,1.50 1503.20,1.50 1504.70,0.00 1504.70,-6.40 1495.30,-3.20 1495.30,0.00">
<request index="0" response="000" foes="000" cont="0"/>
<request index="1" response="000" foes="000" cont="0"/>
<request index="2" response="000" foes="000" cont="0"/>
</junction>
<junction id="endleft" type="priority" x="1500.00" y="500.00" incLanes="-left2end_0 left_0" intLanes=":endleft_0_0" shape="1503.20,492.80 1496.80,492.80 1492.80,496.80 1492.80,500.00">
<request index="0" response="0" foes="0" cont="0"/>
</junction>
<junction id="gneJ0" type="dead_end" x="253.80" y="277.03" incLanes="" intLanes="" shape="253.80,277.03 253.79,273.83"/>
<junction id="gneJ1" type="dead_end" x="1782.81" y="270.09" incLanes="gneE0_0" intLanes="" shape="1782.80,266.89 1782.81,270.09"/>
<junction id="rabsEnd" type="dead_end" x="2500.00" y="0.00" incLanes="rend_0 rend_1" intLanes="" shape="2500.00,-6.40 2500.00,0.00"/>

<connection from="-left2end" to="left2end" fromLane="0" toLane="0" via=":endleft_0_0" dir="t" state="M"/>
<connection from="beg" to="middle" fromLane="0" toLane="0" pass="1" via=":beg_0_0" dir="s" state="M"/>
<connection from="beg" to="beg2left" fromLane="1" toLane="0" pass="1" via=":beg_1_0" dir="l" state="M"/>
<connection from="beg2left" to="left" fromLane="0" toLane="0" via=":begleft_0_0" dir="r" state="M"/>
<connection from="end" to="rend" fromLane="0" toLane="0" via=":absEnd_0_0" dir="s" state="M"/>
<connection from="end" to="rend" fromLane="1" toLane="1" via=":absEnd_0_1" dir="s" state="M"/>
<connection from="left2end" to="end" fromLane="0" toLane="0" via=":end_0_0" dir="l" state="M"/>
<connection from="left2end" to="end" fromLane="0" toLane="1" via=":end_0_1" dir="l" state="M"/>
<connection from="left2end" to="-left2end" fromLane="0" toLane="0" via=":end_2_0" dir="t" state="M"/>

<connection from=":absEnd_0" to="rend" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from=":absEnd_0" to="rend" fromLane="1" toLane="1" dir="s" state="M"/>
<connection from=":beg_0" to="middle" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from=":beg_1" to="beg2left" fromLane="0" toLane="0" dir="l" state="M"/>
<connection from=":begleft_0" to="left" fromLane="0" toLane="0" dir="r" state="M"/>
<connection from=":end_0" to="end" fromLane="0" toLane="0" dir="l" state="M"/>
<connection from=":end_0" to="end" fromLane="1" toLane="1" dir="l" state="M"/>
<connection from=":end_2" to="-left2end" fromLane="0" toLane="0" dir="t" state="M"/>
<connection from=":endleft_0" to="left2end" fromLane="0" toLane="0" dir="t" state="M"/>

<connection from=":absBeg_w0" to="beg" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from=":absEnd_w0" to="rend" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from="end" to=":absEnd_w0" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from=":beg_w0" to="beg2left" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from=":beg_w0" to="middle" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from="beg" to=":beg_w0" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from=":end_w0" to="-left2end" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from=":end_w0" to="end" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from="left2end" to=":end_w0" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from="middle" to=":end_w0" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from=":endleft_w0" to="left2end" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from="-left2end" to=":endleft_w0" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from="left" to=":endleft_w0" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from="rend" to=":rabsEnd_w0" fromLane="0" toLane="0" dir="s" state="M"/>
</net>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--no-step-log --no-duration-log --net-file=net.net.xml -r=input_routes.rou.xml
-a input_additional.add.xml
--tripinfo-output=tripinfos.xml --vehroute-output vehroutes.xml
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-02-28 16:23:32 by Eclipse SUMO sumo Version v1_19_0+1078-a485be300c4
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
This file may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the Eclipse
Public License 2.0 are satisfied: GNU General Public License, version 2
or later which is available at
https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
<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"/>
<additional-files value="input_additional.add.xml"/>
</input>
<output>
<write-license value="true"/>
<tripinfo-output value="tripinfos.xml"/>
<vehroute-output value="vehroutes.xml"/>
</output>
<processing>
<default.speeddev value="0"/>
<pedestrian.model value="nonInteracting"/>
</processing>
<report>
<xml-validation value="never"/>
<duration-log.disable value="true"/>
<no-step-log value="true"/>
</report>
</configuration>
-->

<tripinfos xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/tripinfo_file.xsd">
<tripinfo id="p0_0" depart="0.00" departLane="beg_0" departPos="5.10" departSpeed="0.00" departDelay="0.00" arrival="45.00" arrivalLane="beg2left_0" arrivalPos="450.00" arrivalSpeed="0.09" duration="45.00" routeLength="949.93" waitingTime="1.00" waitingCount="1" stopTime="0.00" timeLoss="10.83" rerouteNo="0" devices="vehroute_p0_0 tripinfo_p0_0 person_p0_0" vType="DEFAULT_VEHTYPE" speedFactor="1.00" vaporized=""/>
<tripinfo id="train.0" depart="0.00" departLane="gneE0_0" departPos="109.60" departSpeed="0.00" departDelay="0.00" arrival="164.00" arrivalLane="gneE0_0" arrivalPos="1529.03" arrivalSpeed="13.89" duration="164.00" routeLength="1419.43" waitingTime="0.00" waitingCount="0" stopTime="38.00" timeLoss="23.75" rerouteNo="0" devices="vehroute_train.0 tripinfo_train.0 person_train.0" vType="train" speedFactor="1.00" vaporized=""/>
<personinfo id="p0" depart="0.00" type="DEFAULT_PEDTYPE" speedFactor="1.00">
<ride waitingTime="0.00" vehicle="p0_0" depart="0.00" arrival="45.00" arrivalPos="450.00" duration="45.00" routeLength="949.93" timeLoss="10.83"/>
<access stop="A" depart="45.00" arrival="57.00" duration="12.00" routeLength="17.44"/>
<ride waitingTime="3.00" vehicle="train.0" depart="60.00" arrival="141.00" arrivalPos="1300.00" duration="81.00" routeLength="1000.00" timeLoss="9.01"/>
<ride waitingTime="24.00" vehicle="NULL" depart="-1" arrival="-1" arrivalPos="-1" duration="-1" routeLength="-1" timeLoss="-1"/>
</personinfo>
</tripinfos>

0 comments on commit 127a314

Please sign in to comment.