Skip to content

Commit

Permalink
Merge branch 'main' of github.com:eclipse-sumo/sumo into Netedit_dev
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Aug 2, 2024
2 parents afbd244 + 9459d6b commit 1b6f365
Show file tree
Hide file tree
Showing 12 changed files with 196 additions and 14 deletions.
6 changes: 3 additions & 3 deletions data/po/de_sumo.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: sumo\n"
"Report-Msgid-Bugs-To: sumo-dev@eclipse.org\n"
"POT-Creation-Date: 2024-07-22 10:12+0200\n"
"PO-Revision-Date: 2024-07-25 10:19+0000\n"
"PO-Revision-Date: 2024-08-02 12:58+0000\n"
"Last-Translator: Mirko Barthauer <mirko.barthauer@dlr.de>\n"
"Language-Team: German <https://hosted.weblate.org/projects/eclipse-sumo/"
"applications/de/>\n"
Expand Down Expand Up @@ -13163,8 +13163,8 @@ msgstr "Unbekanntes Fahrzeugfolgemodell im vType '%' gefunden"
#: src/utils/vehicle/SUMOVehicleParserHelper.cpp:1299
msgid "Invalid Car-Following-Model Attribute %. Cannot be parsed to float"
msgstr ""
"Ungültiges Fahrzeugfolgemodell Attribut %. Konnte nicht im float eingelesen "
"werden"
"Ungültiges Fahrzeugfolgemodell Attribut %. Konnte nicht als Fließkommazahl "
"eingelesen werden"

#: src/utils/vehicle/SUMOVehicleParserHelper.cpp:1287
#: src/utils/vehicle/SUMOVehicleParserHelper.cpp:1310
Expand Down
26 changes: 15 additions & 11 deletions data/po/it_sumo.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: sumo\n"
"Report-Msgid-Bugs-To: sumo-dev@eclipse.org\n"
"POT-Creation-Date: 2024-07-22 10:12+0200\n"
"PO-Revision-Date: 2024-08-01 11:14+0000\n"
"PO-Revision-Date: 2024-08-02 12:58+0000\n"
"Last-Translator: Mirko Barthauer <mirko.barthauer@dlr.de>\n"
"Language-Team: Italian <https://hosted.weblate.org/projects/eclipse-sumo/"
"applications/it/>\n"
Expand Down Expand Up @@ -2404,31 +2404,31 @@ msgstr ""

#: src/microsim/MSFrame.cpp:678
msgid "Enable statistics on vehicle trips"
msgstr ""
msgstr "Attiva statistiche di corse di veicoli"

#: src/microsim/MSFrame.cpp:681
msgid "Disable console output of current simulation step"
msgstr ""
msgstr "Disattiva uscita in console del attuale passo di simulazione"

#: src/microsim/MSFrame.cpp:684
msgid "Number of simulation steps between step-log outputs"
msgstr ""
msgstr "Numero di passi di simulazione tra due uscite step-log"

#: src/microsim/MSFrame.cpp:689
msgid "Enables TraCI Server if set"
msgstr ""
msgstr "Attiva il server TraCI se impostato"

#: src/microsim/MSFrame.cpp:691
msgid "Expected number of connecting clients"
msgstr ""
msgstr "Numero atteso di clienti connessi"

#: src/microsim/MSFrame.cpp:695
msgid "Enables mesoscopic simulation"
msgstr "Attiva la simulazione mesoscopica"

#: src/microsim/MSFrame.cpp:697
msgid "Length of an edge segment in mesoscopic simulation"
msgstr ""
msgstr "Lunghezza di un segmento di arco nella simulazione mesoscopica"

#: src/microsim/MSFrame.cpp:699
msgid "Factor for calculating the net free-free headway time"
Expand All @@ -2448,17 +2448,19 @@ msgstr ""

#: src/microsim/MSFrame.cpp:710
msgid "Enable multiple queues at edge ends"
msgstr ""
msgstr "Attiva varie code alle estremità degli archi"

#: src/microsim/MSFrame.cpp:712
msgid "Enable separate queues for every lane"
msgstr ""
msgstr "Attiva coda separata per ogni corsia"

#: src/microsim/MSFrame.cpp:714
msgid ""
"Do not build queues (or reduce capacity) for lanes allowing only the given "
"vclasses"
msgstr ""
"Non creare code (o redurre la capacità) di corsie che autorizzano soltanto "
"le classi di veicoli dati"

#: src/microsim/MSFrame.cpp:717
msgid "Enable mesoscopic traffic light and priority junction handling"
Expand Down Expand Up @@ -11935,11 +11937,11 @@ msgstr ""

#: src/utils/vehicle/SUMOVehicleParserHelper.cpp:1246
msgid "Unknown car-following model % when parsing vType '%'"
msgstr ""
msgstr "Modello di guida % sconosciuto nell'analisi del tipo di veicolo '%'"

#: src/utils/vehicle/SUMOVehicleParserHelper.cpp:1248
msgid "Unknown car-following model when parsing vType '%'"
msgstr ""
msgstr "Modello di guida sconosciuto nell'analisi del tipo di veicolo '%'"

#: src/utils/vehicle/SUMOVehicleParserHelper.cpp:1283
#: src/utils/vehicle/SUMOVehicleParserHelper.cpp:1299
Expand All @@ -11956,6 +11958,8 @@ msgid ""
"Invalid Car-Following-Model Attribute %. Only values between [0-1] are "
"allowed"
msgstr ""
"Attributo di modello di guida % invalido. Può assumere soltanto valori tra "
"[0-1]"

