Quick start demo
Below you can find instructions on how to setup the self-driving demo of AWSIM simulation controlled by Autoware. The instruction assumes using the Ubuntu OS.
Demo contents
| AWSIM demo contents | |
|---|---|
| Vehicle | Zoe2 2018 |
| Map | Australia brisbane mount-cotton |
| Sensors | LiDAR * 1 Camera * 1 GNSS * 1 IMU * 1 |
| ROS2 | humble |
1. Preparation
Please make sure that your computer meets the following requirements in order to run the simulation correctly
Warning
Requires Nvidia RTX graphics card as it uses raytracing.
| Required PC specs | |
|---|---|
| OS | Ubuntu 22.04 |
| CPU | 6 cores and 12 threads or higher |
| GPU | RTX2080Ti or higher |
| Memory | 32GB or higher |
| Nvidia driver | 570 or higher |
Localhost settings
The simulation requires appropriate network settings in order to communicate correctly between AWSIM and Autoware.
Please follow the official Autoware documentation for configuring localhost:
Autoware Documentation – DDS settings for ROS 2 and Autoware
Info
A system restart is required for these changes to work.
2. Install Autoware
-
Clone Autoware and move to the directory.
-
Use the
mainbranch. Please check current branch. - Configure the environment.
- Create the
srcdirectory and clone external dependent repositories into it. - Install dependent ROS packages.
- Build the workspace.
3. Download MTCOTTON-Demo
-
Install nvidia gpu driver (Skip if already installed).
- Add nvidia driver to apt repository.
-
Install the recommended version of the driver.
Info
Version 570 or higher is recommended.
-
Reboot your machine to make the installed driver detected by the system.
-
Open terminal and check if nvidia-smi command is available and outputs summary similar to the one presented below.
Check result.Fri May 2 18:55:24 2025 +-----------------------------------------------------------------------------------------+ | NVIDIA-SMI 570.124.06 Driver Version: 570.124.06 CUDA Version: 12.8 | |-----------------------------------------+------------------------+----------------------+ | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |=========================================+========================+======================| | 0 NVIDIA GeForce RTX 4090 Off | 00000000:01:00.0 On | Off | | 0% 45C P8 25W / 450W | 5920MiB / 24564MiB | 7% Default | | | | N/A | +-----------------------------------------+------------------------+----------------------+
-
Install vulkan graphics library (Skip if already installed).
- Update the environment.
- Install the library.
-
Download AWSIM demo.
-
Download
MTCOTTON-DEMO.zip. -
Unzip the downloaded file.
-
Make the
MtCotton.x86_64file executable. Rightclick theMtCotton.x86_64file and check theExecutecheckbox.or execute the command below.
Info
MtCotton.x86_64has to be executed from a terminal WITHOUT ROS2 being sourced in the same terminal.
-
4. Run AWSIM and Autoware
It is recommended to launch in the order of 1.AWSIM -> 2.Autoware. Same procedure as the actual autoware's real vehicle.
-
Launch AWSIM demo
-
Run
MtCotton.x86_64from the terminal to start it. -
Check ros2 topic list (optional)
Result. Topics that AWSIM demo pub/subs./clock /control/command/control_cmd /control/command/emergency_cmd /control/command/gear_cmd /control/command/hazard_lights_cmd /control/command/turn_indicators_cmd /parameter_events /rosout /sensing/camera/traffic_light/camera_info /sensing/camera/traffic_light/image_raw /sensing/gnss/pose /sensing/gnss/pose_with_covariance /sensing/imu/tamagawa/imu_raw /sensing/lidar/top/pointcloud_raw /sensing/lidar/top/pointcloud_raw_ex /vehicle/status/control_mode /vehicle/status/gear_status /vehicle/status/hazard_lights_status /vehicle/status/steering_status /vehicle/status/turn_indicators_status /vehicle/status/velocity_status
-
-
Launch Autoware
-
Download
mtcotton_map.zipand unzip them.
Download mtcotton_map.zipInfo
mtcotton_map.zip file contains map files for
pcdandosm. -
Launch Autoware.
source install/setup.bash && ros2 launch autoware_launch e2e_simulator.launch.xml vehicle_model:=sample_vehicle sensor_model:=awsim_sensor_kit map_path:=<your mapfile location>Warning
<your mapfile location>must be changed arbitrarily. When specifying the path the~operator cannot be used - please specify absolute full path.
-
-
Start autonomous driving !
-
With both AWSIM and Autoware activated, check if the vehicle's self-position estimation is normal. If self initialising is not working. Select 2D Pose Estimate and select the position of the car in AWSIM.
Wait until the car shows up in Autoware.
-
Set the navigation goal for the vehicle.
-
Check generate path and press "Auto" button.
-
Enable self-driving.
Info
The default value of Autoware's maximum speed is 15 km/h. If you want more speed, you can modify it by entering the following command in the
autowaredirectory.Learn more about demo simulation.
-