Hi Scott, > Is a sample TRaCI script available that shows how to detect a vehicle > reaching the end of its route, getting the route id, and inserting a new > vehicle on the route at pos 0?
no, this is not covered by our tutorials. But the basic workflow should be: 1) subscribe to the departed and arrived vehicle events using traci.simulation.subscribe. 2) Retrieve and store the route for every departed vehicle (traci.vehicle.getRouteID()). 3) On arrival of a vehicle add a new one using traci.vehicle.add with the dta from above. Best regards, Michael PS: Please keep the list posted ------------------------------------------------------------------------------ _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
