Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Multi-Clients in TraaS


Hi, Jakob:
I've got the latest TraaS. The multi-client rquires a debug sumo enviroment("sumoD"), could you please send me a debug SUMO package to install?
And dose SumoTraciConnection support multi-thread enviroment? The scenario is I want to get all the vehicles position in the network(latitude, logitude), but calling do_job_get will take a lot of time, so that I want to do this part in another thread.
Thank you for your help.
Your kindly Samuel.




At 2019-02-01 15:08:58, "Jakob Erdmann" <namdre.sumo@xxxxxxxxx> wrote:
Hello,
multi-client support for TraaS is not present in version 1.1.0. Instead you have to use the latest development version, currently available for download at http://sumo.sourceforge.net/daily/sumo-msvc12x64-git.zip

regards,
Jakob

Am Fr., 1. Feb. 2019 um 06:29 Uhr schrieb 周大兵 <zdb2004826@xxxxxxx>:
Hi Sumo:
I was building multi-clients to SUMO by employing below example code in JDK enviroment:
and encounter the error information below:(By the way It is OK when I tried 2 python multi-clients connecting to SUMO)

Error: Answered with error to command 0x03: Wrong position in requestMessage after dispatching command. Expected command length was 10 but 6 Bytes were read.
java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:210)
    at java.net.SocketInputStream.read(SocketInputStream.java:141)
    at java.net.SocketInputStream.read(SocketInputStream.java:224)
    at java.io.DataInputStream.readInt(DataInputStream.java:387)
    at de.tudresden.sumo.util.Query.doSimulationStep(Query.java:135)
    at de.tudresden.sumo.util.CommandProcessor.do_SimulationStep(CommandProcessor.java:74)
    at it.polito.appeal.traci.SumoTraciConnection.do_timestep(SumoTraciConnection.java:407)
    at it.polito.appeal.traci.SumoTraciConnection.do_timestep(SumoTraciConnection.java:400)
    at MultiClient1.main(MultiClient1.java:32)

java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:210)
    at java.net.SocketInputStream.read(SocketInputStream.java:141)
    at java.net.SocketInputStream.read(SocketInputStream.java:224)
    at java.io.DataInputStream.readInt(DataInputStream.java:387)
    at de.tudresden.sumo.util.Query.doSimulationStep(Query.java:135)
    at de.tudresden.sumo.util.CommandProcessor.do_SimulationStep(CommandProcessor.java:74)
    at it.polito.appeal.traci.SumoTraciConnection.do_timestep(SumoTraciConnection.java:407)
    at it.polito.appeal.traci.SumoTraciConnection.do_timestep(SumoTraciConnection.java:400)
    at MultiClient2.main(MultiClient2.java:20)

Are there any Traas version issuesr or enviromental cofigurations problems?
Thank you.
Your kindly Samuel.
2019-02-01



 

_______________________________________________
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