2020-03-10 13:38:40 -07:00
|
|
|
openpilot in simulator
|
2020-03-01 19:50:03 +01:00
|
|
|
=====================
|
2020-02-04 19:46:57 -08:00
|
|
|
|
2020-09-10 03:14:49 -07:00
|
|
|
## Setup
|
2020-03-01 19:50:03 +01:00
|
|
|
|
2020-09-10 03:14:49 -07:00
|
|
|
Checkout openpilot
|
2020-03-01 19:50:03 +01:00
|
|
|
```
|
2020-09-10 03:14:49 -07:00
|
|
|
cd ~/ && git clone https://github.com/commaai/openpilot.git
|
2020-03-01 19:50:03 +01:00
|
|
|
```
|
2020-09-10 03:14:49 -07:00
|
|
|
|
|
|
|
|
## Running the simulator
|
|
|
|
|
|
|
|
|
|
First, start the CARLA server.
|
2020-03-01 19:50:03 +01:00
|
|
|
```
|
2020-02-04 19:46:57 -08:00
|
|
|
cd ~/openpilot/tools/sim
|
2020-09-10 03:14:49 -07:00
|
|
|
./start_carla.sh
|
2020-03-01 19:50:03 +01:00
|
|
|
```
|
2020-09-10 03:14:49 -07:00
|
|
|
|
|
|
|
|
Then use `start_openpilot_docker.sh` to start the docker container.
|
|
|
|
|
|
2020-06-03 12:54:49 -07:00
|
|
|
## Controls
|
2020-09-10 03:14:49 -07:00
|
|
|
|
2020-06-18 02:53:17 +02:00
|
|
|
Now put the focus on the terminal running bridge.py and you can control
|
|
|
|
|
openpilot driving in the simulation with the following keys
|
|
|
|
|
|
|
|
|
|
| key | functionality |
|
|
|
|
|
| :---: | :---------------: |
|
|
|
|
|
| 1 | Cruise up 5 mph |
|
|
|
|
|
| 2 | Cruise down 5 mph |
|
|
|
|
|
| 3 | Cruise cancel |
|
|
|
|
|
| q | Exit all |
|
2020-03-01 19:50:03 +01:00
|
|
|
|