how_to_launch_and_run_apollo.md 2.3 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
Running `scripts/bootstrap.sh` will start Dreamview backend with the Monitor module
34
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 (except Monitor)
is running in the background at this moment.
46

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

### Select Drive Mode
50

51 52
From the dropdown box selet "Navigation" mode.

53
![Navigation Mode](images/dreamview_2_5_setup_profile.png)
54

55
### Replay Demo Record
56

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

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

H
Hongyi 已提交
64 65
# 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
66 67
```

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

71
![Dreamview with Trajectory](images/dv_trajectory_2.5.png)
72

73 74 75
### Congrats!

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