Scenario Test Runner User Guide#
You can test run (preview) the scenarios you created using the GUI scenario editor before running it with Autoware.
The file you exported from the GUI scenario editor is in YAML based format called "TIER IV Scenario Format Version 2.0". Then it is converted into XML based OpenSCENARIO format. The specification of this OpenSCENARIO format is found at OpenSCENARIO site.
Before Testing Scenarios#
You need to open your YAML file with text editor and edit the following two parts of your scenario file before testing it.
1. Add Full Path to your Map File#
Find the following part in your YAML file;
RoadNetwork:
LogicFile:
filepath: lanelet2_map.osm
and add the full path to your Lanelet2 map file based on your local setup. For example;
RoadNetwork:
LogicFile:
filepath: /home/user-name/maps/location-a/lanelet2_map.osc
2. Modify "isEgo" Setting#
Find the following part in your YAML file;
Property:
- name: isEgo
value: "true"
Property:
- name: isEgo
value: "false"
How to Test Single Scenario#
ros2 launch scenario_test_runner scenario_test_runner.launch.py scenario:='/home/user-name/scenario-folder/t4v2.yaml' launch_rviz:=true
How to Test Multiple Scenarios#
ros2 launch scenario_test_runner scenario_test_runner.launch.py workflow:='$(find-pkg-share scenario_test_runner)/config/workflow_example.yaml' log_directory:='/tmp'