Example #1
0
 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]
Example #2
0
 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
     ]