Skip to content

Commit

Permalink
added failing test refs eclipse-sumo#6140
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Oct 11, 2019
1 parent 5102e6e commit e6dd46c
Show file tree
Hide file tree
Showing 7 changed files with 331 additions and 0 deletions.
Empty file.
242 changes: 242 additions & 0 deletions tests/complex/traci/pythonApi/moveToXY/intersection/input_net2.net.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,242 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Fri 11 Oct 2019 09:38:41 AM CEST by Eclipse SUMO netedit Version v1_3_1+0579-5102e6e
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/netconvertConfiguration.xsd">
<input>
<sumo-net-file value="/scr1/sumo/tests/complex/traci/pythonApi/moveToXY/intersection/input_net2.net.xml"/>
</input>
<output>
<output-file value="/scr1/sumo/tests/complex/traci/pythonApi/moveToXY/intersection/input_net2.net.xml"/>
</output>
<processing>
<geometry.max-grade.fix value="false"/>
<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.3" 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="0.00,0.00,200.00,200.00" 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="9.03" shape="95.20,110.40 94.85,107.95 93.80,106.20 92.05,105.15 89.60,104.80"/>
</edge>
<edge id=":C_1" function="internal">
<lane id=":C_1_0" index="0" speed="13.89" length="20.80" shape="95.20,110.40 95.20,89.60"/>
<lane id=":C_1_1" index="1" speed="13.89" length="20.80" shape="98.40,110.40 98.40,89.60"/>
</edge>
<edge id=":C_3" function="internal">
<lane id=":C_3_0" index="0" speed="13.89" length="6.96" shape="98.40,110.40 99.15,105.15 100.00,103.73"/>
</edge>
<edge id=":C_4" function="internal">
<lane id=":C_4_0" index="0" speed="13.89" length="2.34" shape="98.40,110.40 99.20,109.20 100.00,108.80"/>
</edge>
<edge id=":C_20" function="internal">
<lane id=":C_20_0" index="0" speed="13.89" length="12.40" shape="100.00,103.73 101.40,101.40 105.15,99.15 110.40,98.40"/>
</edge>
<edge id=":C_21" function="internal">
<lane id=":C_21_0" index="0" speed="13.89" length="2.34" shape="100.00,108.80 100.80,109.20 101.60,110.40"/>
</edge>
<edge id=":C_5" function="internal">
<lane id=":C_5_0" index="0" speed="13.89" length="9.03" shape="110.40,104.80 107.95,105.15 106.20,106.20 105.15,107.95 104.80,110.40"/>
</edge>
<edge id=":C_6" function="internal">
<lane id=":C_6_0" index="0" speed="13.89" length="20.80" shape="110.40,104.80 89.60,104.80"/>
<lane id=":C_6_1" index="1" speed="13.89" length="20.80" shape="110.40,101.60 89.60,101.60"/>
</edge>
<edge id=":C_8" function="internal">
<lane id=":C_8_0" index="0" speed="13.89" length="19.35" shape="110.40,101.60 105.15,100.85 101.40,98.60 99.15,94.85 98.40,89.60"/>
</edge>
<edge id=":C_9" function="internal">
<lane id=":C_9_0" index="0" speed="13.89" length="4.67" shape="110.40,101.60 109.20,100.80 108.80,100.00 109.20,99.20 110.40,98.40"/>
</edge>
<edge id=":C_10" function="internal">
<lane id=":C_10_0" index="0" speed="13.89" length="9.03" shape="104.80,89.60 105.15,92.05 106.20,93.80 107.95,94.85 110.40,95.20"/>
</edge>
<edge id=":C_11" function="internal">
<lane id=":C_11_0" index="0" speed="13.89" length="20.80" shape="104.80,89.60 104.80,110.40"/>
<lane id=":C_11_1" index="1" speed="13.89" length="20.80" shape="101.60,89.60 101.60,110.40"/>
</edge>
<edge id=":C_13" function="internal">
<lane id=":C_13_0" index="0" speed="13.89" length="6.96" shape="101.60,89.60 100.85,94.85 100.00,96.27"/>
</edge>
<edge id=":C_14" function="internal">
<lane id=":C_14_0" index="0" speed="13.89" length="2.34" shape="101.60,89.60 100.80,90.80 100.00,91.20"/>
</edge>
<edge id=":C_22" function="internal">
<lane id=":C_22_0" index="0" speed="13.89" length="12.40" shape="100.00,96.27 98.60,98.60 94.85,100.85 89.60,101.60"/>
</edge>
<edge id=":C_23" function="internal">
<lane id=":C_23_0" index="0" speed="13.89" length="2.34" shape="100.00,91.20 99.20,90.80 98.40,89.60"/>
</edge>
<edge id=":C_15" function="internal">
<lane id=":C_15_0" index="0" speed="13.89" length="9.03" shape="89.60,95.20 92.05,94.85 93.80,93.80 94.85,92.05 95.20,89.60"/>
</edge>
<edge id=":C_16" function="internal">
<lane id=":C_16_0" index="0" speed="13.89" length="20.80" shape="89.60,95.20 110.40,95.20"/>
<lane id=":C_16_1" index="1" speed="13.89" length="20.80" shape="89.60,98.40 110.40,98.40"/>
</edge>
<edge id=":C_18" function="internal">
<lane id=":C_18_0" index="0" speed="13.89" length="19.35" shape="89.60,98.40 94.85,99.15 98.60,101.40 100.85,105.15 101.60,110.40"/>
</edge>
<edge id=":C_19" function="internal">
<lane id=":C_19_0" index="0" speed="13.89" length="4.67" shape="89.60,98.40 90.80,99.20 91.20,100.00 90.80,100.80 89.60,101.60"/>
</edge>
<edge id=":E_0" function="internal">
<lane id=":E_0_0" index="0" speed="13.89" length="4.67" shape="200.00,98.40 201.20,99.20 201.60,100.00 201.20,100.80 200.00,101.60"/>
</edge>
<edge id=":N_0" function="internal">
<lane id=":N_0_0" index="0" speed="13.89" length="4.67" shape="101.60,200.00 100.80,201.20 100.00,201.60 99.20,201.20 98.40,200.00"/>
</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=":W_0" function="internal">
<lane id=":W_0_0" index="0" speed="13.89" length="4.67" shape="0.00,101.60 -1.20,100.80 -1.60,100.00 -1.20,99.20 0.00,98.40"/>
</edge>

