/openpilot

open source driving agent

Primary LanguageCMIT LicenseMIT

Welcome to openpilot

openpilot is an open source driver assistance system. Currently, it performs the functions of Adaptive Cruise Control (ACC) and Automated Lane Centering (ALC) for selected Honda, Toyota, Acura, Lexus, Chevrolet, Hyundai, Kia, Subaru, Volkswagen. It's about on par with Tesla Autopilot and GM Super Cruise, and better than all other manufacturers.

The openpilot codebase has been written to be concise and to enable rapid prototyping. We look forward to your contributions - improving real vehicle automation has never been easier.

Table of Contents


Community

openpilot is developed by comma.ai and users like you.

Follow us on Twitter and join our Discord.

Hardware

At the moment openpilot supports the EON DevKit. A car harness is recommended to connect the EON to the car. We'd like to support other platforms as well.

Install openpilot on a neo device by entering https://openpilot.comma.ai during NEOS setup.

Supported Cars

Make Model (US Market Reference) Supported Package Lateral Longitudinal No Accel Below No Steer Below
Acura ILX 2016-18 AcuraWatch Plus Yes Yes 25mph1 25mph
Acura RDX 2016-18 AcuraWatch Plus Yes Yes 25mph1 12mph
Buick3 Regal 20186 Adaptive Cruise Yes Yes 0mph 7mph
Chevrolet3 Malibu 20176 Adaptive Cruise Yes Yes 0mph 7mph
Chevrolet3 Volt 2017-186 Adaptive Cruise Yes Yes 0mph 7mph
Cadillac3 ATS 2018 Adaptive Cruise Yes Yes 0mph 7mph
Chrysler Pacifica 2017-187 Adaptive Cruise Yes Stock 0mph 9mph
Chrysler Pacifica Hybrid 2017-187 Adaptive Cruise Yes Stock 0mph 9mph
Chrysler Pacifica Hybrid 20197 Adaptive Cruise Yes Stock 0mph 39mph
GMC3 Acadia Denali 20186 Adaptive Cruise Yes Yes 0mph 7mph
Holden3 Astra 20176 Adaptive Cruise Yes Yes 0mph 7mph
Honda Accord 2018-19 All Yes Stock 0mph 3mph
Honda Accord Hybrid 2018-19 All Yes Stock 0mph 3mph
Honda Civic Sedan/Coupe 2016-18 Honda Sensing Yes Yes 0mph 12mph
Honda Civic Sedan/Coupe 2019 Honda Sensing Yes Stock 0mph 2mph
Honda Civic Hatchback 2017-19 Honda Sensing Yes Stock 0mph 12mph
Honda CR-V 2015-16 Touring Yes Yes 25mph1 12mph
Honda CR-V 2017-19 Honda Sensing Yes Stock 0mph 12mph
Honda CR-V Hybrid 2017-2019 Honda Sensing Yes Stock 0mph 12mph
Honda Fit 2018-19 Honda Sensing Yes Yes 25mph1 12mph
Honda Odyssey 2018-19 Honda Sensing Yes Yes 25mph1 0mph
Honda Passport 2019 All Yes Yes 25mph1 12mph
Honda Pilot 2016-18 Honda Sensing Yes Yes 25mph1 12mph
Honda Pilot 2019 All Yes Yes 25mph1 12mph
Honda Ridgeline 2017-19 Honda Sensing Yes Yes 25mph1 12mph
Hyundai Santa Fe 20195 All Yes Stock 0mph 0mph
Hyundai Elantra 2017-195 SCC + LKAS Yes Stock 19mph 34mph
Hyundai Genesis 20185 All Yes Stock 19mph 34mph
Jeep Grand Cherokee 2016-187 Adaptive Cruise Yes Stock 0mph 9mph
Jeep Grand Cherokee 20197 Adaptive Cruise Yes Stock 0mph 39mph
Kia Optima 20195 SCC + LKAS Yes Stock 0mph 0mph
Kia Sorento 20185 All Yes Stock 0mph 0mph
Kia Stinger 20185 SCC + LKAS Yes Stock 0mph 0mph
Lexus CT Hybrid 2017-18 All Yes Yes2 0mph 0mph
Lexus ES Hybrid 2019 All Yes Yes 0mph 0mph
Lexus RX Hybrid 2016-19 All Yes Yes2 0mph 0mph
Lexus IS 2017-2019 All Yes Stock 22mph 0mph
Lexus IS Hybrid 2017 All Yes Stock 0mph 0mph
Subaru Crosstrek 2018-19 EyeSight Yes Stock 0mph 0mph
Subaru Impreza 2019-20 EyeSight Yes Stock 0mph 0mph
Toyota Avalon 2016 TSS-P Yes Yes2 20mph1 0mph
Toyota Avalon 2017-18 All Yes Yes2 20mph1 0mph
Toyota Camry 2018-19 All Yes Stock 0mph4 0mph
Toyota Camry Hybrid 2018-19 All Yes Stock 0mph4 0mph
Toyota C-HR 2017-19 All Yes Stock 0mph 0mph
Toyota C-HR Hybrid 2017-19 All Yes Stock 0mph 0mph
Toyota Corolla 2017-19 All Yes Yes2 20mph1 0mph
Toyota Corolla 2020 All Yes Yes 0mph 0mph
Toyota Corolla Hatchback 2019 All Yes Yes 0mph 0mph
Toyota Corolla Hybrid 2020 All Yes Yes 0mph 0mph
Toyota Highlander 2017-19 All Yes Yes2 0mph 0mph
Toyota Highlander Hybrid 2017-19 All Yes Yes2 0mph 0mph
Toyota Prius 2016 TSS-P Yes Yes2 0mph 0mph
Toyota Prius 2017-19 All Yes Yes2 0mph 0mph
Toyota Prius Prime 2017-20 All Yes Yes2 0mph 0mph
Toyota Rav4 2016 TSS-P Yes Yes2 20mph1 0mph
Toyota Rav4 2017-18 All Yes Yes2 20mph1 0mph
Toyota Rav4 2019 All Yes Yes 0mph 0mph
Toyota Rav4 Hybrid 2016 TSS-P Yes Yes2 0mph 0mph
Toyota Rav4 Hybrid 2017-18 All Yes Yes2 0mph 0mph
Toyota Sienna 2018 All Yes Yes2 0mph 0mph
Volkswagen8 Golf 2016-19 Driver Assistance Yes Stock 0mph 0mph

