예제 #1
0
파일: utils.py 프로젝트: st-le/bimanual
def SO3_distance(R0, R1):
    """
  Return distance between the given two rotation matrices in SO3 space.

  @type  R0: numpy.ndarray
  @param R0: Rotation matrix.
  @type  R1: numpy.ndarray
  @param R1: Rotation matrix.

  @rtype: float
  @return: Distance.
  """
    dR = lie.logvect(dot(R0.T, R1))
    return np.sqrt(dot(dR, dR))
예제 #2
0
def SO3Distance(R0, R1):  # bi-invariance
    return linalg.norm(lie.logvect(dot(R0.T, R1)))
예제 #3
0
파일: Utils.py 프로젝트: dinhhuy2109/NTU
def SO3Distance(R0, R1): # bi-invariance
    return linalg.norm(lie.logvect(dot(R0.T,R1)))
예제 #4
0
파일: Utils.py 프로젝트: Puttichai/TOPP-SO3
def SO3Distance(R0, R1): # bi-invariance
    return np.linalg.norm(Lie.logvect(np.dot(R0.T, R1)))