UAV Scenario Designer
Design UAV scenarios with terrain, platforms, and sensors
Description
The UAV Scenario Designer app enables you to interactively create a UAV scenario with terrain, platforms, and sensors and simulate trajectories for a UAV platform. Using the app, you can:
Import, export, and create a UAV scenario
Import terrain from Digital Terrain Elevation Data (DTED) files
Add and edit scene objects, platforms, and sensors
Add custom platforms and scene objects from STL files.
Create and edit platform trajectories
Simulate a UAV scenario
Open the UAV Scenario Designer App
MATLAB® Toolstrip: On the Apps tab, under Robotics And Autonomous Systems, click UAV Scenario Designer
.
MATLAB command prompt: Enter
uavScenarioDesigner
.
Examples
Related Examples
Parameters
Trajectory
— Trajectory settings
tab
To add or edit a trajectory and control the trajectory generation, use the trajectory settings.
Click Waypoints to add waypoints to a trajectory of a selected platform.
Click Delete Trajectory to delete an existing trajectory.
Click Trajectory Table to display the trajectory table. See Trajectory Table for more information.
Click Time-Altitude plot to display the time vs altitude plot.
You can also choose to automatically generate the waypoint trajectory or manually input waypoints by changing the selections of the Path and Orientation parameters.
Parameter | Selection |
---|---|
Trajectory Course |
|
Platform Orientation |
|
Time |
|
Ground speed |
Note UAV Scenario Designer does not support negative ground speeds.
|
Climb Rate |
|
Trajectory Table
— Trajectory information
table
Trajectory information for each waypoint, specified as a table of scalars. When you insert waypoints on the platform canvas, the table is automatically generated. Click Trajectory Table under the Trajectory tab to display the table.
Edit the parameters in the table to adjust or fine-tune the trajectory. After you change the parameter values in the table, the platform trajectory changes accordingly on the canvas. The table includes these trajectory parameters.
Parameter | Description |
---|---|
Times | Time at which the platform visits the waypoint, specified as a scalar in seconds. |
X | x coordinate of the waypoint in the scenario navigation frame. |
Y | y coordinate of the waypoint in the scenario navigation frame. |
Altitude | Altitude of the platform waypoint in the scenario navigation frame. |
Course | The direction of motion on the x-y plane, specified as an angle measurement from the x direction. |
Ground speed | Magnitude of the projected velocity on the x-y plane, specified as a nonnegative scalar in meters. |
Climb Rate | Climb rate of the waypoint, which is the projection of the platform velocity in the z direction. |
Roll | Orientation angle of the platform about the x-axis of the scenario frame, in degrees, specified as a scalar. |
Pitch | Orientation angle of the platform about the y-axis of the scenario frame, in degrees, specified as a scalar. |
Yaw | Orientation angle of the platform about the z-axis of the scenario frame, in degrees, specified as a scalar. |
Simulate
— Simulate UAV scenario tab
tab
Click Simulate in the UAV Scenario tab to open the Simulate tab.
Use the toolstrip buttons to control the simulation.
Click Hide Scene Object Markers in the UAV Scenario
View pane to hide the object markers.
Click Zoom to Selection in the UAV Scenario
View pane to zoom in on the selected object. Enable Zoom to Selection in
simulation mode to follow the selected object.
Property Panel (Platforms)
— Platform properties
pane
Use the Property Panel to edit the properties of a selected platform, such as geometry, body properties, mesh offset, and ego properties.
Platform
Parameter | Description |
---|---|
Name | Name of the platform. |
Color | Color of the platform and platform trajectory. |
Reference Frame | Reference frame of the platform, specified as NED
(north-east-down) or ENU (east-north-up). |
Start Time | Start time of the platform, in seconds. |
Elevation Control | Select Snap To Ground Elevation to set the elevation of the platform to ground level. |
To edit the geometry of the platform, use the Geometry parameters.
Geometry
Parameter | Description |
---|---|
Scale | Scale of the platform mesh. Default is 1 . If the
platform is a cuboid platform, this parameter is read-only. |
Length | Length of the mesh, in meters. For quadrotor, fixed-wing, and custom platforms, this property is read-only and affected by the Scale parameter. |
Width | Width of the mesh, in meters. For quadrotor, fixed-wing, and custom platforms, this property is read-only and affected by the Scale parameter. |
Height | Height of the mesh, in meters. For quadrotor, fixed-wing, and custom platforms, this property is read-only and affected by the Scale parameter. |
To edit the body properties of the scene object, use the Body Properties parameters.
Body Properties
Parameter | Description |
---|---|
Position | Specify the X, Y, and Z positions of the platform in the global coordinate frame, in meters. The properties change depending on the selected reference frame.
|
Orientation | Specify the Yaw, Pitch, Roll orientation from the world frame to the body frame in Z-Y-X order in degrees.
|
To edit the mesh offset of the scene object, use the Mesh Offset parameters.
Mesh Offset
Parameter | Description |
---|---|
Position Offset | Mesh position offset, in meters, from the platform frame in the X, Y, and Z directions. |
Orientation Offset | Mesh orientation offset, in degrees, from the platform frame in Roll, Pitch, and Yaw directions. |
To edit the ego properties of the scene object, use the Ego Properties parameters. The ego properties are initial conditions that move the mesh during simulation. If the platform has a trajectory, then these properties are read-only.
Ego Properties
Parameter | Description |
---|---|
Acceleration | Acceleration of the platform, in meters, per second squared. |
Velocity | Velocity of the platform, in meters, per second. |
Angular Velocity | Angular velocity of the platform, in degrees, per second. |
Property Panel (Scene Objects)
— Scene object properties
pane
Use the Property Panel to edit the scene object parameters and body properties of a selected object. Cylinders, polygons, and custom objects all share these object parameters:
Object Parameters
Parameter | Description |
---|---|
Name | Name of the scene object. |
Color | Color of the scene object. |
Elevation Control | Select Snap To Ground Elevation to set the elevation of the scene object to ground level. |
Use Local Coordinates | Select to use a local coordinate frame, specifying Position as X, Y, and Z. Clear this parameter to specify Position as Longitude, Latitude, and Altitude. |
Note
Scene objects coordinates are always defined in east-north-up (ENU).
The Body Properties contains the position of the scene object, Position. If you select Use Local Coordinates, these values are in Cartesian coordinates, in meters. Otherwise these values are the latitude and longitude of the object, in degrees, and the altitude in meters.
To edit the geometry of the scene object, use the Geometry parameters.
Geometry
Parameter | Description |
---|---|
Radius (Cylinder only) | Radius of the cylinder, in meters. |
Height | Height of the cylinder or polygon, in meters |
Property Panel (Sensors)
— Sensor properties
pane
To view and edit sensor properties in the Property Panel,
select a sensor. UAV Scenario Designer supports these three sensors: GPS,
INS, and lidar. These MATLAB object equivalents for these sensors are equivalent to the gpsSensor
,
insSensor
, and
uavLidarPointCloudGenerator
MATLAB objects respectively.
Use the Sensor Parameters and Mounting Properties to edit sensor parameters and their mounting position on the platform mesh respectively. These properties are the same for all sensor objects.
Sensor Parameters
Parameter | Description |
---|---|
Name | Name of the sensor. |
Update Rate | Update rate of the sensor, in hertz |
Mounting Properties
Parameter | Description |
---|---|
Position | Mounting position of the sensor with respect to the platform body origin. |
Orientation | Mounting orientation of the sensor with respect to the platform body orientation. |
To edit the GPS Parameters, select a GPS sensor.
GPS Parameters
Parameter | Description |
---|---|
Reference Location | Reference location of the sensor, specified in geodetic coordinates with latitude and longitude in degrees and altitude in meters. |
Position Input Format | Position input format of the sensor, specified in local Cartesian or geodetic coordinates. |
Reference Frame | Reference frame of the sensor, specified as NED
(north-east-down) or ENU (east-north-up). |
Horizontal Position Accuracy | Horizontal position accuracy of the sensor, specified in meters. |
Vertical Position Accuracy | Vertical position accuracy of the sensor, specified in meters. |
Velocity Accuracy | Velocity accuracy of the sensor, specified in meters per second. |
Decay Factor | Decay factor of the sensor, specified as a number in the range
[0, 1] . |
Random Stream | Random stream, specified as Global stream or
mt19937ar with seed . |
Seed | Specify seed random stream. |
To edit the INS Parameters, select an INS sensor.
INS Parameters
Parameter | Description |
---|---|
Position Accuracy | Position accuracy of the INS sensor, specified as X, Y, and Z, in meters. |
Orientation Accuracy | Orientation accuracy of the INS sensor, specified as Roll, Pitch, and Yaw, in degrees. |
Position Error Factor | Position error factor of the INS sensor, specified in meters. |
Velocity Accuracy | Velocity accuracy of the INS sensor, specified in meters per second. |
Acceleration Accuracy | Acceleration accuracy of the INS sensor, specified in meters per second squared. |
Angular Velocity Accuracy | Angular velocity accuracy of the INS sensor, specified in degrees. |
Fix GNSS | Select to lock the GNSS readings of the INS sensor. |
To edit the Lidar Parameters, select a lidar sensor.
Lidar Parameters
Parameter | Description |
---|---|
Max Range | Maximum range of the lidar sensor, in meters. |
Range Accuracy | Range accuracy of the lidar sensor, in meters. |
Azimuth Resolution | Azimuth resolution of the lidar sensor, in degrees. |
Elevation Resolution | Elevation resolution of the lidar sensor, in degrees. |
Add Noise | Select to add noise to the lidar sensor output. |
Organize Output | Select to output an organized point cloud. |
Elevation Limits | Elevation scanning limits of the lidar sensor, in degrees. |
Azimuth Limits | Azimuth scanning limits of the lidar sensor, in degrees. |
Property Panel (Import Terrain)
— Terrain import properties
pane
Use the Property Panel to set the terrain import properties for the selected terrain after clicking Import Terrain.
Terrain Properties
Parameter | Description |
---|---|
Name | Name of the terrain file. This parameter is read-only. |
Import Terrain | Select to import the terrain, once you have set all the parameters. |
Use Local Coordinates | Select to specify the terrain limits and bounds using local coordinates. To use geodetic coordinates for the terrain limits and bounds, clear this parameter. |
To edit the terrain limits, use the Terrain Limits parameters.
Terrain Limits
Parameter | Description |
---|---|
X (m) and Y (m) | Minimum and maximum X- and Y-axis limits of the terrain. To enable this parameter, select Use Local Coordinates. |
Latitude Limits (deg) and Longitude Limits (deg) | | Minimum and maximum latitude and longitude limits of the terrain. To enable this parameter, clear Use Local Coordinates. |
To edit the terrain bounds, use the Terrain Bounds parameters.
Terrain Bounds
Parameter | Description |
---|---|
X (m) and Y (m) | Minimum and maximum X- and Y-axis limits of the terrain bounds. To enable this parameter, select Use Local Coordinates. |
Latitude Limits (deg) and Longitude Limits (deg) | | Minimum and maximum latitude and longitude limits of the terrain bounds. To enable this parameter, clear Use Local Coordinates. |
Programmatic Use
Limitations
UAV Scenario Designer may run slowly if MATLAB is using a software implementation of OpenGL®. To solve the problem, upgrade your graphics hardware driver or use
opengl
to switch to a hardware-accelerated implementation of OpenGL. See Resolving Low-Level Graphics Issues for more information.
More About
Version History
Introduced in R2022a