Files
dragonpilot/tools/webcam/README.md

38 lines
1.3 KiB
Markdown
Raw Normal View History

# Run openpilot with webcam on PC
2020-06-03 12:54:49 -07:00
What's needed:
2020-10-29 16:51:09 -07:00
- Ubuntu 20.04
2020-06-03 12:54:49 -07:00
- GPU (recommended)
- Two USB webcams, at least 720p and 78 degrees FOV (e.g. Logitech C920/C615)
2020-11-03 19:56:25 -08:00
- [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
2020-06-03 12:54:49 -07:00
That's it!
2020-03-26 19:19:47 -07:00
## Setup openpilot
2020-03-26 19:19:47 -07:00
```
2020-06-03 12:54:49 -07:00
cd ~
git clone https://github.com/commaai/openpilot.git
2020-03-26 19:19:47 -07:00
```
2020-06-03 12:54:49 -07:00
- Follow [this readme](https://github.com/commaai/openpilot/tree/master/tools) to install the requirements
2022-11-30 21:45:44 -08:00
- Install [OpenCL Driver](https://registrationcenter-download.intel.com/akdlm/irc_nas/vcp/15532/l_opencl_p_18.1.0.015.tgz)
2020-03-27 12:42:05 -07:00
2020-06-03 12:54:49 -07:00
## Build openpilot for webcam
2020-03-26 19:19:47 -07:00
```
2020-06-03 12:54:49 -07:00
cd ~/openpilot
USE_WEBCAM=1 scons -j$(nproc)
2020-03-26 19:19:47 -07:00
```
2020-03-27 12:42:05 -07:00
2020-06-06 21:21:25 -07:00
## Connect the hardware
2020-06-03 12:54:49 -07:00
- Connect the road facing camera first, then the driver facing camera
- (default indexes are 1 and 2; can be modified in system/camerad/cameras/camera_webcam.cc)
2020-06-03 12:54:49 -07:00
- Connect your computer to panda
2020-03-27 12:42:05 -07:00
2020-06-03 12:54:49 -07:00
## GO
2020-03-26 19:19:47 -07:00
```
cd ~/openpilot/selfdrive/manager
NOSENSOR=1 USE_WEBCAM=1 ./manager.py
2020-03-26 19:19:47 -07:00
```
2020-06-03 12:54:49 -07:00
- 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!