mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 17:03:56 +08:00
* noble build * workflow * symlink * map only for noble * sym * add qt to cppcheck * cppcheck noreturn in non void funct * get kaitai header * kaitai header * syntax * try new pyopencl * try this version * install lsb-core manually * support old 20.04 lsb-core * try arm * try latest pyopencl * revert * use pocl icd * no lock * no arm pyopencl * new intel opencl runtime * pin filelock * undo * glsl version * new version * build test * remove test * new metadrive * remove glsl restrictions * <optional> * Update .github/workflows/tools_tests.yaml Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> * cache * new cache --------- Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
1.3 KiB
1.3 KiB
Run openpilot with webcam on PC
What's needed:
- Ubuntu 24.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
- Follow this readme to install the requirements
- Install OpenCL Driver
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!