2020-03-10 14:38:40 -06:00
|
|
|
openpilot in simulator
|
2020-03-01 11:50:03 -07:00
|
|
|
=====================
|
2020-02-04 20:46:57 -07:00
|
|
|
Needs Ubuntu 16.04
|
|
|
|
|
2020-03-01 11:50:03 -07:00
|
|
|
## Checkout openpilot
|
|
|
|
```
|
2020-02-04 20:46:57 -07:00
|
|
|
cd ~/
|
|
|
|
git clone https://github.com/commaai/openpilot.git
|
2020-03-01 11:50:03 -07:00
|
|
|
|
2020-02-04 20:46:57 -07:00
|
|
|
# Add export PYTHONPATH=$HOME/openpilot to your bashrc
|
2020-02-28 22:27:57 -07:00
|
|
|
# Have a working tensorflow+keras in python3.7.3 (with [packages] in openpilot/Pipfile)
|
2020-03-01 11:50:03 -07:00
|
|
|
```
|
2020-06-03 13:54:49 -06:00
|
|
|
## Install (in tab 1)
|
2020-03-01 11:50:03 -07:00
|
|
|
```
|
2020-02-04 20:46:57 -07:00
|
|
|
cd ~/openpilot/tools/sim
|
|
|
|
./start_carla.sh # install CARLA 0.9.7 and start the server
|
2020-03-01 11:50:03 -07:00
|
|
|
```
|
2020-06-03 13:54:49 -06:00
|
|
|
## openpilot (in tab 2)
|
2020-03-01 11:50:03 -07:00
|
|
|
```
|
2020-02-04 20:46:57 -07:00
|
|
|
cd ~/openpilot/selfdrive/
|
|
|
|
PASSIVE=0 NOBOARD=1 ./manager.py
|
2020-03-01 11:50:03 -07:00
|
|
|
```
|
2020-06-03 13:54:49 -06:00
|
|
|
## bridge (in tab 3)
|
2020-03-01 11:50:03 -07:00
|
|
|
```
|
2020-02-04 20:46:57 -07:00
|
|
|
# links carla to openpilot, will "start the car" according to manager
|
|
|
|
cd ~/openpilot/tools/sim
|
|
|
|
./bridge.py
|
2020-03-01 11:50:03 -07:00
|
|
|
```
|
2020-06-03 13:54:49 -06:00
|
|
|
## Controls
|
|
|
|
Now you can control the simulator with the keys:
|
2020-03-01 11:50:03 -07:00
|
|
|
|
2020-03-10 14:38:40 -06:00
|
|
|
1: Cruise up 5 mph
|
2020-03-01 11:50:03 -07:00
|
|
|
|
2020-03-10 14:38:40 -06:00
|
|
|
2: Cruise down 5 mph
|
2020-03-01 11:50:03 -07:00
|
|
|
|
|
|
|
3: Cruise cancel
|
|
|
|
|
|
|
|
q: Exit all
|
|
|
|
|
2020-02-04 20:46:57 -07:00
|
|
|
|