diff python/prediction.py @ 928:063d1267585d

work in progress
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 12 Jul 2017 01:24:31 -0400
parents 40994bb43148
children b67a784beb69
line wrap: on
line diff
--- a/python/prediction.py	Tue Jul 11 17:56:23 2017 -0400
+++ b/python/prediction.py	Wed Jul 12 01:24:31 2017 -0400
@@ -51,7 +51,7 @@
     def getControl(self):
         return self.control
         
-def findNearestParams(initialPosition,prototypeTrajectory):
+def findNearestParams(initialPosition, prototypeTrajectory):
     ''' nearest parameters are the index of minDistance and the orientation  '''
     distances=[]
     for position in prototypeTrajectory.positions:
@@ -71,7 +71,7 @@
     (applying a constant ratio equal 
     to the ratio of the user instantaneous speed and the trajectory closest speed)'''
 
-    def __init__(self, initialPosition, initialVelocity, prototypeTrajectory, constantSpeed = True, probability = 1.):
+    def __init__(self, initialPosition, initialVelocity, prototypeTrajectory, constantSpeed = False, probability = 1.):
         self.prototypeTrajectory = prototypeTrajectory
         self.constantSpeed = constantSpeed
         self.probability = probability