Main Content

assessmentTable

Create empty assessment table for Euro NCAP test scenario

Since R2025a

Description

emptyAssessmentTable = assessmentTable(euroAssessmentObj,ncapTestName) creates an empty assessment table, emptyAssessmentTable, using the Euro NCAP® assessment protocol specifications euroAssessmentObj for the Euro NCAP test scenario with name ncapTestName.

Note

This function requires the Automated Driving Toolbox™ Test Suite for Euro NCAP® Protocols support package. You can install the Automated Driving Toolbox Test Suite for Euro NCAP Protocols support package from the Add-On Explorer. For more information about installing add-ons, see Get and Manage Add-Ons.

example

Examples

collapse all

Specify a Euro NCAP test name.

ncapTestName = "SA AEB CCFtap";

Create a Euro NCAP protocol specification object.

euroAssessmentObj = euroAssessment;

Create an empty Euro NCAP assessment table for the specified Euro NCAP test name.

emptyAssessmentTable = assessmentTable(euroAssessmentObj,ncapTestName)
emptyAssessmentTable=9×2 table
                         TestDescription                         CollisionAvoidance
    _________________________________________________________    __________________

    "EgoSpeed = 2.7778m/s, Primary Target Speed = 8.3333m/s"            NaN        
    "EgoSpeed = 2.7778m/s, Primary Target Speed = 12.5m/s"              NaN        
    "EgoSpeed = 2.7778m/s, Primary Target Speed = 16.6667m/s"           NaN        
    "EgoSpeed = 4.1667m/s, Primary Target Speed = 8.3333m/s"            NaN        
    "EgoSpeed = 4.1667m/s, Primary Target Speed = 12.5m/s"              NaN        
    "EgoSpeed = 4.1667m/s, Primary Target Speed = 16.6667m/s"           NaN        
    "EgoSpeed = 5.5556m/s, Primary Target Speed = 8.3333m/s"            NaN        
    "EgoSpeed = 5.5556m/s, Primary Target Speed = 12.5m/s"              NaN        
    "EgoSpeed = 5.5556m/s, Primary Target Speed = 16.6667m/s"           NaN        

Create a copy of the empty assessment table, and fill in the values of the assessment criteria in the table.

filledAssessmentTable = emptyAssessmentTable;
filledAssessmentTable.CollisionAvoidance(:) = 1;

Compute the score for the specified Euro NCAP test name.

[score,assessmentTableUpdated] = ncapScore(euroAssessmentObj,ncapTestName,filledAssessmentTable);

Display the score for the specified Euro NCAP test name.

disp(score)
    AggregateScore: 1
    AvailableScore: 1

Display the updated assessment table.

disp(assessmentTableUpdated)
                         TestDescription                         CollisionAvoidance    EntryStatus    Points    Weights    Colors 
    _________________________________________________________    __________________    ___________    ______    _______    _______

    "EgoSpeed = 2.7778m/s, Primary Target Speed = 8.3333m/s"             1               "Valid"        1          1       "Green"
    "EgoSpeed = 2.7778m/s, Primary Target Speed = 12.5m/s"               1               "Valid"        1          1       "Green"
    "EgoSpeed = 2.7778m/s, Primary Target Speed = 16.6667m/s"            1               "Valid"        1          1       "Green"
    "EgoSpeed = 4.1667m/s, Primary Target Speed = 8.3333m/s"             1               "Valid"        1          1       "Green"
    "EgoSpeed = 4.1667m/s, Primary Target Speed = 12.5m/s"               1               "Valid"        1          1       "Green"
    "EgoSpeed = 4.1667m/s, Primary Target Speed = 16.6667m/s"            1               "Valid"        1          1       "Green"
    "EgoSpeed = 5.5556m/s, Primary Target Speed = 8.3333m/s"             1               "Valid"        1          1       "Green"
    "EgoSpeed = 5.5556m/s, Primary Target Speed = 12.5m/s"               1               "Valid"        1          1       "Green"
    "EgoSpeed = 5.5556m/s, Primary Target Speed = 16.6667m/s"            1               "Valid"        1          1       "Green"

Input Arguments

collapse all

Euro NCAP assessment protocol specifications, specified as a euroAssessment object.

Euro NCAP test scenario name, specified as a character vector or string scalar. This value must match one of the ncapTestName values listed in the Euro NCAP Test Scenario Information tables.

Output Arguments

collapse all

Euro NCAP assessment table, returned as a table with empty assessment criteria values.

The returned table has N rows. N is the number of test scenario variants for the specified Euro NCAP test ncapTestName. The first column of the table, TestDescription, specifies the description of the test scenario, such as the speeds of the actors. Depending on which Euro NCAP test name ncapTestName you specify, the function appends one or more of these assessment criteria columns to the table, with values of NaN. For information on how to replace the NaN values, see Tips.

  • ImpactVelocity — Impact velocity, returned as a numeric scalar. This value is the velocity at which the front or rear of the ego vehicle collides with a target. Units are in meters per second.

  • RelativeImpactVelocity — Relative impact velocity, returned as a numeric scalar. This value is the velocity at which the front or rear of the ego vehicle collides with a target, relative to the velocity of the target. You can compute the RelativeImpactVelocity by subtracting the longitudinal velocity of the test target from ImpactVelocity at the time of collision. Units are in meters per second.

  • TTC — Time to collision (TTC), returned as a numeric scalar. This value is the remaining time before the ego vehicle collides with the target, assuming both the ego and target continue to travel with their current speed. Units are in seconds.

  • CollisionAvoidance — Collision avoidance flag, returned as a logical 1 (true) or 0 (false). This value indicates specifies the status of the collision avoidance. If the ego vehicle avoids collision, this value is 1. Otherwise, this value is 0.

  • DTLE — Distance to lane edge (DTLE), returned as a numeric scalar. This value is the lateral distance between the lane edge and outermost edge of the tire, before the ego vehicle crosses the lane edge. Units are in meters.

  • LateralSeperation — Lateral separation, returned as a numeric scalar. This value is the lateral separation distance between the ego vehicle and the oncoming or overtaking target. Units are in meters.

These columns define the Euro NCAP assessment criteria used to evaluate scores. For more information, see the Euro NCAP assessment protocol for vulnerable road user protection [1] and safety assist collision avoidance [2].

More About

collapse all

Tips

You must replace the NaN fields of the returned table with appropriate values, and specify the updated table as the assessmentTable input argument of the ncapScore function, to get Euro NCAP assessment scores. For more information, see the Compute Score for Euro NCAP Test Scenario example. For more information on how to compute assessment criteria values, see the AEB Euro NCAP Testing with RoadRunner Scenario example.

References

[1] European New Car Assessment Programme (Euro NCAP). Assessment Protocol - Vulnerable Road User Protection, Implementation 2023, Version 11.4, December 2023. https://www.euroncap.com/media/79885/euro-ncap-assessment-protocol-vru-v114.pdf.

[2] European New Car Assessment Programme (Euro NCAP). Assessment Protocol - Safety Assist Collision Avoidance, Implementation 2023, Version 10.4.1, February 2024. https://www.euroncap.com/media/80154/euro-ncap-assessment-protocol-sa-collision-avoidance-v1041.pdf.

Version History

Introduced in R2025a