generateVariants
Generate variant scenario descriptors from seed scenario descriptor using specified variations
Since R2023a
Syntax
Description
generates scenario variant descriptors using the seed scenario descriptor
variantDescriptors
= generateVariants(descriptor
,variations
)descriptor
and variation properties object
variations
.
[
also returns a structure, variantDescriptors
,variantInfo
] = generateVariants(descriptor
,variations
)variantInfo
, containing the properties of
actor and collision variations.
Note
This function requires the Scenario Variant Generator for Automated Driving Toolbox™ support package. You can install Scenario Variant Generator for Automated Driving Toolbox from the Add-On Explorer. For more information about installing add-ons, see Get and Manage Add-Ons.
Examples
Input Arguments
Output Arguments
Limitations
To apply collision variations, your seed scenario must contain actor collisions.
The collision side of an actor in the seed scenario must match the collision side of that actor for which you generate variants.
To generate actor collision fraction variations, the actors in the seed scenario must collide at 0 degree and 90 degree angles.
Version History
Introduced in R2023a