Hi Jakob,

I've tried a few options, and not had much luck. So, I commented out  
lines 699-702, and on the vehicle collision, the sim freezes. Also  
tried a few variations of commenting out some additional content, with  
same result.

But, thats not so bad for me, because I use the teleport from traci as  
the trigger to tell an agent its crashed. Without the teleport I'd  
have to think of some alternative.

The other problem, is I still don't have much luck getting a quick  
re-insert, I seem to need a gap of about 10 seconds. I guess, its not  
totally unreasonable, a motorway vehicle travelling at normal speed,  
for braking distance to a stationary vehicle. But, would none of the  
vehicle parameters affect this? I tried reducing minGap to very small,  
didn't make much difference.

If theres no easy option, no problem, I'll just work the scenario  
around having larger vehicle gaps.

Thanks

Vincent

Quoting Jakob Erdmann <[email protected]>:

> 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

Reply via email to