You are generating the random routes with a distribution that includes
passenger cars as well as motorcycles. In your next step your are using the
motorcycle routes (which are not always usable by cars) with the same type
distribution. Whenever a car happens to receive such a
motorcycle-only-route, the error occurs.
Either make sure that passenger cars and motorcycles can use all the same
edges or separate the process for both vehicle classes.

Am Mo., 25. Apr. 2022 um 15:20 Uhr schrieb Alejandro Rodríguez Sánchez <
[email protected]>:

> Hi Jakob,
> Here are attached the input files and the options I use for both
> randomTrips and RouteSampler. I've realized that the edge with permission
> issues is not always the ending one, but the route uses edges which doesn't
> allow passenger cars to arrive into an edge which allows passenger cars. Is
> there an option -like the --edge-permissions one- that removes routes
> containing edges with restricted permissions?
>
> Cheers.
>
> El vie, 22 abr 2022 a las 14:36, Jakob Erdmann (<[email protected]>)
> escribió:
>
>> Please provide minimal input files and options for reproducing the
>> problem.
>>
>> Am Fr., 22. Apr. 2022 um 12:56 Uhr schrieb Alejandro Rodríguez Sánchez <
>> [email protected]>:
>>
>>> Hi,
>>>
>>> I have recently started to use SUMO and I have noticed that I can't
>>> achieve that randomTrips.py  consider --edge-permission option when
>>> determining routes. For example, when I use
>>> python3 $SUMO_HOME/tools/randomTrips.py -n sumonetwork.net.xml -r
>>> RandomRoutes.rou.xml --trip-attributes="departLane=\"best\"
>>> departSpeed=\"max\" departPos=\"last\" type=\"vTypeDist\""
>>> --additional-file cars.add.xml --edge-permission passenger --prefix veh
>>> --validate
>>>
>>> and use the output RandomRoutes.rou.xml as input for routeSampler.py,
>>> the simulation raises the following error: *Error: Vehicle 'veh0_43'
>>> has no valid route. No connection between edge '186641570#4' and edge
>>> '135567550#0*' and I have seen that is because the destination edge
>>> does not allow "passenger" vType.
>>> vTypeDist is defined in cars.add.xml file.
>>>
>>> This error persists when using both --edge-permission
>>> passenger --vehicle-class passenger in randomTrips.py.
>>> If I am doing something wrong I would appreciate it if you can help me.
>>>
>>> Thanks.
>>> _______________________________________________
>>> sumo-user mailing list
>>> [email protected]
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> _______________________________________________
>> sumo-user mailing list
>> [email protected]
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to