Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] How to controll multiple connections to the same sumo server efficiently.

To give up the turn, the client can just call traci.simulationStep()

regards,
Jakob

2018-08-09 12:12 GMT+02:00 <cchadj01@xxxxxxxxxxxx>:
Hello,

 I have a Sumo server fire up from sumo-gui.exe from the command line like so:
 sumo-gui.exe -c simpgrid.sumocfg --remote-port 9999 --num-clients 2

 I have a client in python and I want to connect two of them at the same server.
 I do so and set then the connection1.setOrder(1) for the first client and connection1.setOrder(2)
 for the second one.
 This works properly but I noticed that you can send a number of requests from the first client
 and then the other clients just waits until it is its turn to send requests.

 I was wondering if a client can give up its turn if it doesn't need to send any requests at the
 given moment.
 I want to do this in order to send only some commands from the second client and have the first
 client do most of the work.

Thanks,
Tom

_______________________________________________
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