I see thanks. Could there also be a maximum number of vehicles that leave (from different places) per time step? Because this is also happening in the first 200 steps or so when the network is still basically empty. Also, what I found strange is that in this case (and a number of others) the cars are actually leaving before the time set in the route file. So in the example I sent, the vehicle is supposed to leave at 4448 (defined in route file) but the subscription showed that it actually left at 4250.
Thanks once again Kara On 24 March 2014 08:12, Jakob Erdmann <[email protected]> wrote: > Hello, > most likely, the roads are congested. In this case vehicles are inserted > as soon as space on the road becomes available. The option > --max-depart-delay X can be used to discard vehicles which were not insered > after X seconds. > regards, > Jakob > > > 2014-03-23 18:02 GMT+01:00 Kara Micallef <[email protected]>: > >> Hi all, >> >> I'm using TraCI together with SUMO, and with subscriptions I'm able to >> monitor which cars leave at which time steps (and when they finish or get >> teleported). I.e I'm using this line of code to subscribe >> >> traci.simulation.subscribe((tc.VAR_LOADED_VEHICLES_IDS, >> tc.VAR_ARRIVED_VEHICLES_IDS, tc.VAR_TELEPORT_ENDING_VEHICLES_IDS)) >> >> and then >> >> print traci.simulation.getSubscriptionResults() >> >> to show the results. >> >> However it seems that cars are not leaving when they should. For example >> in >> the route file, vehicle '175385_175385_428' should leave at step 4448 >> >> <vehicle depart="4448" id="175385_175385_428" type="passenger_P_14_1"> >> <route edges="-132540067#1 -132540064#1 -207881868#3 -207881868#2 >> 60308928#0 60308930#0 -26658511 -8066530#14 -8066530#13 -8066530#12 >> -8066530#11 -8066530#10 -8066530#8 -8066530#7 -8066530#5 -8066530#4 >> -8066530#3 -8066530#2 -8196278 -203110166#2 -132618495#1 43458458#0 >> 43458458#2 205731719#0 132618497#0 205731718 132618675#0 >> 144444043#2-AddedOnRampEdge 144444043#2 132618439-AddedOnRampEdge >> 132618439 >> 4013059#0 31913777#0 31913777#0-AddedOffRampEdge 31913777#1 >> 31349090-AddedOnRampEdge 31349090 27939625 27939626 27939620 7869672#0 >> 7869672#0-AddedOffRampEdge 10526454#0 -47276797 10526453 >> 47276796-AddedOnRampEdge 47276796 23125366 23125366-AddedOffRampEdge >> 132622476 132622476-AddedOffRampEdge 132622449 132622409-AddedOnRampEdge >> 132622409 132622409-AddedOffRampEdge 132622403#1 26494501 >> 26494501-AddedOffRampEdge 22892833#0"/> >> </vehicle> >> >> , but this is printed: >> >> step 4250 >> {120: ['178101_178101_430'], 114: ['175385_175385_428', >> '176544_176544_429', '17 >> 7442_177442_429', '180366_180366_430', '182861_182861_431', >> '184976_184976_431', >> '188431_188431_433', '190517_190517_434', '195284_195284_436', >> '196366_196366_4 >> 36', '198554_198554_436', '201961_201961_438', '205101_205101_440', >> '174918_1749 >> 18_427'], 122: ['114282_114282_402', '149715_149715_417', >> '154990_154990_420', ' >> 144076_144076_416', '167748_167748_425', '186094_186094_432', >> '184469_184469_431 >> ', '155946_155946_420', '144913_144913_416', '159960_159960_421']} >> >> I am using a modified version of the route file of the TAPAS Cologne >> scenario (too large to send it) and the attached script. >> >> What do you think I might be doing wrong? >> >> Thanks for all your help and patience, >> Kara >> >> ------------------------------------------------------------------------------ >> 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 >> > > ------------------------------------------------------------------------------ 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
