pykinematics.imu.utility.vec2quat

pykinematics.imu.utility.vec2quat(v1, v2)

Find the rotation quaternion between two vectors. Rotate v1 onto v2 Parameters ———- v1 : numpy.ndarray

Vector 1
v2 : numpy.ndarray
Vector 2
Returns:
q : numpy.ndarray

Quaternion representing the rotation from v1 to v2