-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
53 changes: 53 additions & 0 deletions
53
tests/complex/traci/pythonApi/bugs/ticket5029/input_net.net.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- generated on Fri 11 Jan 2019 11:08:12 AM CET by Eclipse SUMO netedit Version v1_0_1+0645-93703db | ||
<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/bugs/ticket5029/input_net.net.xml"/> | ||
</input> | ||
<output> | ||
<output-file value="/scr1/sumo/tests/complex/traci/pythonApi/bugs/ticket5029/input_net.net.xml"/> | ||
</output> | ||
<processing> | ||
<geometry.max-grade.fix value="false"/> | ||
<offset.disable-normalization value="true"/> | ||
<opposites.guess value="true"/> | ||
<lefthand value="false"/> | ||
</processing> | ||
<junctions> | ||
<no-turnarounds value="true"/> | ||
<junctions.corner-detail value="5"/> | ||
<junctions.limit-turn-speed value="5.5"/> | ||
<rectangular-lane-cut value="false"/> | ||
</junctions> | ||
<pedestrian> | ||
<walkingareas value="false"/> | ||
</pedestrian> | ||
</configuration> | ||
--> | ||
|
||
<net version="1.1" junctionCornerDetail="5" limitTurnSpeed="5.50" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/net_file.xsd"> | ||
|
||
<location netOffset="0.00,0.00" convBoundary="0.00,0.00,200.00,0.00" origBoundary="-10000000000.00,-10000000000.00,10000000000.00,10000000000.00" projParameter="!"/> | ||
|
||
<edge id="-gneE0" from="gneJ1" to="gneJ0" priority="-1"> | ||
<lane id="-gneE0_0" index="0" speed="13.89" length="200.00" shape="200.00,1.60 0.00,1.60"> | ||
<neigh lane="gneE0_0"/> | ||
</lane> | ||
</edge> | ||
<edge id="gneE0" from="gneJ0" to="gneJ1" priority="-1"> | ||
<lane id="gneE0_0" index="0" speed="13.89" length="200.00" shape="0.00,-1.60 200.00,-1.60"> | ||
<neigh lane="-gneE0_0"/> | ||
</lane> | ||
</edge> | ||
|
||
<junction id="gneJ0" type="dead_end" x="0.00" y="0.00" incLanes="-gneE0_0" intLanes="" shape="0.00,0.00 0.00,3.20 0.00,0.00"/> | ||
<junction id="gneJ1" type="dead_end" x="200.00" y="0.00" incLanes="gneE0_0" intLanes="" shape="200.00,0.00 200.00,-3.20 200.00,0.00"/> | ||
|
||
</net> |
3 changes: 3 additions & 0 deletions
3
tests/complex/traci/pythonApi/bugs/ticket5029/input_routes.rou.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<routes> | ||
<route id="r0" edges="gneE0"/> | ||
</routes> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tests/complex/traci/pythonApi/bugs/ticket5029/runner.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Retrying in 1 seconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo | ||
# Copyright (C) 2008-2018 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 Mirko Barthauer (Technische Universitaet Braunschweig) | ||
# @date 2018-09-27 | ||
# @version $Id$ | ||
|
||
import os | ||
import sys | ||
|
||
SUMO_HOME = os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "..") | ||
sys.path.append(os.path.join(os.environ.get("SUMO_HOME", SUMO_HOME), "tools")) | ||
|
||
import traci # noqa | ||
import sumolib # noqa | ||
|
||
sumoBinary = sumolib.checkBinary('sumo') | ||
traci.start([sumoBinary, | ||
"-n", "input_net.net.xml", | ||
"-r", "input_routes.rou.xml", | ||
"--no-step-log", | ||
]) | ||
vehID = "v0" | ||
traci.vehicle.add(vehID, "r0") | ||
traci.vehicle.setLaneChangeMode(vehID, 0) | ||
for i in range(5): | ||
traci.simulationStep() | ||
traci.vehicle.changeLaneRelative(vehID, 1,0) | ||
traci.simulationStep() | ||
traci.simulationStep() | ||
pos = traci.vehicle.getPosition(vehID) | ||
traci.vehicle.moveToXY(vehID, "", 0, pos[0], pos[1]-3.2) | ||
for i in range(5): | ||
traci.simulationStep() | ||
|
||
traci.close() |