Hi Dee, no sorry I am not an active Veins user, but I am forwarding it to the list maybe someone there can help.
Best regards, Michael Am 14.02.2018 um 02:45 schrieb Alan Dee: > Hi Michael, > > I agree. I can retrieve the id in the format you mentioned > using TraCIMobility::getExternalId(). But getParentModule()->getId() in > omnetpp simulator provides simulation objects in integers. I am > wondering what the relationship between sumo vehicle flow ids and those > ids given by omnetpp in Veins. I guess this question is bit off from > pure SUMO context, but I highly appreciate if you can provide an insight. > > On Wed, Feb 14, 2018 at 12:44 PM, Alan Dee <[email protected] > <mailto:[email protected]>> wrote: > > Thank you very much for the information Michael. > > On Tue, Feb 13, 2018 at 4:23 AM, Michael Behrisch <[email protected] > <mailto:[email protected]>> wrote: > > 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 > > <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 > > <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 > > [email protected] <mailto:[email protected]> > > To change your delivery options, retrieve your password, or > unsubscribe from this list, visit > > https://dev.eclipse.org/mailman/listinfo/sumo-user > <https://dev.eclipse.org/mailman/listinfo/sumo-user> > > > > > >
signature.asc
Description: OpenPGP digital signature
_______________________________________________ sumo-user mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
