Using OpenSCENARIO#
Warning
Running AWSIM with scenario_simulator_v2 is still a prototype, so stable running is not guaranteed.
Below you can find instructions on how to set up the OpenSCENARIO execution using scenario_simulator_v2 with AWSIM as a simulator The instruction assumes using the Ubuntu OS.
Prerequisites#
- Follow Setup Unity Project tutorial
Build Autoware with scenario_simulator_v2
#
In order to configure the Autoware software with the AWSIM Labs demo, please:
- Clone the Autoware and move to the directory.
git clone git@github.com:autowarefoundation/autoware.git cd autoware
- Check out to the
awsim-labs-stable
branch (This is a temporary branch, and it will be used in the main branch later on.)git checkout main
- Configure the environment. (Skip if Autoware environment has been configured before)
./setup-dev-env.sh
- Create the
src
directory and clone external dependent repositories into it.mkdir src vcs import src < autoware.repos vcs import src < simulator.repos
-
Download
shinjuku_map.zip
archive -
Unzip it to
src/simulator
directoryunzip <Download directory>/shinjuku_map.zip -d src/simulator
- Install dependent ROS packages.
source /opt/ros/humble/setup.bash rosdep update rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
- Build the workspace.
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-w"
Running the demo#
- Download and run the latest version of AWSIM Labs.
Releases - In the
Loader
menu, from the top left, select theAutowareSimulationScenarioSimulator
and click theLoad
button. - Launch
scenario_test_runner
.source install/setup.bash ros2 launch scenario_test_runner scenario_test_runner.launch.py \ architecture_type:=awf/universe/20240605 record:=false \ scenario:='$(find-pkg-share scenario_test_runner)/scenario/sample_awsim.yaml' \ sensor_model:=awsim_labs_sensor_kit vehicle_model:=awsim_labs_vehicle \ launch_simple_sensor_simulator:=false autoware_launch_file:="e2e_simulator.launch.xml" \ initialize_duration:=260 port:=8080
Troubleshooting#
In case of problems, make sure that the regular demo work well with the Autoware built above. Follow the troubleshooting page there if necessary.