MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / rot6d_to_quaternion

Function rot6d_to_quaternion

motion_rep/rotation_transform.py:112–120  ·  view source on GitHub ↗

Convert 6d rotation representation to 4d quaternion. Shape: - Input: :Torch:`(N, 4)` - Output: :Torch:`(N, 6)`

(rot6d)

Source from the content-addressed store, hash-verified

110 return axis_angle_to_rot6d(quaternion_to_axis_angle(quaternion))
111
112def rot6d_to_quaternion(rot6d):
113 """
114 Convert 6d rotation representation to 4d quaternion.
115 Shape:
116 - Input: :Torch:`(N, 4)`
117 - Output: :Torch:`(N, 6)`
118 """
119
120 return axis_angle_to_quaternion(rot6d_to_axis_angle(rot6d))

Callers

nothing calls this directly

Calls 2

axis_angle_to_quaternionFunction · 0.85
rot6d_to_axis_angleFunction · 0.85

Tested by

no test coverage detected