Next Article in Journal / Special Issue
Impact of Rain Intensity on Interstate Traffic Speeds Using Connected Vehicle Data
Previous Article in Journal
Acknowledgment to the Reviewers of Vehicles in 2022
Previous Article in Special Issue
Nature-Inspired Optimal Route Network Design for Shared Autonomous Vehicles
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Vehicle Directional Cosine Calculation Method

1
Department of Aerospace Studies, Cornell University, Ithaca, NY 14853, USA
2
Department of Mechanical Engineering (SCPD), Stanford University, Stanford, CA 94305, USA
*
Author to whom correspondence should be addressed.
Vehicles 2023, 5(1), 114-132; https://doi.org/10.3390/vehicles5010008
Submission received: 13 November 2022 / Revised: 7 January 2023 / Accepted: 21 January 2023 / Published: 30 January 2023
(This article belongs to the Special Issue Feature Papers in Vehicles)

Abstract

:
Teaching kinematic rotations is a daunting task for even some of the most advanced mathematical minds. However, changing the paradigm can highly simplify envisioning and explaining the three-dimensional rotations. This paradigm change allows a high school student with an understanding of geometry to develop the matrix and explain the rotations at a collegiate level. The proposed method includes the assumption of a point (P) within the initial three-dimensional frame with axes ( x ^ i , y ^ i , z ^ i ). The method then utilizes a two-dimensional rotation view (2DRV) to measure how the coordinates of point P translate after a rotation around the initial axis. The equations are used in matrix notation to develop a rotation matrix for follow-on direction cosine matrixes. The method removes the requirement to use Euler’s formula, ultimately, providing a high school student with an elementary and repeatable process to compose and explain kinematic rotations, which are critical to attitude direction control systems commonly found in vehicles.

1. Introduction

Figure 1. (a) First images from the James Webb Space Telescope peering into deep space where the “inertial”, non-moving reference frame is often mathematically placed; credits: NASA, ESA, CSA, and STSc [1]. (b) NASA humor over the ubiquity of the difficulty of learning kinematics [2]. Image usage is consistent with NASA policy, “NASA content (images, videos, audio, etc.) are generally not copyrighted and may be used for educational or informational purposes without needing explicit permissions” [3].
Figure 1. (a) First images from the James Webb Space Telescope peering into deep space where the “inertial”, non-moving reference frame is often mathematically placed; credits: NASA, ESA, CSA, and STSc [1]. (b) NASA humor over the ubiquity of the difficulty of learning kinematics [2]. Image usage is consistent with NASA policy, “NASA content (images, videos, audio, etc.) are generally not copyrighted and may be used for educational or informational purposes without needing explicit permissions” [3].
Vehicles 05 00008 g001
When you can measure what you are speaking about and express it in numbers, you know something about it, and when you cannot measure it, when you cannot express it in numbers, your knowledge is of a meagre and unsatisfactory kind. It may be the beginning of knowledge, but you have scarcely in your thought advanced to the stage of a science. Lord Baron Kelvin of Largs [4]
This manuscript describes a step-by-step process to simply develop and understand a set of equations to translate positioning and rotations from one perspective to another. The direction cosine equations are essential to understand the automation of precision motion expressions correctly in attitude direction control systems used in many vehicles. Teaching the concept of an initial axis ( x ^ i , y ^ i , z ^ i ) rotating to another axis ( x ^ , y ^ , z ^ ) becomes much easier if the initial axis is viewed as a two-dimensional rotation view (2DRV). The new viewpoint of the axis and the rotation makes the mathematics and visual comprehension easier to grasp.

1.1. Educational Importance

Recently, Manurung [5] recommended new methods for teaching kinematics in a journal on education (read by few if any researchers in scientific and mathematical fields). In 2017, Ramma [6] published a public, scathing rebuke of kinematics pedagogy in a popular online blog. The rebuke reported the results of a study of twenty-six physics teachers from twenty-six of a country’s secondary schools who had been teaching for an average of five years to students between 16 and 17 years old. Kinematics typically depicts three-dimensional motion with two-dimensional graphics, while one kinematic representation (the quaternion) involves depicting four-dimensional representations of three-dimensional motion in two-dimensional graphics. The potential for confusion is immediately evident. The Ramma study confirmed the well-known fact that kinematics is challenging to learn, but additionally assessed a key issue laid at the feet of pedagogy and limitations of the topic’s teaching.
Other researchers such as Ayop [7] evaluated the assessments and the resulting kinematics teaching strategies. Shodiqin [8] very recently elaborated on student difficulties in understanding kinematics, while Núñez [9] shortly afterward elaborated on some difficulties themselves, hinting at the relative importance of rethinking the topic’s pedagogical methods. After these recommendations, Moyo [10] performed a focused case study for high schools in Botswana validating the omnipresent sources of difficulties and potential impacts.
To advance the human species’ understanding of the world and the ability to shape future scientists, technicians, and engineers, academics must develop them earlier, faster, and more efficiently. With that in mind, finding and developing more effective ways to deliver academic subject matter to students is critical to future development. Due to the mathematical requirements, rotational kinematics is often a topic that is broached after calculus and linear algebra, if not even later in a student’s academic career. However, with the right tools and perspective, students can be taught the basics of axes rotations at a much earlier stage of educational development.
Laying this foundation at a younger age allows for a more significant expansion of knowledge later. This manuscript’s proposal aims to outline how to efficiently develop this foundational understanding, significantly accelerating students’ academic growth.

1.2. History of Kinematic and Directional Cosine Matrices

