def __init__(self, trajectoryQueue, sync, stop):
     self.leastSquare = LeastSquareFilter(5)
     self.mousepointer = MousepointerSimulator(None)
     LearningThread.__init__(self, trajectoryQueue, sync, stop)
     
     self.pygame = pygame.init()
     info = pygame.display.Info()
     displayX = info.current_w
     displayY = info.current_h
     scalingX = displayX/400;
     scalingY = displayY/300;
     self.interpolator = Interpolator(scalingX,scalingY)
Ejemplo n.º 2
0
 def __init__(self, trajectoryQueue, sync, stop, dumpTrajectories):
     self.trajectoryFinder = FindCorrespondingTrajectories(8, False)
     self.dumpTrajectories = dumpTrajectories
     self.filePath = 'trajectories.csv'
     ''' use adacious as example application
         make artificial circle trajectories. Debug purpose only'''
     if platform == 'linux' or platform == 'linux2':
         self.audacious = Audacious()
         self.keystroke = KeystrokeSimulator()
     #self.__getDebugCircleData()
     self.__setTrajectoryData()
     LearningThread.__init__(self, trajectoryQueue, sync, stop)
Ejemplo n.º 3
0
 def __init__(self, trajectoryQueue, sync, stop, dumpTrajectories):
     self.trajectoryFinder = FindCorrespondingTrajectories(8,False)
     self.dumpTrajectories = dumpTrajectories
     self.filePath = 'trajectories.csv'
     
     ''' use adacious as example application
         make artificial circle trajectories. Debug purpose only'''
     if platform == 'linux' or platform == 'linux2':
         self.audacious = Audacious()
         self.keystroke = KeystrokeSimulator()
     #self.__getDebugCircleData()
     self.__setTrajectoryData()
     LearningThread.__init__(self, trajectoryQueue, sync, stop)