AutowareV2X/docs/installation/source-installation.md

1.5 KiB

Source Installation

Prerequisites

  • OS
    • Ubuntu 20.04
    • Ubuntu 22.04
  • ROS
    • ROS2 Galactic

Installing Autoware

Refer to the Official Autoware Documentation for the newest installation procedures. In a nutshell, you can run the following commands:

# Clone repository
git clone https://github.com/autowarefoundation/autoware.git
cd autoware

# Install dependencies using Ansible
./setup-dev-env.sh

# Use vcstool to import more repositories
mkdir src
vcs import src < autoware.repos

# Install dependent ROS packages
source /opt/ros/galactic/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

Adding AutowareV2X

  1. Edit the autoware.repos file and add the following two repositories to the end.
v2x/autoware_v2x:
  type: git
  url: git@github.com:tlab-wide/autoware_v2x.git
  version: main
v2x/vanetza:
  type: git
  url: git@github.com:tlab-wide/vanetza.git
  version: socktap-cpm-tr103562

  1. Update the repository
vcs import src < autoware.repos
vcs pull src
  1. Install dependent ROS packages
source /opt/ros/galactic/setup.bash
rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
  1. Build the workspace
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release