openpilot0/tools/webcam
Harald Schäfer f870a968e9 Split cereal into cereal/msgq (#32631)
* squash

* fix doc

* compile device

* compile device

* Update ref

* add msgq to precommit exclusions

* No service ports

* fix compile

* address comments

* More comments

* Delete logger

* Update opendbc

* Linting

* bump msgq
old-commit-hash: e71ec4e8d7
2024-06-06 14:31:56 -07:00
..
README.md manager: move to system/ (#32538) 2024-05-25 12:41:17 -07:00
camera.py Webcam: prepare to make camerad a PythonProcess (#31202) 2024-01-29 10:10:55 -08:00
camerad.py Split cereal into cereal/msgq (#32631) 2024-06-06 14:31:56 -07:00
start_camerad.sh Python camerad for webcam (#30930) 2024-01-08 19:22:21 -08:00

README.md

Run openpilot with webcam on PC

What's needed:

  • Ubuntu 20.04
  • GPU (recommended)
  • Two USB webcams, at least 720p and 78 degrees FOV (e.g. Logitech C920/C615)
  • Car harness with black panda to connect to your car
  • Panda paw or USB-A to USB-A cable to connect panda to your computer That's it!

Setup openpilot

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

Build openpilot for webcam

cd ~/openpilot
USE_WEBCAM=1 scons -j$(nproc)

Connect the hardware

  • 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)
  • Connect your computer to panda

GO

cd ~/openpilot/system/manager
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)
  • Finish calibration and engage!