correctly showing information about pressing sumo-gui play button.

This commit is contained in:
Joel Moriana 2020-03-11 11:04:23 +01:00 committed by bernat
parent 5c5028aeb3
commit f1804ba198
1 changed files with 3 additions and 2 deletions

View File

@ -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)