Mercurial Hosting > traffic-intelligence
diff python/extrapolation.py @ 270:05c9b0cb8202
updates for drawing
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Thu, 02 Aug 2012 05:35:57 -0400 |
parents | a9988971aac8 |
children |
line wrap: on
line diff
--- a/python/extrapolation.py Sun Jul 29 04:09:43 2012 -0400 +++ b/python/extrapolation.py Thu Aug 02 05:35:57 2012 -0400 @@ -30,8 +30,8 @@ def getPredictedSpeeds(self): return [so.norm for so in self.predictedSpeedOrientations.values()] - def draw(self, options = '', withOrigin = False, **kwargs): - self.getPredictedTrajectory().draw(options, withOrigin, **kwargs) + def draw(self, options = '', withOrigin = False, timeStep = 1, **kwargs): + self.getPredictedTrajectory().draw(options, withOrigin, timeStep, **kwargs) class ExtrapolatedTrajectoryConstant(ExtrapolatedTrajectory): '''Extrapolated trajectory at constant speed or acceleration