Autoware "Hands-On"

  • Graz University of Technology
  • Stanford Lecture AA274

Preconditions

Install Autoware.AI by source

(https://gitlab.com/autowarefoundation/autoware.ai/autoware/wikis/Source-Build)

Installation of required packages

sudo apt update
sudo apt install -y python-catkin-pkg python-rosdep ros-$ROS_DISTRO-catkin python-catkin-tools
sudo apt install -y python3-pip python3-colcon-common-extensions python3-setuptools python3-vcstool
sudo apt install ros-$ROS_DISTRO-lanelet2-*
sudo apt install -y git-lfs
pip3 install -U setuptools

Create workspace for Autoware.AI

mkdir -p ~/ros/autoware.ai/src
cd ~/ros/autoware.ai

Download the workspace configuration for Autoware.AI

wget -O autoware.ai.repos "https://raw.githubusercontent.com/Autoware-AI/autoware.ai/1.14.0/autoware.ai.repos?inline=false"

Download Autoware.AI repositories into the workspace, install dependencies using rosdep and compile it

vcs import src < autoware.ai.repos
rosdep update
rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
catkin build --cmake-args -DCMAKE_BUILD_TYPE=Release

Install workspace for AA274 lecture

Clone repository

git clone https://github.com/virtual-vehicle-research/aa274_autoware_ws.git ~/ros/aa274_autoware_ws
cd ~/ros/aa274_autoware_ws
rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO

Setup for environment which includes several aliases, environment variables, and sources

./setup_environment.sh

Build the workspace

Close and open a new terminal to source the Autoware.AI components!

cd ~/ros/aa274_autoware_ws
catkin build

Extract recorded data from the racetrack

cd ~/ros/aa274_autoware_ws/src/arg_localization/arg_data_croix_en_ternois/bagfile
tar -xvf devbot_lap0.tar.xz

Demo Localization

Terminal 1:

roscore 

Terminal 2:

GPS-based localization

roslaunch arg_launch Devbot_localization.launch

or Lidar-based localization

roslaunch arg_launch Devbot_localization.launch lidar_localization:=true

Terminal 3:

roslaunch arg_launch Play_rosbag.launch

Demo Path Planning

Terminal 1:

roslaunch vifware_launch simulation.launch