示例#1
0
def error(T1, T2):
    """Returns a 6D "difference vector" that describes how far T1 is from T2.
    More precisely, this is the Lie derivative (w,v)."""
    (R1, t1) = T1
    (R2, t2) = T2
    #concatenate lists
    return so3.error(R1, R2) + vectorops.sub(t1, t2)
示例#2
0
文件: se3.py 项目: krishauser/Klampt
def error(T1,T2):
    """Returns a 6D "difference vector" that describes how far T1 is from T2.
    More precisely, this is the Lie derivative (w,v)."""
    (R1,t1)=T1
    (R2,t2)=T2
    #concatenate lists
    return so3.error(R1,R2) + vectorops.sub(t1,t2)
示例#3
0
 def difference(self,a,b):
     w = so3.error(a,b)
     return so3.cross_product(w)
示例#4
0
 def distance(self,a,b):
     return vectorops.norm(so3.error(a,b))
示例#5
0
 def difference(self, a, b):
     w = so3.error(a, b)
     return so3.cross_product(w)
示例#6
0
 def distance(self, a, b):
     return vectorops.norm(so3.error(a, b))