Quaternion-Based Attitude Estimation of an Aircraft Model Using Computer Vision
Abstract
:1. Introduction
2. Related Work
3. Attitude Estimation
- Feature identification: Initially, key features representing the aircraft’s skeleton are identified within image frames extracted from video footage. The video is captured using an orthogonal stereo camera setup, which provides both top and side views of the aircraft. This stereo vision is critical for accurate spatial analysis. Section 3.1 details feature identification and tracking in initial and consecutive frames.
- Two-dimensional (2D) to 3D transformation: Once the key features are identified, their coordinates in the 2D-pixel coordinates are transformed into 3D coordinates. This transformation leverages the orthogonal views provided by the stereo camera setup to accurately reconstruct the spatial configuration of the identified points. Section 3.2 discusses the theory of the pinhole camera model to transform the 2D pixel coordinates to 3D coordinates. In addition, Section 3.3 details the tailored method for the transformation of 2D pixel coordinates to complete (X, Y, Z) 3D coordinates.
- Attitude estimation: With the 3D coordinates of the key features obtained, the next step involves estimating the aircraft’s attitude. This is achieved by employing quaternions, a mathematical representation that facilitates smooth and continuous rotation calculations. The Euler angles, which describe the aircraft’s orientation, are derived from these quaternions. Section 3.4 and Section 3.4.1 describe the widely applied Euler angles for aerospace applications and our proposed method for estimating Euler angles from aircraft skeleton points by employing quaternions.
3.1. Features Detection and Tracking
3.2. Camera Parameters
3.2.1. Extrinsic Parameters of the Simscape Model
3.2.2. Transformation from 3D to 2D
3.2.3. Transformation from 2D to 3D
3.2.4. Camera Pose Estimation and Triangulation
3.3. 3D Aircraft Model Skeleton
3.4. Euler Angles
3.4.1. Euler Angles and Rates from Aircraft Skeleton
4. 3D CAD Simulation
5. Sensitivity Analysis
6. Extended Kalman Filter
7. Results
- The results of pitch angle () indicate that there is no consistent bias towards underestimation or overestimation in these angles. However, the results of roll angle () indicate a consistent bias towards underestimation and the results of yaw angle () indicate a consistent bias towards overestimation. Irrespective of the bias, the results follow a pattern of the input of the Simscape model, which is a sin wave.
- The magnitude of the errors suggests that the quaternion method is accurate in estimating angles, with and having relatively small errors and having relatively larger errors.
- The bias of , , and do not have a consistent bias towards underestimation or overestimation.
- The magnitudes of the error range of have large errors while the and have small errors identical to the Euler angles results as described in [16].
- The world coordinate points (, , , and ) have a high impact on the change in angles. These points are the Y-coordinates of the tail length and Z-coordinates of wing tips. This is visualised in Figure 14, where dx31, ⋯, dy31, ⋯, dz31 represent , ⋯, , ⋯, , which are the aircraft skeleton points in consecutive frames as defined in (23).
- Figure 15 indicates that the world coordinate points (, ) have a significant impact on the change of angles. These points are the X-coordinates of the tail length and the points , and have slightly minimal impact on the change in angles. These points are the Z-coordinates of the fuselage length.
- Figure 16 depicts that the points (, , , and ) have a high impact on the angles. These are the X-coordinates of the wing tips and the Y-coordinates of the fuselage length.
- Any inaccuracies or disturbances in the identification of points tend to amplify the roll and yaw angle and affect the accuracy or stability in and estimation.
- The results obtained from quaternion measurements were corroborated by the sensitivity analysis, affirming their reliability in obtaining angles. Additionally, the sensitivity analysis reveals that the pitch angle exhibits the highest susceptibility to noise or inaccuracies in aircraft skeleton points, followed by the roll angle, while the yaw angle demonstrates relatively lower sensitivity.
- A comprehensive and reliable estimate of the system state is derived by the EKF fusion process that effectively integrates information from different sensors. This indicates a reliable fusion by the EKF.
- The EKF is robust to variations, noise, and uncertainties present in the gyroscope, accelerometer, and potentiometer data. This demonstrates the ability of EKF to effectively handle sensor measurements and provide state estimation even in challenging conditions.
- The results from EKF perform as validation for the sensor fusion algorithm implemented in the EKF. It indicates that the fusion process is functioning correctly.
8. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
DWT | dynamic wind tunnel |
DOF | degree-of-freedom |
MEMS | micro-electro-mechanical system |
RLG | ring laser gyro |
UAV | unmanned aerial vehicle |
IMU | inertial measurement unit |
DCM | direction cosine matrix |
CAD | computer-aided design |
DLT | direct linear transformation |
PnP | perspective-n-point |
ROI | region of interest |
EKF | extended Kalman filter |
References
- Pontillo, A.; Yusuf, S.; Lopez, G.; Rennie, D.; Lone, M. Investigating pitching moment stall through dynamic wind tunnel test. J. Aerosp. Eng. 2020, 234, 267–279. [Google Scholar] [CrossRef]
- Rajamurthy, M.S. Generation of comprehensive longitudinal aerodynamic data using dynamic wind-tunnel simulation. J. Aircr. 1997, 34, 29–33. [Google Scholar] [CrossRef]
- Tortora, P.; Huang, M.; Wang, Z. A review of wind tunnel based virtual flight testing techniques for evaluation of flight control systems. Int. J. Aerosp. Eng. 2015, 2015, 672423. [Google Scholar] [CrossRef]
- Owens, B.; Brandon, J.; Croom, M.; Fremaux, M.; Heim, G.; Vicroy, D. Overview of dynamic test techniques for flight dynamics research at NASA LaRC. In Proceedings of the 25th AIAA Aerodynamic Measurement Technology and Ground Testing Conference, San Fransisco, CA, USA, 5–8 June 2006. Number AIAA 2006-3146. [Google Scholar] [CrossRef]
- Carnduff, S.D.; Cooke, A.K. Formulation and System Identification of the Equations of Motion for a Dynamic Wind Tunnel Facility. In College of Aeronautics Report COA 0801; Cranfield University: Cranfield, UK, 2008. [Google Scholar]
- Carnduff, S.D.; Erbsloeh, S.D.; Cooke, A.K.; Cook, M.V. Characterizing stability and control of subscale aircraft from wind-tunnel dynamic motion. J. Aircr. 2009, 46, 137–147. [Google Scholar] [CrossRef]
- Pattinson, J.; Lowenberg, M.H.; Goman, M.G. Multi-degree-of-freedom wind-tunnel maneuver rig for dynamic simulation and aerodynamic model identification. J. Aircr. 2013, 50, 551–566. [Google Scholar] [CrossRef]
- Araujo-Estrada, S.A.; Gong, Z.; Lowenberg, M.H.; Neild, S.; Goman, M. Wind tunnel manoeuvre rig: A multi-DOF test platform for model aircraft. In Proceedings of the 54th AIAA Aerospace Sciences Meeting, San Diego, CA, USA, 4–8 January 2016. Number AIAA 2016-2119. [Google Scholar] [CrossRef]
- Navaratna, P.D.B.; Lowenberg, M.H.; Neild, S.A. Minimally constrained flight simulation in wind tunnel. J. Aircr. 2019, 56, 1353–1366. [Google Scholar] [CrossRef]
- Tai, S.; Wang, L.; Wang, Y.; Bu, C.; Yue, T. Flight dynamics modeling and aerodynamic parameter identification of four-degree-of-freedom virtual flight test. AIAA J. 2023, 61, 2652–2665. [Google Scholar] [CrossRef]
- Honeywell International Inc. Honeywell Aerospace. Available online: https://aerospace.honeywell.com/us/en/products-and-services/product/hardware-and-systems/sensors/inertial-measurement-units (accessed on 21 July 2023).
- Narasimhappa, M.; Mahindrakar, A.D.; Guizilini, V.C.; Terra, M.H.; Sabat, S.L. MEMS-based IMU drift minimization: Sage-Husa adaptive robust Kalman filtering. IEEE Sens. J. 2020, 20, 250–260. [Google Scholar] [CrossRef]
- Ruffner, J.W.; Deaver, D.M.; Henry, D.J. Requirements analysis for an air traffic control tower surface surveillance enhanced vision system. In Enhanced and Synthetic Vision 2003; International Society for Optics and Photonics; Verly, J.G., Ed.; SPIE: Bellingham, DC, USA, 2003; Volume 5081, pp. 124–135. [Google Scholar] [CrossRef]
- Bachoo, A.K.; le Roux, F.; Nicolls, F. An optical tracker for the maritime environment. In Signal Processing, Sensor Fusion, and Target Recognition XX; International Society for Optics and Photonics; Kadar, I., Ed.; SPIE: Bellingham, DC, USA, 2011; Volume 8050, pp. 571–580. [Google Scholar] [CrossRef]
- Valaboju, R.; Vaishnavi; Harshitha, C.; Kallam, A.R.; Babu, B.S. Drone detection and classification using computer vision. In Proceedings of the 2023 7th International Conference on Trends in Electronics and Informatics (ICOEI), Tirunelveli, India, 11–13 April 2023; pp. 1320–1328. [Google Scholar] [CrossRef]
- Kasula, P.; Whidborne, J.F.; Rana, Z.; Ishola, A. Motion estimation of an aircraft model using computer vision. In Proceedings of the AIAA SCITECH 2024 Forum, Orlando, FL, USA, 8–12 January 2024. Number AIAA 2024-2501. [Google Scholar] [CrossRef]
- Liu, W.; Ma, X.; Li, X.; Chen, L.; Zhang, Y.; Li, X.; Shang, Z.; Jia, Z. High-precision pose measurement method in wind tunnels based on laser-aided vision technology. Chin. J. Aeronaut. 2015, 28, 1121–1130. [Google Scholar] [CrossRef]
- Li, Z.; Yang, M.; Huang, S.; Zhou, D. A new moving model test method for the measurement of aerodynamic drag coefficient of high-speed trains based on machine vision. Proc. Inst. Mech. Eng. Part J. Rail Rapid Transit 2018, 232, 1425–1436. [Google Scholar] [CrossRef]
- Wu, L.J.; Casciati, F.; Casciati, S. Dynamic testing of a laboratory model via vision-based sensing. Eng. Struct. 2014, 60, 113–125. [Google Scholar] [CrossRef]
- Ha, J.; Johnson, E.N.; Tannenbaum, A. Real-time visual tracking using geometric active contours and particle filters. J. Aerosp. Comput. Inf. Commun. 2008, 5, 361–379. [Google Scholar] [CrossRef]
- Yoo, S.; Kim, W.; Kim, C. Saliency combined particle filtering for aircraft tracking. J. Signal Process. Syst. 2014, 76, 19–31. [Google Scholar] [CrossRef]
- Zheng, M.; Wu, Z.; Bakhdavlatov, S.; Qu, J.; Li, H.; Yuan, J. Real-time aerial targets detection algorithm based background subtraction. In Proceedings of the 2013 Asia-Pacific Signal and Information Processing Association Annual Summit and Conference, Kaohsiung, Taiwan, 29 October–1 November 2013; pp. 1–6. [Google Scholar] [CrossRef]
- Graves, S.S.; Bunrer, A.W. Development of an intelligent videogrammetric wind tunnel measurement system. In Optical Diagnostics for Fluids, Solids, and Combustion; International Society for Optics and Photonics; Mercer, C.R., Cha, S.S., Shen, G., Eds.; SPIE: Bellingham, DC, USA, 2004. [Google Scholar] [CrossRef]
- Ma, X.; Liu, W.; Chen, L.; Lu, J.; Liu, W.; Zhang, J.; Jia, Z.; Changyu, L.; Zaihua, Y.; Wangmin, Y. A photogrammetry pose measurement method for moving targets in a wind tunnel. In Proceedings of the IEEE International Instrumentation and Measurement Technology Conference, Taipei, Taiwan, 23–26 May 2016; pp. 1–5. [Google Scholar] [CrossRef]
- Liu, W.; Chen, L.; Ma, X.; Li, X.; Jia, Z. Monocular position and pose measurement method for high-speed targets based on colored images. Chin. J. Sci. Instrum. 2016, 37, 675–682. [Google Scholar]
- Jia, Z.; Ma, X.; Liu, W.; Lu, W.; Li, X.; Chen, L.; Wang, Z.; Cui, X. Pose measurement method and experiments for high-speed rolling targets in a wind tunnel. Sensors 2014, 14, 23933–23953. [Google Scholar] [CrossRef] [PubMed]
- Cheng, L.; Yang, Y.; Xue, B.; Zhou, F.; Bai, X. A position and attitude vision measurement system for wind tunnel slender model. In Proceedings of SPIE—The International Society for Optical Engineering; SPIE: Bellingham, DC, USA, 2014; Volume 9301. [Google Scholar] [CrossRef]
- Jones, T.W.; Lunsford, C.B. A photogrammetric system for model attitude measurement in hypersonce wind tunnels. In Proceedings of the 45th AIAA Aerospace Sciences Meeting and Exhibit, Reno, NV, USA, 8–11 January 2007. Number AIAA 2007-1164. [Google Scholar] [CrossRef]
- Liu, W.; Ma, X.; Chen, L.; Jia, Z.; Liu, W.; Li, X.; Zhang, J.; Lu, J. Remote-controlled flexible pose measurement system and method for a moving target in wind tunnel. Chin. J. Aeronaut. 2018, 31, 89–98. [Google Scholar] [CrossRef]
- Park, H.S.; Kim, J.Y.; Kim, J.G.; Choi, S.W.; Kim, Y. A new position measurement system using a motion-capture camera for wind tunnel tests. Sensors 2013, 13, 12329–12344. [Google Scholar] [CrossRef] [PubMed]
- Chen, Y.f.; Wu, L.N.; Yue, S.l.; Lin, Q. Pose measurement base on machine vision for the aircraft model in wire-driven parallel suspension system. In The International Society for Optical Engineering; SPIE: Bellingham, DC, USA, 2013; Volume 8783. [Google Scholar] [CrossRef]
- Sun, Y.; Zhang, Z.; Huang, S.; Yu, B.; Wang, S. Vision measurement technology research for model angle of attack in wind tunnel tests. Acta Aeronaut. Astronaut. Sin. 2013, 34, 1–7. [Google Scholar]
- Chunping, Y.; Yixin, C.; Yifeng, C.; Liao-ni, W.; Qi, L. Posture measurement for the aircraft model based on the monocular-vision system. In Proceedings of the International Conference on Automatic Control and Artificial Intelligence (ACAI 2012), Xiamen, China, 3–5 March 2012; pp. 1580–1583. [Google Scholar] [CrossRef]
- Song, J.; Ma, J.; Jiang, M.; Jiang, K. Measurement based on machine vision for spin test in vertical wind tunnel. In Proceedings of the 2012 IEEE Symposium on Electrical and Electronics Engineering (EEESYM), Kuala Lumpur, Malaysia, 24–27 June 2012; pp. 251–254. [Google Scholar] [CrossRef]
- Chen, J.; Zhao, L. A stereo vision-based attitude measurement system for aircraft model in wind tunnel. In Proceedings of the 2010 International Conference on Computer Application and System Modeling (ICCASM 2010), Taiyuan, China, 22–24 October 2010; Volume 9, pp. 456–460. [Google Scholar] [CrossRef]
- Gurfil, P.; Rotstein, H. Computer vision-based estimation of aircraft dynamics. In Proceedings of the 40th IEEE Conference on Decision and Control, Orlando, FL, USA, 4–7 December 2001; pp. 3746–3751. [Google Scholar] [CrossRef]
- Harris, C.; Stephens, M. A combined corner and edge detector. Alvey Vis. Conf. 1988, 13, 10-5244. [Google Scholar] [CrossRef]
- Tomasi, C.; Kanade, T. Detection and Tracking of Point Features. Int. J. Comput. Vis. 1991, 9, 137–154. [Google Scholar] [CrossRef]
- Shi, J.; Tomasi, C. Good features to track. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 21–23 June 1994; pp. 593–600. [Google Scholar] [CrossRef]
- Hartley, R.; Zisserman, A. Multiple View Geometry in Computer Vision; Cambridge University Press: Cambridge, UK, 2003. [Google Scholar]
- Ishola, A.; Whidborne, J.; Kasula, P. Control for novel 3-dof flight testing in a wind tunnel. In Proceedings of the 14th UKACC International Conference on Control (CONTROL 2024), Winchester, UK, 10–12 April 2024. [Google Scholar] [CrossRef]
- Ishola, A.A. Development of an Aircraft-Manipulator System for Dynamic Wind Tunnel Tests. Ph.D. Thesis, Cranfield University, Bedford, UK, 2024. [Google Scholar]
Corner Points | X Pixel Error | Y Pixel Error |
---|---|---|
Side View Tail P1 | 0.880 | 1.312 |
Top View Wing P1 | 2.052 | 0.052 |
Top View Wing P2 | 1.060 | 0.583 |
Top View HS | 2.052 | ±1.052 |
Side View HS P1 | 1.229 | −1.171 |
Side View HS P2 | 1.257 | −1.047 |
Angles | Error Range (°) | Rates | Rates Error (rad/s) |
---|---|---|---|
Euler Angles | Change in Angles (°) |
---|---|
Angles | Error Range (°) | Rates | Rates Error (rad/s) |
---|---|---|---|
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. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Kasula, P.; Whidborne, J.F.; Rana, Z.A. Quaternion-Based Attitude Estimation of an Aircraft Model Using Computer Vision. Sensors 2024, 24, 3795. https://doi.org/10.3390/s24123795
Kasula P, Whidborne JF, Rana ZA. Quaternion-Based Attitude Estimation of an Aircraft Model Using Computer Vision. Sensors. 2024; 24(12):3795. https://doi.org/10.3390/s24123795
Chicago/Turabian StyleKasula, Pavithra, James F. Whidborne, and Zeeshan A. Rana. 2024. "Quaternion-Based Attitude Estimation of an Aircraft Model Using Computer Vision" Sensors 24, no. 12: 3795. https://doi.org/10.3390/s24123795
APA StyleKasula, P., Whidborne, J. F., & Rana, Z. A. (2024). Quaternion-Based Attitude Estimation of an Aircraft Model Using Computer Vision. Sensors, 24(12), 3795. https://doi.org/10.3390/s24123795