WOLFRAM SYSTEM MODELER

to_Q

Return quaternion orientation object Q from orientation object T

Wolfram Language

In[1]:=
SystemModel["Modelica.Mechanics.MultiBody.Frames.TransformationMatrices.to_Q"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Syntax

Q = TransformationMatrices.to_Q(T, Q_guess);

Description

This function returns a quaternion object Q computed from a transformation matrix T and depending on the initial guess Q_guess.

See also

from_Q Frames.to_Q.

Syntax

Q = to_Q(T, Q_guess)

Inputs (2)

T

Type: Orientation

Description: Orientation object to rotate frame 1 into frame 2

Q_guess

Default Value: Quaternions.nullRotation()

Type: Orientation

Description: Guess value for output Q (there are 2 solutions; the one closer to Q_guess is used

Outputs (1)

Q

Type: Orientation

Description: Quaternions orientation object to rotate frame 1 into frame 2