Hi Scott, Am 27.10.2014 um 19:54 schrieb Scott Carpenter: > I am trying to maintain a constant number of vehicles. Using TRaCI, when I > sense that a vehicle has arrived, I try to add the vehicle back to the same > route, but am getting Invalid route '!x' for vehicle 'x'.
The problem is that "internal" routes (which get an id starting with "!") are deleted when the vehicle arrives. So instead of writing <vehicle id="x" ...> <route edges= .../> </vehicle> in your route file you need to have: <route id="r_x" edges= .../> <vehicle id="x" route="r_x" .../> Then the route is valid after the vehicle has arrived and can be reused. Unfortunately you cannot force the sumo routers to generate output in this format. Best regards, Michael ------------------------------------------------------------------------------ _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
