Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] send commands to two junctions of simulation

Can I get an example code as I am not getting it clearly even after doing a lot of google search ?

Regards,
Priyank Soni

On Wed, Sep 11, 2019 at 12:32 PM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
If you are using a single python process with multiple threads this should work just fine (traci is thread-safe).
If you wish to use multiple python process, you can connect each of them as a client (see https://sumo.dlr.de/docs/TraCI.html#multiple_clients)

Am Mi., 11. Sept. 2019 um 07:28 Uhr schrieb priyank soni <priyanksonigeca7@xxxxxxxxx>:
Hi All,

I am simulating a network with two junctions having traffic lights, I want to give commands from separate python thread to each of the junction of same simulation , is it possible ?

Regards,
Priyank Soni

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top