Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Adding multiple clients to the SUMO dynamically.

Dear Satyam,
the problem is that SUMO is currently not multithreaded and so cannot wait for connections and execute simultaneously. One could introduce a waitforconnect command but this seems rather clumsy and we would prefer to introduce multithreading which is not that hard but still needs some days to implement correctly. If you are willing to try we can help you here at least by giving pointers where to start. The much easier solution is of course to write a simple proxy in the programming language of your choice which will connect as the only instance to sumo and will itself accept connections and route them through.

Best regards,
Michael

Am 2018-01-31 23:52, schrieb satyam bandarapu:
Hi,

I am trying to connect multiple clients to the SUMO(SUMO-GUI) 0.32.0. I got to know from the following link that "When using multi client setups the number of clients needs to be known when starting SUMO and all clients need
to connect before the first simulation step".

http://sumo.dlr.de/wiki/TraCI/Protocol

My requirement is to add the clients dynamically after starting the SUMO.
Can anyone explain, is it architecturally possible to extend the SUMO
source code to support above feature? if yes, how big is the changes and
where is the modifications required in the source files?

I am looking to write clients in TracAPI(C++) or TraaS(Java).

Appreciate your help.

Thanks
Satyam

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


Back to the top