.Modelica.Mechanics.MultiBody.Frames.Quaternions.Orientation

Information

This type describes the rotation to rotate a frame 1 into a frame 2 using quaternions (also called Euler parameters) according to the following definition:

Quaternions.Orientation Q;
Real  n[3];
Real  phi(unit="rad");
Q = [ n*sin(phi/2)
        cos(phi/2) ]

where "n" is the axis of rotation to rotate frame 1 into frame 2 and "phi" is the rotation angle for this rotation. Vector "n" is either resolved in frame 1 or in frame 2 (the result is the same since the coordinates of "n" with respect to frame 1 are identical to its coordinates with respect to frame 2).

The term "quaternions" is preferred over the historically more reasonable "Euler parameters" in order to not get confused with Modelica "parameters".

Contents

NameDescription
 equalityConstraintReturn the constraint residues to express that two frames have the same quaternion orientation

Generated at 2024-11-07T19:25:29Z by OpenModelicaOpenModelica 1.24.0 using GenerateDoc.mos