openpilot is an open source driver assistance system. openpilot performs the functions of Automated Lane Centering and Adaptive Cruise Control for 250+ supported car makes and models.
Go to file
Mitchell Goff 46f70592ae navmodeld (#26665)
* Added navmodeld

* New nav model: 7c306685-5476-4bd4-ab65-105b01b6bca8/300, feats only

* little cleanup

* Remove NAV flag

* Moved to_kj_array_ptr to commonmodel.h

* Switch from decimation to last_frame_id check

* add to release files

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: bb8a38a050
2022-12-02 13:14:30 -08:00
.github CI: use github.head_ref to group PR action runs (#26505) 2022-11-15 13:07:46 -08:00
body@dc780f858c body: fix UDS reqests (#26552) 2022-11-20 11:44:04 -08:00
cereal@7765176413 micd: apply A-weighting to the sound pressure level (#26668) 2022-12-02 00:11:29 -08:00
common bump to 0.9.1 2022-11-19 14:43:20 -08:00
docs Toyota: Add FW for 2023 Toyota Camry Hybrid (#26654) 2022-12-01 22:03:15 -08:00
laika_repo@e1049cde0a rawgpsd: publish ephemerides (#25931) 2022-10-07 17:27:09 -07:00
opendbc@3737675445 bump opendbc 2022-12-01 14:21:57 -08:00
panda@616450c525 bump panda 2022-12-01 20:14:10 -08:00
pyextra longitudinal MPC: use reset() function instead of recreating the solver in (#24091) 2022-04-01 15:39:41 -07:00
rednose_repo@3b6bd703b7 Fix master-ci dirty working tree + CI test (#25087) 2022-07-08 13:00:43 -07:00
release navmodeld (#26665) 2022-12-02 13:14:30 -08:00
scripts FPv2: fixed fingerprint overrides query result (#25990) 2022-10-06 15:24:52 -07:00
selfdrive navmodeld (#26665) 2022-12-02 13:14:30 -08:00
site_scons/site_tools Add scanner for Cython dependencies (#19722) 2021-01-11 14:36:30 +01:00
system soundd: lower max volume breakpoint (#26673) 2022-12-02 02:23:51 -08:00
third_party third party: add -Wno-unqualified-std-cast-call to fix json11 build (#25686) 2022-09-08 16:00:00 -07:00
tinygrad_repo@8e22d5ee67 use upstream tinygrad (#26178) 2022-10-21 13:11:50 -07:00
tools Cabana: setSectionResizeMode to QHeaderView::Fixed (#26655) 2022-12-01 09:17:02 -08:00
.clang-tidy setup clang tidy (#19533) 2021-01-05 12:50:23 -08:00
.dir-locals.el
.dockerignore sim: update CARLA to 0.9.12 (#22497) 2021-10-10 15:54:47 -07:00
.editorconfig Write orientation & transform in C++ (#1637) 2020-06-09 16:44:26 -07:00
.gitattributes cleanup .gitattributes (#23503) 2022-01-12 23:07:06 -08:00
.gitignore navmodeld (#26665) 2022-12-02 13:14:30 -08:00
.gitmodules use upstream tinygrad (#26178) 2022-10-21 13:11:50 -07:00
.lfsconfig lfs: easier to use config (#23490) 2022-01-10 23:14:30 -08:00
.pre-commit-config.yaml Pipenv -> poetry (#24858) 2022-10-21 16:23:56 -07:00
.pylintrc Move a bunch of stuff to system/ part 3 (#24829) 2022-06-11 23:19:27 -07:00
.python-version update to python 3.8.10 (#22551) 2021-10-13 21:36:10 -07:00
Dockerfile.openpilot misc jenkins fixups (#24840) 2022-06-12 18:00:00 -07:00
Dockerfile.openpilot_base Pipenv -> poetry (#24858) 2022-10-21 16:23:56 -07:00
Dockerfile.openpilot_base_cl Fix OpenCL driver URL (#26650) 2022-11-30 21:45:44 -08:00
Jenkinsfile jenkins: move test_manager to common devices (#26663) 2022-12-01 15:32:59 -08:00
LICENSE
README.md pre-commit: add codespell (#25571) 2022-08-30 11:20:55 -07:00
RELEASES.md HKG: Car Port for Kia Sorento Plug-in Hybrid 2022 (#26635) 2022-12-01 14:11:12 -08:00
SConstruct Build panda/SConscript (#26646) 2022-11-30 20:27:55 -08:00
SECURITY.md Create SECURITY.md 2022-08-13 23:28:44 -07:00
codecov.yml disable codecov comment 2020-05-11 10:40:49 -07:00
laika
launch_chffrplus.sh Move selfdrive/hardware/ to system/ (#24725) 2022-06-11 16:38:24 -07:00
launch_env.sh agnos 6.2 (#26441) 2022-11-10 21:10:34 -08:00
launch_openpilot.sh
lgtm.yml phonelibs -> third_party (#22477) 2021-10-07 16:32:44 -07:00
mypy.ini configure mypy outside of pre-commit environment (#25892) 2022-09-27 20:43:05 -07:00
poetry.lock micd: scale sound volume with ambient noise level (#26399) 2022-11-30 21:56:03 -08:00
pyproject.toml micd: scale sound volume with ambient noise level (#26399) 2022-11-30 21:56:03 -08:00
rednose Rednose (#1503) 2020-05-14 15:36:56 -07:00
tinygrad modeld: Move from SNPE to tinygrad (#25207) 2022-09-01 10:31:14 -07:00
update_requirements.sh tools: pyenv setup fix (#26601) 2022-11-30 15:11:26 -08:00

README.md

Table of Contents


What is openpilot?

openpilot is an open source driver assistance system. Currently, openpilot performs the functions of Adaptive Cruise Control (ACC), Automated Lane Centering (ALC), Forward Collision Warning (FCW), and Lane Departure Warning (LDW) for a growing variety of supported car makes, models, and model years. In addition, while openpilot is engaged, a camera-based Driver Monitoring (DM) feature alerts distracted and asleep drivers. See more about the vehicle integration and limitations.

Running on a dedicated device in a car

To use openpilot in a car, you need four things

  • A supported device to run this software: a comma three.
  • This software. The setup procedure of the comma three allows the user to enter a URL for custom software. The URL, openpilot.comma.ai will install the release version of openpilot. To install openpilot master, you can use installer.comma.ai/commaai/master, and replacing commaai with another GitHub username can install a fork.
  • One of the 200+ supported cars. We support Honda, Toyota, Hyundai, Nissan, Kia, Chrysler, Lexus, Acura, Audi, VW, and more. If your car is not supported but has adaptive cruise control and lane-keeping assist, it's likely able to run openpilot.
  • A car harness to connect to your car.

We have detailed instructions for how to mount the device in a car.

Running on PC

All openpilot services can run as usual on a PC without requiring special hardware or a car. You can also run openpilot on recorded or simulated data to develop or experiment with openpilot.

With openpilot's tools, you can plot logs, replay drives, and watch the full-res camera streams. See the tools README for more information.

You can also run openpilot in simulation with the CARLA simulator. This allows openpilot to drive around a virtual car on your Ubuntu machine. The whole setup should only take a few minutes but does require a decent GPU.

A PC running openpilot can also control your vehicle if it is connected to a webcam, a black panda, and a harness.

Community and Contributing

openpilot is developed by comma and by users like you. We welcome both pull requests and issues on GitHub. Bug fixes and new car ports are encouraged. Check out the contributing docs.

Documentation related to openpilot development can be found on docs.comma.ai. Information about running openpilot (e.g. FAQ, fingerprinting, troubleshooting, custom forks, community hardware) should go on the wiki.

You can add support for your car by following guides we have written for Brand and Model ports. Generally, a car with adaptive cruise control and lane keep assist is a good candidate. Join our Discord to discuss car ports: most car makes have a dedicated channel.

Want to get paid to work on openpilot? comma is hiring.

And follow us on Twitter.

User Data and comma Account

By default, openpilot uploads the driving data to our servers. You can also access your data through comma connect. We use your data to train better models and improve openpilot for everyone.

openpilot is open source software: the user is free to disable data collection if they wish to do so.

openpilot logs the road-facing cameras, CAN, GPS, IMU, magnetometer, thermal sensors, crashes, and operating system logs. The driver-facing camera is only logged if you explicitly opt-in in settings. The microphone is not recorded.

By using openpilot, you agree to our Privacy Policy. You understand that use of this software or its related services will generate certain types of user data, which may be logged and stored at the sole discretion of comma. By accepting this agreement, you grant an irrevocable, perpetual, worldwide right to comma for the use of this data.

Safety and Testing

  • openpilot observes ISO26262 guidelines, see SAFETY.md for more details.
  • openpilot has software-in-the-loop tests that run on every commit.
  • The code enforcing the safety model lives in panda and is written in C, see code rigor for more details.
  • panda has software-in-the-loop safety tests.
  • Internally, we have a hardware-in-the-loop Jenkins test suite that builds and unit tests the various processes.
  • panda has additional hardware-in-the-loop tests.
  • We run the latest openpilot in a testing closet containing 10 comma devices continuously replaying routes.

Directory Structure

.
├── cereal              # The messaging spec and libs used for all logs
├── common              # Library like functionality we've developed here
├── docs                # Documentation
├── opendbc             # Files showing how to interpret data from cars
├── panda               # Code used to communicate on CAN
├── third_party         # External libraries
├── pyextra             # Extra python packages
└── system              # Generic services
    ├── camerad         # Driver to capture images from the camera sensors
    ├── clocksd         # Broadcasts current time
    ├── hardware        # Hardware abstraction classes
    ├── logcatd         # systemd journal as a service
    └── proclogd        # Logs information from /proc
└── selfdrive           # Code needed to drive the car
    ├── assets          # Fonts, images, and sounds for UI
    ├── athena          # Allows communication with the app
    ├── boardd          # Daemon to talk to the board
    ├── car             # Car specific code to read states and control actuators
    ├── controls        # Planning and controls
    ├── debug           # Tools to help you debug and do car ports
    ├── locationd       # Precise localization and vehicle parameter estimation
    ├── loggerd         # Logger and uploader of car data
    ├── manager         # Daemon that starts/stops all other daemons as needed
    ├── modeld          # Driving and monitoring model runners
    ├── monitoring      # Daemon to determine driver attention
    ├── navd            # Turn-by-turn navigation
    ├── sensord         # IMU interface code
    ├── test            # Unit tests, system tests, and a car simulator
    └── ui              # The UI

Licensing

openpilot is released under the MIT license. Some parts of the software are released under other licenses as specified.

Any user of this software shall indemnify and hold harmless Comma.ai, Inc. and its directors, officers, employees, agents, stockholders, affiliates, subcontractors and customers from and against all allegations, claims, actions, suits, demands, damages, liabilities, obligations, losses, settlements, judgments, costs and expenses (including without limitation attorneys fees and costs) which arise out of, relate to or result from any use of this software by user.

THIS IS ALPHA QUALITY SOFTWARE FOR RESEARCH PURPOSES ONLY. THIS IS NOT A PRODUCT. YOU ARE RESPONSIBLE FOR COMPLYING WITH LOCAL LAWS AND REGULATIONS. NO WARRANTY EXPRESSED OR IMPLIED.


openpilot tests Total alerts Language grade: Python Language grade: C/C++ codecov