Hey Jakob,

many thanks for the fast response. That would be a nice way if I can define
the vType for each vehicle, but my problem is, that I have thousands of
vehicle from the same model and with the same CFM and I don't know which is
leading and which is following.

So I thought, I define for each vehicle two max speeds (actual I make this
with one from the vType and one as a param in the CFM) and the vehicle
decided by self which max speed it should choose based on the return of: "
veh->getLeader()".
This works fine if max Speed for following mode is < max speed of vehicle
type, but bad if it is the other way round. Then it uses every time the max
speed from the vType (Dose SUMo checks on the other point also the vType
max speed and not only in the CFM?).

Thanks and kind regards,

Jonas

2017-08-20 10:57 GMT+02:00 Jakob Erdmann <namdre.s...@googlemail.com>:

> Hello,
> the maximum speed of a vehicle is defined in its vType. Each car may have
> its own vType so it's fairly simpled to customize maximum speeds and
> nothing in the car-following models needs to be changed for this. See
> http://sumo.dlr.de/wiki/Definition_of_Vehicles,_Vehicle_
> Types,_and_Routes#Vehicle_Types
> Since heterogeneous speeds are an important aspect of traffic, speed
> distributions are supported even without defining multiple types:
> http://sumo.dlr.de/wiki/Definition_of_Vehicles,_Vehicle_
> Types,_and_Routes#Speed_Distributions
> regards,
> Jakob
>
> 2017-08-20 9:57 GMT+02:00 Jonas Oltrogge via sumo-devel <
> sumo-devel@lists.sourceforge.net>:
>
>> Hello guys,
>>
>> if have a problem with the car following models in sumo and their methods.
>> I want to expand an existing model by the functionality that the leading
>> car has a slower speed max than the following.
>> The implementation of an extra parameter for the CFM I managed, also
>> rewriting the method: maxNextSpeed of the CFM and changed the max Speed to
>> my parameter.
>>
>> With that change it is possible that the following car drives with a
>> slower
>> speed if it is the following vehicle, but if I try that the following car
>> should drive faster than the leading (if the gap and save speed allow
>> this), it would drive just the original max speed and not the speed from
>> my
>> parameter.
>>
>> Do someone have an idea where also a check for the vehicle max speed is
>> done or how I can solve this issue?
>>
>> Best and many thanks,
>>
>> Jonas
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> sumo-devel mailing list
>> sumo-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/sumo-devel
>>
>
>


-- 
Liverpooler Str. 18
13349 Berlin

0174/ 176 29 50
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-devel mailing list
sumo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-devel

Reply via email to