<edge id="CE" from="C" to="E" priority="2">
<lane id="CE_0" index="0" speed="13.89" length="89.60" shape="110.40,95.20 200.00,95.20"/>
<lane id="CE_1" index="1" speed="13.89" length="89.60" shape="110.40,98.40 200.00,98.40"/>
</edge>
<edge id="CN" from="C" to="N" priority="2">
<lane id="CN_0" index="0" speed="13.89" length="89.60" shape="104.80,110.40 104.80,200.00"/>
<lane id="CN_1" index="1" speed="13.89" length="89.60" shape="101.60,110.40 101.60,200.00"/>
</edge>
<edge id="CS" from="C" to="S" priority="2">
<lane id="CS_0" index="0" speed="13.89" length="89.60" shape="95.20,89.60 95.20,0.00"/>
<lane id="CS_1" index="1" speed="13.89" length="89.60" shape="98.40,89.60 98.40,0.00"/>
</edge>
<edge id="CW" from="C" to="W" priority="2">
<lane id="CW_0" index="0" speed="13.89" length="89.60" shape="89.60,104.80 0.00,104.80"/>
<lane id="CW_1" index="1" speed="13.89" length="89.60" shape="89.60,101.60 0.00,101.60"/>
</edge>
<edge id="EC" from="E" to="C" priority="2">
<lane id="EC_0" index="0" speed="13.89" length="89.60" shape="200.00,104.80 110.40,104.80"/>
<lane id="EC_1" index="1" speed="13.89" length="89.60" shape="200.00,101.60 110.40,101.60"/>
</edge>
<edge id="NC" from="N" to="C" priority="2">
<lane id="NC_0" index="0" speed="13.89" length="89.60" shape="95.20,200.00 95.20,110.40"/>
<lane id="NC_1" index="1" speed="13.89" length="89.60" shape="98.40,200.00 98.40,110.40"/>
</edge>
<edge id="SC" from="S" to="C" priority="2">
<lane id="SC_0" index="0" speed="13.89" length="89.60" shape="104.80,0.00 104.80,89.60"/>
<lane id="SC_1" index="1" speed="13.89" length="89.60" shape="101.60,0.00 101.60,89.60"/>
</edge>
<edge id="WC" from="W" to="C" priority="2">
<lane id="WC_0" index="0" speed="13.89" length="89.60" shape="0.00,95.20 89.60,95.20"/>
<lane id="WC_1" index="1" speed="13.89" length="89.60" shape="0.00,98.40 89.60,98.40"/>
</edge>

