Skip to content

Commit

Permalink
patching expected results. refs #21, #15518
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Sep 23, 2024
1 parent e86d0b4 commit 9660ba5
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 74 deletions.
16 changes: 8 additions & 8 deletions tests/complex/traci/person/person/fcd.complex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-07-16 19:36:15 by Eclipse SUMO sumo Version v1_20_0+1258-9d1aeffff86
<!-- generated on 2024-09-23 13:05:48 by Eclipse SUMO sumo Version v1_20_0+2106-1e7bd075956
<sumoConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">
<input>
Expand All @@ -24,7 +24,7 @@
</report>
<traci_server>
<remote-port value="44267"/>
<remote-port value="46441"/>
</traci_server>
<gui_only>
Expand All @@ -46,41 +46,41 @@
<person id="horiz" x="760.36" y="504.95" angle="270.00" speed="1.14" pos="239.64" edge="2fi" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="detour2" x="511.55" y="467.80" angle="0.00" speed="1.25" pos="216.30" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="detour" x="511.55" y="472.93" angle="0.00" speed="1.38" pos="221.43" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="newPerson" x="511.55" y="477.74" angle="0.00" speed="1.19" pos="226.24" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="newPerson" x="511.55" y="477.86" angle="0.00" speed="1.31" pos="226.36" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
</timestep>
<timestep time="2.00">
<person id="horiz" x="759.13" y="504.95" angle="270.00" speed="1.23" pos="240.87" edge="2fi" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="detour2" x="511.55" y="469.12" angle="0.00" speed="1.32" pos="217.62" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="detour" x="511.55" y="474.11" angle="0.00" speed="1.18" pos="222.61" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="newPerson" x="511.55" y="479.12" angle="0.00" speed="1.38" pos="227.62" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="newPerson" x="511.55" y="479.37" angle="0.00" speed="1.51" pos="227.87" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
</timestep>
<timestep time="3.00">
<person id="tripTest" x="760.34" y="504.95" angle="270.00" speed="1.16" pos="239.66" edge="2fi" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="horiz" x="757.89" y="504.95" angle="270.00" speed="1.25" pos="242.11" edge="2fi" slope="0.00" type="pType3@horiz"/>
<person id="detour2" x="511.55" y="470.38" angle="0.00" speed="1.26" pos="218.88" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="detour" x="511.55" y="475.31" angle="0.00" speed="1.20" pos="223.81" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="newPerson" x="511.55" y="480.50" angle="0.00" speed="1.39" pos="229.00" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="newPerson" x="511.55" y="480.90" angle="0.00" speed="1.53" pos="229.40" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
</timestep>
<timestep time="4.00">
<person id="tripTest" x="759.11" y="504.95" angle="270.00" speed="1.23" pos="240.89" edge="2fi" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="horiz" x="756.61" y="504.95" angle="270.00" speed="1.27" pos="243.39" edge="2fi" slope="0.00" type="pType3@horiz"/>
<person id="detour2" x="511.55" y="471.53" angle="0.00" speed="1.15" pos="220.03" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="detour" x="511.55" y="476.68" angle="0.00" speed="1.37" pos="225.18" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="newPerson" x="511.55" y="481.82" angle="0.00" speed="1.32" pos="230.32" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="newPerson" x="511.55" y="482.35" angle="0.00" speed="1.45" pos="230.85" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
</timestep>
<timestep time="5.00">
<person id="tripTest" x="757.91" y="504.95" angle="270.00" speed="1.20" pos="242.09" edge="2fi" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="horiz" x="755.30" y="504.95" angle="270.00" speed="1.31" pos="244.70" edge="2fi" slope="0.00" type="pType3@horiz"/>
<person id="detour2" x="511.55" y="472.83" angle="0.00" speed="1.30" pos="221.33" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="detour" x="511.55" y="477.93" angle="0.00" speed="1.25" pos="226.43" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="newPerson" x="511.55" y="483.20" angle="0.00" speed="1.38" pos="231.70" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="newPerson" x="511.55" y="483.86" angle="0.00" speed="1.51" pos="232.36" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
</timestep>
<timestep time="6.00">
<person id="tripTest" x="756.79" y="504.95" angle="270.00" speed="1.13" pos="243.21" edge="2fi" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="horiz" x="753.84" y="504.95" angle="270.00" speed="1.47" pos="246.16" edge="2fi" slope="0.00" type="pType3@horiz"/>
<person id="detour2" x="511.55" y="474.11" angle="0.00" speed="1.28" pos="222.61" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="detour" x="511.55" y="479.07" angle="0.00" speed="1.14" pos="227.57" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="newPerson" x="511.55" y="484.36" angle="0.00" speed="1.16" pos="232.86" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
<person id="newPerson" x="511.55" y="485.14" angle="0.00" speed="1.28" pos="233.64" edge="3si" slope="0.00" type="DEFAULT_PEDTYPE"/>
</timestep>
<timestep time="7.00">
<vehicle id="veh0" x="508.25" y="481.50" angle="0.00" type="DEFAULT_VEHTYPE" speed="0.00" pos="230.00" lane="3si_1" slope="0.00"/>
Expand Down
2 changes: 1 addition & 1 deletion tests/complex/traci/person/person/output.complex
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ remaining stages for 'newPerson' remaining plan before jump
prio stages for 'newPerson' past plan
-4: Stage(type=0, edges=('3si',), travelTime=0.0, cost=INVALID, length=0.0, depart=0.0, departPos=INVALID, arrivalPos=225.05, description=waiting (awaiting departure))
-3: Stage(type=2, edges=('3si', '2si'), travelTime=7.0, cost=INVALID, length=54.527739398485096, depart=0.0, departPos=225.05, arrivalPos=215.05, description=walking)
-2: Stage(type=1, edges=('3si',), travelTime=0.0, cost=INVALID, length=0.0, depart=7.0, departPos=INVALID, arrivalPos=232.8563442186168, description=waiting (last stage removed))
-2: Stage(type=1, edges=('3si',), travelTime=0.0, cost=INVALID, length=0.0, depart=7.0, departPos=INVALID, arrivalPos=233.63697864047845, description=waiting (last stage removed))
-1: Stage(type=3, vType=DEFAULT_VEHTYPE, line=B42, edges=('3si', ':0_10'), travelTime=10.0, cost=INVALID, length=14.117827939065641, depart=7.0, departPos=INVALID, arrivalPos=9.06782793906563, description=driving)
remaining stages for 'newPerson' remaining plan after jump
0: Stage(type=1, edges=(':0_10',), travelTime=0.0, cost=INVALID, length=0.0, depart=17.0, departPos=INVALID, arrivalPos=9.06782793906563, description=waiting (last stage removed))
Expand Down
2 changes: 1 addition & 1 deletion tests/complex/traci/person/person/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def checkStateChanges():
traci.person.appendWaitingStage("newPerson", 10, "twiddling thumbs")
traci.person.appendWalkingStage("newPerson", ["2si", "2o"], 20)
traci.person.appendWaitingStage("newPerson", 20, "arrived")
traci.person.setSpeedFactor("newPerson", 1.3)
traci.person.setSpeedFactor("newPerson", 1.1)

