developing active safety systems using matlab and simulink...developing active safety systems using...
TRANSCRIPT
![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](https://reader033.vdocuments.mx/reader033/viewer/2022041920/5e6b787355e2b24da55d6b24/html5/thumbnails/1.jpg)
1© 2015 The MathWorks, Inc.
Developing Active Safety Systems Using MATLAB and Simulink
Marco RoggeroSenior Application Engineer
![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](https://reader033.vdocuments.mx/reader033/viewer/2022041920/5e6b787355e2b24da55d6b24/html5/thumbnails/2.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022041920/5e6b787355e2b24da55d6b24/html5/thumbnails/3.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022041920/5e6b787355e2b24da55d6b24/html5/thumbnails/4.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022041920/5e6b787355e2b24da55d6b24/html5/thumbnails/5.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022041920/5e6b787355e2b24da55d6b24/html5/thumbnails/6.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022041920/5e6b787355e2b24da55d6b24/html5/thumbnails/7.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022041920/5e6b787355e2b24da55d6b24/html5/thumbnails/8.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022041920/5e6b787355e2b24da55d6b24/html5/thumbnails/9.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022041920/5e6b787355e2b24da55d6b24/html5/thumbnails/10.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022041920/5e6b787355e2b24da55d6b24/html5/thumbnails/11.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022041920/5e6b787355e2b24da55d6b24/html5/thumbnails/12.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022041920/5e6b787355e2b24da55d6b24/html5/thumbnails/13.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022041920/5e6b787355e2b24da55d6b24/html5/thumbnails/14.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022041920/5e6b787355e2b24da55d6b24/html5/thumbnails/15.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022041920/5e6b787355e2b24da55d6b24/html5/thumbnails/16.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022041920/5e6b787355e2b24da55d6b24/html5/thumbnails/17.jpg)
17© 2015 The MathWorks, Inc.
Developing Active Safety Systems Using MATLAB and Simulink
Marco RoggeroSenior Application Engineer