<junction id="C" type="priority" x="100.00" y="100.00" incLanes="NC_0 NC_1 EC_0 EC_1 SC_0 SC_1 WC_0 WC_1" intLanes=":C_0_0 :C_1_0 :C_1_1 :C_20_0 :C_21_0 :C_5_0 :C_6_0 :C_6_1 :C_8_0 :C_9_0 :C_10_0 :C_11_0 :C_11_1 :C_22_0 :C_23_0 :C_15_0 :C_16_0 :C_16_1 :C_18_0 :C_19_0" shape="93.60,110.40 106.40,110.40 110.40,106.40 110.40,93.60 106.40,89.60 93.60,89.60 89.60,93.60 89.60,106.40">
<request index="0" response="00000000000000000000" foes="00000000000011000000" cont="0"/>
<request index="1" response="00000000000000000000" foes="01111110000111000000" cont="0"/>
<request index="2" response="00000000000000000000" foes="01111110000111000000" cont="0"/>
<request index="3" response="00000001100000000000" foes="01110001101111000000" cont="1"/>
<request index="4" response="01000001100000000000" foes="01000001100000000000" cont="1"/>
<request index="5" response="00000001100000000000" foes="00000001100000000000" cont="0"/>
<request index="6" response="00000011100000001111" foes="11000011100000001111" cont="0"/>
<request index="7" response="00000011100000001111" foes="11000011100000001111" cont="0"/>
<request index="8" response="00110011100000001110" foes="00110111100000001110" cont="0"/>
<request index="9" response="00110000000000001000" foes="00110000000000001000" cont="0"/>
<request index="10" response="00000000000000000000" foes="00110000000000000000" cont="0"/>
<request index="11" response="00000000000000000000" foes="01110000000111111000" cont="0"/>
<request index="12" response="00000000000000000000" foes="01110000000111111000" cont="0"/>
<request index="13" response="00000000000000000110" foes="11110000000111000110" cont="1"/>
<request index="14" response="00000000000100000110" foes="00000000000100000110" cont="1"/>
<request index="15" response="00000000000000000110" foes="00000000000000000110" cont="0"/>
<request index="16" response="00000011110000001110" foes="00000011111100001110" cont="0"/>
<request index="17" response="00000011110000001110" foes="00000011111100001110" cont="0"/>
<request index="18" response="00000011100011001110" foes="00000011100011011110" cont="0"/>
<request index="19" response="00000010000011000000" foes="00000010000011000000" cont="0"/>
</junction>
<junction id="E" type="priority" x="200.00" y="100.00" incLanes="CE_0 CE_1" intLanes=":E_0_0" shape="200.00,100.00 200.00,93.60 200.00,100.00">
<request index="0" response="0" foes="0" cont="0"/>
</junction>
<junction id="N" type="priority" x="100.00" y="200.00" incLanes="CN_0 CN_1" intLanes=":N_0_0" shape="100.00,200.00 106.40,200.00 100.00,200.00">
<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="W" type="priority" x="0.00" y="100.00" incLanes="CW_0 CW_1" intLanes=":W_0_0" shape="0.00,100.00 0.00,106.40 0.00,100.00">
<request index="0" response="0" foes="0" cont="0"/>
</junction>

<junction id=":C_20_0" type="internal" x="100.00" y="103.73" incLanes=":C_3_0 SC_0 SC_1" intLanes=":C_6_0 :C_6_1 :C_8_0 :C_9_0 :C_10_0 :C_11_0 :C_11_1 :C_16_0 :C_16_1 :C_18_0"/>
<junction id=":C_21_0" type="internal" x="100.00" y="108.80" incLanes=":C_4_0 EC_0 SC_0 SC_1 WC_1" intLanes=":C_5_0 :C_11_0 :C_11_1 :C_18_0"/>
<junction id=":C_22_0" type="internal" x="100.00" y="96.27" incLanes=":C_13_0 NC_0 NC_1" intLanes=":C_0_0 :C_1_0 :C_1_1 :C_6_0 :C_6_1 :C_8_0 :C_16_0 :C_16_1 :C_18_0 :C_19_0"/>
<junction id=":C_23_0" type="internal" x="100.00" y="91.20" incLanes=":C_14_0 EC_1 NC_0 NC_1 WC_0" intLanes=":C_1_0 :C_1_1 :C_8_0 :C_15_0"/>

