Did I find the right examples for you? yes no

All Samples(9)  |  Call(6)  |  Derive(0)  |  Import(3)

src/q/u/QuadraTot-HEAD/code/Strategy.py   QuadraTot(Download)
import random
from copy import copy
from util import prettyVec, readArray, matInterp
 
class Strategy(object):
        self.counter += 1
 
        print 'returning', lambda time: matInterp(time, self.times, self.positions), ident
        return lambda time: matInterp(time, self.times, self.positions), ident
 
        self.counter += 1
 
        print 'returning', lambda time: matInterp(time, self.times, self.positions), ident
        return lambda time: matInterp(time, self.times, self.positions), ident
 

src/q/u/QuadraTot-HEAD/code/ExternalStrategy.py   QuadraTot(Download)
from RobotConstants import MIN_INNER, MAX_INNER, MIN_OUTER, MAX_OUTER, NORM_CENTER, MIN_CENTER, MAX_CENTER
from Strategy import Strategy, OneStepStrategy
from util import matInterp, prettyVec, writeArray
from SineModel import SineModel5
import subprocess as sp
 
        # return function of time
        return lambda time: matInterp(time, times, positions), thisIdentifier
 
 

src/q/u/QuadraTot-HEAD/code/filt2cmd.py   QuadraTot(Download)
from RobotConstants import *
from Motion import *
from util import matInterp, writeArray
 
 
    times = linspace(0,totalTime,positions.shape[0])
 
    origFn = lambda time: matInterp(time, times, positions)
 
    # interpolate the starting positions