Hello, when calling changeTarget and the requested edge is unreachable, the simulation should signal an error but not crash. The client will raise an exception but this can be caught and handled (i.e. by trying another target edge). Which client are you using? What version of SUMO are you using? What is the except error output you are getting from SUMO and from your client program? regards, Jakob
2017-07-24 17:48 GMT+02:00 Johann van Eeden via sumo-user < [email protected]>: > Hello all, > > So I'm trying to build a simulation of a Uber like system. For now I'm > trying to fire events that will eventually be people asking for a Uber. > Currently these are just events that are fired in my controller and selects > a random edge in the network. A applicable vehicle then gets rerouted to > that edge as if to going to pick the passenger. > > My problem is that when choosing a random edge, for some of them the > simulation crashes. My theory is that there might not be a route or > something to the specified edge. So I'm looking for some advice on how to > solve this problem or maybe someone has a better way of doing what I am > trying to accomplish. Maybe I'm going about it the wrong way - SUMO > beginner here. > > Thanks > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