<connection from="CE" to="EC" fromLane="1" toLane="1" via=":E_0_0" dir="t" state="M"/>
<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="CW" to="WC" fromLane="1" toLane="1" via=":W_0_0" dir="t" state="M"/>
<connection from="EC" to="CN" fromLane="0" toLane="0" via=":C_5_0" dir="r" state="m"/>
<connection from="EC" to="CW" fromLane="0" toLane="0" via=":C_6_0" dir="s" state="m"/>
<connection from="EC" to="CW" fromLane="1" toLane="1" via=":C_6_1" dir="s" state="m"/>
<connection from="EC" to="CS" fromLane="1" toLane="1" via=":C_8_0" dir="l" state="m"/>
<connection from="EC" to="CE" fromLane="1" toLane="1" via=":C_9_0" dir="t" state="m"/>
<connection from="NC" to="CW" fromLane="0" toLane="0" via=":C_0_0" dir="r" state="M"/>
<connection from="NC" to="CS" fromLane="0" toLane="0" via=":C_1_0" dir="s" state="M"/>
<connection from="NC" to="CS" fromLane="1" toLane="1" via=":C_1_1" dir="s" state="M"/>
<connection from="NC" to="CE" fromLane="1" toLane="1" via=":C_3_0" dir="l" state="m"/>
<connection from="NC" to="CN" fromLane="1" toLane="1" via=":C_4_0" dir="t" state="m"/>
<connection from="SC" to="CE" fromLane="0" toLane="0" via=":C_10_0" dir="r" state="M"/>
<connection from="SC" to="CN" fromLane="0" toLane="0" via=":C_11_0" dir="s" state="M"/>
<connection from="SC" to="CN" fromLane="1" toLane="1" via=":C_11_1" dir="s" state="M"/>
<connection from="SC" to="CW" fromLane="1" toLane="1" via=":C_13_0" dir="l" state="m"/>
<connection from="SC" to="CS" fromLane="1" toLane="1" via=":C_14_0" dir="t" state="m"/>
<connection from="WC" to="CS" fromLane="0" toLane="0" via=":C_15_0" dir="r" state="m"/>
<connection from="WC" to="CE" fromLane="0" toLane="0" via=":C_16_0" dir="s" state="m"/>
<connection from="WC" to="CE" fromLane="1" toLane="1" via=":C_16_1" dir="s" state="m"/>
<connection from="WC" to="CN" fromLane="1" toLane="1" via=":C_18_0" dir="l" state="m"/>
<connection from="WC" to="CW" fromLane="1" toLane="1" via=":C_19_0" dir="t" state="m"/>

<connection from=":C_0" to="CW" fromLane="0" toLane="0" dir="r" state="M"/>
<connection from=":C_1" to="CS" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from=":C_1" to="CS" fromLane="1" toLane="1" dir="s" state="M"/>
<connection from=":C_3" to="CE" fromLane="0" toLane="1" via=":C_20_0" dir="l" state="m"/>
<connection from=":C_20" to="CE" fromLane="0" toLane="1" dir="l" state="M"/>
<connection from=":C_4" to="CN" fromLane="0" toLane="1" via=":C_21_0" dir="t" state="m"/>
<connection from=":C_21" to="CN" fromLane="0" toLane="1" dir="t" state="M"/>
<connection from=":C_5" to="CN" fromLane="0" toLane="0" dir="r" state="M"/>
<connection from=":C_6" to="CW" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from=":C_6" to="CW" fromLane="1" toLane="1" dir="s" state="M"/>
<connection from=":C_8" to="CS" fromLane="0" toLane="1" dir="l" state="M"/>
<connection from=":C_9" to="CE" fromLane="0" toLane="1" dir="t" state="M"/>
<connection from=":C_10" to="CE" fromLane="0" toLane="0" dir="r" state="M"/>
<connection from=":C_11" to="CN" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from=":C_11" to="CN" fromLane="1" toLane="1" dir="s" state="M"/>
<connection from=":C_13" to="CW" fromLane="0" toLane="1" via=":C_22_0" dir="l" state="m"/>
<connection from=":C_22" to="CW" fromLane="0" toLane="1" dir="l" state="M"/>
<connection from=":C_14" to="CS" fromLane="0" toLane="1" via=":C_23_0" dir="t" state="m"/>
<connection from=":C_23" to="CS" fromLane="0" toLane="1" dir="t" state="M"/>
<connection from=":C_15" to="CS" fromLane="0" toLane="0" dir="r" state="M"/>
<connection from=":C_16" to="CE" fromLane="0" toLane="0" dir="s" state="M"/>
<connection from=":C_16" to="CE" fromLane="1" toLane="1" dir="s" state="M"/>
<connection from=":C_18" to="CN" fromLane="0" toLane="1" dir="l" state="M"/>
<connection from=":C_19" to="CW" fromLane="0" toLane="1" dir="t" state="M"/>
<connection from=":E_0" to="EC" 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"/>
<connection from=":W_0" to="WC" fromLane="0" toLane="1" dir="t" state="M"/>

