Dependent on your application, a solution could be to check the 
feasibility (edge by edge, as Jakob explained) of the entire route a 
priori (or before you pass it to Traci), in order to make sure all 
current vehicles actually reach their destination edge/lane.

By the way, I had problems with duarouter in the past, giving me 
infeasible solution, so I use an external router that gives me only 
feasible routes.

Joerg



On 23/06/16 12:06, Luca Bedogni wrote:
> The vehicle is allowed to get there, it is just that the road is not
> feasible since there is no route to that edge. Handling the error would
> be fine, but the problem is that traci is shut down after the error, so
> I cannot handle it.
>
> Luca
>
> Luca Bedogni
> PHD Student in Computer Science
> Department of Computer Science
> University of Bologna, Italy
> http://lbedogni.web.cs.unibo.it
>
> On 06/23/2016 12:06 PM, Jakob Erdmann wrote:
>> you could use the edge function to retrieve allowed vehicle classes
>> (0x34) and check against the class of your vehicle (by default
>> 'passenger'). Also, you could just handle the reported error and pick
>> another edge.
>>
>> 2016-06-23 11:07 GMT+02:00 Luca Bedogni <[email protected]
>> <mailto:[email protected]>>:
>>
>>      Hi, I need to reroute some vehicles upon they arrive at their
>>      destination, to a nearby edge. However, not all the routes are
>>      feasible,
>>      and when I try to change it traci reports an error on some of these
>>      roads. I have checked whether it exist a function to check if a
>>      road is
>>      feasbile before actually changing it, but I had no luck. Has anyone a
>>      clue on how to solve this?
>>
>>      Thank you in advance
>>      Luca
>>
>>      --
>>      Luca Bedogni
>>      PHD Student in Computer Science
>>      Department of Computer Science
>>      University of Bologna, Italy
>>      http://lbedogni.web.cs.unibo.it
>>
>>
>>      
>> ------------------------------------------------------------------------------
>>      Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park
>>      in San
>>      Francisco, CA to explore cutting-edge tech and listen to tech
>>      luminaries
>>      present their vision of the future. This family event has
>>      something for
>>      everyone, including kids. Get more information and register today.
>>      http://sdm.link/attshape
>>      _______________________________________________
>>      sumo-user mailing list
>>      [email protected]
>>      <mailto:[email protected]>
>>      https://lists.sourceforge.net/lists/listinfo/sumo-user
>>
>>
>
> ------------------------------------------------------------------------------
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>


-- 
Joerg Schweizer
University of Bologna
DICAM - Transportation Group
Viale Risorgimento, 2, I-40136 Bologna, Italy
Tel: +39 051 209 3338, Fax: +39 051 209 3337

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to