Autonomous UAV Development and Evaluation with MATLAB …

41
0 Autonomous UAV Development and Evaluation with MATLAB ® and Simulink ® Julia Antoniou Andrew Grabowski

Transcript of Autonomous UAV Development and Evaluation with MATLAB …

Page 1: Autonomous UAV Development and Evaluation with MATLAB …

0

Autonomous UAV Development and Evaluation

with MATLAB® and Simulink®

Julia Antoniou Andrew Grabowski

Page 2: Autonomous UAV Development and Evaluation with MATLAB …

11

Autonomous UAV Development and Evaluation

MATLAB® Simulink®

▪ Integrated workflows enabled

by MATLAB and Simulink

▪ Tools to design UAV systems

and autonomous applications

▪ Select appropriate methods for

your UAV development tasks

▪ Evaluating systems through

closed-loop simulations with

sensor models

Page 3: Autonomous UAV Development and Evaluation with MATLAB …

22

Autonomous UAV Development and Evaluation

MATLAB® Simulink®

▪ Integrated workflows enabled

by MATLAB and Simulink

▪ Tools to design UAV systems

and autonomous applications

▪ Select appropriate methods for

your UAV development tasks

▪ Evaluating systems through

closed-loop simulations with

sensor models

Page 4: Autonomous UAV Development and Evaluation with MATLAB …

33

Increase in autonomous UAV usage

Mapping &

Surveying

Inspections &

Monitoring

Delivery &

Transport

Security &

Defense

Page 5: Autonomous UAV Development and Evaluation with MATLAB …

44

Challenges in developing autonomous UAV systems & applications

Complexity of advanced

autonomous algorithms

Need of end-to-end workflows

Ensuring system quality and

reducing flight risk

Which of these challenges have you encountered?

Enter in chat if you have others. Also enter in chat

if you have tips on how you have resolved these

challenges.

Page 6: Autonomous UAV Development and Evaluation with MATLAB …

55

Solutions for developing autonomous UAV systems & applications

Robust tools and features for

designing and testing UAV systems

and algorithms

Integrated development environment

that covers development from ideas

to production

Extensive verification and validation

tools to evaluate design quality

through virtual testing

Page 7: Autonomous UAV Development and Evaluation with MATLAB …

66

Integrated workflows for developing UAV applications

MATLAB® Simulink®

System Architecture

Page 8: Autonomous UAV Development and Evaluation with MATLAB …

77

Integrated workflows for developing UAV applications

MATLAB®

Model UAV

Simulink®

System Architecture

Page 9: Autonomous UAV Development and Evaluation with MATLAB …

88

Integrated workflows for developing UAV applications

MATLAB®

Model UAV

Simulink®

System Architecture

Design Algorithms

PerceptionPlanning &

DecisionControl

Page 10: Autonomous UAV Development and Evaluation with MATLAB …

99

Integrated workflows for developing UAV applications

MATLAB®

Model UAV

Simulink®

Ve

rific

atio

n &

Va

lida

tio

n

DO-178

System Architecture

Design Algorithms

PerceptionPlanning &

DecisionControl

Page 11: Autonomous UAV Development and Evaluation with MATLAB …

1010

Integrated workflows for developing UAV applications

MATLAB®

Model UAV

Simulink®

Ve

rific

atio

n &

Va

lida

tio

n

DO-178

System Architecture

Unreal Engine

Simulate with Sensor Models

GazeboCuboid

Design Algorithms

PerceptionPlanning &

DecisionControl

Page 12: Autonomous UAV Development and Evaluation with MATLAB …

1111

Integrated workflows for developing UAV applications

Deploy to Hardware

MATLAB®

Model UAV

Implement

Simulink®

Ve

rific

atio

n &

Va

lida

tio

n

DO-178

System Architecture

Unreal Engine

Simulate with Sensor Models

GazeboCuboid

PX4® NVIDIA® Jetson®

Design Algorithms

PerceptionPlanning &

DecisionControl

Page 13: Autonomous UAV Development and Evaluation with MATLAB …

