You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
780 B
41 lines
780 B
5 years ago
|
Openpiltot Simulator
|
||
|
=====================
|
||
5 years ago
|
Needs Ubuntu 16.04
|
||
|
|
||
5 years ago
|
## Checkout openpilot
|
||
|
```
|
||
5 years ago
|
cd ~/
|
||
|
git clone https://github.com/commaai/openpilot.git
|
||
5 years ago
|
|
||
5 years ago
|
# Add export PYTHONPATH=$HOME/openpilot to your bashrc
|
||
5 years ago
|
# Have a working tensorflow+keras in python3.7.3 (with [packages] in openpilot/Pipfile)
|
||
5 years ago
|
```
|
||
|
## Install (in tab 1)
|
||
|
```
|
||
5 years ago
|
cd ~/openpilot/tools/sim
|
||
|
./start_carla.sh # install CARLA 0.9.7 and start the server
|
||
5 years ago
|
```
|
||
|
## openpilot (in tab 2)
|
||
|
```
|
||
5 years ago
|
cd ~/openpilot/selfdrive/
|
||
|
PASSIVE=0 NOBOARD=1 ./manager.py
|
||
5 years ago
|
```
|
||
|
## bridge (in tab 3)
|
||
|
```
|
||
5 years ago
|
# links carla to openpilot, will "start the car" according to manager
|
||
|
cd ~/openpilot/tools/sim
|
||
|
./bridge.py
|
||
5 years ago
|
```
|
||
|
## Controls
|
||
|
Now you can control the simulator with the keys:
|
||
|
|
||
|
1: Cruise up 5 mp/h
|
||
|
|
||
|
2: Cruise down 5 mp/h
|
||
|
|
||
|
3: Cruise cancel
|
||
|
|
||
|
q: Exit all
|
||
|
|
||
5 years ago
|
|