apollo_software_installation_guide.md 2.9 KB
Newer Older
1
# Apollo Software Installation Guide
2

3 4
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.
5

6
## Pre-requisites
7

8 9 10
Before getting started, please make sure all the pre-requisite steps were
finished as described in the
[Pre-requisite Software Installation Guide](../specs/prerequisite_software_installation_guide.md).
11

12 13 14
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.
15 16 17

## Download Apollo Source

18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
Run the following commands to clone
[Apollo's GitHub Repo](https://github.com/ApolloAuto/apollo.git).

```
# 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
```

(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](images/tip_icon.png) 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
50

51 52 53
```
bash docker/scripts/dev_start.sh
```
54

55
to start Apollo development Docker container.
56

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

59 60 61 62 63 64
```
[ 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!
```
65

66
## Enter Apollo Development Docker Container
67

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

70 71 72
```
bash docker/scripts/dev_into.sh
```
73

74
## Build Apollo inside Container
75

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

78 79 80
```
./apollo.sh build
```
81

82
to build the whole Apollo project.
83

84
Or type
85

86 87 88
```
./apollo.sh build_opt
```
89

90
for an optimized build.
91

92
## Launch and Run Apollo
93

94 95 96
Please refer to the
[Run Apollo](../howto/how_to_launch_and_run_apollo.md#run-apollo) section of
[How to Launch And Run Apollo](../howto/how_to_launch_and_run_apollo.md).
97

N
Natasha Dsouza 已提交
98
## Support a new Vehicle in DreamView
99

N
Natasha Dsouza 已提交
100
In order to support a new vehicle in DreamView, please follow the steps below:
101

N
Natasha Dsouza 已提交
102
1. Create a new folder for your vehicle under `modules/calibration/data`
103

104 105 106 107
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.
108

109 110
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.