#: src/utils/vehicle/SUMOVehicleParserHelper.cpp:1589
msgid "Invalid Lane-Change-Model Attribute %. Cannot be parsed to float"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Warning: Missing yellow phase in tlLogic 'C', program 'custom' for tl-index 0 when switching to phase 1.
Warning: Missing green phase in tlLogic 'C', program 'custom' for tl-index 5.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd">
<timedEvent type="SaveTLSProgram" source="C" dest="tls_state.xml"/>
</additional>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<route id="vertical" edges="NC CS"/>
<vehicle id="0" route="vertical" depart="0"/>
<vehicle id="1" route="vertical" depart="30"/>
</routes>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tests/complex/traci/trafficlight/setLogic_duration0/runner.py
Empty file.
42 changes: 42 additions & 0 deletions tests/complex/traci/trafficlight/setLogic_duration0/runner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
# Copyright (C) 2023-2024 German Aerospace Center (DLR) and others.
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# https://www.eclipse.org/legal/epl-2.0/
# This Source Code may also be made available under the following Secondary
# Licenses when the conditions for such availability set forth in the Eclipse
# Public License 2.0 are satisfied: GNU General Public License, version 2
# or later which is available at
# https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later

# @file runner.py
# @author Mirko Barthauer
# @date 2023-01-12


from __future__ import absolute_import
import os
import sys

if "SUMO_HOME" in os.environ:
sys.path.append(os.path.join(os.environ["SUMO_HOME"], "tools"))
import traci # noqa
import sumolib # noqa

traci.start([sumolib.checkBinary('sumo'), "-c", "sumo.sumocfg"] + sys.argv[1:])
tlsID = "C"
phases = []
phases.append(traci.trafficlight.Phase(5, "GGGggrrrrrGGGggrrrrr", 0, 0))
phases.append(traci.trafficlight.Phase(0, "rrrrrrrrrrrrrrrrrrrr", 0, 60))
logic = traci.trafficlight.Logic("custom", 0, 0, phases)
step = 0
while traci.simulation.getMinExpectedNumber() > 0 or step < 180:
if step == 10:
traci.trafficlight.setProgramLogic(tlsID, logic)
traci.trafficlight.setPhase(tlsID, 0)
traci.simulationStep()
step += 1
traci.close()
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2023-06-06 07:37:12 by Eclipse SUMO sumo Version v1_17_0+0729-0f1b512
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">
<input>
<net-file value="input_net2.net.xml"/>
<route-files value="input_routes.rou.xml"/>
</input>
<output>
<statistic-output value="statistics.xml"/>
</output>
<processing>
<time-to-teleport value="-1"/>
<default.speeddev value="0"/>
</processing>
<report>
<duration-log.disable value="true"/>
<no-step-log value="true"/>
</report>
<traci_server>
<remote-port value="55830"/>
</traci_server>
<gui_only>
<window-size value="500,500"/>
<window-pos value="50,50"/>
</gui_only>
</configuration>
-->

<statistics xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/statistic_file.xsd">
<performance clockBegin="1686029832.54" clockEnd="1686029832.58" clockDuration="0.03" traciDuration="0.00" realTimeFactor="2322.58" vehicleUpdatesPerSecond="0.00" personUpdatesPerSecond="0.00" begin="0.00" end="72.00" duration="72.00"/>
<vehicles loaded="2" inserted="2" running="0" waiting="0"/>
<teleports total="0" jam="0" yield="0" wrongLane="0"/>
<safety collisions="0" emergencyStops="0" emergencyBraking="0"/>
<persons loaded="0" running="0" jammed="0"/>
<personTeleports total="0" abortWait="0" wrongDest="0"/>
</statistics>
33 changes: 33 additions & 0 deletions tests/complex/traci/trafficlight/setLogic_duration0/sumo.sumocfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-06-12 18:31:59 by Eclipse SUMO sumo Version v1_20_0+0443-233e48e5c88
-->

<sumoConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">

<input>
<net-file value="input_net2.net.xml"/>
<route-files value="input_routes.rou.xml"/>
<additional-files value="input_additional.add.xml"/>
</input>

<output>
<statistic-output value="statistics.xml"/>
</output>

<processing>
<time-to-teleport value="-1"/>
<default.speeddev value="0"/>
</processing>

<report>
<duration-log.disable value="true"/>
<no-step-log value="true"/>
</report>

<gui_only>
<window-size value="500,500"/>
<window-pos value="50,50"/>
</gui_only>

</sumoConfiguration>
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-08-02 12:53:06 by Eclipse SUMO sumo Version v1_20_0+1519-a635611cf51
<sumoConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">
<input>
<net-file value="input_net2.net.xml"/>
<route-files value="input_routes.rou.xml"/>
<additional-files value="input_additional.add.xml"/>
</input>
<output>
<statistic-output value="statistics.xml"/>
</output>
<processing>
<time-to-teleport value="-1"/>
<default.speeddev value="0"/>
</processing>
<report>
<duration-log.disable value="true"/>
<no-step-log value="true"/>
</report>
<traci_server>
<remote-port value="35435"/>
</traci_server>
<gui_only>
<window-size value="500,500"/>
<window-pos value="50,50"/>
</gui_only>
</sumoConfiguration>
-->

<additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd">
<tlLogic id="C" type="static" programID="0">
<phase duration="10.00" state="GGGggrrrrrGGGggrrrrr"/>
</tlLogic>
<tlLogic id="C" type="static" programID="custom">
<phase duration="170.00" state="GGGggrrrrrGGGggrrrrr"/>
</tlLogic>
</additional>
3 changes: 3 additions & 0 deletions tests/complex/traci/trafficlight/testsuite.complex
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ actuated_conditions

# Overwrite signal program with TraCI-generated phases twice
setLogic_repeated

# try to set an invalid program
setLogic_duration0

0 comments on commit 1b6f365

Please sign in to comment.