{"id":49041,"date":"2023-04-13T10:33:10","date_gmt":"2023-04-13T14:33:10","guid":{"rendered":"https:\/\/blogs.sw.siemens.com\/simcenter\/?p=49041"},"modified":"2026-03-26T06:47:53","modified_gmt":"2026-03-26T10:47:53","slug":"vv-co-simulation-autonomous-uav","status":"publish","type":"post","link":"https:\/\/blogs.sw.siemens.com\/simcenter\/vv-co-simulation-autonomous-uav\/","title":{"rendered":"A new V&#038;V co-simulation framework for autonomous UAV!"},"content":{"rendered":"\n<p>In May 2020, a commercial drone test flight was conducted near Riga International Airport in Latvia. During the test flight, the company lost communications with the drone and track of its location.<br>This 26 kg drone had enough fuel to stay in the air for 90 hours. It led to severe consequences, such as the closure of airspace over an international airport.<sup>1<\/sup> While in Arizona, a military drone of more than $1M got lost, which caused heavy financial repercussions.<sup>2<\/sup><\/p>\n\n\n\n<p>Unmanned aerial vehicles (UAVs) are meant to perform different kinds of missions, which is one of the key aspects of drones. This broad spectrum of applications requires drone manufacturers to develop a modular platform adaptable to mission needs. Hence the need to customize both hardware and software components, specifically the guidance, navigation and control (GNC) algorithm.<\/p>\n\n\n\n<p>During the verification and validation (V&amp;V), one shall ensure the software meets the specifications and requirements to fulfill its intended purpose. Testing GNC on a real drone can be time-consuming and expensive. The alternative to reducing the cost is to use a simulation tool to conduct a preliminary virtual test campaign.<\/p>\n\n\n\n<div style=\"height:26px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"856\" height=\"191\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgA_testing.png\" alt=\"Real versus virtual test\" class=\"wp-image-49042\" srcset=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgA_testing.png 856w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgA_testing-600x134.png 600w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgA_testing-768x171.png 768w\" sizes=\"auto, (max-width: 856px) 100vw, 856px\" \/><figcaption class=\"wp-element-caption\">Figure 1. Physical versus virtual testing.<\/figcaption><\/figure><\/div>\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Co-simulation framework for V&amp;V<\/h2>\n\n\n\n<p>Simulation models must provide high-fidelity results while CPU time remains acceptable (enough for real-time execution) to bring added value. The plant model of the drone, its environmental perception as well as the controller shall be simulated.<\/p>\n\n\n\n<p>Let\u2019s begin with the plant model: since the drone encompasses various physical domains such as mechanical (equation of motion, propulsion), electrical (motor, battery) and control, it falls into the category of complex multi-physical system. Consequently, a tool handling multi-physics is required to model those different subsystems.<\/p>\n\n\n\n<div style=\"height:26px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"650\" height=\"352\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgB_drone_physics.png\" alt=\"Drone physical domains\" class=\"wp-image-49043\" srcset=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgB_drone_physics.png 650w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgB_drone_physics-600x325.png 600w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><figcaption class=\"wp-element-caption\">Figure 2. Drone physical domains.<\/figcaption><\/figure><\/div>\n\n\n<div style=\"height:26px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Simcenter Amesim is dedicated to the modeling and simulation of dynamic and multi-physics systems. The tool enables to achieve performance analysis as well as performing virtual system integration. Another key benefit is the scalability modeling approach, since the model accuracy increases as the design matures (i.e., tabulated approach or analytical equation). Furthermore, Simcenter Amesim is an open mechatronic simulation platform with various interfaces with Functional Mock-Up Interface (FMI) and MATLAB Simulink. In addition to the real-time applications support, software in the loop (SIL) and hardware in the loop (HIL) simulation can be performed.<\/p>\n\n\n\n<div style=\"height:26px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"904\" height=\"444\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgC_simcenter_amesim.png\" alt=\"Quadcopter plant model in Simcenter Amesim with post-processing tools.\" class=\"wp-image-49044\" srcset=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgC_simcenter_amesim.png 904w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgC_simcenter_amesim-600x295.png 600w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgC_simcenter_amesim-768x377.png 768w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgC_simcenter_amesim-900x442.png 900w\" sizes=\"auto, (max-width: 904px) 100vw, 904px\" \/><figcaption class=\"wp-element-caption\">Figure 3. Quadcopter plant model in Simcenter Amesim with post-processing tools.<\/figcaption><\/figure><\/div>\n\n\n<div style=\"height:26px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>To perform autonomous missions, the drone must correctly perceive the environment. Hence the modeling of both the 3D environment and drone\u2019s sensors via Simcenter Prescan. This tool is dedicated to modeling the vehicle\u2019s surrounding environment (road, building, pedestrian, other vehicles) and vehicle\u2019s sensor simulation (several levels of fidelity from ideal to physics-based). Changing the lighting and weather conditions (sun position, rain, snow, fog) can be achieved via a simple click.<\/p>\n\n\n\n<div style=\"height:26px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"922\" height=\"549\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgD_simcenter_prescan.png\" alt=\"Environment creation, sensor object configuration and animation in Simcenter Prescan.\" class=\"wp-image-49045\" srcset=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgD_simcenter_prescan.png 922w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgD_simcenter_prescan-600x357.png 600w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgD_simcenter_prescan-768x457.png 768w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgD_simcenter_prescan-900x536.png 900w\" sizes=\"auto, (max-width: 922px) 100vw, 922px\" \/><figcaption class=\"wp-element-caption\">Figure 4. Environment creation, sensor object configuration and animation in Simcenter Prescan.<\/figcaption><\/figure><\/div>\n\n\n<div style=\"height:26px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>The objective is now to couple the drone plant model (UAV subsystem performances), the environment perception model and the GNC algorithm together. Three variants have been developed; the difference is based on how to connect the GNC algorithm:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>GNC in MATLAB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Model-in-the-loop analysis (early design stage of development)<\/li>\n\n\n\n<li>GNC in C++&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Software-in-the-loop analysis (test the controller code)<\/li>\n\n\n\n<li>GNC as ROS node&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Use off-the-shelf autopilot abstraction and HIL analysis<\/li>\n<\/ul>\n\n\n\n<div style=\"height:26px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"766\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgE_cosim_framework.png\" alt=\"Co-simulation framework\" class=\"wp-image-49046\" srcset=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgE_cosim_framework.png 900w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgE_cosim_framework-600x511.png 600w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgE_cosim_framework-768x654.png 768w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><figcaption class=\"wp-element-caption\">Figure 5. Co-simulation framework using the integrated solutions Simcenter Amesim and Simcenter Prescan.<\/figcaption><\/figure><\/div>\n\n\n<div style=\"height:26px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Let\u2019s use this co-simulation framework to conduct GNC algorithm testing on a virtual test bench. Two scenarios coming from the logistics use case from the <a href=\"https:\/\/www.comp4drones.eu\/project-info\/overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">COMP4DRONES European Project<\/a> are run. This Electronic Components and Systems for European Leadership Joint Undertaking (ECSEL JU) project aims at providing a framework of key enabling technologies for safe and autonomous drones.<\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Precision landing use case<\/h2>\n\n\n\n<p>In the first scenario, the drone is used on a hospital campus to deliver a parcel containing a sample of spinal fluid (that must be handled with care) from one building to another. The drone must land precisely on a waiting droid equipped with a camera pointing upward. To precisely detect the drone position, a QR code marker is printed on the bottom side of the package. The droid will guide the drone to precisely land on it thanks to the camera.<\/p>\n\n\n\n<p>The simulation focuses on the landing part of the mission and shall ensure a precision of less than five centimeters.<\/p>\n\n\n\n<div style=\"height:26px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"439\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgF_UC_precisionLanding-1024x439.png\" alt=\"Precision landing description\" class=\"wp-image-49047\" srcset=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgF_UC_precisionLanding-1024x439.png 1024w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgF_UC_precisionLanding-600x258.png 600w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgF_UC_precisionLanding-768x330.png 768w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgF_UC_precisionLanding-900x386.png 900w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgF_UC_precisionLanding.png 1144w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Figure 6. Precision landing description.<\/figcaption><\/figure><\/div>\n\n\n<div style=\"height:26px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-video aligncenter\"><video controls src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/vidA_precisionLanding.mp4\"><\/video><figcaption class=\"wp-element-caption\">Figure 7. Precision landing simulation results in Simcenter Amesim.<\/figcaption><\/figure>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Detect and avoid use case<\/h2>\n\n\n\n<p>In the second scenario, the drone evolves in an urban environment and shall move between buildings. A laser imaging detection and ranging (LiDAR) sensor is used to sense the environment. In this scenario, the algorithm verifies if the obstacle is in front of the drone or next to the drone. It then computes a waypoint the drone must fly towards.<\/p>\n\n\n\n<div style=\"height:26px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"481\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgG_UC_detectAndAvoid.png\" alt=\"Detect and Avoid simulation environment (red and green circle represent respectively the drone start and target position)\" class=\"wp-image-49049\" srcset=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgG_UC_detectAndAvoid.png 730w, https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/imgG_UC_detectAndAvoid-600x395.png 600w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><figcaption class=\"wp-element-caption\">Figure 8. Detect and avoid simulation environment (red and green circles represent respectively the drone start and target position) in Simcenter Prescan.<\/figcaption><\/figure><\/div>\n\n\n<div style=\"height:26px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-video aligncenter\"><video controls src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/vidB_detectAndAvoid_light.mp4\"><\/video><figcaption class=\"wp-element-caption\">Figure 9. Detect and avoid simulation results in Simcenter Amesim.<\/figcaption><\/figure>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Using simulation tools offers several benefits to verify and validate GNC algorithms since boundary conditions such as light, wind or air temperature can be easily changed. It supports the validation of the control algorithm, which can be virtually tested under numerous flight conditions. One can also identify the operating range where the system reaches critical conditions. Finally, critical safety conditions can be assessed and mitigated (such as motor failure, wind disturbances\u2026). Using this novel co-simulation framework to test algorithms virtually leads to a more effective test campaign.<\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>You might also be interested in&#8230;<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Podcast | <a href=\"https:\/\/blogs.sw.siemens.com\/podcasts\/talking-aerospace-today\/innovation-podcast-series-ep-2-evtol-aerodynamic-design-through-digitalization\/\" target=\"_blank\" rel=\"noreferrer noopener\">eVTOL aerodynamic design through digitalization<\/a><\/li>\n\n\n\n<li>Webinar | <a href=\"https:\/\/webinars.sw.siemens.com\/en-US\/urban-air-mobility-performance-engineering\" target=\"_blank\" rel=\"noreferrer noopener\">Urban air mobility<\/a><\/li>\n\n\n\n<li>Podcast | <a href=\"https:\/\/blogs.sw.siemens.com\/podcasts\/talking-aerospace-today\/innovation-podcast-series-ep-3-evtol-power-density-and-thermal-management\/\" target=\"_blank\" rel=\"noreferrer noopener\">eVTOL power density and thermal management<\/a><\/li>\n<\/ul>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>References<\/strong><\/p>\n\n\n\n<p><sup>1<\/sup> BBC (2020) <a href=\"https:\/\/www.bbc.com\/news\/technology-52533227\" target=\"_blank\" rel=\"noreferrer noopener\">Latvian drone fueled for days goes missing, restricting airspace<\/a>.<\/p>\n\n\n\n<p><sup>2<\/sup> The Register (2017) <a href=\"https:\/\/www.theregister.com\/2017\/03\/02\/us_military_drone_crashes_623_miles_away\/\" target=\"_blank\" rel=\"noreferrer noopener\">US military drone goes AWOL, ends up crashing into tree 623 miles away<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, read about a novel co-simulation framework for verification and validation (V&#038;V) of GNC algorithms for autonomous UAV.<\/p>\n","protected":false},"author":87569,"featured_media":49059,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spanish_translation":"","french_translation":"","german_translation":"","italian_translation":"","polish_translation":"","japanese_translation":"","chinese_translation":"","footnotes":""},"categories":[1],"tags":[86,18597,63523,63509],"industry":[125,127],"product":[50920,590,511],"coauthors":[9430],"class_list":["post-49041","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","tag-simulation","tag-testing","tag-verification-management","tag-virtual-testing","industry-aerospace-defense","industry-aircraft-airframes","product-simcenter","product-simcenter-amesim","product-simcenter-prescan"],"featured_image_url":"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/6\/2023\/04\/Main-picture-1.png","_links":{"self":[{"href":"https:\/\/blogs.sw.siemens.com\/simcenter\/wp-json\/wp\/v2\/posts\/49041","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.sw.siemens.com\/simcenter\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.sw.siemens.com\/simcenter\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/simcenter\/wp-json\/wp\/v2\/users\/87569"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/simcenter\/wp-json\/wp\/v2\/comments?post=49041"}],"version-history":[{"count":5,"href":"https:\/\/blogs.sw.siemens.com\/simcenter\/wp-json\/wp\/v2\/posts\/49041\/revisions"}],"predecessor-version":[{"id":69049,"href":"https:\/\/blogs.sw.siemens.com\/simcenter\/wp-json\/wp\/v2\/posts\/49041\/revisions\/69049"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/simcenter\/wp-json\/wp\/v2\/media\/49059"}],"wp:attachment":[{"href":"https:\/\/blogs.sw.siemens.com\/simcenter\/wp-json\/wp\/v2\/media?parent=49041"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/simcenter\/wp-json\/wp\/v2\/categories?post=49041"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/simcenter\/wp-json\/wp\/v2\/tags?post=49041"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/simcenter\/wp-json\/wp\/v2\/industry?post=49041"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/simcenter\/wp-json\/wp\/v2\/product?post=49041"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/simcenter\/wp-json\/wp\/v2\/coauthors?post=49041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}