MCPcopy Create free account
hub / github.com/ActiveVisionLab/DFNet / qlog

Function qlog

dataset_loaders/cambridge_scenes.py:21–31  ·  view source on GitHub ↗

Applies logarithm map to q :param q: (4,) :return: (3,)

(q)

Source from the content-addressed store, hash-verified

19
20## NUMPY
21def qlog(q):
22 """
23 Applies logarithm map to q
24 :param q: (4,)
25 :return: (3,)
26 """
27 if all(q[1:] == 0):
28 q = np.zeros(3)
29 else:
30 q = np.arccos(q[0]) * q[1:] / np.linalg.norm(q[1:])
31 return q
32
33def process_poses_rotmat(poses_in, rot_mat):
34 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected