Hi,

you may use traci.vehicle.getIDList() to get
a list containing the ids of all active vehicles currently in the 
simulation.

To remove a vehicle simply call traci.vehicle.remove('vehicle_id') and 
it's gone.

Best Marek
simoserv GmbH

On 08.10.2016 17:51, Rohit Tapikar wrote:
> Hello,
> I want to simulate a traffic scenario for which I need to remove vehicles
> from the traffic. For this I am using Traci but I dont know how to get the
> vehicle Ids and remove them.
> I have downloaded map from openstreetmap and have a route file which has
> the details of the vehicles.
>
> *Rohit Tapikar*
> ------------------------------------------------------------------------------
> 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

Reply via email to