tools: cleanup + setup CI (#20104)

* cleanup tools

* setup tools CI

* loggerd doesn't support this anymore

* cleanup

* builds with openpilot now
This commit is contained in:
Adeeb Shihadeh
2021-02-17 20:37:01 -08:00
committed by GitHub
parent 4d46c521d1
commit d1b44bbb34
10 changed files with 26 additions and 167 deletions
+5 -8
View File
@@ -1,16 +1,15 @@
Run openpilot with webcam on PC/laptop
=====================
# Run openpilot with webcam on PC
What's needed:
- Ubuntu 20.04
- Python 3.8.2
- GPU (recommended)
- Two USB webcams, at least 720p and 78 degrees FOV (e.g. Logitech C920/C615)
- [Car harness](https://comma.ai/shop/products/comma-car-harness) with black panda to connect to your car
- [Panda paw](https://comma.ai/shop/products/panda-paw) (or USB-A to USB-A cable) to connect panda to your computer
- Tape, Charger, ...
- [Panda paw](https://comma.ai/shop/products/panda-paw) or USB-A to USB-A cable to connect panda to your computer
That's it!
## Clone openpilot and install the requirements
## Setup openpilot
```
cd ~
git clone https://github.com/commaai/openpilot.git
@@ -37,10 +36,8 @@ USE_WEBCAM=1 scons -j$(nproc)
## GO
```
cd ~/openpilot/tools/webcam
./accept_terms.py # accept the user terms so that thermald can detect the car started
cd ~/openpilot/selfdrive
PASSIVE=0 NOSENSOR=1 WEBCAM=1 ./manager.py
PASSIVE=0 NOSENSOR=1 USE_WEBCAM=1 ./manager.py
```
- Start the car, then the UI should show the road webcam's view
- Adjust and secure the webcams (you can run tools/webcam/front_mount_helper.py to help mount the driver camera)
-9
View File
@@ -1,9 +0,0 @@
#!/usr/bin/env python
from common.params import Params
from selfdrive.version import terms_version, training_version
if __name__ == '__main__':
params = Params()
params.put("HasAcceptedTerms", str(terms_version, 'utf-8'))
params.put("CompletedTrainingVersion", str(training_version, 'utf-8'))
print("Terms Accepted!")