Hi, Libsumo ist picky about types. So you need to convert everything to a string before calling setParameter.
Best regards, Michael
Am 17. November 2021 01:41:08 MEZ schrieb Pradeep Viyaluru Harinath <pradeep.viyaluruharinath@xxxxxxxx>:
Thank you for your response.
I have used the command â libsumo as traci â but to only get the following error. I have tried importing the libsumo as package and then running it, even then I face the same error. Can I know what could have been the reason for this error
since I have not got that error while using traci
Regards,
V.H.Pradeep
From: sumo-user <sumo-user-bounces@xxxxxxxxxxx> On Behalf Of
Jakob Erdmann
Sent: Tuesday, November 16, 2021 3:39 AM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: [EXTERNAL] Re: [sumo-user] traci execution speed
**EXTERNAL EMAIL**
This email originated outside of The University of Texas at San Antonio.
Please exercise caution when clicking on links or opening attachments.
|
Each individual traci command costs time because data must be passed between your code and sumo.
- reduce the number of traci commands (i.e. by caching values that do not change or by using subscriptions)
Hello All,
I am running a python code which allows traci to iterate for about 100 times. I notice that as the simulation time increases the traci slows down considerably and it takes forever
to produce the output. However when I run using the command prompt it hardly takes a minute to run simulation but when I use traci it takes close to 10 mins to complete the simulation run.
Let me know if there is something I need to work on to improve the processing speed.
Regards,
V.H.Pradeep
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
-- Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.
|