I took a look at your code and it appears vehicles really do accelerate less than would be expected. The issue could be somewhat lessened if you would not continue sending slowDown commands after the first one (the time_accel value grows faster than the simulation time and thus the speed can never reach the target value. If you only send a single slowDown command the speed should be reached.
2017-06-17 5:05 GMT+02:00 Vaibhav Rungta <[email protected]>: > Hello Jakob, > As per your recommendation I created simulation with fewer vehicles and > plenty of road space. > - The vehicles were able to exceed speed limit. > > I even changed the color of vehicle after they reached certain speed as an > identifier. I guess this makes it clear that the vehicles can exceed speed > limit. > > However, the code (attached herewith) instructs the vehicle to reach the > speed of 20.4m/s from 5m/s in 15.4s (took the difference of speeds and > assigned the value in milliseconds to slowdown). The transition took 20 > time steps instead of expected 16 time steps (enough gap between the > vehicles). The desired acceleration was 1m/s^2 but vehicles never > accelerated at that rate. Can this be fixed? > > The simulation I am running the vehicles are not able to exceed the speed > limit. > - Is there a check on the extent to which vehicle can exceed the speed > limit when there is vehicle ahead of it? > - I also stored the speedfactor of the vehicle for every time step. Once > it's set to certain value it remains the same. > > I am of the notion (previously shared) that if space after of the vehicle > is more than safe distance, the vehicle should be able to travel as fast as > it can or is being asked using Traci commands. Please suggest. Thanks. > > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
