apollo_software_installation_guide.md 3.3 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
## Download Apollo Sources
17

18 19 20
Run the following commands to clone
[Apollo's GitHub Repo](https://github.com/ApolloAuto/apollo.git).

21
```bash
22 23 24 25 26 27 28 29 30 31
# 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:

32
```bash
33 34 35 36
cd apollo
git checkout master
```

37
For CN users, please refer to
38
[How to Clone Apollo Repository from China](../howto/how_to_clone_apollo_repo_from_china.md)
39 40
if your have difficulty cloning from GitHub.

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

44
```bash
45 46 47 48 49 50 51 52 53
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
54

55
```bash
56 57
bash docker/scripts/dev_start.sh
```
58

59
to start Apollo development Docker container.
60

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

63
```bash
64 65 66 67 68
[ 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!
```
69

70
## Enter Apollo Development Docker Container
71

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

74
```bash
75 76
bash docker/scripts/dev_into.sh
```
77

78
## Build Apollo inside Container
79

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

82
```bash
83 84
./apollo.sh build
```
85

86
to build the whole Apollo project.
87

88
Or type
89

90
```bash
91 92
./apollo.sh build_opt
```
93

94
for an optimized build.
95

96 97 98 99
You can refer to
[Apollo Build and Test Explained](../specs/apollo_build_and_test_explained.md)
for a thorough understanding of Apollo builds and tests.

100
## Launch and Run Apollo
101

102 103 104
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).
105

106
## (Optional) Support a new Vehicle in DreamView
107

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

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

112 113 114 115
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.
116

117 118
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.