WOLFRAM SYSTEM MODELER

to_Q

Return quaternion orientation object Q from orientation object R

Wolfram Language

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

Information

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

Syntax

Q = Frames.to_Q(R, Q_guess);

Description

This function returns a quaternion object Q computed from an orientation object R and depending on the initial guess Q_guess.

See also

from_Q, TransformationMatrices.to_Q.

Syntax

Q = to_Q(R, Q_guess)

Inputs (2)

R

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