The theorems used to translate rigid bodies in Euclidean space date back to 1775 when Euler wrote: “General formulas for the translation of arbitrary rigid bodies” [11]. Over the decades and centuries, the mathematics of the translation of rigid bodies has been refined and expanded, e.g., by Chasles [12] in the early 1800s, by Lord Kelvin in the late 1800s [13], and by Whittaker [14] in the early 1900s.
Several authors [15,16,17,18,19] from the U.S.A.’s National Aeronautics and Space Administration (NASA) and others have published updates. In the late 1960s, Meyer [15] proposed a method for expanding a matrix of direction cosines, while Jordan [16,17] evaluated computation errors using direction cosines and proposed a novel direction cosine algorithm (as proposed in this present manuscript). Kane [18] articulated many challenging aspects of kinematics in the early 1970s. Meanwhile, Haley [19] described manifestations of effects due to the kinematics of integrated robotics. In the 1990s, King [20] illustrated the deleterious effects on the accuracy of global position systems, while Dunn [21] extended the conclusions to include satellite laser ranging. Following the turn of the century, in 2001, Xing [22] proposed alternate forms of attitude kinematics de-emphasizing matrices of nine-direction cosines in favor of three-parameter kinematics (e.g., Euler angles) or four-parameter kinematics (e.g., quaternions, Rodrigues–Gibbs vector, etc.).
Most recently, the significance of direction cosine matrices and their derivation resurged in the 2018 publication by Smeresky [23] which sought to develop more accurate and efficient calculations; and was later revisited by Cole [24] and Sandberg [25] just this year, who tried to discern errors and the resulting deleterious effects in applications. Regardless of which derivation is used, each requires the development of at least two rotational matrices. Ultimately, understanding the development of the direction cosine matrix is critical to understanding kinematics.

1.3. Present-Day Purpose and Innovations Presented

Direction cosine matrices are crucial to attitude direction control systems common in many vehicles such as ships, planes, rockets, satellites, and robotics. While the usual direction construction of cosine matrices equations is still as practical today as when equations were developed, these examples are not immune to adaption or improvement. This work evolves the current method, to provide tools to students to learn, and teachers to instruct three-dimensional kinematic rotations without the without the need to understand Euler’s formula. Simple geometric equations can be used instead of Euler’s formula to develop the rotation matrix to calculate the direction cosine matrices.
 Innovations proposed:
1. Two-dimensional rotation view (2DRV) about a third dimension;
2. Development of the rotation matrix equations without Euler’s formula.
Section two describes each rotation matrix’s development where each constructs a direction cosine matrix. Section three outlines how direction cosine matrices work with dynamics, 2DRV, and the proposed process of teaching direction cosine matrix development. Sections four and five provide a conclusion and review other discussion points, respectively.

2. Methods and Results

The approach utilized in this manuscript is based on the rotation of a coordinate system about a fixed point. Any point’s position in the rotated coordinate system can be calculated based on three separate rotations about an axis. Breaking down a single rotation about an axis is equitable to a two-dimensional plane of points rotating about a point. Each rotation can be described and depicted in a 2DRV, as long as the axis and rotation are defined correctly. In a 2DRV, any point in the initial plane can be described in the new plane using the similarity of right triangles and equations of motion functions. The generic rotation conversion equations can be transferred into a matrix format to develop a direction cosine matrix. This method generates the same rotation matrices as the Euler equations but is more straightforward.

2.1. Dynamics

Dynamics is a division of mechanics that deals with how rigid bodies propagate with time in relation to force, mass, momentum, and energy. Dynamics can be dissected into two components: kinetic (linear and rotational forces acting on bodies) and kinematic (motion of bodies regardless of forces). This manuscript only represents a new calculation method of kinematic equations (i.e., direction cosine matrix). However, without understanding some of the basic principles of kinetics, the purpose of the direction cosine matrix can be missed.
The kinetic Equations (1) and (2) describe linear and rotation forces (disturbance and control) on the rigid body. Table 1 outlines all the variables found in Equations (1) and (2). Equations (1) and (2) consider all the linear and nonlinear motion in a fictional non-rotating reference frame utilizing Michel Chasles and Giulio Mozzi’s theorem to combine Newton’s and Euler’s theorems.
{ F x F y F z } = [ M ] [ x ¨ y ˙ ω z + z ˙ ω y y ¨ z ˙ ω x + x ˙ ω z z ¨ x ˙ ω y + y ˙ ω x ]
{ T x T y T z } = [ J x x ω ˙ x + J x y ω ˙ y + J x z ω ˙ z J x y ω x ω z J y y ω y ω z J y z ω z 2 + J x z ω x ω y + J z z ω z ω y + J y z ω y 2 J y x ω ˙ x + J y y ω ˙ y + J y z ω ˙ z J y z ω x ω y J z z ω x ω z J x z ω x 2 + J x x ω x ω z + J x y ω z ω y + J x z ω z 2 J z x ω ˙ x + J z y ω ˙ y + J z z ω ˙ z J x x ω x ω y J x z ω y ω z J x y ω y 2 + J y y ω x ω y + J y z ω z ω x + J x y ω x 2 ]
The non-rotating reference frame or the inertial frame is a fictional construct that describes a position that is not accelerating or subject to a gravitational field. An inertial frame is developed as no known position in the universe is not accelerating or subject to a gravitational field. As referenced in Figure 1 often deep space is where the fictional inertial frame is placed. If Newton and Euler’s equations of motion were calculated not using an inertial frame of reference, Newtonian laws of motion would not necessarily hold to be true. Once the equations of motion are evaluated in the inertial frame, the equations of motion can be expressed in the body frame and translated into other frames of reference. The kinematics described in section two can translate position and motions into different reference frames [26].
Kinematics is used to translate equations of motion, such as Equations (1) and (2) that are calculated from the inertial frame (later expressed in the body frame) into other reference systems [27]. The non-rotating perspective is required to correctly calculate the disturbance and maneuvering forces, as described in section two for Newtonian and Euler equations. Once the equations of motion are set, translation equations such as direction cosine matrices or quaternions translate the motion into other frames of reference [28]. Quaternions have many beneficial features over classic direction cosine matrices [28]. However, the four-dimensional variables that comprise quaternions are not intuitive to the typical three-dimensional human perspective. Ultimately converting the four-dimension variables to Euler angles makes direction cosine matrix development critical for human–machine interfaces (HMI) such as the ones in vehicles. Understanding the development of the direction cosine matrix is foundational to understanding how the kinematic rotation is calculated.

2.2. Direction Cosine Matrix

