Decompose relative quaternion



Given two quaternions q1 and q2. Now I calculate the relative
quaternion q_rel like this:

q_rel = q1' * q2

Given two axis v1 and v2 in world coordinates, not nescessarily
perpendicular- how can I find the relative rotation around the two axis
by the relative quaternion?

Example:
Given two rigid bodies b1 and b2. At frame t I compute the relative
quaternion as shown above. The two axis belong two a universal joint.
How can I find the relative rotation around the two axis?

Basically I like to "project" the quaternion onto the two axis?

Regards,

-Dirk

.



Relevant Pages

  • Re: Questions regarding quaternions
    ... The name for b is "translation". ... A rotation changes the orientation of the axes, ... A rotation can be applied by the quaternion operation you cite: ... Next, you rotate XYZ until the X axis correspond to the X' axis, and ...
    (sci.math)
  • Re: Questions regarding quaternions
    ... Take a frame of reference and convert it ... A rotation changes the orientation of the axes, ... A rotation can be applied by the quaternion operation you cite: ... Next, you rotate XYZ until the X axis correspond to the X' axis, and ...
    (sci.math)
  • Re: Questions regarding quaternions
    ... Take a frame of reference and convert it ... A rotation changes the orientation of the axes, ... A rotation can be applied by the quaternion operation you cite: ... Next, you rotate XYZ until the X axis correspond to the X' axis, and ...
    (sci.math)
  • Re: Vector, matrix, normalize, rotate. What package?
    ... To make a matrix from Quaternion, q, use "q.asRotations.tensor". ... To make a quaternion from an axis and an angle, ... See your linear algebra text on how to normalize a 1x3 vector. ...
    (comp.lang.python)