Hi,

Just to check, I think I misunderstood your reply on first read.

I thought you meant, slowdown will cause the vehicle to modify its  
speed, to the requested value, over the period specified, and then  
remain at that value.

But, from the looks of it, after the time period specified, the  
vehicle resumes the max speed for that road?

I like the idea of the more gradual change of speed, but I thought the  
vehicle would then stay at that speed after the time period. The  
problem I see, is that the longer you specify the time, the more  
gradual the speed change. So, if you want a 10 second window of the  
vehicle going slowly, after 5 seconds you might only be at (initial  
speed - desired speed / 2).

But, I guess it depends what the idea behind this command is.

I think for me, I'll use it to change the speed smoothly over a  
shorter time window, then before than window finishes, use the 'speed'  
command to hold the vehicles speed at that value, and then speed(-1)  
to resume back to normal.

Regards,

Vincent

Quoting Jakob Erdmann <[email protected]>:

> Hello,
> there is quite a difference:
>
> speed(currentspeed - 10):
> slow down as fast as possible to reach currentspeed - 10. This can be
> instant depending on deceleration capability and speed mode.
> speed(-1) will indeed cause the vehicle to drive as fast as safely possible
> again.
>
> slowdown(currentspeed -10,10):
> The vehicle will slow down from the current speed to currentspeed - 10 over
> the course of 10 seconds. I noticed that the description in the wiki was
> misleading. It is fixed now:
> http://sumo-sim.org/wiki/TraCI/Change_Vehicle_State
>
> I can confirm that that both commands should not induce collisions using
> the default speed mode (if you notice collisions please let us know).
>
> regards,
> Jakob
>
>
>
> after 10s
> speed(-1)
>
>
> 2014/1/5 <[email protected]>
>
>> Hi,
>>
>> I'm looking at having an institution send an obligation to a vehicle
>> to reduce its speed for a little while, such that on approaching
>> traffic lights, rather than travelling at full speed up to the light
>> and coming to a stop if its red, the vehicle slows down in the
>> approach to the light, and the light has changed to green by the time
>> the vehicle arrives. Hopefully fuel consumption will look different
>> between those two approaches as well.
>>
>> Is there any difference internally, if we wish to reduce speed by say
>> 10ms for 10s, between calling:
>>
>> speed(currentspeed - 10)
>> after 10s
>> speed(-1)
>>
>> (from the docs, I assume -1 effectively puts speed control back to SUMO?)
>>
>> vs
>> slowdown(currentspeed -10,10)
>>
>> If I've understood correctly, both should produce the same effect? and
>> if speedmode is left as default, both are safe i.e. not likely to
>> (directly) induce a collision?
>>
>> Thanks
>>
>> Vincent
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Rapidly troubleshoot problems before they affect your business. Most IT
>> organizations don't have a clear picture of how application performance
>> affects their revenue. With AppDynamics, you get 100% visibility into your
>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
>> Pro!
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> sumo-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/sumo-user
>>




------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to