openpilot/tools/sim
Adeeb Shihadeh 10ae22a192 delete unused lines 2020-05-10 11:25:42 -07:00
..
lib delete unused lines 2020-05-10 11:25:42 -07:00
.gitignore Cleanup simulator and add usage instructions (#1050) 2020-02-04 19:46:57 -08:00
README.md typos 2020-03-10 13:38:40 -07:00
bridge.py Using lgtm.com and fixing found alerts (#1452) 2020-05-02 12:07:34 -07:00
start_carla.sh Make Nui tests work. Framereader moved to tools/clib (#1185) 2020-03-01 10:50:03 -08:00

README.md

openpilot in simulator

Needs Ubuntu 16.04

Checkout openpilot

cd ~/
git clone https://github.com/commaai/openpilot.git

# Add export PYTHONPATH=$HOME/openpilot to your bashrc
# Have a working tensorflow+keras in python3.7.3 (with [packages] in openpilot/Pipfile)

Install (in tab 1)

cd ~/openpilot/tools/sim
./start_carla.sh  # install CARLA 0.9.7 and start the server

openpilot (in tab 2)

cd ~/openpilot/selfdrive/
PASSIVE=0 NOBOARD=1 ./manager.py

bridge (in tab 3)

# links carla to openpilot, will "start the car" according to manager
cd ~/openpilot/tools/sim
./bridge.py

Controls

Now you can control the simulator with the keys:

1: Cruise up 5 mph

2: Cruise down 5 mph

3: Cruise cancel

q: Exit all