I have a question regarding the tutorial. I saw that in tutorial there is only one detector, on lane 4i_0. When I try to add another e1detectors on other lanes, my sumocfg is not loading anymore. What should I do if I want to add more detectors after I added them manually in .det file? On Thursday, June 1, 2023 at 02:00:42 PM GMT+3, Jakob Erdmann <namdre.s...@gmail.com> wrote: https://sumo.dlr.de/docs/Tutorials/index.html#traci_tutorials Am Do., 1. Juni 2023 um 12:58 Uhr schrieb Danny Forever via sumo-dev <sumo-dev@eclipse.org>:
Sorry if is too much, but can you please show me how should i write the begging of the code, only to open the gui and start the simulation? On Thursday, June 1, 2023 at 01:37:16 PM GMT+3, Jakob Erdmann <namdre.s...@gmail.com> wrote: sumo stopped because your python script (the "peer") crashed. You should find the solution by investigation the stack trace from your python code. Am Do., 1. Juni 2023 um 12:08 Uhr schrieb Danny Forever via sumo-dev <sumo-dev@eclipse.org>: import osimport sysimport traciimport matplotlib.pyplot as pltfrom sumolib import checkBinaryimport datetime # Path to the SUMO tools (change this according to your setup)sumo_tools_path = "C:/Program Files (x86)/Eclipse/Sumo/bin" # Path to the SUMO simulation files (change this according to your setup)sumo_simulation_path = "C:/Users/Dani/Desktop/sumo_test1/try" gui = Truemax_steps = 2500 # sumo things - we need to import python modules from the $SUMO_HOME/tools directoryif 'SUMO_HOME' in os.environ: tools = os.path.join(os.environ['SUMO_HOME'], 'tools') sys.path.append(tools)else: sys.exit("please declare environment variable 'SUMO_HOME'") # setting the cmd mode or the visual mode if gui == False: sumoBinary = checkBinary('sumo')else: sumoBinary = checkBinary('sumo-gui') # setting the cmd command to run sumo at simulation timesumo_cmd = [sumoBinary, "-c", os.path.join(sumo_simulation_path, "sumocfg1.sumocfg"), "--no-step-log", "true", "--waiting-time-memory", str(max_steps)] # Start the SUMO simulation#sumo_cmd = [os.path.join(sumo_tools_path, "sumo-gui"), "--remote-port", "0", "--start", "-c", os.path.join(sumo_simulation_path, "sumocfg1.sumocfg")]traci.start(sumo_cmd) I tried both of the sumo_cmd commands from above, but the same results. The sumo-gui opened but when i press start, i got this and nothing happens afterwards. Can you please help me to find the problem and how to solve it?Thank you for your time and have a nice day, A worried student. _______________________________________________ sumo-dev mailing list sumo-dev@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-dev _______________________________________________ sumo-dev mailing list sumo-dev@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-dev _______________________________________________ sumo-dev mailing list sumo-dev@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-dev _______________________________________________ sumo-dev mailing list sumo-dev@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-dev
_______________________________________________ sumo-dev mailing list sumo-dev@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-dev