Thanks!
On Mon, Sep 7, 2020 at 4:13 PM Jakob Erdmann <[email protected]> wrote: > > The easier way to perform this filtering is to call > duarouter -r trips.xml --ignore-route-errors --write-trips -o valid.trips.xml > and then only use valid.trips.xml in the simulation. > > Am Mo., 7. Sept. 2020 um 15:06 Uhr schrieb Richard Tasgal <[email protected]>: >> >> It might be helpful for me (for comparisons across a more diverse set >> of road networks) to be able to ignore a route that has an erroneous >> (non-existent) starting or ending edge. No current way to do it when >> using a route file? I hope I'm not wasting my time trying to put in >> the trips using traci.vehicle.add() and trapping errors in python with >> try: except: on that command. >> >> Rich Tasgal >> >> On Mon, Sep 7, 2020 at 3:21 PM Jakob Erdmann <[email protected]> wrote: >> > >> > It would help if you posted the error message (using option --log may make >> > it easier to find the error). The message should at least tell you which >> > vehicle / origin-destination is causing the problem. >> > There are only a few types of errors that cannot be ignored with >> > --ignore-route-errors (i.e. the starting edge is unknown or has no >> > permissible lane for the vehicle). >> > For investigating connectivity, see >> > https://sumo.dlr.de/docs/sumo-gui.html#check_connected_components (use >> > this on the from-edge). >> > >> > Am Mo., 7. Sept. 2020 um 13:47 Uhr schrieb Richard Tasgal >> > <[email protected]>: >> >> >> >> I'm trying to simulate identical traffic -- trips with the same start and >> >> end points, and scheduled to leave at the same time -- across multiple >> >> road networks. The road networks are supposed to have identical edges, >> >> but the intersections differ from network to network. Every edge should >> >> be reachable from every edge, though in some cases the routes may be >> >> roundabout due to restrictions on allowed turns, and I'm not sure if the >> >> routing algorithm does a complete enough search to always find a valid >> >> route. >> >> >> >> I'm currently generating the sets of trips using randomTrips.py with one >> >> of the network files, and I use the same trips file (start and end edges, >> >> not middle) with all of the different network files. Although if I did >> >> everything correctly, the trips should be viable for all the different >> >> networks, and most trips are OK in all the different networks; but >> >> contrary to my expectation, the simulation often stops because it can't >> >> find a path between one edge and another edge. >> >> >> >> I am using the option --ignore-route-errors which I thought would have >> >> let the simulation skip trips that it can't find a route for. However, >> >> it's still happening and the whole simulations are stopping. I'm using >> >> TraCI to run each step, but I'm not putting in the trips that way, rather >> >> I'm using a route file. >> >> >> >> I thought about trapping the error in python (try except), but I don't >> >> see how to do this using a route file. All I can think of is something >> >> that would take considerably more work: obtaining the list of all edges, >> >> and choosing start and end points and departure times), adding the trips >> >> by using traci.vehicle.add(), and using try: except: on the >> >> traci.vehicle.add(). This seems (guessing) like more work than necessary, >> >> like I'm overlooking a better solution. >> >> >> >> Any ideas about where I might be going wrong, so I can make corrections >> >> more easily? >> >> >> >> Rich Tasgal >> >> >> >> >> >> >> >> _______________________________________________ >> >> 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 _______________________________________________ sumo-user mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
