Dear Jacob,

Thank you for your response.
I increased the default acceleration of the ego vehicle from default 2.6
m/s^2, hence you can see values like 20 m/s^2. Following is an extract of
logic I am using -

if <some condition>:
# this condition basically checks if distance between pedestrian and ego
vehicle is below some threshold limit
traci.vehicle.slowDown(ego_veh_id, 0.0, 15.0)
traci.vehicle.setSignal(ego_veh_id, 3) # set signal for emergency braking
else:
traci.vehicle.setSpeed(ego_veh_id, -1) # giving control of ego vehicle back
to SUMO, hence setting speed as -1

Could you please advise if I am making any mistake?

Thank you.

Sincerely,
Ishan Dindorkar



On Wed, Jun 17, 2020 at 1:38 AM Jakob Erdmann <[email protected]> wrote:

> Since one of your time steps shows an acceleration of 20m/s^2 I'm guessing
> that other traci commands are in play that override the speed timeline. By
> default vehicle acceleration is limited to 2.6m/s^2
>
> Am Di., 16. Juni 2020 um 16:47 Uhr schrieb Ishan Dindorkar <
> [email protected]>:
>
>> Dear Jacob,
>>
>> Thank you for your response.
>> I created a document that shows how I am using slowDown() method and also
>> included screenshots of change in velocity.
>> Please find attached the same.
>>
>> Sincerely,
>> Ishan Dindorkar
>>
>> On Tue, Jun 16, 2020 at 12:29 PM Jakob Erdmann <[email protected]>
>> wrote:
>>
>>> please describe the exact arguments passed to slowDown and the sequence
>>> of speeds you observed in successive time steps over the given time span.
>>>
>>> Am Di., 16. Juni 2020 um 07:42 Uhr schrieb Ishan Dindorkar <
>>> [email protected]>:
>>>
>>>> Dear Community,
>>>>
>>>> I had been exploring the use of slowDown() while using traci API to
>>>> control the simulation. The description of the method says -
>>>>
>>>> "Changes the speed smoothly to the given value over the given amount
>>>> of time in seconds (can also be used to increase speed)."
>>>>
>>>> While using the method, I observed that speed is not consistently
>>>> reducing. During some timesteps, I saw speed is also increased after
>>>> issuing the slowDown command. Is it expected behaviour? My goal is to bring
>>>> the vehicle to complete halt.
>>>> Please advise.
>>>>
>>>> Thank you
>>>>
>>>> Sincerely,
>>>> Ishan Dindorkar
>>>> _______________________________________________
>>>> sumo-user mailing list
>>>> [email protected]
>>>> To unsubscribe from this list, visit
>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>
>>> _______________________________________________
>>> sumo-user mailing list
>>> [email protected]
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> _______________________________________________
>> sumo-user mailing list
>> [email protected]
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to