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 setup 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 demo, please:
- Clone RobotecAI's Autoware and move to the directory.
git clone git@github.com:RobotecAI/autoware-1.git cd autoware
- Check out to the
awsim-ss2-stable
branchgit checkout awsim-ss2-stable
- 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
AWSIM_v1.2.0_ss2.zip
& Run
archive -
Launch
scenario_test_runner
.source install/setup.bash ros2 launch scenario_test_runner scenario_test_runner.launch.py \ architecture_type:=awf/universe record:=false \ scenario:='$(find-pkg-share scenario_test_runner)/scenario/sample_awsim.yaml' \ sensor_model:=awsim_sensor_kit vehicle_model:=sample_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.