Hello,
I'm using Traci to assing dynamically routes to the vehichle which will be inserted on the network.
However, sometimes (and I didn't find the pattern of this issue) the instruction route.add(routeId, [route]) raises TraCIException(prefix[1], _RESULTS[prefix[2]], err).
I looked for any bug fix on Sumo Logs and also debug the code... without success.
Maybe could be a SUMO issue.
Follow the error:
File "C:\Users\Pedro Matuck\Documents\GitHub\mestrado.sumo\speed_control\route_manager.py", line 142, in UpdateRoutes
traci.route.add(str(newRouteId), newRoute)
File "C:\Program Files (x86)\DLR\Sumo\tools\traci\_route.py", line 47, in add
self._connection._sendExact()
File "C:\Program Files (x86)\DLR\Sumo\tools\traci\connection.py", line 105, in _sendExact
raise TraCIException(prefix[1], _RESULTS[prefix[2]], err)
traci.exceptions.TraCIException: Could not add route.
Error: tcpip::Socket::recvAndCheck @ recv: peer shutdown
Quitting (on error).
Thanks.
--
Pedro J. Matuck
"The hardest battle lies within."