for i in range(3):
checkStateChanges()
Expand Down
95 changes: 31 additions & 64 deletions tests/complex/traci/person/setSpeedFactor/fcd.complex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-09-23 12:54:41 by Eclipse SUMO sumo Version v1_20_0+2105-989d49d99c8
<!-- generated on 2024-09-23 13:00:04 by Eclipse SUMO sumo Version v1_20_0+2106-1e7bd075956
<sumoConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">
<input>
Expand All @@ -21,7 +21,7 @@
</report>
<traci_server>
<remote-port value="38497"/>
<remote-port value="39005"/>
</traci_server>
</sumoConfiguration>
Expand Down Expand Up @@ -59,121 +59,88 @@
<person id="p1" speed="1.47"/>
</timestep>
<timestep time="10.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="0.69"/>
</timestep>
<timestep time="11.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="0.69"/>
</timestep>
<timestep time="12.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="0.69"/>
</timestep>
<timestep time="13.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="0.69"/>
</timestep>
<timestep time="14.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="0.69"/>
</timestep>
<timestep time="15.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="0.69"/>
</timestep>
<timestep time="16.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="0.69"/>
</timestep>
<timestep time="17.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="0.69"/>
</timestep>
<timestep time="18.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="0.69"/>
</timestep>
<timestep time="19.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="0.69"/>
</timestep>
<timestep time="20.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="2.78"/>
</timestep>
<timestep time="21.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="2.78"/>
</timestep>
<timestep time="22.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="2.78"/>
</timestep>
<timestep time="23.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="2.78"/>
</timestep>
<timestep time="24.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="2.78"/>
</timestep>
<timestep time="25.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="2.78"/>
</timestep>
<timestep time="26.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="2.78"/>
</timestep>
<timestep time="27.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="2.78"/>
</timestep>
<timestep time="28.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="2.78"/>
</timestep>
<timestep time="29.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="2.78"/>
</timestep>
<timestep time="30.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="2.78"/>
</timestep>
<timestep time="31.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="2.78"/>
</timestep>
<timestep time="32.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="2.78"/>
</timestep>
<timestep time="33.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="2.78"/>
</timestep>
<timestep time="34.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="2.78"/>
</timestep>
<timestep time="35.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="2.78"/>
</timestep>
<timestep time="36.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="2.78"/>
</timestep>
<timestep time="37.00">
<person id="p1" speed="1.47"/>
</timestep>
<timestep time="38.00">
<person id="p1" speed="1.47"/>
</timestep>
<timestep time="39.00">
<person id="p1" speed="1.47"/>
</timestep>
<timestep time="40.00">
<person id="p1" speed="1.47"/>
</timestep>
<timestep time="41.00">
<person id="p1" speed="1.47"/>
</timestep>
<timestep time="42.00">
<person id="p1" speed="1.47"/>
</timestep>
<timestep time="43.00">
<person id="p1" speed="1.47"/>
</timestep>
<timestep time="44.00">
<person id="p1" speed="1.47"/>
</timestep>
<timestep time="45.00">
<person id="p1" speed="1.47"/>
</timestep>
<timestep time="46.00">
<person id="p1" speed="1.47"/>
</timestep>
<timestep time="47.00">
<person id="p1" speed="1.47"/>
</timestep>
<timestep time="48.00">
<person id="p1" speed="1.47"/>
<person id="p1" speed="2.78"/>
</timestep>
<timestep time="49.00"/>
<timestep time="38.00"/>
</fcd-export>

0 comments on commit 9660ba5

Please sign in to comment.