1212

Integrated workflows for developing UAV applications

Connect

Deploy to Hardware

MATLAB®

Model UAV

Implement

Connect

Simulink®

Ve

rific

atio

n &

Va

lida

tio

n

DO-178

System Architecture

Ground Control StationUAV

Unreal Engine

Simulate with Sensor Models

GazeboCuboid

PX4® NVIDIA® Jetson®

Design Algorithms

PerceptionPlanning &

DecisionControl

Page 14: Autonomous UAV Development and Evaluation with MATLAB …

1313

Integrated workflows for developing UAV applications

Connect

Deploy to Hardware

MATLAB®

Model UAV

Implement

Connect

Simulink®

Ve

rific

atio

n &

Va

lida

tio

n

DO-178

System Architecture

Analyze Data

Ground Control StationUAV

Unreal Engine

Simulate with Sensor Models

GazeboCuboid

PX4® NVIDIA® Jetson®

Design Algorithms

PerceptionPlanning &

DecisionControl

Page 15: Autonomous UAV Development and Evaluation with MATLAB …

1414

Integrated workflows for developing UAV applications

Connect

Deploy to Hardware

MATLAB®

Model UAV

Implement

Connect

Simulink®

Ve

rific

atio

n &

Va

lida

tio

n

Analyze Data

Ground Control StationUAV

Unreal Engine

Simulate with Sensor Models

GazeboCuboid

PX4® NVIDIA® Jetson®

Design Algorithms

PerceptionPlanning &

DecisionControl

DO-178

System Architecture

▪ System Composer™ for

designing and analyzing

system and software

architecture

▪ Simulink integration and

requirement allocation for

traceability

Link

Page 16: Autonomous UAV Development and Evaluation with MATLAB …

1515

Integrated workflows for developing UAV applications

Connect

Deploy to Hardware

MATLAB®

Model UAV

Implement

Connect

Simulink®

Ve

rific

atio

n &

Va

lida

tio

n

Analyze Data

Ground Control StationUAV

Unreal Engine

Simulate with Sensor Models

GazeboCuboid

PX4® NVIDIA® Jetson®

Design Algorithms

PerceptionPlanning &

DecisionControl

DO-178

System Architecture

Page 17: Autonomous UAV Development and Evaluation with MATLAB …

1616

UAV Plant Modeling: Selecting the appropriate fidelity

High-Fidelity

Building UAV

Approximate

Programming UAV

Simscape Multibody, Aerospace Blockset, UAV Toolbox

Page 18: Autonomous UAV Development and Evaluation with MATLAB …

1717

UAV Plant Modeling: Selecting the appropriate fidelity

High-Fidelity

Building UAV

Approximate

Programming UAV

Simscape Multibody, Aerospace Blockset, UAV Toolbox

Link

Page 19: Autonomous UAV Development and Evaluation with MATLAB …

1818

UAV Plant Modeling: Selecting the appropriate fidelity

High-Fidelity

Building UAV

Approximate

Programming UAV

Simscape Multibody, Aerospace Blockset, UAV Toolbox

Link Link

Page 20: Autonomous UAV Development and Evaluation with MATLAB …

1919

UAV Plant Modeling: Selecting the appropriate fidelity

High-Fidelity

Building UAV

Approximate

Programming UAV

Simscape Multibody, Aerospace Blockset, UAV Toolbox

Link LinkLink

Page 21: Autonomous UAV Development and Evaluation with MATLAB …

2020

Integrated workflows for developing UAV applications

Connect

Deploy to Hardware

MATLAB®

Model UAV

Implement

Connect

Simulink®

Ve

rific

atio

n &

Va

lida

tio

n

Analyze Data

Ground Control StationUAV

Unreal Engine

Simulate with Sensor Models

GazeboCuboid

PX4® NVIDIA® Jetson®

Design Algorithms

PerceptionPlanning &

DecisionControl

DO-178

System Architecture

Page 22: Autonomous UAV Development and Evaluation with MATLAB …

2121

