Hi,
I am sorry to repeat that subject again, but I could't figure out the
problem.
I'd implemented dynamic re-routing in sumo simulator, but when I run the
code in the command line and after entering the sample vehicle name that
should do re-routing I got all the required info of vehicle but the
simulation doesn't run and I got the error below.
C:\Users\Hayder\src\sumo-0.22.0\dijkstra_hayder\test>dynamic_routing1.py
Loading configuration... done.
Enter sample vehicle Name: vehicle3
NA iss 51
N is 17
Lane name is 10_0
is equal 453.03
Maximum Allowed Speed for Lane 10_0
is 12.12
ITT for Lane 10_0
is equal to 37.3787128713
Lane name is 11_0
is equal 467.27
Maximum Allowed Speed for Lane 11_0
is 12.12
ITT for Lane 11_0
is equal to 38.553630363
Lane name is 12_0
is equal 286.01
Maximum Allowed Speed for Lane 12_0
is 12.12
ITT for Lane 12_0
is equal to 23.5981848185
Lane name is 13_0
is equal 292.03
Maximum Allowed Speed for Lane 13_0
is 12.12
ITT for Lane 13_0
is equal to 24.0948844884
Lane name is 14_0
is equal 490.01
Maximum Allowed Speed for Lane 14_0
is 12.12
ITT for Lane 14_0
is equal to 40.4298679868
Lane name is 15_0
is equal 798.86
Maximum Allowed Speed for Lane 15_0
is 12.12
ITT for Lane 15_0
is equal to 65.9125412541
Lane name is 16_0
is equal 291.57
Maximum Allowed Speed for Lane 16_0
is 12.12
ITT for Lane 16_0
is equal to 24.0569306931
Lane name is 17_0
is equal 348.36
Maximum Allowed Speed for Lane 17_0
is 12.12
ITT for Lane 17_0
is equal to 28.7425742574
Lane name is 18_0
is equal 479.54
Maximum Allowed Speed for Lane 18_0
is 12.12
ITT for Lane 18_0
is equal to 39.5660066007
Lane name is 1_0
is equal 192.18
Maximum Allowed Speed for Lane 1_0
is 12.12
ITT for Lane 1_0
is equal to 15.8564356436
Lane name is 3_0
is equal 293.11
Maximum Allowed Speed for Lane 3_0
is 12.12
ITT for Lane 3_0
is equal to 24.1839933993
Lane name is 4_0
is equal 381.82
Maximum Allowed Speed for Lane 4_0
is 12.12
ITT for Lane 4_0
is equal to 31.50330033
Lane name is 5_0
is equal 286.71
Maximum Allowed Speed for Lane 5_0
is 12.12
ITT for Lane 5_0
is equal to 23.6559405941
Lane name is 6_0
is equal 577.12
Maximum Allowed Speed for Lane 6_0
is 12.12
ITT for Lane 6_0
is equal to 47.6171617162
Lane name is 7_0
is equal 375.02
Maximum Allowed Speed for Lane 7_0
is 12.12
ITT for Lane 7_0
is equal to 30.9422442244
Lane name is 8_0
is equal 403.46
Maximum Allowed Speed for Lane 8_0
is 12.12
ITT for Lane 8_0
is equal to 33.2887788779
Lane name is 9_0
is equal 189.24
Maximum Allowed Speed for Lane 9_0
is 12.12
ITT for Lane 9_0
is equal to 15.6138613861
Simulation Time is 100
Current Traveling Time (CTT) for Lane 10_0 is equal to 19.9668316832
Traceback (most recent call last):
File
"C:\Users\Hayder\src\sumo-0.22.0\dijkstra_hayder\test\dynamic_routing1.py
", line 124, in <module>
CO=str(traci.vehicle.getCOEmission(sample_vehicle))
File "C:\Users\Hayder\src\sumo-0.22.0\tools\traci\vehicle.py", line 223,
in ge
tCOEmission
return _getUniversal(tc.VAR_COEMISSION, vehID)
File "C:\Users\Hayder\src\sumo-0.22.0\tools\traci\vehicle.py", line 110,
in _g
etUniversal
result = traci._sendReadOneStringCmd(tc.CMD_GET_VEHICLE_VARIABLE,
varID, veh
ID)
File "C:\Users\Hayder\src\sumo-0.22.0\tools\traci\__init__.py", line 273,
in _
sendReadOneStringCmd
return _checkResult(cmdID, varID, objID)
File "C:\Users\Hayder\src\sumo-0.22.0\tools\traci\__init__.py", line 297,
in _
checkResult
result = _sendExact()
File "C:\Users\Hayder\src\sumo-0.22.0\tools\traci\__init__.py", line 250,
in _
sendExact
raise TraCIException(prefix[1], _RESULTS[prefix[2]], err)
traci.TraCIException: Vehicle 'vehicle3' is not known
Please, your help and cooperation would be very appreciated.
Best regards,
Hayder
------------------------------------------------------------------------------
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user