Hi Mirko,

I am using my own control algorithm for this purpose. Currently i am just
specifying a number that coincides with the length of the road but it does
reach the intended density when i introduce the ego vehicle. Is there a way
to force the ego vehicle to enter the simulation only once the density is
reached through the route file?

Thank you.

On Thu, 26 Oct 2023, 16:30 Mirko Barthauer, <[email protected]> wrote:

> Hi Camillo,
>
>
>
> can you please say which car-following model you use? We had some issues
> (see here <https://github.com/eclipse-sumo/sumo/pull/13755>) with ACC
> recently which could impact your task.
>
>
>
> Best regards
>
> Mirko
>
>
>
>
>
>
>
>
>
> -----Original-Nachricht-----
>
> Betreff: Re: [sumo-user] How to set fixed time gaps between vehicles?
>
> Datum: 2023-10-26T14:57:50+0200
>
> Von: "Camillo S" <[email protected]>
>
> An: "Mirko Barthauer" <[email protected]>
>
>
>
>
>
>
> Hi Mirko,
>
> thanks for these tips. I am actually still not able to solve this problem.
> Firstly I am using a custom model and i only have one lane. I tried your
> approach but i think because i am using a custom model it does not consider
> this tau value in the calculation. My requirement is to ensure there are
> 80veh/km in a 5km straight road stretch and i would like to have the scene
> achieved the moment the ego vehicle is introduced in the scenario so that
> it can experience this density. Can this be done without Traci?
>
> Thank you.
>
> Best regards,
> Camillo
>
> On Tue, 17 Oct 2023 at 10:06, Mirko Barthauer <[email protected]>
> wrote:
>
>> Hi Camillo,
>>
>>
>>
>> tau is a car-following model parameter which defines the time gap between
>> the vehicles and can be defined in the vehicle type definition inside the
>> route file (see docs
>> <https://sumo.dlr.de/docs/Definition_of_Vehicles%2C_Vehicle_Types%2C_and_Routes.html#car-following_model_parameters>).
>> So basically you define a vehicle type like this:
>>
>>
>>
>> *<vType id="myType" tau="1" />*
>>
>>
>>
>> At tau = 1s the distance to the leading vehicle when driving at 7.885m/s
>> is 7.885m (no rocket math here ;-)). Obviously I have left out all the
>> other possible vehicle type attributes you can find in the documentation.
>> The vehicle type can be referenced by its ID in the flow using the type
>> attribute.
>>
>>
>>
>> Best regards
>>
>> Mirko
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> -----Original-Nachricht-----
>>
>> Betreff: Re: [sumo-user] How to set fixed time gaps between vehicles?
>>
>> Datum: 2023-10-16T21:18:07+0200
>>
>> Von: "Camillo S" <[email protected]>
>>
>> An: "Mirko Barthauer" <[email protected]>
>>
>>
>>
>>
>>
>>
>> Hi Mirko,
>> Thank you for the link. I tried the solution and understood the way to
>> define the constant density but I am not sure I understood how to define
>> the fixed time gap/spacing between the vehicles..I can't really understand
>> what the sentence below means and how to change the tau value. Thanks.
>>
>>    - at a default value of tau=1 (desired time headway excluding minGap)
>>    this means vehicles will be in a stationary state at 7.885m/s
>>
>>
>> On Mon, 16 Oct 2023 at 18:01, Mirko Barthauer <[email protected]>
>> wrote:
>>
>>> Hi Camillo,
>>>
>>>
>>>
>>> please read carefully the FAQ entry
>>> <https://sumo.dlr.de/docs/FAQ.html#how_do_i_insert_vehicles_with_a_fixed_density>
>>> about constant density and get back if you have more questions.
>>>
>>>
>>>
>>> Best regards
>>>
>>> Mirko
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> -----Original-Nachricht-----
>>>
>>> Betreff: [sumo-user] How to set fixed time gaps between vehicles?
>>>
>>> Datum: 2023-10-16T17:36:59+0200
>>>
>>> Von: "Camillo S via sumo-user" <[email protected]>
>>>
>>> An: "[email protected]" <[email protected]>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Hi all,
>>>
>>> I would like to fix the movement of the vehicles with a fixed time gap
>>> between them so that they will move in a platoon like manner. I tried to
>>> find the solution in the documentation to adjust the flow information but I
>>> am not able to understand how to do this correctly. I would like to have a
>>> density of 80 vehicles/km with a time gap of 2 seconds between the
>>> vehicles. Can this be defined in the route file itself? Thank you.
>>>
>>> Best,
>>> Camillo
>>>
>>>
>>>
>>
>>
>
> 
>
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to