parent
e6cf5883b1
commit
d035394ce7
26 changed files with 98 additions and 95 deletions
@ -1,3 +1,3 @@ |
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bf5043514cf5b79912e54da6550f8a1bf3f378644827154c47ea7fd31de4093a |
||||
size 24549 |
||||
oid sha256:d967ffcacdd6c1262ca9769e464976cf772320be1bf1cae2b3c8cd8717cfb7a0 |
||||
size 24541 |
||||
|
@ -1,3 +1,3 @@ |
||||
version https://git-lfs.github.com/spec/v1 |
||||
oid sha256:5c0fcfcf3c7a136900d9a02b57596dc3e78b6bd33feaf3e4ee9c7b5f7702603b |
||||
size 1818 |
||||
oid sha256:1ad38feef90e767d5edf723f38dc65666149ebd6692923c8c8aa80a9328b2845 |
||||
size 1816 |
||||
|
@ -1,3 +1,3 @@ |
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:79b7f818b5609c5caa83fae3922a3f4126c4abd3e9a1752e11b18e2e55ed338a |
||||
size 9608 |
||||
oid sha256:6bf800f2584a7320bd99d2fee3a1868e194913d47ac51d6ecdd6e0399c0c945f |
||||
size 9604 |
||||
|
@ -1,49 +1,49 @@ |
||||
Run openpilot with webcam on PC/laptop |
||||
===================== |
||||
What's needed: |
||||
- Ubuntu 16.04 |
||||
- Python 3.7.3 |
||||
- 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) w/ black panda (or the outdated grey panda/giraffe combo) 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, ... |
||||
That's it! |
||||
What's needed: |
||||
- Ubuntu 16.04 |
||||
- Python 3.7.3 |
||||
- 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) w/ black panda (or the outdated grey panda/giraffe combo) 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, ... |
||||
That's it! |
||||
|
||||
## Clone openpilot and install the requirements |
||||
## Clone openpilot and install the requirements |
||||
``` |
||||
cd ~ |
||||
git clone https://github.com/commaai/openpilot.git |
||||
cd ~ |
||||
git clone https://github.com/commaai/openpilot.git |
||||
``` |
||||
- Follow [this readme](https://github.com/commaai/openpilot/tree/master/tools) to install the requirements |
||||
- Add line "export PYTHONPATH=$HOME/openpilot" to your ~/.bashrc |
||||
- You also need to install tensorflow 2.2 and nvidia drivers: nvidia-xxx/cuda10.0/cudnn7.6.5 |
||||
- Install [OpenCL Driver](http://registrationcenter-download.intel.com/akdlm/irc_nas/vcp/15532/l_opencl_p_18.1.0.015.tgz) |
||||
- (Note: the code assumes cl platforms order to be 0.GPU/1.CPU when running clinfo; if reverse, change the -1 to -2 in selfdrive/modeld/modeld.cc#L130; helping us refactor this mess is encouraged) |
||||
- Install [OpenCV4](https://www.pyimagesearch.com/2018/08/15/how-to-install-opencv-4-on-ubuntu/) (ignore the Python part) |
||||
- Follow [this readme](https://github.com/commaai/openpilot/tree/master/tools) to install the requirements |
||||
- Add line "export PYTHONPATH=$HOME/openpilot" to your ~/.bashrc |
||||
- You also need to install tensorflow 2.2 and nvidia drivers: nvidia-xxx/cuda10.0/cudnn7.6.5 |
||||
- Install [OpenCL Driver](http://registrationcenter-download.intel.com/akdlm/irc_nas/vcp/15532/l_opencl_p_18.1.0.015.tgz) |
||||
- (Note: the code assumes cl platforms order to be 0.GPU/1.CPU when running clinfo; if reverse, change the -1 to -2 in selfdrive/modeld/modeld.cc#L130; helping us refactor this mess is encouraged) |
||||
- Install [OpenCV4](https://www.pyimagesearch.com/2018/08/15/how-to-install-opencv-4-on-ubuntu/) (ignore the Python part) |
||||
|
||||
## Build openpilot for webcam |
||||
## Build openpilot for webcam |
||||
``` |
||||
cd ~/openpilot |
||||
cd ~/openpilot |
||||
``` |
||||
- check out selfdrive/camerad/cameras/camera_webcam.cc line72&146 before building if any camera is upside down |
||||
- check out selfdrive/camerad/cameras/camera_webcam.cc line72&146 before building if any camera is upside down |
||||
``` |
||||
scons use_webcam=1 |
||||
touch prebuilt |
||||
scons use_webcam=1 |
||||
touch prebuilt |
||||
``` |
||||
|
||||
## Connect the hardwares |
||||
- Connect the road facing camera first, then the driver facing camera |
||||
- (default indexes are 1 and 2; can be modified in selfdrive/camerad/cameras/camera_webcam.cc) |
||||
- Connect your computer to panda |
||||
## Connect the hardwares |
||||
- Connect the road facing camera first, then the driver facing camera |
||||
- (default indexes are 1 and 2; can be modified in selfdrive/camerad/cameras/camera_webcam.cc) |
||||
- Connect your computer to panda |
||||
|
||||
## GO |
||||
## 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 |
||||
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 |
||||
``` |
||||
- 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) |
||||
- Finish calibration and engage! |
||||
- 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) |
||||
- Finish calibration and engage! |
||||
|
Loading…
Reference in new issue