Skip to content

Commit

Permalink
added test refs #1102
Browse files Browse the repository at this point in the history
git-svn-id: file:///home/behr_mi/git/sumo_synched/trunk@26260 afbd958f-9f77-42d5-a016-97a22340ccf4
  • Loading branch information
namdre committed Sep 28, 2017
1 parent 7534ada commit 216f232
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sumo/tests/sumo/extended/collisions/mingap-factor/errors.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Warning: Missing yellow phase in tlLogic '0', program 'freaky' for tl-index 0 when switching to phase 1
Warning: Removing collision participants: vehicle 'always_right.7', vehicle 'horizontal.4', lane='2o_0', gap=-5.00, time=43.00 stage=move.
Warning: Removing collision participants: vehicle 'horizontal.5', vehicle 'always_right.8', lane='2o_0', gap=-4.02, time=45.00 stage=move.
Warning: Removing collision participants: vehicle 'horizontal.6', vehicle 'always_right.9', lane='2o_0', gap=-3.13, time=47.00 stage=move.
Warning: Removing collision participants: vehicle 'always_right.12', vehicle 'horizontal.10', lane='2o_0', gap=-5.00, time=60.00 stage=move.
Warning: Removing collision participants: vehicle 'always_right.22', vehicle 'horizontal.18', lane='2o_0', gap=-4.10, time=99.00 stage=move.
Warning: Removing collision participants: vehicle 'always_right.24', vehicle 'horizontal.20', lane='2o_0', gap=-3.63, time=105.00 stage=move.
Warning: Removing collision participants: vehicle 'horizontal.21', vehicle 'always_right.25', lane='2o_0', gap=-1.85, time=107.00 stage=move.
Warning: Removing collision participants: vehicle 'horizontal.22', vehicle 'always_right.26', lane='2o_0', gap=-2.73, time=109.00 stage=move.
Warning: Removing collision participants: vehicle 'horizontal.23', vehicle 'always_right.27', lane='2o_0', gap=-4.69, time=111.00 stage=move.
Warning: Removing collision participants: vehicle 'horizontal.26', vehicle 'always_right.29', lane='2o_0', gap=-3.41, time=116.00 stage=move.
Warning: Removing collision participants: vehicle 'always_right.30', vehicle 'horizontal.27', lane='2o_0', gap=-2.55, time=118.00 stage=move.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<additional>
<tlLogic id="0" type="static" programID="freaky" offset="0">
<phase duration="1000" state="GGGGGGGGGGGGGGGG"/>
<phase duration="1" state="rrrrrrrrrrrrrrrr"/>
</tlLogic>
</additional>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vType id="DEFAULT_VEHTYPE" sigma="0"/>
<route id="always_right" edges="3si 2o"/>
<route id="horizontal" edges="1si 2o"/>

<flow id="always_right" route="always_right" begin="0" end="100" probability="0.3"/>
<flow id="horizontal" route="horizontal" begin="0" end="100" probability="0.3"/>
</routes>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--no-step-log -v --net-file=net.net.xml --additional-files
input_additional.add.xml --route-files input_routes.rou.xml --end 500
--collision.action remove
--collision.mingap-factor 0
17 changes: 17 additions & 0 deletions sumo/tests/sumo/extended/collisions/mingap-factor/output.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Loading net-file from 'net.net.xml'... done (1ms).
Loading additional-files from 'input_additional.add.xml'...
done (0ms).
Loading done.
Simulation started with time: 0.00
Simulation ended at time: 500.00
Reason: The final simulation step has been reached.
Performance:
Duration: 7ms
Real time factor: 71428.6
UPS: 446857.142857
Vehicles:
Inserted: 61
Running: 0
Waiting: 0
Teleports: 0 (Collisions: 11)

3 changes: 3 additions & 0 deletions sumo/tests/sumo/extended/collisions/testsuite.sumo
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ none
# only warn about collisions
warn

# only warn about physical collisions
mingap-factor

# teleport the rear vehicle
teleport

Expand Down

0 comments on commit 216f232

Please sign in to comment.