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