Autonomous UAV Algorithm Development

Map Data

Endpoint

Startpoint

Planned Path

Design Algorithms

PerceptionPlanning &

DecisionControl

Page 24: Autonomous UAV Development and Evaluation with MATLAB …

2323

Autonomous UAV algorithm design with robust capabilities

PerceptionPlanning &

DecisionControl

Define UAV missions with waypoint

and trajectory-following algorithms

UAV motion planning with

advanced path planners

UAV Toolbox, Navigation Toolbox

Link Link

Page 25: Autonomous UAV Development and Evaluation with MATLAB …

2424

Autonomous UAV algorithm design with robust capabilities

PerceptionPlanning &

DecisionControl

Trajectory tracking controller with nonlinear

model predictive control (MPC)

Train policies for trajectory generation

using reinforcement learning algorithms

Model Predictive Control Toolbox, Reinforcement Learning Toolbox

Link Link

Page 26: Autonomous UAV Development and Evaluation with MATLAB …

2525

Integrated workflows for developing UAV applications

Connect

Deploy to Hardware

MATLAB®

Model UAV

Implement

Connect

Simulink®

Ve

rific

atio

n &

Va

lid

atio

n

Analyze Data

Ground Control StationUAV

Unreal Engine

Simulate with Sensor Models

GazeboCuboid

PX4® NVIDIA® Jetson®

Design Algorithms

PerceptionPlanning &

DecisionControl

DO-178

System Architecture

Page 27: Autonomous UAV Development and Evaluation with MATLAB …

2626

Tracking and automating verification and validation activities

Requirements Traceability Test Management & Automation Evaluate Completeness

Simulink Requirements, Simulink Test, Simulink Coverage, Simulink Check

Link Link Link

Page 28: Autonomous UAV Development and Evaluation with MATLAB …

2727

Example: Automating UAV testing with requirements linking

Requirements linking for traceability

Automating test execution and evaluation

UAV Toolbox, Simulink Requirements, Simulink TestLink

Page 29: Autonomous UAV Development and Evaluation with MATLAB …

2929

Integrated workflows for developing UAV applications

Connect

Deploy to Hardware

MATLAB®

Model UAV

Implement

Connect

Simulink®

Ve

rific

atio

n &

Va

lida

tio

n

Analyze Data

Ground Control StationUAV

Unreal Engine

Simulate with Sensor Models

GazeboCuboid

PX4® NVIDIA® Jetson®

Design Algorithms

PerceptionPlanning &

DecisionControl

DO-178

System Architecture

Page 30: Autonomous UAV Development and Evaluation with MATLAB …

3030

Integrated simulations with sensor models

Cuboid

Performance

Unreal Engine®

Photorealistic

What sensors are important to you? What sensor

characteristics are needed in simulation to proceed

to flight testing with confidence?

Rapidly author scenarios and

generate sensor data

Realistic graphics to test autonomous

algorithms in closed-loop simulations

UAV ToolboxLink Link

Page 31: Autonomous UAV Development and Evaluation with MATLAB …

3131

Integrated simulations with sensor models

Cuboid

Performance

Unreal Engine®

Photorealistic

What sensors are important to you? What sensor

characteristics are needed in simulation to proceed

to flight testing with confidence?

Rapidly author scenarios and

generate sensor data

Realistic graphics to test autonomous

algorithms in closed-loop simulations

UAV ToolboxLink Link

Page 32: Autonomous UAV Development and Evaluation with MATLAB …

3232

Integrated simulations with sensor models

Cuboid

Performance

Unreal Engine®

Photorealistic

What sensors are important to you? What sensor

characteristics are needed in simulation to proceed

to flight testing with confidence?

Rapidly author scenarios and

generate sensor data

Realistic graphics to test autonomous

algorithms in closed-loop simulations

UAV ToolboxLink Link

Page 33: Autonomous UAV Development and Evaluation with MATLAB …

3333

Example: Build 3D map using simulation Lidar point cloud data

Extract and match features

Register and align point cloud

Detect loop-closures

Create pose graph

