setSpeed remains active until reset with setSpeed(vehID, -1). Note, that by
default, setSpeed only acts as an upper bound on speed because all the
safety feature are still active. See
https://sumo.dlr.de/docs/TraCI/Change_Vehicle_State.html#speed_mode_0xb3

Am Di., 15. Juni 2021 um 15:33 Uhr schrieb MohamadReza-Haghani <
[email protected]>:

> Hi,
>
> I was wondering to know whether the setSpeed command sets the speed equal
> to
> a value and makes sure that the speed is kept constant for the rest of the
> simulation. I used this command in my simulation:
>
> traci.vehicle.setSpeed(veh_id, traci.vehicle.getSpeed(veh_id) - 1)
>
> I also used an IF statement before it to make sure the command is performed
> just once. What I see in the simulation is that the speed of the vehicle is
> reduced and it is kept eqaul to the initial speed minus one until the end
> of
> the simulation. However, what I need is that the speed is reduced once and,
> in the continuation, is calculated based on the SUMO's car following model.
> I appreciate any help.
>
> Regards,
> Reza.
>
>
>
> --
> Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
> _______________________________________________
> 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