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]>:

> 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]
> 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

Reply via email to