[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] Replications with different seeds from TRACI
|
This is still a misunderstanding. Regardless of using libtraci, traciapi or even libsumo, at some point the sumo server process is being started (remotely or locally). Whoever starts that process is responsible for setting options and may set option 'seed'. You can also restart a running process with new options by calling the function traci.load.
After considering using Libtraci instead of TraCIAPI and after browsing the Libtraci folder in the Simulation.cpp file, a quick check-up of Simulation::start () function member showed the following instructions:
#ifdef WIN32
FILE* pipe = _popen(oss.str().c_str(), "r");
#else
FILE* pipe = popen(oss.str().c_str(), "r");
meaning that in the command line embedded in oss.str()
the referred file (i.e sumo or sumo-gui) will be opened locally.
Therefore my two questions still stand:
Do SUMO and OMNeT++ must be necessarily installed on the same machine to run a simulation campaign with
many replications
?
... if so, what's the point of using a client-server scheme to bind the two software
through TraCI
?
Best regards.
So, must I consider using Libtraci instead of TraCIAPI ?
This looks like a misunderstanding. “Wherever” here means “wherever in your code” (and not in terms of your machine).
Best regards, Matthias
From: sumo-user <sumo-user-bounces@xxxxxxxxxxx>
On Behalf Of Hervé Diedie
Sent: Freitag, 10. September 2021 16:07
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: Re: [sumo-user] Replications with different seeds from TRACI
In other words, SUMO and OMNeT++ must be installed on the same host... if so, what's the point of using a client-server scheme to bind the
two software through TraCI ?
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user