Hello,
this is more appropriate for sumo-devel...

- your car follow model appears to return negative speeds. This is what the
assertion complains about.
- MSLane::getFollowerOnConsecutive takes the speed of the ego vehicle
(which is the leader of those followers you are looking for)
- MSCFModel_Krauss.cpp::vsafe is used via inheritance

regards,
Jakob


2014-08-07 6:22 GMT+02:00 Mani Amoozadeh <[email protected]>:

>  In my new car-following model, sometimes SUMO throws this exception (when
> a car is very close to another car):
>
> ../../src/microsim/MSVehicle.h:1203:
> MSVehicle::DriveProcessItem::DriveProcessItem(double, double): Assertion
> `vWait >= 0' failed.
>
> What is vWait? Does my model violate something.
>
>
>
>
> - Mani
>
>
> On 08/03/2014 11:25 PM, Jakob Erdmann wrote:
>
>  Hello,
>  you need to adapt MSLane::planMovements to supply the follower vehicle in
> addition to the leader. If there is no follower on the current lane you can
> use MSLane::getFollowerOnConsecutive to find one.
> regards,
> Jakob
>
>
> 2014-08-04 2:35 GMT+02:00 Mani Amoozadeh <[email protected]>:
>
>>
>>    Hi,
>>    Following your "how to develop a new car-following model" [1]page, I
>> have
>>    developed two new car-following models so far, and everything is
>> working
>>    fine and as expected (Although, after the latest changes in SUMO code,
>>  it
>>    might need some updates. For example constant default parameters are
>> not in
>>    the header file any more, etc.).
>>    I want to implement a new car-following model that vehicles need data
>> from
>>    both  preceding  and following vehicles. The followSpeed method in the
>>    existing car-following models only provides information about the
>> preceding
>>    vehicle.
>>    followSpeed(const  MSVehicle* const veh, SUMOReal speed, SUMOReal gap,
>>    SUMOReal predSpeed, SUMOReal predMaxDecel)
>>    I was wondering whether there is a way that I could have access to the
>>    following vehicle data.
>>    What I have in mind is to iterate over all vehicles that are on the
>> same
>>    lane and fine the vehicle that is exactly before the current vehicle,
>> but I
>>    guess this is not an efficient way of doing this since my simulation
>> time
>>    step is 0.1s.
>>    I  would  appreciate  it if you give me a hint that I can do this more
>>    effectively in SUMO. Thanks!
>>    - Mani
>>
>> References
>>
>>    1. http://sumo-sim.org/wiki/Developer/How_To/Car-Following_Model
>>
>> ------------------------------------------------------------------------------
>> Infragistics Professional
>> Build stunning WinForms apps today!
>> Reboot your WinForms applications with our WinForms controls.
>> Build a bridge from your legacy apps to the future.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
>> _______________________________________________
>> sumo-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/sumo-user
>>
>
>
>
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
sumo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-devel

Reply via email to