fix
This commit is contained in:
parent
3ef6580156
commit
c0890287fd
11
Car.py
11
Car.py
@ -163,10 +163,10 @@ class Car():
|
||||
#painter.drawEllipse(pt,100,100)
|
||||
|
||||
def conduite(self,vmax,leader,dt):
|
||||
if self.id == "f_00" and self.controller.t%10>5:
|
||||
|
||||
self.v = 0
|
||||
return
|
||||
#if self.id == "f_00" and self.controller.t%10>5:
|
||||
#
|
||||
# self.v = 0
|
||||
# return
|
||||
|
||||
if(leader is None):
|
||||
self.v = self.vmax
|
||||
@ -226,6 +226,7 @@ class Car():
|
||||
self.index+=1
|
||||
if(self.index>=len(self.route)-1):
|
||||
self.index=0
|
||||
self.controller.destroyCar(self)
|
||||
|
||||
self.initPath()
|
||||
self.pos=list(self.laneShape[self.laneInd])
|
||||
@ -235,7 +236,7 @@ class Car():
|
||||
self.pos[1]+=(endPos[1]-self.pos[1])*adv
|
||||
lgt=0
|
||||
|
||||
if randint(0,100) == 0:
|
||||
if self.controller.vroomEnable and randint(0,100) == 0:
|
||||
self.vroom = 60
|
||||
|
||||
if self.infoWidg is None:
|
||||
|
@ -102,6 +102,8 @@ class CarController:
|
||||
self.t=0
|
||||
self.infoWidget=mainWindow.findChild(QToolBox, "carInfos")
|
||||
|
||||
self.vroomEnable=True
|
||||
|
||||
varWidget = mainWindow.ui.constEdit
|
||||
varWidget.addWidget(varEdit(varWidget, self, "gamma", 5))
|
||||
varWidget.addWidget(varEdit(varWidget, self, "delta", 0.5))
|
||||
@ -159,6 +161,9 @@ class CarController:
|
||||
painter.setPen(Qt.white)
|
||||
car.draw(painter)
|
||||
|
||||
def destroyCar(self, car):
|
||||
self.cars.remove(car)
|
||||
|
||||
def updateConstant(self, name, val):
|
||||
for car in self.cars:
|
||||
car.__dict__[name] = val
|
||||
|
3
main.py
3
main.py
@ -61,7 +61,8 @@ class MainWindow(QMainWindow):
|
||||
def keyPressEvent(self, e):
|
||||
if e.key() == Qt.Key_Escape or e.key() == Qt.Key_Q:
|
||||
self.close()
|
||||
|
||||
elif e.key() == Qt.Key_V:
|
||||
self.mainLoop.controller.vroomEnable = not self.mainLoop.controller.vroomEnable
|
||||
elif e.key() == Qt.Key_S:
|
||||
self.mainLoop.quickLoad()
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
import sys
|
||||
|
||||
from Map import Map
|
||||
from CarController import CarController
|
||||
|
||||
|
190
test6.net.xml
Normal file
190
test6.net.xml
Normal file
@ -0,0 +1,190 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- generated on 2022-03-11 15:26:53 by Eclipse SUMO netedit Version 1.12.0
|
||||
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/netconvertConfiguration.xsd">
|
||||
|
||||
<input>
|
||||
<sumo-net-file value="/home/leo/Sketchbook/python/Traffic/test6.net.xml"/>
|
||||
</input>
|
||||
|
||||
<output>
|
||||
<output-file value="/home/leo/Sketchbook/python/Traffic/test6.net.xml"/>
|
||||
</output>
|
||||
|
||||
<processing>
|
||||
<geometry.min-radius.fix.railways value="false"/>
|
||||
<geometry.max-grade.fix value="false"/>
|
||||
<offset.disable-normalization 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>
|
||||
|
||||
<report>
|
||||
<aggregate-warnings value="5"/>
|
||||
</report>
|
||||
|
||||
</configuration>
|
||||
-->
|
||||
|
||||
<net version="1.9" 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="-45.13,-106.57,392.65,193.91" origBoundary="-10000000000.00,-10000000000.00,10000000000.00,10000000000.00" projParameter="!"/>
|
||||
|
||||
<edge id=":J1_0" function="internal">
|
||||
<lane id=":J1_0_0" index="0" speed="7.05" length="5.92" shape="53.92,52.29 52.92,51.04 51.77,50.14 50.47,49.59 49.04,49.39"/>
|
||||
</edge>
|
||||
<edge id=":J1_1" function="internal">
|
||||
<lane id=":J1_1_0" index="0" speed="7.70" length="7.74" shape="53.92,52.29 52.81,49.99 52.50,47.72 52.99,45.48 54.28,43.27"/>
|
||||
<lane id=":J1_1_1" index="1" speed="6.09" length="7.74" shape="56.62,50.57 55.96,49.20 55.78,47.85 56.07,46.52 56.84,45.20"/>
|
||||
</edge>
|
||||
<edge id=":J1_3" function="internal">
|
||||
<lane id=":J1_3_0" index="0" speed="7.45" length="6.19" shape="49.08,46.19 50.50,46.02 51.84,45.48 53.10,44.56 54.28,43.27"/>
|
||||
</edge>
|
||||
<edge id=":J4_0" function="internal">
|
||||
<lane id=":J4_0_0" index="0" speed="6.57" length="8.94" shape="163.61,-34.16 163.88,-31.75 164.85,-29.98 166.54,-28.83 168.94,-28.31"/>
|
||||
</edge>
|
||||
<edge id=":J4_1" function="internal">
|
||||
<lane id=":J4_1_0" index="0" speed="7.45" length="9.43" shape="155.24,-27.24 157.43,-28.18 159.03,-29.66 160.02,-31.69 160.42,-34.27"/>
|
||||
</edge>
|
||||
<edge id=":J4_2" function="internal">
|
||||
<lane id=":J4_2_0" index="0" speed="13.89" length="13.39" shape="155.24,-27.24 159.21,-28.22 162.01,-28.63 164.84,-28.61 168.94,-28.31"/>
|
||||
<lane id=":J4_2_1" index="1" speed="13.89" length="13.39" shape="156.01,-24.13 159.72,-25.05 162.32,-25.42 164.96,-25.39 168.78,-25.11"/>
|
||||
</edge>
|
||||
<edge id=":J6_0" function="internal">
|
||||
<lane id=":J6_0_0" index="0" speed="7.18" length="5.92" shape="291.67,46.48 290.27,46.60 288.96,47.07 287.74,47.91 286.62,49.12"/>
|
||||
</edge>
|
||||
<edge id=":J6_1" function="internal">
|
||||
<lane id=":J6_1_0" index="0" speed="7.28" length="5.98" shape="286.96,40.17 288.01,41.48 289.16,42.44 290.43,43.04 291.81,43.28"/>
|
||||
</edge>
|
||||
<edge id=":J6_2" function="internal">
|
||||
<lane id=":J6_2_0" index="0" speed="7.62" length="7.64" shape="286.96,40.17 288.08,42.45 288.40,44.70 287.91,46.92 286.62,49.12"/>
|
||||
<lane id=":J6_2_1" index="1" speed="5.99" length="7.64" shape="284.28,41.92 284.94,43.26 285.12,44.58 284.84,45.88 284.08,47.17"/>
|
||||
</edge>
|
||||
<edge id=":J8_0" function="internal">
|
||||
<lane id=":J8_0_0" index="0" speed="6.60" length="7.80" shape="158.00,125.79 156.02,126.45 154.58,127.57 153.70,129.15 153.37,131.20"/>
|
||||
</edge>
|
||||
<edge id=":J8_1" function="internal">
|
||||
<lane id=":J8_1_0" index="0" speed="13.89" length="11.57" shape="158.00,125.79 154.43,126.43 151.91,126.59 149.42,126.22 145.94,125.23"/>
|
||||
<lane id=":J8_1_1" index="1" speed="13.89" length="11.57" shape="157.45,122.63 154.30,123.20 152.08,123.35 149.88,123.02 146.80,122.15"/>
|
||||
</edge>
|
||||
<edge id=":J8_3" function="internal">
|
||||
<lane id=":J8_3_0" index="0" speed="6.79" length="7.87" shape="150.17,131.12 149.95,129.04 149.17,127.37 147.83,126.10 145.94,125.23"/>
|
||||
</edge>
|
||||
|
||||
<edge id="-E0" from="J1" to="J0" priority="-1">
|
||||
<lane id="-E0_0" index="0" speed="13.89" length="94.19" shape="49.04,49.39 -45.15,48.20"/>
|
||||
</edge>
|
||||
<edge id="-E1" from="J4" to="J3" priority="-1">
|
||||
<lane id="-E1_0" index="0" speed="13.89" length="72.40" shape="160.42,-34.27 162.84,-106.62"/>
|
||||
</edge>
|
||||
<edge id="-E2" from="J6" to="J5" priority="-1">
|
||||
<lane id="-E2_0" index="0" speed="13.89" length="101.01" shape="291.81,43.28 392.72,47.78"/>
|
||||
</edge>
|
||||
<edge id="-E3" from="J9" to="J8" priority="-1">
|
||||
<lane id="-E3_0" index="0" speed="13.89" length="62.77" shape="148.66,193.87 150.17,131.12"/>
|
||||
</edge>
|
||||
<edge id="E0" from="J0" to="J1" priority="-1">
|
||||
<lane id="E0_0" index="0" speed="13.89" length="94.19" shape="-45.11,45.00 49.08,46.19"/>
|
||||
</edge>
|
||||
<edge id="E1" from="J3" to="J4" priority="-1">
|
||||
<lane id="E1_0" index="0" speed="13.89" length="72.40" shape="166.04,-106.52 163.61,-34.16"/>
|
||||
</edge>
|
||||
<edge id="E2" from="J5" to="J6" priority="-1">
|
||||
<lane id="E2_0" index="0" speed="13.89" length="101.01" shape="392.58,50.98 291.67,46.48"/>
|
||||
</edge>
|
||||
<edge id="E3" from="J8" to="J9" priority="-1">
|
||||
<lane id="E3_0" index="0" speed="13.89" length="62.77" shape="153.37,131.20 151.86,193.95"/>
|
||||
</edge>
|
||||
<edge id="E6" from="J1" to="J4" priority="-1" shape="56.81,47.89 58.10,46.18 59.40,44.49 60.70,42.81 62.01,41.16 63.34,39.52 64.67,37.91 66.01,36.31 67.36,34.73 68.72,33.17 70.09,31.63 71.47,30.11 72.86,28.61 74.26,27.13 75.67,25.67 77.08,24.22 78.51,22.80 79.94,21.40 81.39,20.01 82.84,18.64 84.31,17.30 85.78,15.97 87.26,14.66 88.75,13.37 90.25,12.10 91.76,10.85 93.28,9.61 94.81,8.40 96.34,7.21 97.89,6.03 99.45,4.88 101.01,3.74 102.59,2.62 104.17,1.53 105.77,0.45 107.37,-0.61 108.98,-1.65 110.60,-2.67 112.23,-3.67 113.87,-4.66 115.52,-5.62 117.18,-6.56 118.85,-7.49 120.52,-8.40 122.21,-9.28 123.91,-10.15 125.61,-11.00 127.33,-11.83 129.05,-12.64 130.78,-13.43 132.53,-14.20 134.28,-14.95 136.04,-15.68 137.81,-16.40 139.59,-17.09 141.38,-17.77 143.18,-18.42 144.98,-19.06 146.80,-19.68 148.63,-20.28 150.46,-20.86 152.31,-21.42 154.16,-21.96 156.03,-22.48 157.90,-22.98 159.78,-23.46 161.67,-23.93">
|
||||
<lane id="E6_0" index="0" speed="13.89" length="124.39" shape="54.28,43.27 55.60,41.56 56.92,39.85 58.27,38.16 59.63,36.48 60.98,34.84 62.35,33.21 63.73,31.59 65.12,30.00 66.52,28.42 67.93,26.87 69.36,25.33 70.79,23.81 72.22,22.33 73.67,20.84 75.14,19.38 76.60,17.95 78.08,16.53 79.57,15.12 81.08,13.75 82.58,12.39 84.10,11.05 85.63,9.72 87.17,8.42 88.71,7.14 90.27,5.87 91.85,4.62 93.41,3.41 95.01,2.19 96.61,1.01 98.21,-0.16 99.84,-1.31 101.46,-2.43 103.10,-3.54 104.74,-4.63 106.40,-5.70 108.07,-6.75 109.73,-7.77 111.42,-8.79 113.13,-9.78 114.83,-10.75 116.53,-11.69 118.26,-12.64 120.01,-13.55 121.74,-14.43 123.49,-15.31 125.26,-16.16 127.03,-16.99 128.82,-17.81 130.62,-18.60 132.42,-19.37 134.22,-20.12 136.04,-20.86 137.87,-21.57 139.71,-22.27 141.56,-22.94 143.40,-23.59 145.28,-24.23 147.16,-24.85 149.04,-25.45 150.94,-26.02 152.84,-26.58 154.77,-27.11 155.24,-27.24"/>
|
||||
<lane id="E6_1" index="1" speed="13.89" length="124.39" shape="56.84,45.20 58.13,43.51 59.44,41.82 60.76,40.16 62.10,38.51 63.44,36.89 64.79,35.28 66.15,33.68 67.52,32.11 68.90,30.56 70.29,29.03 71.69,27.52 73.10,26.02 74.52,24.56 75.94,23.09 77.39,21.66 78.83,20.25 80.29,18.85 81.75,17.47 83.23,16.12 84.71,14.78 86.21,13.46 87.71,12.15 89.22,10.87 90.74,9.61 92.28,8.36 93.82,7.14 95.36,5.94 96.93,4.75 98.50,3.59 100.08,2.44 101.67,1.31 103.27,0.21 104.88,-0.88 106.49,-1.95 108.12,-3.00 109.76,-4.03 111.40,-5.04 113.05,-6.04 114.72,-7.01 116.40,-7.96 118.08,-8.89 119.77,-9.81 121.48,-10.70 123.19,-11.58 124.90,-12.44 126.64,-13.27 128.38,-14.09 130.13,-14.89 131.89,-15.67 133.66,-16.42 135.43,-17.16 137.22,-17.89 139.02,-18.58 140.82,-19.27 142.64,-19.93 144.45,-20.57 146.29,-21.20 148.14,-21.80 149.99,-22.39 151.85,-22.95 153.72,-23.50 155.61,-24.02 156.01,-24.13"/>
|
||||
</edge>
|
||||
<edge id="E7" from="J4" to="J6" priority="-1" shape="161.67,-23.93 163.73,-23.83 165.77,-23.72 167.81,-23.58 169.82,-23.43 171.83,-23.25 173.82,-23.06 175.81,-22.84 177.77,-22.60 179.73,-22.35 181.67,-22.07 183.60,-21.77 185.52,-21.45 187.43,-21.12 189.32,-20.76 191.20,-20.38 193.07,-19.98 194.92,-19.56 196.76,-19.12 198.59,-18.66 200.41,-18.18 202.21,-17.68 204.00,-17.15 205.78,-16.61 207.55,-16.05 209.30,-15.47 211.04,-14.86 212.77,-14.24 214.48,-13.60 216.19,-12.93 217.88,-12.25 219.55,-11.54 221.22,-10.82 222.87,-10.07 224.51,-9.31 226.13,-8.52 227.75,-7.71 229.35,-6.89 230.94,-6.04 232.51,-5.17 234.07,-4.29 235.63,-3.38 237.16,-2.45 238.69,-1.50 240.20,-0.53 241.70,0.46 243.19,1.47 244.66,2.50 246.12,3.55 247.57,4.62 249.01,5.71 250.43,6.82 251.84,7.96 253.24,9.11 254.63,10.28 256.00,11.48 257.36,12.69 258.71,13.92 260.04,15.18 261.36,16.45 262.67,17.75 263.97,19.06 265.25,20.40 266.52,21.75 267.78,23.13 269.03,24.53 270.26,25.94 271.48,27.38 272.69,28.84 273.89,30.32 275.07,31.82 276.24,33.33 277.40,34.87 278.54,36.43 279.67,38.01 280.79,39.61 281.90,41.23 282.99,42.87 284.08,44.54">
|
||||
<lane id="E7_0" index="0" speed="13.89" length="140.22" shape="168.94,-28.31 170.21,-28.21 172.27,-28.03 174.31,-27.83 176.37,-27.61 178.37,-27.36 180.38,-27.11 182.38,-26.82 184.36,-26.51 186.32,-26.18 188.29,-25.84 190.24,-25.47 192.18,-25.08 194.10,-24.67 196.01,-24.23 197.90,-23.78 199.79,-23.31 201.66,-22.81 203.53,-22.29 205.38,-21.75 207.20,-21.19 209.03,-20.62 210.85,-20.01 212.64,-19.38 214.42,-18.75 216.20,-18.08 217.96,-17.39 219.71,-16.69 221.44,-15.95 223.16,-15.21 224.87,-14.43 226.57,-13.64 228.26,-12.82 229.92,-11.99 231.58,-11.14 233.23,-10.26 234.85,-9.36 236.46,-8.45 238.09,-7.50 239.67,-6.54 241.25,-5.56 242.82,-4.55 244.37,-3.53 245.91,-2.48 247.44,-1.41 248.95,-0.33 250.44,0.78 251.94,1.91 253.42,3.06 254.87,4.24 256.31,5.42 257.76,6.64 259.18,7.88 260.57,9.12 261.98,10.40 263.35,11.71 264.71,13.02 266.06,14.36 267.41,15.71 268.73,17.10 270.04,18.49 271.34,19.91 272.63,21.35 273.90,22.81 275.16,24.30 276.40,25.80 277.64,27.32 278.85,28.87 280.05,30.42 281.25,32.01 282.43,33.62 283.59,35.24 284.74,36.88 285.88,38.54 286.96,40.17"/>
|
||||
<lane id="E7_1" index="1" speed="13.89" length="140.22" shape="168.78,-25.11 169.95,-25.02 171.98,-24.84 173.98,-24.65 176.00,-24.43 177.97,-24.19 179.95,-23.94 181.91,-23.65 183.85,-23.35 185.79,-23.03 187.72,-22.69 189.63,-22.33 191.53,-21.95 193.41,-21.54 195.28,-21.12 197.14,-20.67 198.99,-20.21 200.83,-19.72 202.65,-19.22 204.46,-18.68 206.25,-18.14 208.04,-17.57 209.82,-16.98 211.57,-16.37 213.32,-15.74 215.05,-15.09 216.78,-14.42 218.49,-13.73 220.18,-13.01 221.87,-12.28 223.54,-11.52 225.20,-10.75 226.84,-9.95 228.47,-9.14 230.09,-8.31 231.70,-7.45 233.29,-6.57 234.87,-5.68 236.45,-4.75 238.00,-3.81 239.54,-2.85 241.07,-1.87 242.59,-0.87 244.10,0.15 245.59,1.20 247.06,2.26 248.53,3.34 249.99,4.44 251.43,5.57 252.85,6.72 254.26,7.88 255.67,9.07 257.06,10.28 258.43,11.50 259.80,12.75 261.14,14.02 262.48,15.31 263.80,16.62 265.12,17.94 266.41,19.30 267.69,20.66 268.97,22.06 270.23,23.47 271.47,24.90 272.71,26.35 273.93,27.83 275.14,29.32 276.33,30.84 277.51,32.36 278.68,33.92 279.84,35.49 280.98,37.09 282.11,38.70 283.23,40.33 284.28,41.92"/>
|
||||
</edge>
|
||||
<edge id="E8" from="J6" to="J8" priority="-1" shape="284.08,44.54 282.89,46.09 281.69,47.63 280.48,49.15 279.25,50.66 278.02,52.15 276.78,53.63 275.52,55.10 274.25,56.55 272.98,57.98 271.69,59.40 270.39,60.80 269.08,62.19 267.76,63.57 266.42,64.93 265.08,66.27 263.73,67.60 262.36,68.92 260.98,70.22 259.59,71.50 258.20,72.77 256.79,74.03 255.37,75.27 253.93,76.49 252.49,77.70 251.04,78.90 249.57,80.08 248.09,81.24 246.61,82.39 245.11,83.53 243.60,84.65 242.08,85.75 240.55,86.84 239.01,87.92 237.45,88.98 235.89,90.03 234.31,91.06 232.73,92.07 231.13,93.07 229.52,94.06 227.90,95.03 226.27,95.99 224.63,96.93 222.98,97.85 221.31,98.77 219.64,99.66 217.95,100.54 216.25,101.41 214.55,102.26 212.83,103.10 211.10,103.92 209.36,104.73 207.60,105.52 205.84,106.30 204.07,107.06 202.28,107.81 200.48,108.54 198.68,109.26 196.86,109.96 195.03,110.65 193.19,111.32 191.34,111.98 189.48,112.62 187.60,113.25 185.72,113.86 183.82,114.46 181.91,115.04 180.00,115.61 178.07,116.16 176.13,116.70 174.18,117.22 172.22,117.73 170.24,118.22 168.26,118.70 166.26,119.16 164.26,119.61 162.24,120.05 160.21,120.46 158.17,120.87 156.12,121.26 154.06,121.63 151.99,121.99">
|
||||
<lane id="E8_0" index="0" speed="13.89" length="152.05" shape="286.62,49.12 285.46,50.60 284.22,52.16 282.96,53.70 281.71,55.22 280.44,56.73 279.15,58.24 277.85,59.72 276.55,61.19 275.23,62.65 273.90,64.08 272.56,65.50 271.20,66.91 269.83,68.31 268.46,69.68 267.08,71.04 265.67,72.40 264.25,73.73 262.83,75.04 261.42,76.33 259.97,77.63 258.50,78.91 257.03,80.16 255.56,81.39 254.07,82.62 252.55,83.84 251.04,85.02 249.53,86.20 247.99,87.37 246.44,88.52 244.88,89.65 243.32,90.76 241.74,91.87 240.14,92.96 238.54,94.03 236.91,95.09 235.29,96.13 233.66,97.15 232.01,98.16 230.35,99.16 228.68,100.14 226.99,101.11 225.31,102.05 223.60,102.99 221.88,103.91 220.15,104.81 218.42,105.69 216.68,106.56 214.91,107.43 213.14,108.26 211.36,109.10 209.56,109.90 207.76,110.70 205.94,111.48 204.11,112.25 202.27,112.99 200.43,113.73 198.57,114.45 196.70,115.15 194.82,115.84 192.93,116.51 191.02,117.17 189.10,117.81 187.18,118.43 185.24,119.05 183.29,119.64 181.34,120.22 179.37,120.78 177.39,121.33 175.40,121.86 173.40,122.38 171.38,122.88 169.36,123.37 167.32,123.84 165.30,124.30 163.23,124.75 161.16,125.17 159.09,125.58 158.00,125.79"/>
|
||||
<lane id="E8_1" index="1" speed="13.89" length="152.05" shape="284.08,47.17 282.95,48.62 281.73,50.15 280.49,51.67 279.25,53.17 278.00,54.66 276.73,56.15 275.45,57.61 274.17,59.05 272.87,60.48 271.56,61.89 270.24,63.29 268.91,64.68 267.56,66.06 266.21,67.41 264.85,68.75 263.46,70.08 262.07,71.39 260.67,72.68 259.27,73.96 257.85,75.23 256.41,76.48 254.96,77.71 253.51,78.93 252.05,80.14 250.56,81.33 249.07,82.50 247.58,83.66 246.07,84.81 244.55,85.94 243.01,87.05 241.47,88.15 239.92,89.24 238.35,90.31 236.77,91.36 235.18,92.40 233.58,93.42 231.97,94.43 230.35,95.43 228.72,96.41 227.07,97.37 225.42,98.32 223.76,99.25 222.07,100.18 220.39,101.08 218.68,101.96 216.97,102.84 215.26,103.69 213.52,104.54 211.78,105.37 210.03,106.19 208.25,106.98 206.48,107.77 204.69,108.53 202.89,109.29 201.08,110.02 199.26,110.75 197.43,111.46 195.59,112.15 193.73,112.83 191.87,113.49 189.99,114.14 188.10,114.77 186.21,115.38 184.29,115.99 182.37,116.57 180.45,117.15 178.50,117.70 176.55,118.24 174.59,118.77 172.61,119.28 170.62,119.77 168.63,120.26 166.61,120.72 164.61,121.17 162.57,121.62 160.53,122.03 158.48,122.44 157.45,122.63"/>
|
||||
</edge>
|
||||
<edge id="E9" from="J8" to="J1" priority="-1" shape="151.99,121.99 150.14,121.47 148.29,120.93 146.46,120.37 144.64,119.79 142.83,119.18 141.03,118.56 139.24,117.91 137.46,117.25 135.70,116.56 133.94,115.85 132.20,115.12 130.47,114.37 128.75,113.59 127.04,112.80 125.34,111.98 123.65,111.15 121.97,110.29 120.31,109.41 118.65,108.51 117.01,107.59 115.37,106.65 113.75,105.68 112.14,104.70 110.54,103.69 108.96,102.66 107.38,101.61 105.81,100.54 104.26,99.45 102.71,98.34 101.18,97.21 99.66,96.05 98.15,94.87 96.65,93.68 95.16,92.46 93.68,91.22 92.22,89.96 90.76,88.68 89.32,87.37 87.88,86.05 86.46,84.70 85.05,83.34 83.65,81.95 82.26,80.54 80.88,79.11 79.52,77.65 78.16,76.18 76.82,74.69 75.48,73.17 74.16,71.64 72.85,70.08 71.55,68.50 70.26,66.90 68.98,65.28 67.72,63.63 66.46,61.97 65.22,60.28 63.98,58.58 62.76,56.85 61.55,55.10 60.35,53.33 59.16,51.54 57.98,49.73 56.81,47.89">
|
||||
<lane id="E9_0" index="0" speed="13.89" length="118.81" shape="145.94,125.23 145.03,124.95 143.14,124.35 141.28,123.72 139.43,123.09 137.59,122.42 135.75,121.73 133.93,121.02 132.11,120.29 130.32,119.54 128.52,118.76 126.75,117.95 124.99,117.14 123.24,116.30 121.50,115.44 119.75,114.55 118.04,113.64 116.33,112.71 114.64,111.77 112.94,110.79 111.27,109.79 109.61,108.78 107.95,107.73 106.32,106.67 104.70,105.59 103.08,104.49 101.48,103.36 99.89,102.22 98.30,101.05 96.73,99.85 95.18,98.64 93.64,97.42 92.10,96.16 90.57,94.88 89.07,93.58 87.56,92.26 86.08,90.91 84.60,89.56 83.14,88.17 81.69,86.77 80.25,85.34 78.82,83.89 77.40,82.41 76.00,80.92 74.61,79.41 73.24,77.88 71.86,76.32 70.50,74.75 69.16,73.15 67.83,71.53 66.51,69.89 65.19,68.22 63.90,66.54 62.61,64.84 61.35,63.11 60.08,61.38 58.82,59.60 57.59,57.81 56.36,56.01 55.15,54.18 53.92,52.29"/>
|
||||
<lane id="E9_1" index="1" speed="13.89" length="118.81" shape="146.80,122.15 145.98,121.90 144.14,121.31 142.31,120.69 140.50,120.07 138.69,119.41 136.89,118.74 135.11,118.05 133.33,117.33 131.57,116.59 129.82,115.83 128.08,115.04 126.36,114.25 124.64,113.42 122.93,112.58 121.23,111.71 119.55,110.82 117.88,109.91 116.22,108.98 114.56,108.03 112.92,107.05 111.30,106.06 109.68,105.04 108.08,104.00 106.49,102.94 104.90,101.86 103.33,100.75 101.77,99.63 100.22,98.49 98.68,97.32 97.16,96.13 95.65,94.93 94.14,93.69 92.64,92.44 91.17,91.17 89.69,89.87 88.24,88.55 86.79,87.22 85.35,85.86 83.93,84.48 82.52,83.08 81.11,81.66 79.72,80.21 78.35,78.74 76.98,77.26 75.63,75.75 74.27,74.22 72.94,72.68 71.62,71.10 70.31,69.51 69.01,67.90 67.72,66.26 66.45,64.60 65.18,62.93 63.93,61.22 62.68,59.51 61.45,57.77 60.23,56.00 59.02,54.22 57.82,52.42 56.62,50.57"/>
|
||||
</edge>
|
||||
|
||||
<junction id="J0" type="dead_end" x="-45.13" y="46.60" incLanes="-E0_0" intLanes="" shape="-45.13,46.60 -45.17,49.80 -45.13,46.60"/>
|
||||
<junction id="J1" type="priority" x="56.81" y="47.89" incLanes="E9_0 E9_1 E0_0" intLanes=":J1_0_0 :J1_1_0 :J1_1_1 :J1_3_0" shape="52.57,53.15 57.97,49.72 57.46,48.52 57.41,47.92 57.50,47.34 57.73,46.75 58.11,46.16 53.00,42.31 51.78,43.59 51.14,44.03 50.48,44.35 49.80,44.54 49.10,44.59 49.02,50.99 50.38,51.25 50.99,51.56 51.57,51.98 52.11,52.53">
|
||||
<request index="0" response="0000" foes="0000" cont="0"/>
|
||||
<request index="1" response="0000" foes="1000" cont="0"/>
|
||||
<request index="2" response="0000" foes="0000" cont="0"/>
|
||||
<request index="3" response="0010" foes="0010" cont="0"/>
|
||||
</junction>
|
||||
<junction id="J3" type="dead_end" x="164.44" y="-106.57" incLanes="-E1_0" intLanes="" shape="164.44,-106.57 161.24,-106.68 164.44,-106.57"/>
|
||||
<junction id="J4" type="priority" x="161.67" y="-23.93" incLanes="E1_0 E6_0 E6_1" intLanes=":J4_0_0 :J4_1_0 :J4_2_0 :J4_2_1" shape="168.70,-23.51 169.01,-29.91 166.84,-30.50 166.10,-31.10 165.58,-31.90 165.28,-32.90 165.21,-34.10 158.82,-34.32 158.31,-31.70 157.75,-30.68 156.99,-29.86 156.02,-29.23 154.85,-28.79 156.39,-22.58 158.95,-23.23 160.87,-23.63 162.48,-23.82 164.10,-23.83 166.07,-23.71">
|
||||
<request index="0" response="0100" foes="0100" cont="0"/>
|
||||
<request index="1" response="0000" foes="0000" cont="0"/>
|
||||
<request index="2" response="0000" foes="0001" cont="0"/>
|
||||
<request index="3" response="0000" foes="0000" cont="0"/>
|
||||
</junction>
|
||||
<junction id="J5" type="dead_end" x="392.65" y="49.38" incLanes="-E2_0" intLanes="" shape="392.65,49.38 392.79,46.18 392.65,49.38"/>
|
||||
<junction id="J6" type="priority" x="284.08" y="44.54" incLanes="E2_0 E7_0 E7_1" intLanes=":J6_0_0 :J6_1_0 :J6_2_0 :J6_2_1" shape="291.60,48.08 291.88,41.68 290.57,41.38 289.97,41.06 289.39,40.61 288.85,40.04 288.30,39.30 282.94,42.80 283.46,43.98 283.50,44.53 283.40,45.09 283.17,45.64 282.81,46.19 287.89,50.09 289.03,48.93 289.63,48.54 290.26,48.26 290.92,48.11">
|
||||
<request index="0" response="0100" foes="0100" cont="0"/>
|
||||
<request index="1" response="0000" foes="0000" cont="0"/>
|
||||
<request index="2" response="0000" foes="0001" cont="0"/>
|
||||
<request index="3" response="0000" foes="0000" cont="0"/>
|
||||
</junction>
|
||||
<junction id="J8" type="priority" x="151.99" y="121.99" incLanes="E8_0 E8_1 -E3_0" intLanes=":J8_0_0 :J8_1_0 :J8_1_1 :J8_3_0" shape="158.28,127.36 157.18,121.06 155.08,121.45 153.49,121.68 152.16,121.73 150.84,121.58 149.29,121.21 147.24,120.61 145.50,126.77 147.24,127.68 147.84,128.33 148.27,129.11 148.51,130.03 148.57,131.08 154.97,131.24 155.37,129.36 155.83,128.64 156.47,128.07 157.29,127.64">
|
||||
<request index="0" response="0000" foes="0000" cont="0"/>
|
||||
<request index="1" response="0000" foes="1000" cont="0"/>
|
||||
<request index="2" response="0000" foes="0000" cont="0"/>
|
||||
<request index="3" response="0010" foes="0010" cont="0"/>
|
||||
</junction>
|
||||
<junction id="J9" type="dead_end" x="150.26" y="193.91" incLanes="E3_0" intLanes="" shape="150.26,193.91 153.46,193.99 150.26,193.91"/>
|
||||
|
||||
<connection from="-E3" to="E9" fromLane="0" toLane="0" via=":J8_3_0" dir="r" state="m" visibility="9.00"/>
|
||||
<connection from="E0" to="E6" fromLane="0" toLane="0" via=":J1_3_0" dir="r" state="m" visibility="9.00"/>
|
||||
<connection from="E1" to="E7" fromLane="0" toLane="0" via=":J4_0_0" dir="r" state="m" visibility="9.00"/>
|
||||
<connection from="E2" to="E8" fromLane="0" toLane="0" via=":J6_0_0" dir="r" state="m" visibility="9.00"/>
|
||||
<connection from="E6" to="-E1" fromLane="0" toLane="0" via=":J4_1_0" dir="r" state="M"/>
|
||||
<connection from="E6" to="E7" fromLane="0" toLane="0" via=":J4_2_0" dir="s" state="M"/>
|
||||
<connection from="E6" to="E7" fromLane="1" toLane="1" via=":J4_2_1" dir="s" state="M"/>
|
||||
<connection from="E7" to="-E2" fromLane="0" toLane="0" via=":J6_1_0" dir="r" state="M"/>
|
||||
<connection from="E7" to="E8" fromLane="0" toLane="0" via=":J6_2_0" dir="s" state="M"/>
|
||||
<connection from="E7" to="E8" fromLane="1" toLane="1" via=":J6_2_1" dir="s" state="M"/>
|
||||
<connection from="E8" to="E3" fromLane="0" toLane="0" via=":J8_0_0" dir="r" state="M"/>
|
||||
<connection from="E8" to="E9" fromLane="0" toLane="0" via=":J8_1_0" dir="s" state="M"/>
|
||||
<connection from="E8" to="E9" fromLane="1" toLane="1" via=":J8_1_1" dir="s" state="M"/>
|
||||
<connection from="E9" to="-E0" fromLane="0" toLane="0" via=":J1_0_0" dir="r" state="M"/>
|
||||
<connection from="E9" to="E6" fromLane="0" toLane="0" via=":J1_1_0" dir="s" state="M"/>
|
||||
<connection from="E9" to="E6" fromLane="1" toLane="1" via=":J1_1_1" dir="s" state="M"/>
|
||||
|
||||
<connection from=":J1_0" to="-E0" fromLane="0" toLane="0" dir="r" state="M"/>
|
||||
<connection from=":J1_1" to="E6" fromLane="0" toLane="0" dir="s" state="M"/>
|
||||
<connection from=":J1_1" to="E6" fromLane="1" toLane="1" dir="s" state="M"/>
|
||||
<connection from=":J1_3" to="E6" fromLane="0" toLane="0" dir="r" state="M"/>
|
||||
<connection from=":J4_0" to="E7" fromLane="0" toLane="0" dir="r" state="M"/>
|
||||
<connection from=":J4_1" to="-E1" fromLane="0" toLane="0" dir="r" state="M"/>
|
||||
<connection from=":J4_2" to="E7" fromLane="0" toLane="0" dir="s" state="M"/>
|
||||
<connection from=":J4_2" to="E7" fromLane="1" toLane="1" dir="s" state="M"/>
|
||||
<connection from=":J6_0" to="E8" fromLane="0" toLane="0" dir="r" state="M"/>
|
||||
<connection from=":J6_1" to="-E2" fromLane="0" toLane="0" dir="r" state="M"/>
|
||||
<connection from=":J6_2" to="E8" fromLane="0" toLane="0" dir="s" state="M"/>
|
||||
<connection from=":J6_2" to="E8" fromLane="1" toLane="1" dir="s" state="M"/>
|
||||
<connection from=":J8_0" to="E3" fromLane="0" toLane="0" dir="r" state="M"/>
|
||||
<connection from=":J8_1" to="E9" fromLane="0" toLane="0" dir="s" state="M"/>
|
||||
<connection from=":J8_1" to="E9" fromLane="1" toLane="1" dir="s" state="M"/>
|
||||
<connection from=":J8_3" to="E9" fromLane="0" toLane="0" dir="r" state="M"/>
|
||||
|
||||
<roundabout nodes="J1 J4 J6 J8" edges="E6 E7 E8 E9"/>
|
||||
|
||||
</net>
|
43
test9.rou.xml
Normal file
43
test9.rou.xml
Normal file
@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- generated on 2022-03-11 15:36:48 by Eclipse SUMO netedit Version 1.12.0
|
||||
-->
|
||||
|
||||
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
|
||||
<flow id="f_0" begin="0.00" end="3600.00" vehsPerHour="1800.00">
|
||||
<route edges="E0 E6 -E1"/>
|
||||
</flow>
|
||||
<flow id="f_1" begin="0.00" end="3600.00" vehsPerHour="1800.00">
|
||||
<route edges="E0 E6 E7 -E2"/>
|
||||
</flow>
|
||||
<flow id="f_10" begin="0.00" end="3600.00" vehsPerHour="1800.00">
|
||||
<route edges="-E3 E9 E6 -E1"/>
|
||||
</flow>
|
||||
<flow id="f_11" begin="0.00" end="3600.00" vehsPerHour="1800.00">
|
||||
<route edges="-E3 E9 E6 E7 -E2"/>
|
||||
</flow>
|
||||
<flow id="f_2" begin="0.00" end="3600.00" vehsPerHour="1800.00">
|
||||
<route edges="E0 E6 E7 E8 E3"/>
|
||||
</flow>
|
||||
<flow id="f_3" begin="0.00" end="3600.00" vehsPerHour="1800.00">
|
||||
<route edges="E1 E7 -E2"/>
|
||||
</flow>
|
||||
<flow id="f_4" begin="0.00" end="3600.00" vehsPerHour="1800.00">
|
||||
<route edges="E1 E7 E8 E3"/>
|
||||
</flow>
|
||||
<flow id="f_5" begin="0.00" end="3600.00" vehsPerHour="1800.00">
|
||||
<route edges="E1 E7 E8 E9 -E0"/>
|
||||
</flow>
|
||||
<flow id="f_6" begin="0.00" end="3600.00" vehsPerHour="1800.00">
|
||||
<route edges="E2 E8 E3"/>
|
||||
</flow>
|
||||
<flow id="f_7" begin="0.00" end="3600.00" vehsPerHour="1800.00">
|
||||
<route edges="E2 E8 E9 -E0"/>
|
||||
</flow>
|
||||
<flow id="f_8" begin="0.00" end="3600.00" vehsPerHour="1800.00">
|
||||
<route edges="E2 E8 E9 E6 -E1"/>
|
||||
</flow>
|
||||
<flow id="f_9" begin="0.00" end="3600.00" vehsPerHour="1800.00">
|
||||
<route edges="-E3 E9 -E0"/>
|
||||
</flow>
|
||||
</routes>
|
@ -65,7 +65,7 @@ class Ui_MainWindow(object):
|
||||
self.mainFPS_set = QSpinBox(self.centralwidget)
|
||||
self.mainFPS_set.setObjectName(u"mainFPS_set")
|
||||
self.mainFPS_set.setMaximum(500)
|
||||
self.mainFPS_set.setValue(60)
|
||||
self.mainFPS_set.setValue(17)
|
||||
|
||||
self.horizontalLayout_3.addWidget(self.mainFPS_set)
|
||||
|
||||
@ -84,7 +84,7 @@ class Ui_MainWindow(object):
|
||||
self.physicsFPS_set = QSpinBox(self.centralwidget)
|
||||
self.physicsFPS_set.setObjectName(u"physicsFPS_set")
|
||||
self.physicsFPS_set.setMaximum(1000)
|
||||
self.physicsFPS_set.setValue(60)
|
||||
self.physicsFPS_set.setValue(17)
|
||||
|
||||
self.horizontalLayout_4.addWidget(self.physicsFPS_set)
|
||||
|
||||
|
@ -58,7 +58,7 @@
|
||||
<number>500</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>60</number>
|
||||
<number>17</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -79,7 +79,7 @@
|
||||
<number>1000</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>60</number>
|
||||
<number>17</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
Loading…
x
Reference in New Issue
Block a user