def __init__(self, dualquats, weights): if not _imp_dq: raise RuntimeError("No dq3d python package, deformable kinematic model not available.") super(DeformableKinematicModel, self).__init__() self.weights = weights self.dualquats = dualquats self.trans = [op.dlb(w[1], [self.dualquats[i] for i in w[0]]) for w in self.weights]
def __init__(self, dualquats, weights): super(DeformableKinematicModel, self).__init__() self.weights = weights self.dualquats = dualquats self.trans = [ op.dlb(w[1], [self.dualquats[i] for i in w[0]]) for w in self.weights ]