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

Function axis_angle_to_quaternion

motion_rep/rotation_transform.py:92–100  ·  view source on GitHub ↗

Convert 3d vector of axis-angle rotation to 4d quaternion. Shape: - Input: :Torch:`(..., 3)` - Output: :Torch:`(..., 4)`

(angle_axis)

Source from the content-addressed store, hash-verified

90 return angle_axis
91
92def axis_angle_to_quaternion(angle_axis):
93 """
94 Convert 3d vector of axis-angle rotation to 4d quaternion.
95 Shape:
96 - Input: :Torch:`(..., 3)`
97 - Output: :Torch:`(..., 4)`
98 """
99 quaternion = tgm.angle_axis_to_quaternion(angle_axis)
100 return quaternion
101
102def quaternion_to_rot6d(quaternion):
103 """

Callers 2

rot6d_to_quaternionFunction · 0.85
compute_pose_qualityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected