Mercurial > hg > nsaunier > traffic-intelligence
diff python/moving.py @ 268:0c0b92f621f6
reorganized to compute evasive action for multiple positions
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Sat, 28 Jul 2012 02:58:47 -0400 |
| parents | 8ab76b95ee72 |
| children | 05c9b0cb8202 |
line wrap: on
line diff
--- a/python/moving.py Fri Jul 27 20:32:14 2012 -0400 +++ b/python/moving.py Sat Jul 28 02:58:47 2012 -0400 @@ -544,6 +544,9 @@ def getVelocities(self): return self.velocities + def setFeatures(self, features): + self.features = [features[i] for i in self.featureNumbers] + def getSpeeds(self): return self.getVelocities().norm()
