Jakob,

Thank you for the information. I have tried your method by using
vehicle.setVia(vehID,
stopEdgeID) followed by vehicle.changeTarget(vehID, stopEdgeID). However,
it didn't work. But your explanation inspires me.

I come up an alternative solution for this error.
Using traci.vehicle.setRoute(veh_id, route) to assign the route as I want.
The new route starts with the current edge (i.e. stop edge) and appends
with the new route I want (which includes the stop edge (i.e. current edge)
by traci.vehicle.changeTarget method ). And it finally works.

Hope this information helps others.

Best,

Lei

On Thu, Oct 12, 2017 at 2:51 PM, Jakob Erdmann <[email protected]>
wrote:

> Then the error message is correct in stating that "the stop is not
> downstream the current route". At this point you could
> either use a different stop or compute a route the cycles back to the
> start of the stop edge.
> For the latter case it should be sufficient to call vehicle.setVia(vehID,
> stopEdgeID) followed by vehicle.changeTarget(vehID, stopEdgeID)
> regards,
> Jakob
>
> 2017-10-12 17:56 GMT+02:00 Lei Zhu <[email protected]>:
>
>> Jakob,
>>
>> Thank you for the information. Let me answer all your questions.
>>
>> vehicle is already past the stop position?  On what edge and position is
>> the vehicle when sending the setBusStop command?
>> *Yes, the vehicle has already passed the stop position and still on the
>> same edge of the stop, when requests the stop.*
>>
>> In this circumstance, how should I do about it?
>>
>> Thanks,
>>
>> Lei
>>
>>
>> On Thu, Oct 12, 2017 at 1:42 AM, Jakob Erdmann <
>> [email protected]> wrote:
>>
>>> Hello,
>>> Potentially the vehicle is already past the stop position? On what edge
>>> and position is the vehicle when sending the setBusStop command?
>>> If the vehicle is upstream of the stop, please send in additional
>>> information as described here:
>>> http://sumo.dlr.de/wiki/FAQ#How_do_I_report_erroneous_behavi
>>> or_of_a_SUMO_application.3F
>>>
>>> regards,
>>> Jakob
>>>
>>> 2017-10-11 18:59 GMT+02:00 Lei Zhu via sumo-user <
>>> [email protected]>:
>>>
>>>> Hello,
>>>>
>>>> As checking the archived bugs. I did have a probelm when using
>>>> Traci.vehicle.setBusStop().
>>>>
>>>> traci.vehicle.changeTarget(veh_id, departure_stop_edge_id)
>>>> print veh_id, traci.vehicle.getRoute(veh_id)
>>>> traci.vehicle.setBusStop(veh_id, departure_stop_id, duration = 10)
>>>>
>>>> The error like this
>>>> traci.exceptions.TraCIException: Bus stop 'busstop7' for vehicle
>>>> 'AES_1' on
>>>> lane '1/2to2/2_0' is not downstream the current route.
>>>>
>>>> I have checked the route by "traci.vehicle.getRoute(veh_id)" which
>>>> liked
>>>> ['2/2to3/2', '3/2to4/2', '4/2to1/2', '1/2to2/2'], where edge "1/2to2/2"
>>>> is
>>>> within the route at index of 3.
>>>> It seems the conditions are all satisfied, but error is still there.
>>>> 1) the stop edge is part of the route.
>>>> 2) There is only one busstop assigned.
>>>> 3) No later stops.
>>>>
>>>> Thanks,
>>>>
>>>>
>>>> *Re: [sumo-user] Error: * is not downstream the current route.
>>>> <https://sourceforge.net/p/sumo/mailman/message/33133943/>*
>>>> From: Jakob Erdmann <namdre.sumo@go...> - 2014-12-10 07:35:54
>>>>
>>>> Hello,
>>>> the netcheck documentation was wrong and has been corrected.
>>>> As to the 'not downstream' error, it is triggered in either one of the
>>>> following cases
>>>> - the stop edge is not part of the route
>>>> - the stops do not appear in the same order as the edges in the route
>>>> - a later stop appears at an earlier position on the same edge as an
>>>> earlier stop
>>>> If you can rule out all of these cases, please send in your complete
>>>> input
>>>> files as it may be a bug
>>>> (seehttp://sumo.dlr.de/wiki/FAQ#How_do_I_report_Erroneous_be
>>>> havior_of_a_SUMO-Application.3F
>>>> )
>>>> regards,
>>>> Jakob
>>>> ------------------------------------------------------------
>>>> ------------------
>>>> 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
>>>> _______________________________________________
>>>> sumo-user mailing list
>>>> [email protected]
>>>> To change your delivery options, retrieve your password, or unsubscribe
>>>> from this list, visit
>>>> https://dev.eclipse.org/mailman/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

Reply via email to