Hello, Possibly an old matlab process is still blocking the port. Try setting --remote-port to 8874 and and call traci.init(8874)
regards, Jakob 2017-05-26 15:54 GMT+02:00 Yiqun Xia <[email protected]>: > Hi there, > > > I"m currently working on SUMO TraCI and have a problem, could you help me. > > > I have built the SUMO configuration and also adding the following codes > into SUMO configuration: > > > <traci_server> > > <remote-port value="8873"> > > </traci_server> > > > Here is my Matlab code: > > > import traci.constants; > > scenarioPath = fullfile('xxxxx','xxx.sumocfg'); > > > try > > system(['sumo-gui -c ' '"' scenarioPath '"' ' --start&' ]); > > catch err > > end > > > traci.init(); > > while traci.simulation.getMinExpectedNumber >0 > > traci.vehicle.setSpeed('ego',5); > > traci.simulationStep(); > > end > > traci.close() > > > It work very well at the beginning, and the vehicle can exactly follow the > Speed "5". But then my matlab suffered a sudden shutdown, when I open it > again, the System cannot work anymore, in the SUMO message window I can > always see the following error message > > > Error: tcpip::Socket::recvAndCheck @ recv: peer shutdown > Quitting (on error). > > > I have tried alot, but totally have no idea how could this happen, really > need your help. Thank you in advance! > > > Best regards > > Yiqun > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
