Tim Jänicke
2016-06-07 11:14:02 UTC
Hey all,
I was trying to connect to a running SUMO-Simulation via traci. My Code looks like this:
InetSocketAddress socket = new InetSocketAddress("139.25.55.81", remotePort);
SocketAddress socket1 = (SocketAddress) socket;
SumoTraciConnection conn = new SumoTraciConnection(socket1);conn.runServer();...
I insert the remote Port manually. There is no error-message or so. But I still don't have access to the simulation.
For example I can't display the amount of cars in the running simulation.Is the approach completely wrong or is there just a simple mistake ?
Than you very much for your help.
Greetings Tim
I was trying to connect to a running SUMO-Simulation via traci. My Code looks like this:
InetSocketAddress socket = new InetSocketAddress("139.25.55.81", remotePort);
SocketAddress socket1 = (SocketAddress) socket;
SumoTraciConnection conn = new SumoTraciConnection(socket1);conn.runServer();...
I insert the remote Port manually. There is no error-message or so. But I still don't have access to the simulation.
For example I can't display the amount of cars in the running simulation.Is the approach completely wrong or is there just a simple mistake ?
Than you very much for your help.
Greetings Tim