Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-dev] Sumo not opening properly while using python, please help :(

Java

On 6/3/23, Karam Moore <bigjimhilljameel@xxxxxxxxx> wrote:
> I’m using latex. Syntax
>
> On 6/3/23, Danny Forever via sumo-dev <sumo-dev@xxxxxxxxxxx> wrote:
>>
>> Thank you very much for your help, much appreciated! God bless you!
>> On
>> Friday, June 2, 2023 at 12:42:32 PM GMT+3, Jakob Erdmann
>> <namdre.sumo@xxxxxxxxx> wrote:
>>
>>  make sure the file has a root element (i.e.) `<additional>` and then also
>> a
>> closing element `</additional>`.  When in doubt, use netedit to define
>> the
>> detectors (until you are used to working with the raw xml).
>>
>> Am Fr., 2. Juni 2023 um 11:28 Uhr schrieb Danny Forever via sumo-dev
>> <sumo-dev@xxxxxxxxxxx>:
>>
>>
>> Sorry if my first message was kind of ambiguous. When I try to add
>> e1detectors with id 1 and 2, I got the following error when the sumo-gui
>> opens and the cfg is no loaded:
>>
>>
>> I don't know if I should regenerate some files or how to do that. I know
>> that the problem is caused by adding the new detectors, but what I want
>> to
>> know is how can I add more e1detectors (one on every lane).
>>
>>     On Friday, June 2, 2023 at 12:22:37 PM GMT+3, Jakob Erdmann
>> <namdre.sumo@xxxxxxxxx> wrote:
>>
>>  "my sumocfg is not loading anymore" does not carry enough information to
>> help you out.There should be an error message that guides you towards a
>> solution (if so, you may ask to clarify it's meaning) or if the
>> simulation
>> crashes without an error, then this is something you need to state
>> clearly.
>>
>> Am Fr., 2. Juni 2023 um 10:21 Uhr schrieb Danny Forever via sumo-dev
>> <sumo-dev@xxxxxxxxxxx>:
>>
>>  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.sumo@xxxxxxxxx> 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@xxxxxxxxxxx>:
>>
>> 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.sumo@xxxxxxxxx> 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@xxxxxxxxxxx>:
>>
>>  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@xxxxxxxxxxx
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-dev
>>
>> _______________________________________________
>> sumo-dev mailing list
>> sumo-dev@xxxxxxxxxxx
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-dev
>>   _______________________________________________
>> sumo-dev mailing list
>> sumo-dev@xxxxxxxxxxx
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-dev
>>
>> _______________________________________________
>> sumo-dev mailing list
>> sumo-dev@xxxxxxxxxxx
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-dev
>>   _______________________________________________
>> sumo-dev mailing list
>> sumo-dev@xxxxxxxxxxx
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-dev
>>
>> _______________________________________________
>> sumo-dev mailing list
>> sumo-dev@xxxxxxxxxxx
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-dev
>>   _______________________________________________
>> sumo-dev mailing list
>> sumo-dev@xxxxxxxxxxx
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-dev
>>
>> _______________________________________________
>> sumo-dev mailing list
>> sumo-dev@xxxxxxxxxxx
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-dev
>>
>
>
> --
> Karam Jameel Moore
>


-- 
Karam Jameel Moore


Back to the top