AutowareV2X/docs/installation/source-installation.md

67 lines
1.5 KiB
Markdown
Raw Normal View History

2022-10-18 06:01:53 +00:00
# Source Installation
## Prerequisites
- OS
- Ubuntu 20.04
- Ubuntu 22.04
- ROS
- ROS2 Galactic
## Installing Autoware
Refer to the [Official Autoware Documentation](https://autowarefoundation.github.io/autoware-documentation/main/installation/autoware/source-installation/) for the newest installation procedures. In a nutshell, you can run the following commands:
```bash
# 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/autowarev2x:
2022-10-18 06:01:53 +00:00
type: git
url: https://github.com/tlab-wide/AutowareV2X.git
version: cpm-tr
2022-10-18 06:01:53 +00:00
v2x/vanetza:
type: git
url: https://github.com/yuasabe/vanetza.git
version: master
2022-10-18 06:01:53 +00:00
```
2. Update the repository
```
vcs import src < autoware.repos
vcs pull src
```
3. Install dependent ROS packages
```bash
source /opt/ros/galactic/setup.bash
rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
```
4. Build the workspace
```
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
```