Scenario Simulation
Simulation using realistic unmanned aerial vehicle (UAV) scenarios and sensor models is a crucial part of testing UAV algorithms. UAV Toolbox provides two simulation environments in which to test these algorithms. Both environments have their distinct uses, and one environment is not a replacement for the other.
In the cuboid simulation environment, vehicles and other platforms in the scenario are represented as simple box shapes, or for lidar applications, as polygon meshes. Use this environment to rapidly author scenarios or generate sensor data. Test controllers, tracking algorithms, and sensor fusion algorithms in both MATLAB® and Simulink®. To get started authoring a scenario, use the
uavScenario
object.In the Unreal Engine® simulation environment (requires Simulink 3D Animation™), scenarios are rendered using the Unreal Engine from Epic Games®. Use this environment to visualize scenarios using more realistic graphics; to generate high-fidelity radar, camera, and lidar sensor data; and to test perception-in-the-loop systems. This environment is available in Simulink and runs on Windows® only. To learn more, see Unreal Engine Simulation for Unmanned Aerial Vehicles.
Apps
UAV Scenario Designer | Design UAV scenarios with terrain, platforms, and sensors (Since R2022a) |
Functions
Blocks
Scenes and Vehicle Dimensions
Topics
Simulation Basics
- Unreal Engine Simulation for Unmanned Aerial Vehicles
Learn how to use unmanned aerial vehicle algorithms in Simulink and visualize their performance in a virtual environment using the Unreal Engine from Epic Games. - Unreal Engine Simulation Environment Requirements and Limitations
When simulating in the Unreal Engine environment, keep these software requirements, minimum hardware requirements, and limitations in mind. - How Unreal Engine Simulation for UAVs Works
Learn about the co-simulation framework between Simulink and the Unreal Engine and how block execution order affects simulation. - Coordinate Systems for Unreal Engine Simulation in UAV Toolbox
Understand the world and UAV coordinate systems when simulating in the Unreal Engine environment. - Visualize with Cesium
Stream 3D map and terrain data of a location. - Animate Multiple UAVs Using Dynamic Mesh
Animate multiple UAVs and dynamically adjust meshes using the UAV Animation Block.
Simulation with Sensors
- Simulate UAV Mission in Urban Environment
Simulate a UAV mission in an urban environment using UAV scenario and OpenStreetMap® data of Manhattan, New York - Simulate IMU Sensor Mounted on UAV
Create a sensor adaptor for animuSensor
from Navigation Toolbox™ and gather readings for a simulated UAV flight scenario. - Simulate Radar Sensor Mounted on UAV
The radar sensor enables a UAV to detect other vehicles in the airspace, so that the UAV can predict other vehicle motion and make decisions to ensure clearance from other vehicles. - Choose a Sensor for Unreal Engine Simulation
Decide which camera, or lidar sensors to use during 3D simulation with the Unreal Engine. - Simulate Simple Flight Scenario and Sensor in Unreal Engine Environment
Visualize sensors in a simulation environment that uses Unreal Engine® from Epic Games®. - Depth and Semantic Segmentation Visualization Using Unreal Engine Simulation
This example shows how to visualize depth and semantic segmentation data captured from a camera sensor in a simulation environment. - Stream Camera, Depth and Semantic Segmentation Data from Unreal Engine to NVIDIA Jetson
This example shows how to stream simulated camera, depth, and semantic segmentation label data from an Unreal Engine® scene to NVIDIA® Jetson™ hardware using the Video Send block in Simulink®. - Map Environment for Motion Planning Using UAV Lidar
Use a UAV with lidar sensor to create a 3D occupancy map for motion planning.
Scene Customization
- Customize Unreal Engine Scenes for UAVs
Customize Unreal Engine scenes for UAV flight applications.
- Apply Semantic Segmentation Labels to Custom Scenes
Apply labels to objects in a scene so that you can obtain semantic segmentation data from a camera sensor. - Prepare Custom UAV Vehicle Mesh for the Unreal Editor
Create custom vehicle mesh for the Simulation 3D UAV Vehicle block.