Hello, to get the vehicles that entered the simulation network you need to subscribe to VAR_DEPARTED_VEHICLE_IDS. However, there really does seem to be a bug with VAR_LOADED_VEHICLE_IDS. It should list vehicles that were loaded from a route file but doesn't list any. Thanks for bringing this to my attention. regards, Jakob
2014-03-24 14:21 GMT+01:00 Kara Micallef <[email protected]>: > Hi, > > I'm trying to find a smaller route file where this is still occurring (as > specified in the FAQ for reporting a bug), and I'm starting to suspect that > the problem is somewhere in my subscriptions as I'm getting vehicles that > end the simulation but appear to never have started it. > > I'm subscribing for results using: > > traci.simulation.subscribe((tc.VAR_LOADED_VEHICLES_IDS, > tc.VAR_ARRIVED_VEHICLES_IDS, tc.VAR_TELEPORT_ENDING_VEHICLES_IDS)) > #corresponding integers (114, 122, 120) > > and got the results found in testresults.txt. > > If I understood subscriptions properly, the values following 114: should > be the vehicle IDs that entered the simulation in that time step and those > following 122: are the ones that completed the journey. However from all > the vehicles that should have left by step 100, none of them appear in 114 > and 4 appear in 122. > > I also attached the config file, route file and python script I'm using. > The rest of the files are untouched from the TAPAS Cologne scenario. > > I've tried this using both sumo 19 and 20 (On windows 7 64-bit) > > Did I misunderstand subscriptions or am I using them in the wrong way? > > Thanks > > (P.S. sorry if I sent this twice by mistake. I got an email saying it > bounced due to the route file size and link would not allow me to cancel it) > > > On 24 March 2014 12:22, Kara Micallef <[email protected]> wrote: > >> Hi, >> >> I'm trying to find a smaller route file where this is still occurring (as >> specified in the FAQ for reporting a bug), and I'm starting to suspect that >> the problem is somewhere in my subscriptions as I'm getting vehicles that >> end the simulation but appear to never have started it. >> >> I'm subscribing for results using: >> >> traci.simulation.subscribe((tc.VAR_LOADED_VEHICLES_IDS, >> tc.VAR_ARRIVED_VEHICLES_IDS, tc.VAR_TELEPORT_ENDING_VEHICLES_IDS)) >> #corresponding integers (114, 122, 120) >> >> and got the results found in testresults.txt. >> >> If I understood subscriptions properly, the values following 114: should >> be the vehicle IDs that entered the simulation in that time step and those >> following 122: are the ones that completed the journey. However from all >> the vehicles that should have left by step 100, none of them appear in 114 >> and 4 appear in 122. >> >> I also attached the config file, route file and python script I'm using. >> The rest of the files are untouched from the TAPAS Cologne scenario. >> >> I've tried this using both sumo 19 and 20 (On windows 7 64-bit) >> >> Did I misunderstand subscriptions or am I using them in the wrong way? >> >> Thanks >> > > ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
