[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-dev] [sumo-devel] Help
|
Dear all,
When I add this code to the Python script :
*import traci*
*traci.start(sumoCmd) *
*step = 0*
*while step < 1000:*
* traci.simulationStep()*
* if traci.vehicle.getRouteID("veh0")=="route0":*
* traci.vehicle.setRoute("veh0", ["44468929", "189216027",
"371230575", "167920445"])*
* step += 1*
*traci.close()*
*sys.stdout.flush()*
a traci fatal error is raising : *Traceback (most recent call last):*
* File "C:/Users/nassouf/Desktop/rouen.sumo/insaf_script.py", line 17, in
<module>*
* traci.simulationStep()*
* File "C:\sumo-0.30.0\tools\traci\__init__.py", line 109, in
simulationStep*
* responses = _connections[""].simulationStep(step)*
* File "C:\sumo-0.30.0\tools\traci\connection.py", line 280, in
simulationStep*
* result = self._sendExact()*
* File "C:\sumo-0.30.0\tools\traci\connection.py", line 102, in _sendExact*
* raise FatalTraCIError("connection closed by SUMO")*
*FatalTraCIError: connection closed by SUMO*
What is the problem ? Can you help me please ?
Thanks.
My Best Regards,
SAGAAMA Insaf.
2018-03-28 10:07 GMT+01:00 Sagaama Insaf <sagaama.insaf@xxxxxxxxx>:
> Ok, thanks.
>
> Le mer. 28 mars 2018 à 06:44, Jakob Erdmann <namdre.sumo@xxxxxxxxxxxxxx>
> a écrit :
>
>> the vehicle either has not yet been loaded or already left the simulation.
>>
>> 2018-03-27 23:37 GMT+02:00 Sagaama Insaf <sagaama.insaf@xxxxxxxxx>:
>>
>>> Dear all,
>>>
>>> When I add this code to the Python script : traci.vehicle.setRoute("down_567",
>>> ["52o", "2i", "1o", "51i"]); a traci exception is raising : *run*
>>> * traci.vehicle.setRoute("down_567", ["52o", "2i", "1o", "51i"])*
>>> * File "C:\sumo-0.30.0\tools\traci\_vehicle.py", line 815, in setRoute*
>>> * self._connection._sendExact()*
>>> * File "C:\sumo-0.30.0\tools\traci\connection.py", line 109, in
>>> _sendExact*
>>> * raise TraCIException(prefix[1], _RESULTS[prefix[2]], err)*
>>> *TraCIException: Vehicle 'down_567' is not known*
>>>
>>> What is the problem ? Can you help me please ?
>>>
>>> Thanks.
>>>
>>> My Best Regards,
>>> SAGAAMA Insaf.
>>>
>>> 2018-03-14 8:12 GMT+01:00 Jakob Erdmann <namdre.sumo@xxxxxxxxxxxxxx>:
>>>
>>>> traci.vehicle.setRoute(vehicleID, [edge1, edge2, ....])
>>>>
>>>> 2018-03-13 13:48 GMT+01:00 Sagaama Insaf <sagaama.insaf@xxxxxxxxx>:
>>>>
>>>>> Dear all,
>>>>> -I have developed a Route Planning Algorithms for Electric Car
>>>>> Navigation.
>>>>> How can update the route of each vehicle in SUMO ?
>>>>>
>>>>> --
>>>>>
>>>>> My B
>>>>> est regards,
>>>>> SAGAAMA Insaf.
>>>>>
>>>>> PhD student at CRISTAL Lab, RA
>>>>>
>>>>> MSIS Pole, ENSI- Tunisia.
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Bien Cordialement
>>> SAGAAMA Insaf.
>>>
>>> PhD student at CRISTAL Lab, RAMSIS Pole, ENSI- Tunisia.
>>>
>>
>>
--
Bien Cordialement
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