real-time prototyping and testing for adas: lane keeping and following ... - matlab expo · 3...
TRANSCRIPT
-
Real-Time Prototyping and Testing for ADAS:
Lane Keeping and Following Assist Systems
Abhisek Roy and Rashmi Gopala Rao
-
The Things You Will Learn
2
Animation placeholder
Controls
How can I rapidly
prototype and test
controls?
Virtual Vehicle
How do I perform
real-time virtual vehicle
simulation?
Camera
Perception
How do I test
perception and
controls?
-
3
Fast-Track from Desktop to Real-Time Simulation and TestingTurnkey Solution from MathWorks and Speedgoat
Create, deploy, monitor and
instrument real-time applications
-
Outline
4
Virtual
Vehicle
How do I perform
real-time virtual vehicle
simulation?
Part 1
Controls +
Virtual Vehicle
How can I rapidly
prototype and test
controls?
Part 2
Perception
+ Controls +
Virtual Vehicle
How do I test
perception and
controls?
Part 3
-
Part 1
Real-Time Virtual Vehicle Simulation
5
Virtual
Simulation
How do I perform
real-time virtual vehicle
simulation?
-
Need for Virtual Vehicle Simulation & Testing
▪ Prototypes are expensive
▪ Logistics and safety
▪ Early validation
▪ Development accelerator
▪ Synthetize edge scenarios
▪ Test handoff, platooning
▪ Repeatability, reproducibility
▪ Qualified miles
6
-
Virtual Vehicle Simulation
▪ Common challenges:
– Solutions are expensive and cumbersome
– Poor Simulink integration
– Solutions geared towards experts
▪ Strengths of MathWorks solution:
– Extensively supported
– Open, customization possible
– Integrated, flexible and well connected
– Fast, ready for Hardware-in-the-Loop deployment
7
-
Virtual Vehicle: Desktop Simulation
8
Ride & Handling
Chassis Controls ADAS / AD
Example: Double-Lane Change Maneuver
• Vehicle Dynamics BlocksetTM
https://www.mathworks.com/help/vdynblks/ug/double-lane-change-maneuver.html
-
! Host Application
Scenario
Generation & Rendering
Host PC running
game engine
Virtual Vehicle: From Desktop to Real-Time Simulation
9
Real-Time Application – Virtual Vehicle
Driver
Controllers & Vehicle
Speedgoat
target computer running
Simulink Real-Time(Vehicle dynamics and
driver control data)
Host-target link
-
Virtual Vehicle: From Desktop to Real-Time Simulation
10
-
Real-Time Driver-in-the-Loop (DIL) Simulator
11
"The Speedgoat system works well with many of the tools in MATLAB. It is a very
efficient way to construct the test platform so that we can concentrate on the
development of the ADAS algorithm."
Professor Hui Chen, Tongji University
Success story: Tongji University
Webinar: Building Real-Time DIL Simulators
https://www.speedgoat.com/user-stories/speedgoat-user-stories/tongji-universityhttps://ch.mathworks.com/videos/building-real-time-driver-in-the-loop-simulators-1542313377351.html
-
Part 2
Part 2: Real-Time Prototype and Test Lane Keeping Controller
12
Controls +
Virtual Vehicle
How can I rapidly
prototype and test
controls?
-
Expediting Development by Frontloading Virtual Vehicle HIL
13
Agile
V-Cyle
Frontloading HIL
Rapid Control Prototyping
Hardware-in-the-Loop
-
Lane Keeping Control with Model Predictive Control
14
Example: Lane-Following Control with Monocular Camera Perception
Simulate controls with perception
Visualize logged simulations
• Automated Driving ToolboxTM
• Model Predictive Control ToolboxTM
• Simulink Control DesignTM
https://www.mathworks.com/help/mpc/ug/lane-following-control-with-monocular-camera-perception.html?s_tid=srchtitlehttps://www.mathworks.com/help/releases/R2020a/mpc/ug/lane-following-control-with-monocular-camera-perception.html
-
15
Lane Keeping Control Real-Time Test Bench
Real-Time Application - Virtual Vehicle ! Host Application
Scenario
Generation & Rendering
Vehicle
Vehicle dynamics
Raw camera lens image
RT UDP
Camera
Perception Camera
Lens
Raw camera
lens image
USB/ HDMI
Speedgoat HIL
Real-Time Application - Controls
Lateral
Controller
Vehicle dynamics
Steering control
Camera
metadata
CAN
RT UDP
Speedgoat RCP
-
16
Lane Keeping Control Real-Time Testbench
-
Customer Success Story: TUM / Roborace
17
“The seamless integrated workflow provided by Speedgoat and Simulink Real-Time™ really helped us to minimize
the time we had to invest building this HIL simulator and maximized the time we could spend developing the functionalities
of our algorithms.”
Thomas Herrmann, TUM RoboraceTeam
MathWorks Automotive
Conference 2019
https://mathworks.sharepoint.com/sites/SimulinkReal-TimeSpeedgoatContentDevelopment/Shared%20Documents/General/MATLAB%20Expo%202020/A%20Real-Time%20Simulation%20Environment%20for%20Autonomous%20Vehicles%20in%20Highly%20Dynamic%20Driving%20Scenarioshttps://mathworks.sharepoint.com/sites/SimulinkReal-TimeSpeedgoatContentDevelopment/Shared%20Documents/General/MATLAB%20Expo%202020/A%20Real-Time%20Simulation%20Environment%20for%20Autonomous%20Vehicles%20in%20Highly%20Dynamic%20Driving%20Scenarios
-
Automate Testing in Real-time
18
Example: Testing a Lane Following
Controller with Simulink Test
Scenarios
Reuse Desktop Test Cases for Real-Time Testing
Webinar: Test Automation - From Desktop
Simulation to Real-Time
• Automated Driving
ToolboxTM
• Model Predictive Control
ToolboxTM
• Simulink Control DesignTM
• Simulink RequirementsTM
• Simulink TestTM
• Computer Vision ToolboxTM
Requirement
https://www.mathworks.com/help/sltest/ug/testing-a-lane-following-controller-with-simulink-test.htmlhttps://www.mathworks.com/help/sltest/ug/testing-a-lane-following-controller-with-simulink-test.htmlhttps://www.mathworks.com/videos/test-automation-from-desktop-simulation-to-real-time-119500.html
-
Perception
+ Controls +
Virtual Vehicle
How do I test
perception and
controls?
Part 3
Real-Time Test Bench for a Lane Keeping Assistance System
19
-
Modern Vision Applications Often Require FPGA Acceleration
20
▪ Lane detection is a critical
processing stage in ADAS
▪ Computational expensive
▪ Acceleration needed,
e.g., on FPGAs
-
Bridging the Gap between Exploration and Deployment
21
Video series: Vision Processing for FPGA
Example: FPGA acceleration of lane marking detection
Example: Prototype Speedgoat FPGA with HDL Workflow Advisor
https://ch.mathworks.com/videos/series/vision-processing-for-fpga.htmlhttps://www.mathworks.com/help/releases/R2019a/visionhdl/examples/lane-detection.htmlhttps://www.mathworks.com/help/releases/R2019b/xpc/ug/digital-i-o-with-speedgoat-fpga-board.html
-
Lane Marking Detector
on FPGA
22
-
23
Lane Keeping Control Real-Time Test Bench
Real-Time Application - Virtual Vehicle ! Host Application Real-Time Application - Controls
-
Demo the Real Thing
24
-
What You Have Learned
25
Animation placeholder
Controls
How can I rapidly
prototype and test
controls?
Virtual Vehicle
How do I perform real-
time virtual vehicle
simulation?
Camera Perception
How do I test
perception and
controls?
-
Call to Action
26
▪ MATLAB and Simulink for Automated Driving Systems
– Contact us: [email protected] and [email protected]
▪ Webinar: Building Real-Time DIL Simulators
▪ Testing a Lane Following Controller with Simulink Test
▪ www.speedgoat.com – Speedgoat real-time solutions
https://www.mathworks.com/solutions/automotive/automated-driving.htmlhttps://ch.mathworks.com/videos/building-real-time-driver-in-the-loop-simulators-1542313377351.htmlhttps://www.mathworks.com/help/sltest/ug/testing-a-lane-following-controller-with-simulink-test.htmlhttp://www.speedgoat.com/