ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

Apollo安装

2021-11-12 13:04:35  阅读:192  来源: 互联网

标签:git Run Apollo Docker apollo 安装 your


Apollo Software Installation Guide

This document describes the steps required to install Apollo on Ubuntu 18.04.5 LTS (Bionic Beaver), the recommended Ubuntu release for Apollo 6.0.

Pre-requisites

Before getting started, please make sure all the pre-requisite steps were finished as described in the Pre-requisite Software Installation Guide.

Please also make sure Docker is running. Type systemctl status docker to check the running status of Docker daemon, and type systemctl start docker to start Docker if needed.

Download Apollo Sources

Run the following commands to clone Apollo's GitHub Repo.

# Using SSH
git clone git@github.com:ApolloAuto/apollo.git

# Using HTTPS
git clone https://github.com/ApolloAuto/apollo.git

And checkout the latest branch:

cd apollo
git checkout master

For CN users, please refer to How to Clone Apollo Repository from China if your have difficulty cloning from GitHub.

(Optional) For convenience, you can set up environment variable APOLLO_ROOT_DIR to refer to Apollo root directory by running:

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

tip In the following sections, we will refer to Apollo root directory as $APOLLO_ROOT_DIR

Start Apollo Development Docker Container

From the ${APOLLO_ROOT_DIR} directory, type

bash docker/scripts/dev_start.sh

to start Apollo development Docker container.

If successful, you will see the following messages at the bottom of your screen:

[ OK ] Congratulations! You have successfully finished setting up Apollo Dev Environment.
[ OK ] To login into the newly created apollo_dev_michael container, please run the following command:
[ OK ]   bash docker/scripts/dev_into.sh
[ OK ] Enjoy!

Enter Apollo Development Docker Container

Run the following command to login into the newly started container:

bash docker/scripts/dev_into.sh

Build Apollo inside Container

From the /apollo directory inside Apollo Docker container, type:

./apollo.sh build

to build the whole Apollo project.

Or type

./apollo.sh build_opt

for an optimized build.

You can refer to Apollo Build and Test Explained for a thorough understanding of Apollo builds and tests.

Launch and Run Apollo

Please refer to the Run Apollo section of How to Launch And Run Apollo.

(Optional) Support a new Vehicle in DreamView

In order to support a new vehicle in DreamView, please follow the steps below:

  1. Create a new folder for your vehicle under modules/calibration/data

  2. There is already a sample file in the modules/calibration/data folder named mkz_example. Refer to this structure and include all necessary configuration files in the same file structure as “mkz_example”. Remember to update the configuration files with your own parameters if needed.

  3. Restart DreamView and you will be able to see your new vehicle (name is the same as your newly created folder) in the selected vehicle.

 

原文:https://gitee.com/ApolloAuto/apollo/blob/master/docs/quickstart/apollo_software_installation_guide.md

标签:git,Run,Apollo,Docker,apollo,安装,your
来源: https://www.cnblogs.com/0bug/p/15544005.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有