18.04安装apollo5.0

(apollo5.0安装## 标题)

安装git lfs

#Required for Ubuntu 14.04 / 16.04.
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash

#Ubuntu 14.04 / 16.04 / 18.04.
sudo apt-get install -y git-lfs

下载apollo源码

#Option 1: Clone the Apollo repository with SSH
$ git lfs clone [email protected]:ApolloAuto/apollo.git

Option 2: Clone the Apollo repository with HTTPS
$ git lfs clone https://github.com/ApolloAuto/apollo.git

Change to the “apollo” directory
`` Checkout the “master” branch
$ cd apollo

$ git checkout master
$ git lfs fetch --all

Set the environment variable “APOLLO_HOME”

$ echo "export APOLLO_HOME=$(pwd)" >> ~/.bashrc && source ~/.bashrc

安装docker

系统为16.04+

sudo snap install docker

四、编译源码

Start container

$ sudo bash docker/scripts/dev_start.sh

Get into the container

$ sudo bash docker/scripts/dev_into.sh

Build modules

$ sudo bash apollo.sh build

Note: If you do not have a GPU, you can use the following script instead

$ bash apollo.sh build_cpu

Note: If your computer is very slow, you can enter the following command to limit the CPU.

$ bash apollo.sh build --local_resources 2048,1.0,1.0

启动Apollo
$ source /apollo/scripts/apollo_base.sh
$ sudo bash scripts/bootstrap.sh
$ cyber_recorder play -f docs/demo_guide/demo_3.5.record --loop

你可能感兴趣的:(无人驾驶)