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