Running an OpenScenario - AD-EYE/AD-EYE_Core GitHub Wiki

  • In AD-EYE/OpenScenario, open TA_OpenSCENARIO_interface.m.
  • The OpenScenario file should be placed in AD-EYE/OpenSCENARIO/OpenSCENARIO_experiments
  • The parameters listed in the following table should be modified to run the experiments are intended.
Variable name Description
EgoNameArray Contains the name of the ego vehicle in the PreScan experiment (usually BMW_X5_SUV_1)
ScenarioExpNameArray Contains the name of the OpenScenario that should be ran (without .xosc or path)
PrescanExpNameArray Contains the name Prescan experiment that will be used as a template
AutowareConfigArray Contains the name of the ROS parameters configuration template file
SimulinkConfigArray Contains the name of the Simulink parameters configuration template file
TagsConfigArray Contains tags that will be added to the PreScan commands to change the weather condition, for example
SSHConfig Contains the name of the file that defines the SSH parameters needed for TA (path relative to AD-EYE/TA)
  • Running TA_OpenSCENARIO_interface.m will generates the OpenScenario .xosc files (\AD-EYE\OpenSCENARIO\OpenSCENARIO_experiments) for all the variations and the related PreScan experiments. It will configure Test Automation and then call it to run what was specified in the original .xosc file.

Details

TA_OpenSCENARIO_interface.m will create multiple Prescan experiments in the Results folder of the OpenScenario version of the template PreScan experiment (for W01_Base_Map the path would be AD-EYE/Experiments/W01_Base_Map/OpenScenario/Results). Then test automation will be called on all the OpenScenraio variants and will generate runs in their Results folders (with our previous example, calling the Openscenario variant variant_1, the path would be AD-EYE/Experiments/W01_Base_Map/OpenScenario/Results/Variant_1/OpenScenario/Results).

Running only the OpenScenario part

  • In AD-EYE/OpenSCENARIO/Code, run OpenScenarioMod.m and API_main.m.

Images/Running_api.PNG

The number of experiments created is accordingly to the size of the array in the main .xosc file.

Running only the TA part

  • In AD-EYE/TA run TACombinations.m and TA.m. The length of EgoNameArray, PrescanExpNameArray and FolderExpNameArray should be equal. TACombinations.m will create a TAOrder.csv with all the combinations of experiments given in the input. How those functions can be used can be found in the TA_OpenSCENARIO_interface.m file.