Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-dev] [sumo-devel] help

Dear all,
I want to make each vehicle in SUMO receives a TCP packet from an external
Server.

I have implemented this  Python Script :
*import traci*
*traci.start(sumoCmd) *

*while traci.simulation.getMinExpectedNumber() > 0: *
*  for veh_id in traci.vehicle.getIDList():*
*    position = traci.vehicle.getSpeed(veh_id)*
*    print(veh_id)*
*    print(traci.vehicle.getRoute(veh_id))*
*    traci.vehicle.setRoute("veh0", ["44468929", "189216027", "371230575",
"167920445"])*
* traci.close()*
*sys.stdout.flush()*

This error is raising :
Could not connect to TraCI server at localhost:57613 [Errno 10061] No
connection could be made because the target machine actively refused it
 Retrying in 1 seconds
What is the problem ? Can you help me please ?

Thanks.




-- 
​
My Best Regards,
SAGAAMA Insaf.

PhD student at CRISTAL Lab, RAMSIS Pole, ENSI- Tunisia.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-devel mailing list
sumo-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sumo-devel

Back to the top