Hello, since insertions are only performed if they are deemed safe under all circumstances, an insertion speed of zero means that the following traffic needs to have sufficient space to come to a complete stop as well (when starting to brake in the next simulation step). If you find that an even larger gap is required, it might point to a bug in the insertion code and should be investigated. However, in your case it sounds as if you would be better of by simply deactivating the 'telepor-after-collision' behavior. This is something we would like to make configurable eventually anyway (see http://sumo-sim.org/trac.wsgi/ticket/1102) Until this is implemented you may comment out some lines in MSLane.cpp. I think 699-702 should be enough. regards, Jakob
2014-07-13 23:05 GMT+02:00 <[email protected]>: > > Hi, > > To simulate a crashed vehicle holding up a lane, when I catch a > teleported vehicle, I re-insert it at its previous position, with a > small route and zero speed. > > I've set up a dedicated vehicle type for this, mainly so that I can > show it in a unique colour, but it does mean I can play with vehicle > parameters too. > > The problem I have, is that I think the 'safe distance' metric might > be kicking in but in a more extreme way than usual? For some reason I > seem to need about 9 to 10 seconds gap between vehicles, compared to > inserting vehicles into the road network normally which is around 2-3 > seconds gap. > > I've tried changing minGap in case this made a difference, but doesn't > seem to. The only unique thing I can think of is that I insert the > 'crashed' vehicle back with a speed of 0. > > The weirder thing, is that if the gap is approx 8 seconds, it seems > insufficient, and so a number of vehicles go past the location I wish > to re-insert the crashed vehicle, but then all of a sudden it will > insert, maybe 2-3 seconds ahead of another vehicle. > > I'm a bit stuck, the only workaround I have at the moment is to make > sure there is a large gap behind any vehicle that is likely to crash, > so that it can be inserted, which isn't so realistic. > > Thanks > > Vincent > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck® Code Sight™ - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
