Mercurial Hosting > traffic-intelligence
diff python/prediction.py @ 665:15e244d2a1b5
corrected bug with circular import for VideoFilenameAddable, moved to base module
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 20 May 2015 13:57:47 +0200 |
parents | 72174e66aba5 |
children | 9a258687af4c |
line wrap: on
line diff
--- a/python/prediction.py Wed May 20 12:04:22 2015 +0200 +++ b/python/prediction.py Wed May 20 13:57:47 2015 +0200 @@ -2,12 +2,13 @@ '''Library for motion prediction methods''' import moving -import math -import random -import numpy as np from utils import LCSS -class PredictedTrajectory: +import math, random +import numpy as np + + +class PredictedTrajectory(object): '''Class for predicted trajectories with lazy evaluation if the predicted position has not been already computed, compute it @@ -294,7 +295,7 @@ return currentInstant, collisionPoints, crossingZones -class PredictionParameters: +class PredictionParameters(object): def __init__(self, name, maxSpeed): self.name = name self.maxSpeed = maxSpeed