how_to_launch_and_run_apollo.md 2.4 KB
Newer Older
X
Xiangquan Xiao 已提交
1
# How to Launch and Run Apollo
2 3 4 5 6 7 8 9 10

## Build Apollo

First check to make sure you are in development docker container before you
proceed. Make sure nVidia GPU is available and that you have installed the
appropriate nVidia driver if you want to run the entire system. You could still
proceed with the next few steps if no nVidia GPU is available, the system will
run without perception as it was CUDA-based.

11
```
12
# Make sure you start up clean
13
./apollo.sh clean
14 15 16 17

# This will build the full system and requires nVidia GPU with nVidia drivers
# loaded. If no GPU is availabe, please run "./apollo.sh build_opt" instead.
./apollo.sh build_opt_gpu
18 19
```

20 21 22 23
**Note**:

> Please run `./apollo.sh build_fe` before `./apollo.sh build_opt` if you made
> any modifications to the Dreamview frontend.
24 25 26

## Run Apollo

27 28 29
Once you have finished building Apollo, follow the steps below to launch it.
Note that although `bootstrap.sh` may succeed, the Web UI won't be ready if the
former building step was skipped.
30 31 32

### Start Apollo

33 34
Running `scripts/bootstrap.sh` will start Dreamview backend with the monitor
module enabled.
35 36

```
L
liufeng 已提交
37 38
# Startup modules monitor and dreamview, the default option is start.
./scripts/bootstrap.sh [start | stop | restart]
39 40
```

41 42 43
### Access Dreamview Web UI

Open [http://localhost:8888](http://localhost:8888) in your favorite browser,
44 45
e.g. Chrome, and you should see this screen. However, no module(s) except
monitor is running in the background at this moment.
46

47
![Access Dreamview](images/apollo_bootstrap_screen.png)
48

49
### Select Drive Mode and Map
50

51 52
From the dropdown box of Mode Setup, select "Mkz Standard Debug" mode. From the
dropdown box of Map, select "Sunnyvale with Two Offices".
53

54
![Drive Mode and Map Selection](images/dreamview_6_0_setup_profile.png)
55

56
### Replay Demo Record
57

58
To see if the system works, use the demo record to "feed" the system.
59 60

```
F
Fadi88 已提交
61 62
# You need to download the demo record using the following commands
cd docs/demo_guide/
63
python3 record_helper.py demo_3.5.record
F
Fadi88 已提交
64

H
Hongyi 已提交
65 66
# You can now replay this demo "record" in a loop with the '-l' flag
cyber_recorder play -f docs/demo_guide/demo_3.5.record -l
67 68
```

69 70
Dreamview should show a running vehicle now. (The following image might be
different due to frontend code changes.)
71

72
![Dreamview with Trajectory](images/dv_trajectory_6.0.png)
73

74 75 76
### Congrats!

You have successfully built Apollo! Now you can revisit
77 78
[Apollo Readme](../../README.md) for additional guidelines on the neccessary
hardware setup.