Optimize poses

Execute simulation

Obtain sensor data

UAV Toolbox, Lidar Toolbox

Page 34: Autonomous UAV Development and Evaluation with MATLAB …

3434

Create 3D scenes for UAV simulations

Design 3D scenes for simulating and testing autonomous algorithms

RoadRunner, RoadRunner Asset Library, UAV Toolbox Interface for Unreal Engine Projects

Link Link

Page 35: Autonomous UAV Development and Evaluation with MATLAB …

3535

Automatic code generation for hardware implementation

Connect

MATLAB®

Model UAV

Implement

Connect

Simulink®

Ve

rific

atio

n &

Va

lida

tio

n

Analyze Data

Ground Control StationUAV

Unreal Engine

Simulate with Sensor Models

GazeboCuboid

Design Algorithms

PerceptionPlanning &

DecisionControl

DO-178

System Architecture

Deploy to Hardware

PX4® NVIDIA® Jetson®

UAV Toolbox, Simulink Coder, Embedded Coder, GPU Coder

Deploy flight controls to

autopilot hardware

Deploy autonomous

algorithms to onboard

computersFPGA

CPU GPU

ROS

Link

Link

Page 36: Autonomous UAV Development and Evaluation with MATLAB …

3636

Connecting to UAV hardware through MAVLink protocol

Deploy to Hardware

MATLAB®

Model UAV

Implement

Connect

Simulink®

Ve

rific

atio

n &

Va

lida

tio

n

Analyze Data

Unreal Engine

Simulate with Sensor Models

GazeboCuboid

PX4® NVIDIA® Jetson®

Design Algorithms

PerceptionPlanning &

DecisionControl

DO-178

System Architecture

Connect

Ground Control StationUAV

Message Blocks

Autopilot

MAVLink

Host Machine

MAVLink

Compute Board

MAVLink

UAV

Remote UAV

MAVLink Connectivity

UAV Toolbox

Link

Page 37: Autonomous UAV Development and Evaluation with MATLAB …

3737

Post-flight data analysis

Connect

Deploy to Hardware

MATLAB®

Model UAV

Implement

Connect

Simulink®

Ve

rific

atio

n &

Va

lida

tio

n

Ground Control StationUAV

Unreal Engine

Simulate with Sensor Models

GazeboCuboid

PX4® NVIDIA® Jetson®

Design Algorithms

PerceptionPlanning &

DecisionControl

DO-178

System ArchitectureFlight Log Analysis Payload Data Analysis

Analyze Data

UAV Toolbox, Computer Vision Toolbox, Deep Learning Toolbox

Link Link

Link

Page 38: Autonomous UAV Development and Evaluation with MATLAB …

3939

Integrated Workflows for Developing UAV Applications

Connect

Deploy to Hardware

MATLAB®

Model UAV

Implement

Connect

Simulink®

Ve

rific

atio

n &

Va

lida

tio

n

Analyze Data

Ground Control StationUAV

Unreal Engine

Simulate with Sensor Models

GazeboCuboid

PX4® NVIDIA® Jetson®

Design Algorithms

PerceptionPlanning &

DecisionControl

DO-178

System Architecture

Page 39: Autonomous UAV Development and Evaluation with MATLAB …

4040

Key Takeaways

Robust tools/features for

autonomous UAV design and

simulations with sensor models

Integrated development workflows

from prototyping to productization

with MATLAB and Simulink

Quality through verification & validation

tools for traceability, test completeness,

and test management/automation

Call To Action:

• Download presentation file

and investigate linked

examples and pages

• Contact us for to learn

more details or for trials

Page 40: Autonomous UAV Development and Evaluation with MATLAB …

41

© 2021 The MathWorks, Inc. MATLAB and Simulink are registered trademarks of The MathWorks, Inc. See mathworks.com/trademarks

for a list of additional trademarks. Other product or brand names may be trademarks or registered trademarks of their respective holders.

Thank you

Page 41: Autonomous UAV Development and Evaluation with MATLAB …

42

Q&A