</net>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<routes>
<trip id="ego" depart="0" from="SC" to="CN"/>
<flow id="WE" begin="0" period="2" end="10" from="WC" to="CE" departSpeed="max" arrivalPos="10"/>
<flow id="EW" begin="1" period="2" end="10" from="EC" to="CW" departSpeed="max" arrivalPos="10"/>
</routes>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tests/complex/traci/pythonApi/moveToXY/intersection/runner.py
25 changes: 25 additions & 0 deletions tests/complex/traci/pythonApi/moveToXY/intersection/output.complex
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
***Starting server on port 34153 ***
Loading net-file from 'input_net2.net.xml'... done (2ms).
Loading done.
Simulation version v1_3_1+0579-5102e6e started with time: 0.00
Simulation ended at time: 26.00
Reason: TraCI requested termination.
Performance:
Duration: 6ms
Real time factor: 4333.33
UPS: 34500.000000
Vehicles:
Inserted: 11
Running: 6
Waiting: 0
Statistics (avg):
RouteLength: 453.81
Duration: 18.82
WaitingTime: 2.91
TimeLoss: 9.98
DepartDelay: 0.00
DepartDelayWaiting: 0.00

DijkstraRouter answered 11 queries and explored 4.82 edges on average.
DijkstraRouter spent 0ms answering queries (0.00ms on average).
Retrying in 1 seconds
55 changes: 55 additions & 0 deletions tests/complex/traci/pythonApi/moveToXY/intersection/runner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
# Copyright (C) 2008-2019 German Aerospace Center (DLR) and others.
# This program 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

# @file runner.py
# @author Jakob Erdmann
# @date 2017-01-23
# @version $Id$


from __future__ import print_function
from __future__ import absolute_import
import os
import sys

if 'SUMO_HOME' in os.environ:
tools = os.path.join(os.environ['SUMO_HOME'], 'tools')
sys.path.append(tools)
else:
sys.exit("please declare environment variable 'SUMO_HOME'")

import traci # noqa
import sumolib # noqa

sumoBinary = os.environ["SUMO_BINARY"]
cmd = [sumoBinary,
'-n', 'input_net2.net.xml',
'-r', 'input_routes.rou.xml',
'--no-step-log',
'--duration-log.statistics',
'--tripinfo-output.write-unfinished',
'--collision.check-junctions',
'--collision.action', 'warn',
# '-S', '-Q',
]

ANGLE_UNDEF = traci.constants.INVALID_DOUBLE_VALUE
INVALID = traci.constants.INVALID_DOUBLE_VALUE

vehID = "ego"

traci.start(cmd)
traci.simulationStep()
x, y = traci.vehicle.getPosition(vehID)
for i in range(25):
traci.vehicle.moveToXY(vehID, "", 0, x, y)
traci.simulationStep()
y += 5
traci.close()
3 changes: 3 additions & 0 deletions tests/complex/traci/pythonApi/moveToXY/testsuite.complex
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ extreme_elevation_keeproute2
# tests for mapping vehicles with/without regard to permissions
permissions

# moved vehicle should block intersections on approach and while on the intersection
intersection

# moveToXY for persons
person

0 comments on commit e6dd46c

Please sign in to comment.