Hi Dee,
there is no way to achieve this with a route file because sumo does not
load all vehicle definitions in advance but only when they are needed.
If you give the vehicle definitions in an additional file instead, all
will be parsed in advance but only if you define inidvidual vehicles not
with flows. If you define your flow with an explicit number of vehicles
it is of course easy to guess the vehicle ids because they all follow
the same scheme <flow_id>.<running_index>.

To retrieve the ids of all loaded vehicles you can use
traci.simulation.getLoadedIDList
http://www.sumo.dlr.de/daily/pydoc/traci._simulation.html#SimulationDomain-getLoadedIDList
but this will not include finished vehicles.

Best regards,
Michael

Am 11.02.2018 um 22:37 schrieb Alan Dee:
> Hello,
> 
> I have needed to get all the id's of vehicles (currently running in the
> simulation, already left the simulation and entering into the
> simulation) via TraCI to work with Veins.  getIDList
> <http://www.sumo.dlr.de/daily/pydoc/traci._vehicle.html#VehicleDomain-getIDList>
>  is
> supposed to provide the id's of currently running vehicles. For an
> example, if I a flow with 100 vehicles has been determined to be entered
> into simulation and only 40 vehicles have entered into the simulation
> yet , I need to all the ids' including the other 60 vehicles'. Is there
> a method to retrieve them? Please enlighten me in this.
> 
> Thanks,
> Dee.
> 
> 
> _______________________________________________
> sumo-user mailing list
> sumo-user@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe from 
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/sumo-user
> 


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

Reply via email to