The Magic of Tensor Algebra: Part 12 - Rodrigue-Hamilton Parameters in Solid State Kinematics

    Content


    1. What is a tensor and why is it needed?
    2. Vector and tensor operations. Tensor Ranks
    3. Curvilinear coordinates
    4. The dynamics of a point in tensor exposition
    5. Actions on tensors and some other theoretical questions
    6. Kinematics of a free solid. The nature of angular velocity
    7. The final rotation of a solid. Properties of the rotation tensor and method of its calculation
    8. On convolutions of the Levi-Civita tensor
    9. The derivation of the angular velocity tensor through the parameters of the final rotation. Apply the head and Maxima
    10. We get the angular velocity vector. Working on shortcomings
    11. Acceleration of a body point in free movement. Angular acceleration of a solid
    12. Rodrigue Hamilton Parameters in Solid State Kinematics
    13. SKA Maxima in problems of transformation of tensor expressions. Angular velocity and acceleration in the parameters of Rodrigue Hamilton
    14. Non-standard introduction to the dynamics of a rigid body
    15. Proprietary Solid Motion
    16. Properties of the inertia tensor of a solid
    17. Sketch of a nut Janibekova
    18. Mathematical modeling of the Janibekov effect


    Introduction



    Finally, we came to a rather interesting topic - the choice of parameters that uniquely determine the orientation of a rigid body in space. Historically, the most popular are rotation angles - they are primarily mentioned in classical textbooks of theoretical mechanics.


    Fig. 1. Euler angles are parameters that are familiar to anyone involved in computer graphics and modeling the spatial motion of bodies. And everyone they know knows how problematic their use is.


    Typically, rotation angles are used in conjunction with the Cartesian coordinate system, and it is said that the associated coordinate system can be combined with the base by three successive rotations around its axes. In this case, each subsequent rotation is carried out around the axis obtained after the previous rotation. In addition, the next turn should not take place around the axis relative to which the previous turn was made. In this regard, there are 12 different combinations of rotation angles, the most famous of which are Euler angles (Figure 1). The base coordinate system is rotated by an angleimagearound the Z axis (angle of precession), then at an angle imagearound the X axis (angle of nutation), and again around the Z axis at an angle image(angle of proper rotation) until it coincides with the associated coordinate system.

    The use of Euler angles is good for everyone - their number coincides with the number of rotational degrees of freedom of a rigid body, which means that they do not generate redundant constraint equations. But, without even resorting to cumbersome formulas, according to Figure 1, you can guess where the problem lies.



    image

    Fig. 2. Famous kinematic equations of Euler. I, in due time, drank long and painstaking debugs with them.

    There are two values ​​of the nutation angle at which the Euler kinematic equations degenerate (Figure 2) - imageand image. Suppose that the angle of nutation has taken one of these values ​​- then the angle of precession and the angle of proper rotation describe a rotation around the same Z axis and are essentially indistinguishable from each other. When using the kinematic equations of Euler, we get zero in the denominator and NaNin phase coordinates. They arrived, the integration procedure collapsed.

    Another option for turning angles is airplane angles: image- yaw, image- pitch and image- roll (Figure 3).


    Fig. 3. Aircraft angles - one of the practical ways to determine the orientation of an aircraft in space.


    These rotation parameters degenerate during pitch image, and roll and yaw become indistinguishable. Inveterate simulators know how crazy the gearbox is when you go to steep pitches.

    All possible combinations of rotation angles are degenerate. For modeling and bookmarking orientation control system algorithms, their scope is limited to critical parameter values. In the last article, we showed that the parameters of the final rotation are also not suitable, and the use of the components of the rotation tensor itself is hampered by excessively deep dependencies between them, which generates a high order of the system of equations of motion.

    However, the great Leonard Euler introduced four parameters that have no degeneracy. The then scientific world did not pay much attention to his publication on this subject. This idea, regardless of Euler, was developed by Olid Rodrigue, and in the works of William Hamilton received the final theoretical justification. Meet -

    1. Quaternions and actions on them



    A quaternion is a number of the form

    image


    where they imageare called quaternion components. The numbers (1) themselves form a set of hypercomplex numbersimage , which includes all real imagenumbers and a set of complex numbersimage. The mathematicians of the era when Hamilton worked, already knew about complex numbers and how the methods built on their basis allow solving problems of planimetry and it was natural to expand the concept of a complex number for applying such methods to spatial problems. The problem was that adding a second imaginary unit did not solve the problem. Hamilton had the idea that such extended complex numbers may not be three-, but four-component. Working in this direction, in a fit of inspiration on one of the walks, he deduced the rule of multiplying such numbers, which finally folded the mosaic of the newborn theory.

    So, the multiplication of quaternions is reduced to the algebraic operation of multiplying the sums, with the only difference being that it is necessary to determine the rules for the multiplication of imaginary units. Traditionally, each of the imaginary units squared gives -1

    image


    and their pairwise products are well described by the diagram


    Fig. 4. The diagram of the multiplication of imaginary units in a quaternion, the


    meaning of which is simple - if you multiply pairs of imaginary units in the order indicated by the arrow, you get the third imaginary unit with a "+" sign. If you change the order of multiplication to the opposite, you get the third imaginary unit with the sign "-". Doesn’t resemble the rule of vector multiplication of unit vectors in Cartesian coordinates? This is it, that is, we get

    image


    Using these rules, we multiply two quaternions

    image


    Wow! Not weakly, but we boldly cite similar terms

    image


    and, well, for sure you see painfully familiar actions on vectors here. Let us have vectors

    image


    then each quaternion can be represented as a scalar-vector pair

    image


    and the result of their multiplication

    image


    It is not difficult to simply compare this formula with the result of the multiplication that we performed, while considering the imaginary units as the orts of the Cartesian basis. Thus, quaternions include vectors of three-dimensional space, and for example, quaternions of the form imageand image, will be scalars, and their product is equivalent to the product of scalar quantities

    image


    A kind of quaternions imageand imagecalled vector quaternions and their product

    image


    gives a scalar, with a minus sign, and a vector product of their vectors.

    Due to the presence of vector multiplication as a result of the product, the operation of quaternion multiplication is not commutative

    image


    Well, is it necessary to say that zeroing out the last two coefficients of each of the quaternions we get the product of complex numbers? I think it’s not worth it, because we do not plunge into the complex field, and if we are talking about complex numbers, then where it is required.

    I will not begin to say that the addition of quaternions and multiplying them by the number is similar to the corresponding operations in the complex domain. But what you need to talk about, so about pairing a quaternion

    image


    about the related norm calculation operation

    image


    and inverse quaternion calculation operations

    image


    And another useful property regarding the conjugation of a quaternion product

    image


    In addition, the norm of the inverse quaternion is the reciprocal of the norm of the original

    image


    These operations are directly related to why today hypercomplex numbers are used.

    2. Quaternion as a linear rotation operator



    Now let's look at such a trick. Let it be imageone quaternion, and imageanother quaternion. We prove a small theorem

    The transformation of the species imagedoes not change the quaternion norm image.


    This statement is verified by direct calculation.

    image


    Indeed, the quaternion norm does not change with such a transformation. And if the quaternion imageis a vector quaternion, then the norm of the vector by which it is determined will not change. That is, the described transformation over a vector does not change its length, it will be orthogonal, or a rotation transformation! The small thing is to find out around which axis and at what angle a rotation occurs, determined by a particular quaternion. To do this, take (after all, no one bothers us to do this) and imagine the quaternion imagein the form

    image


    The value in brackets is called the quension tensor (not to be confused with the tensor!). Exercise over its vector part

    image


    Nobody bothers us to make equivalent transformations, so we do them. Now introduce the replacement

    image


    On what basis? Yes, on the fact that the sum of the squares of these quantities will always give unity, and if so, then no one bothers to present these quantities as the sine and cosine of a certain angle. Why is the angle divided by two? We want it so much, then it will come in handy for us, because the angle can be taken arbitrary. Based on the introduced replacement, we can rewrite the quaternion in the form

    image


    Note that the vector imageintroduced by us is unit, since

    image


    To top it off, let us allow one more assumption - let the quaternion be single, i.e.

    image


    Now we carefully perform the orthogonal transformation over the vector quaternion image

    image


    Now multiply the result (2) by the inverse quaternion

    image


    In order not to clutter up the text with “crocodiles”, we calculate separately the scalar

    image


    and vector part

    image


    conversion result. Ultimately, on the basis of formulas (3) and (4), having performed not complicated trigonometric simplifications, we conclude that the output is a vector

    image


    So this is ... Rodrigue's final rotation formula! It turns out that the conversion

    image


    which, taking into account the fact that for a single quaternion, the operation of calculating the inverse quaternion is equivalent to conjugation, can be rewritten as

    image


    equivalent to rotating the vector around an axis defined by the unit vector imageby an angle image. The rotation angle and the vector around which rotation occurs can be calculated from the components of the quaternion, based on the replacements introduced by us above.

    conclusions



    We made sure that a single quaternion, whose components are constructed according to the formulas

    image


    determines the final turn. The four parameters that we have cited are the very Rodrig-Hamilton parameters that uniquely determine the orientation of a rigid body in space and do not degenerate for any rotation parameters. For example, if we zero the rotation angle, then the unit vector of the rotation axis also becomes zero. When turning at any final angle, we can always calculate the position of the axis of rotation.

    Well, in the meantime it dawned outside ... The outline of this article was slightly different, and we did not say a word about tensors. Yes, it’s for the better, but now we have a clear idea of ​​what tricky orientation parameters we will use in the future.

    Thank you for attention!

    To be continued...

    Also popular now: