{"id":352,"date":"2022-12-06T19:21:47","date_gmt":"2022-12-06T19:21:47","guid":{"rendered":"http:\/\/blogs.scienceforums.net\/pengkuan\/?p=352"},"modified":"2022-12-06T19:21:47","modified_gmt":"2022-12-06T19:21:47","slug":"determination-of-the-relative-roll-pitch-and-yaw-between-arbitrary-objects-using-3d-complex-number","status":"publish","type":"post","link":"http:\/\/blogs.scienceforums.net\/pengkuan\/2022\/12\/06\/determination-of-the-relative-roll-pitch-and-yaw-between-arbitrary-objects-using-3d-complex-number\/","title":{"rendered":"Determination of the relative roll, pitch and yaw between arbitrary objects using 3D complex number"},"content":{"rendered":"\n<p>The roll, pitch and yaw of an object relative to another is complex to compute. We use 3D complex number to compute them which makes the computation easier and more intuitive.<\/p>\n\n\n\n<p>Roll, pitch and yaw are angles of orientation of an object in\nspace and the conversion of these angles among different reference frames is\nnot easy, as this example illustrates:<\/p>\n\n\n\n<p><a href=\"https:\/\/math.stackexchange.com\/questions\/1884215\/how-to-calculate-relative-pitch-roll-and-yaw-given-absolutes\">https:\/\/math.stackexchange.com\/questions\/1884215\/how-to-calculate-relative-pitch-roll-and-yaw-given-absolutes<\/a><\/p>\n\n\n\n<p>We will use 3D complex number to compute the roll,\npitch and yaw of a telephon relative to a car. We label the car as object a and the telephon as object\nb. Their reference frames are labeled as\nframe A and B and these frames are orientated\nwith respect to the ground whose frame is\nlabeled as frame G. The base vectors of the frame A are<strong> a<\/strong><sub>x<\/sub>,<strong> a<\/strong><sub>y<\/sub> and<strong> a<\/strong><sub>z<\/sub>,\nthat of the frame Bare <strong>b<\/strong><sub>x<\/sub>,<strong> b<\/strong><sub>y<\/sub> and<strong> b<\/strong><sub>z<\/sub> and that of the\nframe G are<strong> g<\/strong><sub>x<\/sub>,<strong> g<\/strong><sub>y<\/sub>\nand<strong> g<\/strong><sub>z<\/sub>. The vectors <strong>a<\/strong><sub>x<\/sub>,<strong> a<\/strong><sub>y<\/sub> and<strong> a<\/strong><sub>z<\/sub>\nand<strong> b<\/strong><sub>x<\/sub>,<strong> b<\/strong><sub>y<\/sub> and<strong> b<\/strong><sub>z<\/sub> are expressedwith<strong> g<\/strong><sub>x<\/sub>,<strong> g<\/strong><sub>y<\/sub>\nand<strong> g<\/strong><sub>z<\/sub> in equations (1) and (2) with<strong> M<\/strong><sub>a<\/sub>and <strong>M<\/strong><sub>b<\/sub> being the matrices of transformation.<\/p>\n\n\n\n<p>The roll, pitch and yaw of the\nobject b relative to the object a define the\norientation of the frame B in the frame A<strong>.<\/strong> This orientation is defined by the angles of rotation q, j and y, see Figure 1. For computing these angles we express the vectors <strong>b<\/strong><sub>x<\/sub>,<strong> b<\/strong><sub>y<\/sub> and<strong> b<\/strong><sub>z<\/sub>\nwith the vectors <strong>a<\/strong><sub>x<\/sub>,<strong> a<\/strong><sub>y<\/sub> and<strong> a<\/strong><sub>z<\/sub> in (3), (4) and (5). In (10), (11) and (12) the coefficients in the parentheses are dot products between\n<strong>a<\/strong><sub>x<\/sub>,<strong> a<\/strong><sub>y<\/sub> and<strong> a<\/strong><sub>z<\/sub>\nand<strong> b<\/strong><sub>x<\/sub>,<strong> b<\/strong><sub>y<\/sub> and<strong> b<\/strong><sub>z<\/sub>. The equations (10) , (11) and (12) are written in matrix form in\n(13) from which we extract the\nmatrix of transformation<strong> M<\/strong><sub>ba<\/sub> shown in (14), see (3), (4) and (5). <\/p>\n\n\n\n<p>From the 5 underscored coefficients in (14) we\nderive the angles q, j and y using (15), (16) and (17), knowing that \n \n \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n \n \n \n\n \n&nbsp;is always\npositive because j is between -p\/2 and p\/2, see Figure 1. Roll, pitch and yaw of an object are the rotation\nangles of the object around the x, y and z axis respectively, see Figure 1 and the page <a href=\"https:\/\/en.wikipedia.org\/wiki\/Flight_dynamics_(fixed-wing_aircraft)\">https:\/\/en.wikipedia.org\/wiki\/Flight_dynamics_(fixed-wing_aircraft)<\/a>. <\/p>\n\n\n\n<p>So, the conversion formula between roll, pitch and yaw and the angles q, j and y is equation (18). <\/p>\n\n\n\n<p>The main advancement given by our method using 3D complex number is to have related the roll, pitch and yaw of an\nobject to the 3D complex number that represent the\nx axis<strong> <\/strong>of the object. This mathematical discovery makes the\nconversion of roll, pitch and yaw between\narbitrary frames easier and more intuitive.<\/p>\n\n\n\n<p>The angles of\nrotation q, j and y are computed with the 5 underscored\ncoefficients of the matrix <strong>M<\/strong><sub>ba<\/sub> in (14) saving thus the computation time for the\n4 other coefficients which are not needed.\nThis will make the computation faster and the motion of moving\nimages on screen smoother. So, our method using 3D complex number would be\nbeneficial to applications such as video\ngames or street view of digital map etc.<\/p>\n\n\n\n<p>For more detail\nof this\nstudy please read the complete paper here:<\/p>\n\n\n\n<p>\u00ab<a href=\"https:\/\/www.academia.edu\/92242546\/Determination_of_the_relative_roll_pitch_and_yaw_between_arbitrary_objects_using_3D_complex_number\">Determination\nof the relative roll, pitch and yaw<\/a> between\narbitrary objects <a href=\"https:\/\/pengkuanonmaths.blogspot.com\/2022\/12\/determination-of-relative-roll-pitch.html\">using 3D\ncomplex number<\/a>\u00bb<\/p>\n\n\n\n<p><a href=\"https:\/\/www.academia.edu\/92242546\/Determination_of_the_relative_roll_pitch_and_yaw_between_arbitrary_objects_using_3D_complex_number\">https:\/\/www.academia.edu\/92242546\/Determination_of_the_relative_roll_pitch_and_yaw_between_arbitrary_objects_using_3D_complex_number<\/a> \n\nKuan Peng\n\n\n\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The roll, pitch and yaw of an object relative to another is complex to compute. We use 3D complex number to compute them which makes the computation easier and more intuitive. Roll, pitch and yaw are angles of orientation of &hellip; <a href=\"http:\/\/blogs.scienceforums.net\/pengkuan\/2022\/12\/06\/determination-of-the-relative-roll-pitch-and-yaw-between-arbitrary-objects-using-3d-complex-number\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-352","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/blogs.scienceforums.net\/pengkuan\/wp-json\/wp\/v2\/posts\/352","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blogs.scienceforums.net\/pengkuan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blogs.scienceforums.net\/pengkuan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blogs.scienceforums.net\/pengkuan\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"http:\/\/blogs.scienceforums.net\/pengkuan\/wp-json\/wp\/v2\/comments?post=352"}],"version-history":[{"count":1,"href":"http:\/\/blogs.scienceforums.net\/pengkuan\/wp-json\/wp\/v2\/posts\/352\/revisions"}],"predecessor-version":[{"id":353,"href":"http:\/\/blogs.scienceforums.net\/pengkuan\/wp-json\/wp\/v2\/posts\/352\/revisions\/353"}],"wp:attachment":[{"href":"http:\/\/blogs.scienceforums.net\/pengkuan\/wp-json\/wp\/v2\/media?parent=352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blogs.scienceforums.net\/pengkuan\/wp-json\/wp\/v2\/categories?post=352"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blogs.scienceforums.net\/pengkuan\/wp-json\/wp\/v2\/tags?post=352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}