Mercurial > hg > nsaunier > traffic-intelligence
diff python/tests/prediction.txt @ 614:5e09583275a4
Merged Nicolas/trafficintelligence into default
| author | Mohamed Gomaa <eng.m.gom3a@gmail.com> |
|---|---|
| date | Fri, 05 Dec 2014 12:13:53 -0500 |
| parents | e891a41c6c75 |
| children | 72174e66aba5 |
line wrap: on
line diff
--- a/python/tests/prediction.txt Thu Apr 18 15:29:33 2013 -0400 +++ b/python/tests/prediction.txt Fri Dec 05 12:13:53 2014 -0500 @@ -18,7 +18,7 @@ >>> import random >>> acceleration = lambda: random.uniform(-0.5,0.5) >>> steering = lambda: random.uniform(-0.1,0.1) ->>> et = prediction.PredictedTrajectoryNormalAdaptation(moving.Point(0,0),moving.Point(1,1), acceleration, steering, maxSpeed = 2) +>>> et = prediction.PredictedTrajectoryRandomControl(moving.Point(0,0),moving.Point(1,1), acceleration, steering, maxSpeed = 2) >>> p = et.predictPosition(500) >>> from numpy import max >>> max(et.getPredictedSpeeds()) <= 2.
