17
1 © 2015 The MathWorks, Inc. Developing Active Safety Systems Using MATLAB and Simulink Marco Roggero Senior Application Engineer [email protected]

Developing Active Safety Systems Using MATLAB and Simulink...Developing Active Safety Systems Using MATLAB and Simulink Marco Roggero Senior Application Engineer [email protected]

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Developing Active Safety Systems Using MATLAB and Simulink...Developing Active Safety Systems Using MATLAB and Simulink Marco Roggero Senior Application Engineer marco.roggero@mathworks.de

1© 2015 The MathWorks, Inc.

Developing Active Safety Systems Using MATLAB and Simulink

Marco RoggeroSenior Application Engineer

[email protected]

Page 2: Developing Active Safety Systems Using MATLAB and Simulink...Developing Active Safety Systems Using MATLAB and Simulink Marco Roggero Senior Application Engineer marco.roggero@mathworks.de

2

Introduction & Motivation

Active Safety Systems must operate consistent and robustalso in unpredictable environments

Testing these systems in a real world environment is dangerousand can cause serious damage

Examples:– Lane Keeping Systems– Adaptive Cruise Control Systems– Automated Emergency Braking

Page 3: Developing Active Safety Systems Using MATLAB and Simulink...Developing Active Safety Systems Using MATLAB and Simulink Marco Roggero Senior Application Engineer marco.roggero@mathworks.de

3

Develop and verify your

active safety system functionality and

improve robustness using system level simulation.

Page 4: Developing Active Safety Systems Using MATLAB and Simulink...Developing Active Safety Systems Using MATLAB and Simulink Marco Roggero Senior Application Engineer marco.roggero@mathworks.de

4

Safety systems that are active prior to an accident

Use an understanding of the state of the vehicle and its environmentto avoid and minimize the effects of a crash.

Interpret signals from various sensors and decide how to help the driverto control the vehicle.

What is Active Safety?

Page 5: Developing Active Safety Systems Using MATLAB and Simulink...Developing Active Safety Systems Using MATLAB and Simulink Marco Roggero Senior Application Engineer marco.roggero@mathworks.de

5

Case Study: Lane Keeping System

Detect the vehicle‘s departure from its lane

Warn the driver or actively steer the vehicle

Vision algorithm for lane detection

Control algorithm for steering input

Vision algorithm for lane detection

Control System forSteering Input

Page 6: Developing Active Safety Systems Using MATLAB and Simulink...Developing Active Safety Systems Using MATLAB and Simulink Marco Roggero Senior Application Engineer marco.roggero@mathworks.de

6

Developing Active Safety Systems A Multi-Domain Problem

Vision Control

Page 7: Developing Active Safety Systems Using MATLAB and Simulink...Developing Active Safety Systems Using MATLAB and Simulink Marco Roggero Senior Application Engineer marco.roggero@mathworks.de

7

Developing Active Safety Systems The Challenge: Closed Loop with Environment

Vision Control

Page 8: Developing Active Safety Systems Using MATLAB and Simulink...Developing Active Safety Systems Using MATLAB and Simulink Marco Roggero Senior Application Engineer marco.roggero@mathworks.de

8

Developing Active Safety SystemsDeveloping the Vision Algorithm Part

MATLAB based workflow provides– Easy to debug scripting environment– Pixel level, 2D, 3D visualization– Easy-to-use powerful image processing, and

computer vision algorithms

Page 9: Developing Active Safety Systems Using MATLAB and Simulink...Developing Active Safety Systems Using MATLAB and Simulink Marco Roggero Senior Application Engineer marco.roggero@mathworks.de

9

Developing Active Safety SystemsDeveloping the Vision Algorithm Part

MATLAB based workflow provides– Easy to debug scripting environment– Pixel level, 2D, 3D visualization– Easy-to-use powerful image processing, and

computer vision algorithms

Page 10: Developing Active Safety Systems Using MATLAB and Simulink...Developing Active Safety Systems Using MATLAB and Simulink Marco Roggero Senior Application Engineer marco.roggero@mathworks.de

10

Developing Active Safety SystemsDeveloping the Controller Part

Goal Keep the vehicle within a lane by controlling steering input

Controller configuration Mode Selector (Stateflow)

Risk Assessment (Stateflow)

Steering angle compensator (Simulink) Feed-back steer angle using heading & lateral offset

Feed-forward steer angle using curvature & vehicle speed

Control Parameter Tuning

Page 11: Developing Active Safety Systems Using MATLAB and Simulink...Developing Active Safety Systems Using MATLAB and Simulink Marco Roggero Senior Application Engineer marco.roggero@mathworks.de

11

Developing Active Safety SystemsDeveloping the Controller Part

Determining Control Mode – creating the model

System Ready

System On

System Off

Lane DepartureWarning

Lane Keeping System Not Active

Active

Engine On Engine Off || System Fail

SystemSW == On System SW== Off

No System Fail

DriverSelection == LKSLDW

VehicleSpeedLaneValidity

Page 12: Developing Active Safety Systems Using MATLAB and Simulink...Developing Active Safety Systems Using MATLAB and Simulink Marco Roggero Senior Application Engineer marco.roggero@mathworks.de

12

Developing Active Safety SystemsDeveloping the Controller Part

Determining Control Mode – creating the model

System Ready

System On

System Off

Lane DepartureWarning

Lane Keeping System Not Active

Active

Engine On Engine Off || System Fail

SystemSW == On System SW== Off

No System Fail

DriverSelection == LKSLDW

VehicleSpeedLaneValidity

Page 13: Developing Active Safety Systems Using MATLAB and Simulink...Developing Active Safety Systems Using MATLAB and Simulink Marco Roggero Senior Application Engineer marco.roggero@mathworks.de

13

Developing Active Safety SystemsSystem Level Simulation

Closed-loop test harness model for system level validation

Control Algorithm(Model Reference Block)

PreScan

Vision Algorithm(MATLAB Block)

Vehicle Dynamics ModelFrom Prescan

Page 14: Developing Active Safety Systems Using MATLAB and Simulink...Developing Active Safety Systems Using MATLAB and Simulink Marco Roggero Senior Application Engineer marco.roggero@mathworks.de

14

Developing Active Safety SystemsSystem Level Simulation

Page 15: Developing Active Safety Systems Using MATLAB and Simulink...Developing Active Safety Systems Using MATLAB and Simulink Marco Roggero Senior Application Engineer marco.roggero@mathworks.de

15

Need for Sensor FusionCase study: Automated Emergency Braking

Accurate CIPV (Critical In-Path Vehicle) selection

Without Sensor Fusion

With Sensor Fusion

Page 16: Developing Active Safety Systems Using MATLAB and Simulink...Developing Active Safety Systems Using MATLAB and Simulink Marco Roggero Senior Application Engineer marco.roggero@mathworks.de

16

Example: Radar and Camera Data Fusion

Page 17: Developing Active Safety Systems Using MATLAB and Simulink...Developing Active Safety Systems Using MATLAB and Simulink Marco Roggero Senior Application Engineer marco.roggero@mathworks.de

17© 2015 The MathWorks, Inc.

Developing Active Safety Systems Using MATLAB and Simulink

Marco RoggeroSenior Application Engineer

[email protected]