Hello, I'm pretty new in sumo and I'm working on it for my master thesis. I implemented a python script with the goal to avoid overlapping of several cars after crashes have occurred. In order to reach this I want to use getMinGap to detect the distance from the ahead vehicle, as suggested in the definition of getMinGap (Returns the offset of this vehicle). At this point I would like to stick the two vehicles together exploiting the setMinGap (Sets the offset for this vehicle). My problems are: - getMinGap returns me the minGap defined in the file.route.xml (always 0) and not the current distance from the vehicle ahead. - setMinGap does not move the car at all.
Am I wrongly understanding the meaning of these two commands, or do they not properly work? (I'm using sumo 0.29 and python 2.7). I hope to hearing from you soon. Francesco Sicuro. ------------------------------------------------------------------------------ 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