1Comma Pedal is used to provide stop-and-go capability to some of the openpilot-supported cars that don't currently support stop-and-go. Here is how to build a Comma Pedal. NOTE: The Comma Pedal is not officially supported by comma.ai.
2When disconnecting the Driver Support Unit (DSU), otherwise longitudinal control is stock ACC. For DSU locations, see Toyota Wiki page. NOTE: disconnecting the DSU disables Automatic Emergency Braking (AEB).
3GM installation guide. NOTE: disconnecting the ASCM disables Automatic Emergency Braking (AEB).
428mph for Camry 4CYL L, 4CYL LE and 4CYL SE which don't have Full-Speed Range Dynamic Radar Cruise Control.
5Requires a panda and open sourced Hyundai Giraffe, designed for the 2019 Sante Fe; pinout may differ for other Hyundais.
6Requires a panda and community built giraffe, find more information here.
7Requires a panda and FCA giraffe
8Requires a custom connector for the car harness

Community Maintained Cars

Make Model (US Market Reference) Supported Package Lateral Longitudinal No Accel Below No Steer Below
Tesla Model S 2012-139 All Yes NA NA 0mph

[Tesla Model S Pull Request]
9Requires a panda and community built giraffe, find more information here.

Community Maintained Cars are not confirmed by comma.ai to meet our safety model. Be extra cautious using them.

In Progress Cars

  • All TSS-P Toyota with Steering Assist and LSS-P Lexus with Steering Assist or Lane Keep Assist.
  • All Hyundai with SmartSense.
  • All Kia, Genesis with SCC and LKAS.
  • All Chrysler, Jeep, Fiat with Adaptive Cruise Control and LaneSense.
  • All Subaru with EyeSight.
  • All Volkswagen, Audi, Škoda and SEAT with Adaptive Cruise Control.

How can I add support for my car?

If your car has adaptive cruise control and lane keep assist, you are in luck. Using a panda and cabana, you can understand how to make your car drive by wire.

We've written guides for Brand and Model ports. These guides might help you after you have the basics figured out.

  • BMW, Audi, Volvo, and Mercedes all use FlexRay and can be supported after FlexRay support is merged.
  • We put time into a Ford port, but the steering has a 10 second cutout limitation that makes it unusable.
  • The 2016-2017 Honda Accord uses a custom signaling protocol for steering that's unlikely to ever be upstreamed.

Directory structure

.
├── apk                 # The apk files used for the UI
├── cereal              # The messaging spec used for all logs on EON
├── common              # Library like functionality we've developed here
├── installer/updater   # Manages auto-updates of openpilot
├── opendbc             # Files showing how to interpret data from cars
├── panda               # Code used to communicate on CAN and LIN
├── phonelibs           # Libraries used on EON
├── pyextra             # Libraries used on EON
└── selfdrive           # Code needed to drive the car
    ├── assets          # Fonts and images for UI
    ├── athena          # Allows communication with the app
    ├── boardd          # Daemon to talk to the board
    ├── can             # Helpers for parsing CAN messages
    ├── car             # Car specific code to read states and control actuators
    ├── common          # Shared C/C++ code for the daemons
    ├── controls        # Perception, planning and controls
    ├── debug           # Tools to help you debug and do car ports
    ├── locationd       # Soon to be home of precise location
    ├── logcatd         # Android logcat as a service
    ├── loggerd         # Logger and uploader of car data
    ├── proclogd        # Logs information from proc
    ├── sensord         # IMU / GPS interface code
    ├── test            # Car simulator running code through virtual maneuvers
    ├── ui              # The UI
    └── visiond         # Vision pipeline

To understand how the services interact, see selfdrive/service_list.yaml

User Data / chffr Account / Crash Reporting

By default, openpilot creates an account and includes a client for chffr, our dashcam app. We use your data to train better models and improve openpilot for everyone.

It's open source software, so you are free to disable it if you wish.

It logs the road facing camera, CAN, GPS, IMU, magnetometer, thermal sensors, crashes, and operating system logs. The user facing camera is only logged if you explicitly opt-in in settings. It does not log the microphone.

By using it, 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.ai. By accepting this agreement, you grant an irrevocable, perpetual, worldwide right to comma.ai for the use of this data.

Testing on PC

Check out openpilot-tools: lots of tools you can use to replay driving data, test and develop openpilot from your pc.

Also, within openpilot there is a rudimentary infrastructure to run a basic simulation and generate a report of openpilot's behavior in different longitudinal control scenarios.

# Requires working docker
./run_docker_tests.sh

Contributing

We welcome both pull requests and issues on github. Bug fixes and new car ports encouraged.

We also have a bounty program.

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

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.