Main Content

actorImportOptions

Specify options for customizing actors imported with CSV files

Since R2022b

    Description

    The actorImportOptions object enables you to modify the attributes of actors imported into RoadRunner scenarios from CSV files.

    Creation

    Description

    options = actorImportOptions creates a default configuration object for importing actors from CSV trajectory files into RoadRunner scenarios.

    options = actorImportOptions(Name=Value) specifies properties using one or more name-value arguments. For example, ID="1" specifies the ID of the imported actor as "1".

    Properties

    expand all

    Name of the actor, specified as a string scalar or character vector.

    ID of the actor, specified as a string scalar or character vector.

    Color of the actor, specified as a string scalar or character vector corresponding to an SVG 1.0 color name, such as "blue", or a hexadecimal value, such as "#0072BD".

    Example: options = actorImportOptions(Color="Green"); sets the color of the imported actor to green.

    Actor asset path, specified as a string scalar or character vector. This value specifies the path in the RoadRunner Asset Library for the Asset Type attribute of the actor.

    Behavior asset path, specified as a string scalar or character vector. This value specifies the path in the RoadRunner Asset Library for the behavior file to associate with the actor.

    Version History

    Introduced in R2022b