From f1804ba1981ef611f2b78fae793d67c7f4e6fe2e Mon Sep 17 00:00:00 2001 From: Joel Moriana Date: Wed, 11 Mar 2020 11:04:23 +0100 Subject: [PATCH] correctly showing information about pressing sumo-gui play button. --- Co-Simulation/Sumo/sumo_integration/sumo_simulation.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Co-Simulation/Sumo/sumo_integration/sumo_simulation.py b/Co-Simulation/Sumo/sumo_integration/sumo_simulation.py index 3b212b55b..f0f1b0029 100644 --- a/Co-Simulation/Sumo/sumo_integration/sumo_simulation.py +++ b/Co-Simulation/Sumo/sumo_integration/sumo_simulation.py @@ -107,6 +107,9 @@ class SumoSimulation(object): if args.sumo_host is None or args.sumo_port is None: logging.info('Starting new sumo server...') + if args.sumo_gui is True: + logging.info('Remember to press the play button to start the simulation') + traci.start([ sumo_binary, "-c", args.sumo_cfg_file, @@ -115,8 +118,6 @@ class SumoSimulation(object): '--collision.check-junctions' ]) - if args.sumo_gui: - logging.info('Remember to press the play button to start the simulation') else: logging.info('Connection to sumo server. Host: %s Port: %s', host, port) traci.init(host=host, port=port)