主要内容

Generate Custom Seed Scenario Descriptor or Seed Scenario Descriptor for Euro NCAP Test

The Automated Driving Toolbox™ Test Suite for Euro NCAP® Protocols support package provides options to generate a custom seed scenario descriptor or to generate seed scenario descriptors for various Euro NCAP® test applications.

The support package enables you to create scenarios for these Euro NCAP test applications:

  • Safety Assist (SA) Tests — These tests support driver safety measures for avoiding accidents in situations such as autonomous emergency braking (AEB) car-to-car scenarios, and while using lane keep assist (LKA) and emergency lane keeping (ELK) systems. For more information, see the Test Protocol – AEB Car-to-Car systems and Test Protocol – Lane Support Systems documents.

  • Vulnerable Road User (VRU) Protection Tests — These tests address the protection of pedestrians, cyclists, and motorcyclists in situations such as AEB car-to-pedestrian, car-to-cyclist, and car-to-motorcyclist scenarios. For more information, see the Test Protocol – AEB/LSS VRU systems document.

This figure shows a block diagram of the Euro NCAP scenarios supported by the Automated Driving Toolbox Test Suite for Euro NCAP Protocols support package.

For more information on the supported Euro NCAP scenarios, see Euro NCAP Test Scenario Information.

The Automated Driving Toolbox Test Suite for Euro NCAP Protocols support package also enables you to generate test specifications for various Euro NCAP test scenarios. A Euro NCAP test scenario contains these specifications:

  • Seed scenario parameters — A seed scenario contains scene and scenario specifications. Scene specifications contain road and lane information. Scenario specifications contain actor information, such as the name, speed, travel direction, and trajectory of a vehicle.

  • Variation parameters — Variation parameters contains a subset of scenario parameters that you can vary to create scenario variants. These variation parameters are in accordance with the Euro NCAP specifications.

  • Euro NCAP test information — Euro NCAP test information contains full name of the Euro NCAP test, metadata information of the scenario variants, criterion to evaluate the Euro NCAP test, and criteria on which to score the Euro NCAP test.

Generate Custom Seed Scenario Descriptor

You can create a custom seed scenario by using a drivingScenario object. For more information, see Create Driving Scenario Programmatically. To create a scenario descriptor object for your seed scenario, you can use the getScenarioDescriptor function.

You can also generate a seed scenario descriptor from tabular data containing scene, actor, and event specifications by using the table2scenario function. For more information, see the Generate RoadRunner Scenario Using Tabular Data for AEB Car-to-Car Testing example.

Alternatively, you can use a scenario from RoadRunner Scenario as a seed scenario for creating scenario variants. The Automated Driving Toolbox Test Suite for Euro NCAP Protocols support package provides tools for translating a scenario between a driving scenario and a RoadRunner scenario, enabling you to test the scenario in both environments without redesigning the scenario. For more information, see Translate Scenario Between Driving Scenario and RoadRunner Scenario.

Generate Euro NCAP Seed Scenario Descriptor and Test Specifications

To perform Euro NCAP tests on scenario variants, you must first create a seed scenario for a Euro NCAP test. You can generate a seed scenario descriptor for a Euro NCAP test by using the ncapScenario function. For a list of supported Euro NCAP scenarios, see Euro NCAP Test Scenario Information.

To generate seed and variant scenario specifications for a Euro NCAP test, use the ncapSpec function. For a list of Euro NCAP test scenario variation parameter specifications, see Variation Parameter Information.

Visualize Seed Scenario Descriptor

You can visualize the scenario in a generated seed scenario descriptor by using the ScenarioDescriptorPlot object, which contains properties for plotting and simulating scenarios obtained from a scenario descriptor object.

  • To create a ScenarioDescriptorPlot object from your seed scenario descriptor object and plot the first frame of the scenario simulation, use the plot function.

  • To configure options for plotting or simulating scenario descriptors, use the configure object function.

  • To play the scenario simulation of the scenario descriptor, use the play object function.

  • To seek a frame in the scenario descriptor and plot that frame, use the seek object function.

After you create a seed scenario descriptor and visualize it, you can vary the scene and scenario properties to create scenario variants. For more information see, Vary Seed Scenario Parameters and Generate Scenario Variants.

See Also

Functions

Topics