Main Content

saveProject

Save RoadRunner project using MATLAB

Since R2022a

    Description

    saveProject(rrApp) saves the currently open scene in the specified RoadRunner instance to the current project.

    example

    Examples

    collapse all

    Open a project in RoadRunner using the roadrunner function by specifying the location in which to create a project. This example assumes that RoadRunner is installed in its default location in Windows.

    Specify the path to an existing project. For example, this code shows the path to a project located on C:\RR\MyProject. The function returns a roadrunner object, rrApp, that provides functions for performing basic workflow tasks such as opening, closing, and saving scenes and projects..

    projectFolder = "C:\RR\MyProject";
    rrApp = roadrunner(projectFolder);

    Import an ASAM OpenDRIVE® file into RoadRunner by using the importScene function.

    filename = "C:\RR\MyProject\Exports\FourWaySignal.xodr";
    importScene(rrApp,filename,"OpenDRIVE");

    Save the modified assets in the project by using the saveProject function.

    saveProject(rrApp);

    Input Arguments

    collapse all

    RoadRunner application associated with a project, specified as a roadrunner object. This object provides functions for performing common workflow tasks such as opening, closing, and saving scenes and projects. rrApp provides functions that support importing data from files and exporting scenes to other formats from RoadRunner.

    Version History

    Introduced in R2022a