Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Issue with RandomTrips.py --edge-permission

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.

Back to the top