comparison python/tests/prediction.txt @ 289:e56c34c1ebac

refactored and commented functions (saving data is now outside of the computation functions)
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Tue, 29 Jan 2013 11:21:42 -0500
parents bbd9c09e6869
children e891a41c6c75
comparison
equal deleted inserted replaced
288:e0d41c7f53d4 289:e56c34c1ebac
21 >>> et = prediction.PredictedTrajectoryNormalAdaptation(moving.Point(0,0),moving.Point(1,1), acceleration, steering, maxSpeed = 2) 21 >>> et = prediction.PredictedTrajectoryNormalAdaptation(moving.Point(0,0),moving.Point(1,1), acceleration, steering, maxSpeed = 2)
22 >>> p = et.predictPosition(500) 22 >>> p = et.predictPosition(500)
23 >>> from numpy import max 23 >>> from numpy import max
24 >>> max(et.getPredictedSpeeds()) <= 2. 24 >>> max(et.getPredictedSpeeds()) <= 2.
25 True 25 True
26
27 >>> p = moving.Point(3,4)
28 >>> sp = prediction.SafetyPoint(p, 0.1, 0)
29 >>> print(sp)
30 3 4 0.1 0