mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-01 03:22:07 +08:00
c0866d9edb
* "The commit-hook project sounds interesting though. I would definitely merge something that runs flake8 and pylint on the modified files!" - pd0wm, https://github.com/commaai/openpilot/pull/1575#issuecomment-634974344 * add pylint to pre-commit and make everything pass * Remove uncommented stuff Co-authored-by: J <user@4800.lan> old-commit-hash: bd0643424357864287ae0485da03f66df85e1fb1
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