Direction cosine matrix equations are based on three separate one-dimensional rotation matrices multiplied in sequence to equate to one three-dimensional rotation equation. It is challenging to present the teaching of three-dimensional rotations, utilizing most teachers’ available two-dimensional resources. Typical examples attempt to show all three dimensions simultaneously and use Euler’s equation to create each rotation matrix, as seen in Figure 2, Figure 3, Figure 4 and Figure 5 and Equations (3)–(7).
{ x ^ y ^ z ^ } = [ c o s ψ   s i n ψ   0 s i n ψ   c o s ψ   0 0 0 1 ] { x ^ i y ^ i z ^ i }
{ x ^ " y ^ " z ^ " } = [ cos θ   0   s i n θ   0 1 0 sin θ 0 cos θ ]   { x ^ y ^ z ^ }
{ x ^ B y ^ B z ^ B } = [   1 0   0 0 c o s ϕ s i n ϕ 0 s i n ϕ c o s ϕ ] { x ^ y ^ z ^ }
{ x ^ B y ^ B z ^ B } = [   1 0   0 0 c o s ϕ s i n ϕ 0 s i n ϕ c o s ϕ ] [ cos θ   0   s i n θ   0 1 0 sin θ 0 cos θ ] [ c o s ψ   s i n ψ   0 s i n ψ   c o s ψ   0 0 0 1 ]   { x ^ i y ^ i z ^ i }
{ x ^ B y ^ B z ^ B } = [ cos θ c o s ψ cos θ s i n ψ sin θ s i n ϕ s i n θ c o s ψ c o s ϕ s i n ψ s i n ϕ s i n θ s i n ψ + c o s ϕ c o s ψ s i n ϕ cos θ c o s ϕ s i n θ c o s ψ + s i n ϕ s i n ψ c o s ϕ s i n θ s i n ψ s i n ϕ c o s ψ c o s ϕ cos θ ] { x ^ i y ^ i z ^ i }
This manuscript uses the 2DRV to help depict and write the translation equations. The 2DRV takes advantage of the fact that a reference frame can be viewed from any aspect. Specifically, 2DRV takes a three-dimensional view and changes the perspective, so only two dimensions are visible. Figure 6a–d depicts the change in perspective. It is important to note that the positive axis being rotated about will face directly out of the page, and the perpendicular positive axes will point up and to the right consistent with a right-hand revolution.
This depiction is helpful because the initial and final axis is colinear, and the only changes happen to points and vectors, not on that axis. Figure 6d depicts what will be referred to as 2DRV for each rotation. The 2DRV simplifies the dimensionality and makes the development of the equations simpler to see and understand. Developing each rotation creates a matrix and must be performed one revolution at a time. Each rotation is identified by the axis it is rotated around. After each matrix is completed, they can be combined to create an overarching direction cosine matrix.
The following direction cosine matrix creation uses the proposed method. Using the 3, 2, and 1 order of rotations, or the 3-, 2-, 1-direction cosine matrix, will take the inertial frame to a body frame. In this description, the order of the rotation also follows the number order. However, it is essential to note that any combination of rotations or translation types can be performed similarly. While the order does not matter, the 3-rotation is the easiest to conceptualize, because a horizontal x ^ -axis and a vertical y ^ -axis is the most common representation and makes for a solid foundation. First, any point P with coordinates (xi, yi, zi) is placed in the inertial space with axes ( x ^ i , y ^ i , z ^ i ), as seen in Figure 7a. Next, a rotation about z i ^ is rotated by ψ1 to z ^ , as seen in Figure 7b. In Figure 7b, point P has different coordinates after the rotation to the new frame of reference. The difference between the coordinates can be calculated using simple equations. Table 2 outlines all the variables found in Figure 7, Figure 8, Figure 9, Figure 10, Figure 11 and Figure 12.
Then, a line A ¯ can be established along the rotated axis that equates to x as seen in Figure 8a, and another similar parallel line B ¯ with the same length that runs through the (xi,0,0) as seen in Figure 8b.
To measure the length of parallel lines A ¯   a n d   B ¯ , a rectangle can be formed using two other perpendicular similar parallel lines C ¯   a n d   D ¯ to develop rectangle A B C D ¯ that starts at the origin, aligns with the new rotation frame, and bisects the point P and (xi,0,0), as seen in Figure 9a. Therefore, lengths of A ¯ ,   B ¯ ,   a n d   x are all equal.
By measuring line B ¯ in segments, the summation can be used to calculate line A ¯ . Segments can be identified by which dimension ( x i ^ or y i ^ ) of the axis in the initial orientation results in the   x x i and x y i as seen in Figure 9b. Therefore, x can be calculated by the sum of x x i and x y i , giving Equation (8).
x = x x x i + x y i
To calculate x x i and x y i , identify ψ 2 is a complementary angle to ψ 1 . One can identify corresponding angles of the transversal of x i across A ¯   a n d   B ¯ . Further, an additional complementary angle (formed where y i and C ¯ intersect at point P) can be identified as associated with the corresponding angles of where x i crosses   B ¯ , as seen in Figure 10.
Now two triangles can be identified, as seen in Figure 11, with two defined angles identified as ψ 2 and ψ 1 each with a defined side xi or yi.
It can be seen that point P’s location on the x axis is positive, and because xi and yi are positive, y is a summation of each segment   x x i and x y i . Therefore, both   x x i and x y i are a positive contribution. These conditions define   x x i and x y i by ψ 1 and xi or yi in Equations (9) and (10) using the definitions of sine and cosine, as seen in Figure 12. Substituting Equations (9) and (10) into Equation (8) provides Equation (11), the first equation of the 3-rotation matrix.
x x i = x i c o s ( ψ 1 )
x y i = y i sin ( ψ 1 )
x x i c o s ( ψ 1 ) + y i sin ( ψ 1 ) + z i 0
The Equation (12) of the 3-rotation matrix is for y. To calculate y the same rectangle A B C D ¯ , the two triangles and the defined angles from previous Figure 7, Figure 8, Figure 9, Figure 10, Figure 11 and Figure 12 will be used, except focusing on lines C ¯ and D ¯ . Figure 13 shows that P is in the negative axis of y; and is only a portion of line C ¯ . As the rotation is about z and z i no additional length is provided to x by z i , so z i can be multiplied by 0. Table 3 outlines all the variables found in Figure 13, Figure 14 and Figure 15.
By segmenting line C ¯ into y and y y i , one can take the difference of line D ¯ or y x i and a segment of y y i to calculate y;. The segments are labeled by the dimension (xi or y) of the initial orientation axis, results in the   y x i and y y i as seen in Figure 14. Labeling the pertinent sides of two triangles y x i and y y i in Figure 14, one can use a similar equation to Equation (8) to calculate y;, and obtain Equation (12).
y = y x i + y y i
Term y must be the negative difference between y x i and y y i for three reasons: P lies on the negative y ^ axis, xi and yi are positive, and because y is less than the summation of y x i   a n d   y y i . Therefore, y will be a difference between the segments, and the longer segment y x i must be negative in this case. These conditions define y x i and y y i by ψ 1 and xi or yi in Equations (13) and (14) using the definitions of sine and cosine as seen in Figure 15. Substituting Equations (13) and (14) into Equation (12) provides Equation (15), the second equation of the 3-rotation matrix. As the rotation is about z i ^ and z ^ no additional length is provided to y by z i ^ so can be multiplied by 0.
y x i = x i sin ( ψ 1 )
y y i = y i cos ( ψ 1 )
y = x i sin ( ψ 1 ) + y i cos ( ψ 1 ) + z i
Equation (16) for z is the last equation for this rotation. It is straightforward because the revolution is about z i ^ to z ^ , hence z   equates to z i . As the rotation is about z i ^ to z ^ , no additional length is provided to z by x i or y i , so both can be multiplied by 0.
z = x i 0 + y i 0 + z i
Finally, Equations (11), (15), and (16) can be translated into a matrix format, as seen in Equation (17), the 3-rotation matrix.
[ x y z ] = [ cos ( ψ 1 ) sin ( ψ 1 ) 0 sin ( ψ 1 ) cos ( ψ 1 ) 0 0 0 1 ] [ x i y i z i ]
Continuing to the 2-rotation in Figure 16, the y ^ axis is rotated by θ1 to y ^ . Figure 6d shows the view of the rotation is changed so that the positive axis of the rotating axis ( y ^ and y ^ ) is viewed as coming directly out of the page. Point P is now taken from (x′;,y′;,z′;) to (x″,y″,z″), similar to Figure 12 and Figure 15. Then, similar equations can be developed using the same mathematics Equations (18)–(27). Table 4 outlines all the variables found in Figure 16.
z z =   z   cos ( θ 1 )
z x =   x   sin ( θ 1 )
x z =   z sin ( θ 1 )
x x =   x cos ( θ 1 )
z = z z + z x
x = x x + x x
x   x   cos ( θ 1 ) +   y 0   z   sin ( θ 1 )
y =   x   0 + y + z 0
z = x sin ( θ 1 ) +   y 0 + z cos ( θ 1 )
[ x y z ] = [ cos ( θ 1 ) 0 sin ( θ 1 ) 0 1 0 sin ( θ 1 ) 0 cos ( θ 1 ) ] [ x y z ]
Finally, the 1-rotation in Figure 17 is developed in the same manner as the 3-rotation and 2-rotation. The x″ axis is rotated by ϕ 1 to x b thereby providing the final conversion from (x″, y″, z″) to ( x b ,   y b ,   z b ) coordinates; this provides Equations (28)–(37). Table 5 outlines all the variables found in Figure 17.
y b y =   y   cos ( ϕ 1 )
y b z =   z   sin ( ϕ 1 )
z b y =   y sin ( ϕ 1 )
z b z = z co s ( ϕ 1 )
y b = y b y + y b z
z b = z b y + z b z
x b = x + y 0 + z
y b = x 0 + y   cos ( ϕ 1 ) +   z   sin ( ϕ 1 )
z b = x 0 + y sin ( ϕ 1 ) + z cos ( ϕ 1 )
[ x b y b z b ] = [ 1 0 0 0 cos ( ϕ 1 ) sin ( ϕ 1 ) 0 sin ( ϕ 1 ) cos ( ϕ 1 ) ] [ x y z ]
Finally, taking each rotation matrix from Equations (17), (27), and (37), the matrices can be multiplied to move from the inertial to the body frame seen in Equation (38). However, the three matrices can be multiplied to develop one overarching direction cosine matrix in a simplified Equation (39), the 3-, 2-, 1-direction cosine matrix.
[ x b y b z b ] = [   1 0   0 0 c o s ϕ 1 s i n ϕ 1 0 s i n ϕ c o s ϕ 1 ] [ cos θ 1 0   s i n θ 1   0 1 0 sin θ 1 0 cos θ 1 ] [ c o s ψ 1 s i n ψ 1 0 s i n ψ 1 c o s ψ 1 0 0 0 1 ] [ x i y i z i ]
[ x b y b z b ] = [ cos θ c o s ψ cos θ s i n ψ sin θ s i n ϕ s i n θ c o s ψ c o s ϕ s i n ψ s i n ϕ s i n θ s i n ψ + c o s ϕ c o s ψ s i n ϕ cos θ c o s ϕ s i n θ c o s ψ + s i n ϕ s i n ψ c o s ϕ s i n θ s i n ψ s i n ϕ c o s ψ c o s ϕ cos θ ] [ x i y i z i ]

3. Discussion

The two-dimensional rotation view coupled with the proposed method of creating a direction cosine matrix provides a simplified and repeatable development process. However, there are a couple of recommendations to keep the process simple. Simple decisions on the order of axis rotation, point P’s location, and the rotation angle can present significant difficulty if not adequately thought through.
The 3-rotation is the easiest to conceptualize, since a horizontal x ^ -axis and a vertical y ^ -axis is the most common representation. This makes the 3-rotation the best to start with, where another rotation may be more challenging to visualize initially. Deciding which axis rotation to start with is not highly consequential to the overall difficulty, but beginning with the 3-rotation may help a new student grasp the concept.
Placing point P at the origin will break the process, so it cannot be recommended. Further it is recommended to use a point P that lies in the positive x ^ , y ^ , or z ^ axis. A negative point P, while not insurmountable, can add unrequired difficulty to the problem. If point P lies in either the negative x ^ , y ^ , or z ^ axis before the rotation, the calculations become more confusing to maintain perspective because it is easy to overlook which variable is negative and how the negative variable affects the equations. Ultimately, if x i ,   y i , or z i of point P ( x i ,   y i , z i ) is negative, that negative factor must be maintained through the equations to obtain the proper matrix.
It is recommended to use an acute rotation angle. Using an obtuse rotation angle can further complicate the process; however, similar rectangles, triangles, and their corresponding angles can be found. A remaining question is which angle to utilize for the triangle. The most straightforward method found was to take the cosine and sine of the obtuse angle and find the corresponding acute angles that equate to it, but which may be its opposite sign. When using those equations, the sign of the obtuse angle must be carried throughout the rotation. It is recommended for ease of calculation to start with the 3-rotation, maintain point P in the positive x ^ , y ^ , and z ^ axis, and use an acute angle.
While helpful, using direction cosine matrix for attitude and direction control of vehicles can lead to failure of computations to express specific movements. Specifically, direction cosine matrix fails when kinematic singularities come into play. A kinematic singularity is when the cosine of the rotational angles used for the direction cosine matrix equals zero. It is a regular practice to divide by the cosine of the rotation angle to calculate the Euler-angles rate, so when the cosine of rotation is zero, singularities become an issue. This division by the cosine of the rotation angle when the cosine of the rotation angle is zero causes a calculation error when the systems try to calculate infinity. For these reasons, the quaternions do much of the heavy lifting of the rotations.

4. Conclusions

The method discussed in this paper is very generic and works for all direction cosine matrices. The development of a direction cosine matrix, while a foundational portion of kinematics, is a small part of understanding kinematic engineering. As for most formulae, once the direction cosine matrix is created, the equation does not need to be recreated to be utilized. The process utilization does not negate the importance of the method as it is more about teaching and understanding the process in which a direction cosine matrix operates and is developed.
However, the process could be considered lengthy or confusing compared with other methods. The 2DRV does not allow a member to see all three rotations simultaneously. The 2DRV simplifies a single rotation but does not always help visualize all three rotations. It is recommended that this method be used in tandem with a three-dimensional view to help link the equations to the movement.

Author Contributions

Conceptualization, D.H.; Methodology, D.H.; Software, D.H.; Formal analysis, D.H.; Investigation, D.H.; Data curation, D.H.; Writing—original draft, D.H.; Writing—review & editing, T.S.; Visualization, D.H. and T.S.; Project administration, T.S.; Funding acquisition, T.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding. The APC was funded by the corresponding author.

Data Availability Statement

Data may be made available by contacting the corresponding author.

Acknowledgments

Thanks to Garay for teaching me to find my own way of thinking and giving me a high school teacher’s perspective. Kudos to the Jasmine Mally of the Naval Postgraduate School Graduate Writing Center for helping with the grammar and narrative.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. NASA. First Images from the James Webb Space Telescope. Available online: https://www.nasa.gov/webbfirstimages (accessed on 30 September 2022).
  2. NASA. (23a) Frames of Reference: The Centrifugal Force. Available online: https://pwg.gsfc.nasa.gov/stargaze/Sframes3.htm (accessed on 30 September 2022).
  3. NASA. NASA Image Use Policy. 2022. Available online: https://gpm.nasa.gov/image-use-policy (accessed on 22 May 2022).
  4. Thomson, W. Popular Lectures and Addresses, Vol. I; MacMillan: London, UK, 1891; p. 80. ISBN 9780598775993. Available online: https://books.google.com/books?id=JcMKAAAAIAAJ&printsec=frontcover&source=gbs_ge_summary_r#v=onepage&q&f=false (accessed on 30 September 2022).
  5. Manurung, S.; Mihardi, S. Improving the conceptual understanding in kinematics subject matter with hypertext media learning and formal thinking ability. J. Ed. Prac. 2016, 7, 91–98. [Google Scholar]
  6. Ramma, Y. Physics is Taught Badly Because Teachers Struggle with Basic Concepts. The Conversation: Academic Rigor, Journalistic Flair. Published 29 October 2017. 7.12am EDT. Available online: https://theconversation.com/physics-is-taught-badly-because-teachers-struggle-with-basic-concepts-86083 (accessed on 30 September 2022).
  7. Ayop, S.; Ismail, M. Students’ understanding in kinematics: Assessments, conceptual difficulties, and teaching strategies. Int. J. Acad. Res. Bus. Soc. Sci. 2019, 9, 1278–1285. [Google Scholar] [CrossRef]
  8. Shodiqin, M.; Taqwa, M. Identification of student difficulties in understanding kinematics: Focus of study on the topic of acceleration. J. Phys. 2021, 1918, 022016. [Google Scholar] [CrossRef]
  9. Núñez, R.; Suárez, G.; Castro, A. Difficulties in the interpretation of kinematics graphs in secondary basic education students. J. Phys. 2022, 2159, 012019. [Google Scholar] [CrossRef]
  10. Moyo, N. Mathematical Difficulties Encountered by Physics Students in Kinematics; Stellenbosch University: Stellenbosch, South Africa, 2020. [Google Scholar]
  11. Euler, L. Formulae generales pro translatione quacunque corporum rigidorum. Euler Arch. 1776, 20, 189–207. Available online: https://scholarlycommons.pacific.edu/euler-works/478 (accessed on 2 February 2022).
  12. Chasles, M. Note sur les propriétés générales du système de deux corps semblables entr’eux. Bull. Sci. Math. Astron. Phys. Chem. 1830, 14, 321–326. (In French) [Google Scholar]
  13. Kelvin, W.; Guthrie-Tait, P. Treatise on Natural Philosophy; Google Play Books; Clarendon Press: Hong Kong, China, 1867; Available online: https://play.google.com/books/reader?id=wwO9X3RPt5kC&pg=GBS.PR8&hl=en (accessed on 30 September 2022).
  14. Whittaker, E.T. Chapter 1 Kinematical Preliminaries. In A Treatise on the Analytical Dynamics of Particles and Rigid Bodies: With an Introduction to the Problem of Three Bodies; Cambridge University Press: Cambridge, UK, 1917; pp. 4–5. [Google Scholar]
  15. Meyer, G.; Lee, H.; Wehrend, W. A method for Expanding a Direction Cosine Matrix into an Euler sequence of Rotations. NASA Technical Memorandum X-1384, 1 June 1967. Available online: https://ntrs.nasa.gov/citations/19670017935 (accessed on 30 September 2022).
  16. Jordan, J. Directional Cosine Computational Error. NASA Technical Report R-304, March 1969. Available online: https://ntrs.nasa.gov/api/citations/19690027619/downloads/19690027619.pdf (accessed on 30 September 2022).
  17. Jordan, J. An Accurate Strapdown Direction Cosine Algorithm. NASA Technical Report D-5384, September 1969. Available online: https://ntrs.nasa.gov/citations/19690027619 (accessed on 30 September 2022).
  18. Kane, T.; Likins, P. Kinematics of Rigid Bodies in Spaceflight. NASA Technical Report CR-119361, May 1971. Available online: https://ntrs.nasa.gov/citations/19710021700 (accessed on 30 September 2022).
  19. Haley, D.; Almand, B.; Thomas, M.; Krauze, L.; Gremban, K.; Sanborn, J.; Kelley, J.; Depovich, T.; Wolfe, W.; Nguyen, T. Evaluation of Automated Decisionmaking Methodologies and Development of an Integrated Robotic System Simulation. NASA Contractor Report 178050, March 1986. Available online: https://ntrs.nasa.gov/citations/19860014816 (accessed on 30 September 2022).
  20. King, R. Global and Regional Kinematics with GPS. NASA Conference Paper N95-14279, NASA. Goddard Space Flight Center, Satellite Laser Ranging in the 1990s: Report of the 1994 Belmont Workshop, Massachusetts Institute of Technology, Cambridge, MA, USA. 1 November 1994. Available online: https://ntrs.nasa.gov/citations/19950007865 (accessed on 30 September 2022).
  21. Dunn, P. Global and Regional Kinematics from SLR Stations, NASA Conference Paper N95-14278, NASA. Goddard Space Flight Center, Satellite Laser Ranging in the 1990s: Report of the 1994 Belmont Workshop, Massachusetts Institute of Technology, Cambridge, MA, USA. 1 November 1994. Available online: https://ntrs.nasa.gov/citations/19950007864 (accessed on 30 September 2022).
  22. Xing, G.; Parvex, S. Alternative Forms of Relative Attitude Kinematics and Dynamics Equations. NASA Goddard Space Flight Center, Greenbelt, Maryland, under Contract NAS5-99163. 1 June 2001. Available online: https://ntrs.nasa.gov/api/citations/20010084965/downloads/20010084965.pdf (accessed on 30 September 2022).
  23. Smeresky, B.; Rizzo, A.; Sands, T. Kinematics in the information age. Mathematics 2018, 6, 148. [Google Scholar] [CrossRef] [Green Version]
  24. Cole, D.; Sands, T. Effect of kinematic algorithm selection on the conceptual design of orbitally delivered vehicles. Preprints 2022, 2022020360. [Google Scholar] [CrossRef]
  25. Sandberg, A.; Sands, T. Autonomous Trajectory Generation Algorithms for Spacecraft Slew Maneuvers. Aerospace 2022, 9, 135. [Google Scholar] [CrossRef]
  26. Liu, X.; Wang, J. Parallel Kinematics: Type, Kinematics, and Optimal Design; Springer: Cham, Switzerland, 2014. [Google Scholar]
  27. Dingle, H. On Inertial Reference Frames. Sci. Prog. 1962, 50, 568–583. [Google Scholar]
  28. Wie, B. Space Vehicle Dynamics and Control; American Institute of Aeronautics and Astronautics: Reston, VA, USA, 1998. [Google Scholar]
Figure 2. 3-rotation about the z i ^ and z ^ axes [23].
Figure 2. 3-rotation about the z i ^ and z ^ axes [23].
Vehicles 05 00008 g002
Figure 3. 2-rotation about the y ^ and y ^ axes [23].
Figure 3. 2-rotation about the y ^ and y ^ axes [23].
Vehicles 05 00008 g003
Figure 4. 3-rotation about the y ^ and x b ^ axes [23].
Figure 4. 3-rotation about the y ^ and x b ^ axes [23].
Vehicles 05 00008 g004
Figure 5. Compiling the 3-, 2-, 1-rotations in one view with all equations [23].
Figure 5. Compiling the 3-, 2-, 1-rotations in one view with all equations [23].
Vehicles 05 00008 g005
Figure 6. (ac) Transformation from a three-dimensional view of a rotation to a two-dimensional rotation view (2DRV); (d) the revolutions about the z ^ -axis, y ^ -axis, or x ^ -axis are known as the “3-rotation”, “2-rotation”, and “1-rotation “, respectively.
Figure 6. (ac) Transformation from a three-dimensional view of a rotation to a two-dimensional rotation view (2DRV); (d) the revolutions about the z ^ -axis, y ^ -axis, or x ^ -axis are known as the “3-rotation”, “2-rotation”, and “1-rotation “, respectively.
Vehicles 05 00008 g006
Figure 7. (a) Point P is dropped within the inertial orientation to develop the direction cosine matrix; (b) 3-rotation about the z i ^ and z ^ axes to develop P’s coordinates in the new reference frame.
Figure 7. (a) Point P is dropped within the inertial orientation to develop the direction cosine matrix; (b) 3-rotation about the z i ^ and z ^ axes to develop P’s coordinates in the new reference frame.
Vehicles 05 00008 g007
Figure 8. (a) 3-rotation about the z i ^ and z ^ axes with the line A ¯ equivalent to x’; (b) 3-rotation about the z i ^ and z ^ axes with parallel lines A ¯   a n d   B ¯ equivalent to x’.
Figure 8. (a) 3-rotation about the z i ^ and z ^ axes with the line A ¯ equivalent to x’; (b) 3-rotation about the z i ^ and z ^ axes with parallel lines A ¯   a n d   B ¯ equivalent to x’.
Vehicles 05 00008 g008
Figure 9. (a) 3-rotation about the z i ^ and z ^ axes adding parallel lines C ¯   a n d   D ¯ to create rectangle A B C D ¯ . (b) 3-rotation about the z i ^ and z ^ axes and dividing B ¯ into measurable sections x x i and x y i . A determination was made to calculate the equations for x; first. Both equations of x; and y; will be calculated eventually, and the order does not matter— x; is easier to visualize in this case.
Figure 9. (a) 3-rotation about the z i ^ and z ^ axes adding parallel lines C ¯   a n d   D ¯ to create rectangle A B C D ¯ . (b) 3-rotation about the z i ^ and z ^ axes and dividing B ¯ into measurable sections x x i and x y i . A determination was made to calculate the equations for x; first. Both equations of x; and y; will be calculated eventually, and the order does not matter— x; is easier to visualize in this case.
Vehicles 05 00008 g009
Figure 10. 3-rotation about the z i ^ and z ^ axes, and identifying angles ψ 1   and ψ 2 and pertinent corresponding angles.
Figure 10. 3-rotation about the z i ^ and z ^ axes, and identifying angles ψ 1   and ψ 2 and pertinent corresponding angles.
Vehicles 05 00008 g010
Figure 11. 3-rotation about the z i ^ and z ^ axes highlighting the pertinent similar right triangles.
Figure 11. 3-rotation about the z i ^ and z ^ axes highlighting the pertinent similar right triangles.
Vehicles 05 00008 g011
Figure 12. 3-rotation about the z i ^ and z ^ axes highlighting segments x x i and x y i equations.
Figure 12. 3-rotation about the z i ^ and z ^ axes highlighting segments x x i and x y i equations.
Vehicles 05 00008 g012
Figure 13. 3-rotation about the z i ^ and z ^ axes using the rectangle A B C D ¯ , the corresponding angles ψ 1   and ψ 2 , and the same similar triangles built-in Figure 7, Figure 8, Figure 9, Figure 10, Figure 11 and Figure 12, except to measure y; instead of x;.
Figure 13. 3-rotation about the z i ^ and z ^ axes using the rectangle A B C D ¯ , the corresponding angles ψ 1   and ψ 2 , and the same similar triangles built-in Figure 7, Figure 8, Figure 9, Figure 10, Figure 11 and Figure 12, except to measure y; instead of x;.
Vehicles 05 00008 g013
Figure 14. 3-rotation about the z i ^ and z ^ axes highlighting y x i and y y i as part of rectangle A B C D ¯ .
Figure 14. 3-rotation about the z i ^ and z ^ axes highlighting y x i and y y i as part of rectangle A B C D ¯ .
Vehicles 05 00008 g014
Figure 15. 3-rotation about the z i ^ and z ^ axes and highlighting equations for segments y x i and y y i .
Figure 15. 3-rotation about the z i ^ and z ^ axes and highlighting equations for segments y x i and y y i .
Vehicles 05 00008 g015
Figure 16. 2-rotation about the y   ^ a n d   y ^ axes to develop P’s coordinates in the new reference frame with all similar angles, shapes, and equations established in Figure 7, Figure 8, Figure 9, Figure 10, Figure 11, Figure 12, Figure 13, Figure 14 and Figure 15.
Figure 16. 2-rotation about the y   ^ a n d   y ^ axes to develop P’s coordinates in the new reference frame with all similar angles, shapes, and equations established in Figure 7, Figure 8, Figure 9, Figure 10, Figure 11, Figure 12, Figure 13, Figure 14 and Figure 15.
Vehicles 05 00008 g016
Figure 17. 1-rotation about the x ^ and x b ^ axes to develop P’s coordinates in the new reference frame with all similar angles, shapes and equations established in Figure 7, Figure 8, Figure 9, Figure 10, Figure 11, Figure 12, Figure 13, Figure 14 and Figure 15.
Figure 17. 1-rotation about the x ^ and x b ^ axes to develop P’s coordinates in the new reference frame with all similar angles, shapes and equations established in Figure 7, Figure 8, Figure 9, Figure 10, Figure 11, Figure 12, Figure 13, Figure 14 and Figure 15.
Vehicles 05 00008 g017
Table 1. Proximal variable and nomenclature definitions.
Table 1. Proximal variable and nomenclature definitions.
Term DefinitionTermDefinitionTerm DefinitionTermDefinition
F x External resultant force in inertial x-direction ω x Angular velocity about x-axis ω ˙ x Angular acceleration about x-axis J x x Moment of inertia along x with respect to x
F y External resultant force in inertial y-direction ω y Angular velocity about y-axis ω ˙ y Angular acceleration about y-axis J x y = J y x Product of inertia along x with respect to y
F z External resultant force in inertial z-direction ω z Angular velocity about z-axis ω ˙ z Angular acceleration about z-axis J x z = J z x Product of inertia along x with respect to z
x ¨ Acceleration in inertial x-direction x ˙ Velocity in x-direction M External resultant moment J y y Moment of inertia along y with respect to y
y ¨ Acceleration in inertial y-direction y ˙ Velocity in y-direction J y z = J z y Product of inertia along y with respect to z
z ¨ Acceleration in inertial z-direction z ˙ Velocity in z-direction J z z Moment of inertia along z with respect to z
Table 2. Proximal variable and nomenclature definitions for Figure 7, Figure 8, Figure 9, Figure 10, Figure 11 and Figure 12.
Table 2. Proximal variable and nomenclature definitions for Figure 7, Figure 8, Figure 9, Figure 10, Figure 11 and Figure 12.
Term DefinitionTermDefinitionTerm DefinitionTermDefinition
x i ^ x-axis in the inertial non-rotating reference framexiPoint P’s location on x-axis in the inertial non-rotating reference frame x ^ x-axis in the new rotated reference frame about the z i ^ axis to the z ^ axis x Point P’s location on the x ^ -axis after the rotation about the z i ^ axis to the z ^ axis
y i ^ y-axis in the inertial non-rotating reference frameyiPoint P’s location on y-axis in the inertial non-rotating reference frame   y ^ y-axis in the new rotated reference frame about the z i ^ axis to the z ^ axis y Point P’s location on the y ^ -axis after the rotation about the z i ^ axis to the z ^ axis
z i ^ z-axis in the inertial non-rotating reference frameziPoint P’s location on z-axis in the inertial non-rotating reference frame z ^ z-axis in the new rotated reference frame about the z i ^ axis to the z ^ axis z Point P’s location on the z ^ -axis after the rotation about the z i ^ axis to the z ^ axis
x x i Line B segment determined by angle ψ1 and the hypotenuse xi x y i .Line B segment determined by the angle ψ1 and hypotenuse yiψ1Angle of rotation about the z i ^ axis to the z ^ axisψ2Complementary angle to ψ1
A ¯   Line equivalent to Point P’s measurement along the x ^ axis B ¯ Line parallel and equidistant to A ¯ crossing through (xi,0,0) C ¯ Line perpendicular to A ¯   and B ¯   equidistant to crossing through point P D ¯ Line perpendicular to A ¯   and B ¯   equidistant to crossing through the origin/rotation point
A B C D ¯ Rectangle developed by lines A ¯ ,     B ¯ , C ¯ ,   a n d   D ¯
Table 3. Proximal variable and nomenclature definitions for Figure 13, Figure 14 and Figure 15.
Table 3. Proximal variable and nomenclature definitions for Figure 13, Figure 14 and Figure 15.
TermDefinitionTermDefinitionTermDefinitionTermDefinition
x i ^ x-axis in the inertial non-rotating reference framexiPoint P’s location on x-axis in the inertial non-rotating reference frame x ^ x-axis in the new rotated reference frame about the z i ^ axis to the z ^ axis x Point P’s location on the x ^ -axis after the rotation about the z i ^ axis to the z ^ axis
y i ^ y-axis in the inertial non-rotating reference frameyiPoint P’s location on y-axis in the inertial non-rotating reference frame   y ^ y-axis in the new rotated reference frame about the z i ^ axis to the z ^ axis y Point P’s location on the y ^ -axis after the rotation about the z i ^ axis to the z ^ axis
z i ^ z-axis in the inertial non-rotating reference frameziPoint P’s location on z-axis in the inertial non-rotating reference frame z ^ z-axis in the new rotated reference frame about the z i ^ axis to the z ^ axis z Point P’s location on the z ^ -axis after the rotation about the z i ^ axis to the z ^ axis
y x i Line D ¯ segment determined by angle ψ1 and the hypotenuse xi y y i .Line C ¯ segment determined by the angle ψ1 and hypotenuse yiψ1Angle of rotation about the z i ^ axis to the z ^ axisψ2Complementary angle to ψ1
A ¯ Line equivalent to point P’s measurement along the x ^ axis B ¯ Line parallel and equidistant to A ¯ crossing through (xi,0,0) C ¯ Line perpendicular to A ¯   and B ¯   equidistant to crossing through point P D ¯ Line perpendicular to A ¯   and B ¯   equidistant to crossing through the origin/rotation point
A B C D ¯ rectangle developed by lines A ¯ ,   B ¯ , C ¯ ,   a n d   D ¯
Table 4. Proximal variable and nomenclature definitions for Figure 16.
Table 4. Proximal variable and nomenclature definitions for Figure 16.
Term DefinitionTermDefinitionTerm DefinitionTermDefinition
x ^ x-axis in the new rotated reference frame about the z i ^ axis to the z ^ axis x Point P’s location on the x ^ -axis after the rotation about the z i ^ axis to the z ^ axis x ^ x-axis in the rotated reference frame about the   y ^ axis to the y ^ axis x Point P’s location on the, x’’-axis after the rotation about the y’. axis to the y ^ axis
  y ^ y-axis in the new rotated reference frame about the z i ^ axis to the z ^ axis y Point P’s location on the y ^ -axis after the rotation about the z i ^ axis to the z ^ axis y ^ y-axis in the rotated reference frame about the   y ^ axis to the y ^ axis y Point P’s location on the y’’.-axis after the rotation about the y’. axis to the y ^ axis
z ^ z-axis in the new rotated reference frame about the z i ^ axis to the z ^ axis z Point P’s location on the z ^ -axis after the rotation about the z i ^ axis to the z ^ axis z ^ z-axis in the rotated reference frame about the   z ^ axis to the y ^ axis z Point P’s location on the z’’.-axis after the rotation about the y’. axis to the y ^ axis
  x z Determined using the same techniques as   y x i   x z .Determined using the same techniques as y y i .θ1Angle of rotation about the   y ^ axis to the y ^ axisθ2Complementary angle to θ1
  z z Determined using the same techniques as
  x x i
  z z .Determined using the same techniques as x y i .
Table 5. Proximal variable and nomenclature definitions for Figure 17.
Table 5. Proximal variable and nomenclature definitions for Figure 17.
TermDefinitionTermDefinitionTermDefinitionTermDefinition
x ^ x-axis in the rotated reference frame about the   y ^ axis to the y ^ axis x Point P’s location on the, x’’.-axis after the rotation about the, y’. axis to the y ^ axis x b ^ x-axis in the rotated reference frame about the y ^ axis to the x b ^ axis x b Point P’s location on the, x-b..-axis after the rotation about the, y’’. axis to the x b ^ axis
y ^ y-axis in the rotated reference frame about the   y ^ axis to the y ^ axis y Point P’s location on the, y’’.-axis after the rotation about the, y’. axis to the y ^ axis y b ^ y-axis in the rotated reference frame about the y ^ axis to the x b ^ axis y b Point P’s location on the, y-b..-axis after the rotation about the, y’’. axis to the x b ^ axis
z ^ z-axis in the rotated reference frame about the   y ^ axis to the y ^ axis z Point P’s location on the, z’’.-axis after the rotation about the, y’. axis to the y ^ axis z b ^ z-axis in the rotated reference frame about the y ^ axis to the x b ^ axis z b Point P’s location on the, z-b..-axis after the rotation about the, y’’. axis to the x b ^ axis
  z b y Determined using the same techniques as   y x i z b z .Determined using the same techniques as y y i . ϕ 1 Angle of rotation about the y ^ axis to the x b ^ axis ϕ 2 Complementary angle to ϕ 1
  y b y Determined using the same techniques as
  x x i
y b z .Determined using the same techniques as x y i .
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Hall, D.; Sands, T. Vehicle Directional Cosine Calculation Method. Vehicles 2023, 5, 114-132. https://doi.org/10.3390/vehicles5010008

AMA Style

Hall D, Sands T. Vehicle Directional Cosine Calculation Method. Vehicles. 2023; 5(1):114-132. https://doi.org/10.3390/vehicles5010008

Chicago/Turabian Style

Hall, Derek, and Timothy Sands. 2023. "Vehicle Directional Cosine Calculation Method" Vehicles 5, no. 1: 114-132. https://doi.org/10.3390/vehicles5010008

Article Metrics

Back to TopTop