-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 21fdfd8
Showing
1,704 changed files
with
722,139 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
venv/ | ||
.env | ||
.clang-format | ||
.DS_Store | ||
.tags | ||
.ipynb_checkpoints | ||
.idea | ||
.overlay_init | ||
.overlay_consistent | ||
.sconsign.dblite | ||
.vscode* | ||
model2.png | ||
a.out | ||
.hypothesis | ||
|
||
*.dylib | ||
*.DSYM | ||
*.d | ||
*.pyc | ||
*.pyo | ||
.*.swp | ||
.*.swo | ||
.*.un~ | ||
*.tmp | ||
*.o | ||
*.o-* | ||
*.os | ||
*.os-* | ||
*.so | ||
*.a | ||
*.clb | ||
*.class | ||
*.pyxbldc | ||
*.vcd | ||
config.json | ||
clcache | ||
compile_commands.json | ||
|
||
persist | ||
board/obj/ | ||
selfdrive/boardd/boardd | ||
selfdrive/logcatd/logcatd | ||
selfdrive/mapd/default_speeds_by_region.json | ||
selfdrive/proclogd/proclogd | ||
selfdrive/ui/_ui | ||
selfdrive/ui/qt/flasher | ||
selfdrive/car/modules/teslaEpasFlasher/flasher | ||
selfdrive/car/modules/radarFlasher/flasher | ||
selfdrive/panda/board/flasher | ||
selfdrive/panda/board/pedal/flasher | ||
selfdrive/test/longitudinal_maneuvers/out | ||
selfdrive/visiond/visiond | ||
selfdrive/loggerd/loggerd | ||
selfdrive/loggerd/bootlog | ||
selfdrive/sensord/_gpsd | ||
selfdrive/sensord/_sensord | ||
selfdrive/camerad/camerad | ||
selfdrive/camerad/test/ae_gray_test | ||
selfdrive/modeld/_modeld | ||
selfdrive/modeld/_dmonitoringmodeld | ||
/src/ | ||
|
||
one | ||
openpilot | ||
notebooks | ||
xx | ||
yy | ||
hyperthneed | ||
panda_jungle | ||
provisioning | ||
|
||
.coverage* | ||
coverage.xml | ||
htmlcov | ||
pandaextra | ||
|
||
.mypy_cache/ | ||
flycheck_* | ||
|
||
cppcheck_report.txt | ||
comma*.sh | ||
|
||
selfdrive/modeld/thneed/compile | ||
models/*.thneed | ||
|
||
*.bz2 | ||
|
||
build/ | ||
|
||
!**/.gitkeep |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Copyright (c) 2018, Comma.ai, Inc. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
![](https://i.imgur.com/b0ZyIx5.jpg) | ||
|
||
Table of Contents | ||
======================= | ||
|
||
* [What is openpilot?](#what-is-openpilot) | ||
* [Running in a car](#running-in-a-car) | ||
* [Running on PC](#running-on-pc) | ||
* [Community and Contributing](#community-and-contributing) | ||
* [User Data and comma Account](#user-data-and-comma-account) | ||
* [Safety and Testing](#safety-and-testing) | ||
* [Directory Structure](#directory-structure) | ||
* [Licensing](#licensing) | ||
|
||
--- | ||
|
||
What is openpilot? | ||
------ | ||
|
||
[openpilot](http://github.com/commaai/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](docs/CARS.md). In addition, while openpilot is engaged, a camera based Driver Monitoring (DM) feature alerts distracted and asleep drivers. See more about [the vehicle integration](docs/INTEGRATION.md) and [limitations](docs/LIMITATIONS.md). | ||
|
||
<table> | ||
<tr> | ||
<td><a href="https://youtu.be/NmBfgOanCyk" title="Video By Greer Viau"><img src="https://i.imgur.com/1w8c6d2.jpg"></a></td> | ||
<td><a href="https://youtu.be/VHKyqZ7t8Gw" title="Video By Logan LeGrand"><img src="https://i.imgur.com/LnBucik.jpg"></a></td> | ||
<td><a href="https://youtu.be/VxiR4iyBruo" title="Video By Charlie Kim"><img src="https://i.imgur.com/4Qoy48c.jpg"></a></td> | ||
<td><a href="https://youtu.be/-IkImTe1NYE" title="Video By Aragon"><img src="https://i.imgur.com/04VNzPf.jpg"></a></td> | ||
</tr> | ||
<tr> | ||
<td><a href="https://youtu.be/iIUICQkdwFQ" title="Video By Logan LeGrand"><img src="https://i.imgur.com/b1LHQTy.jpg"></a></td> | ||
<td><a href="https://youtu.be/XOsa0FsVIsg" title="Video By PinoyDrives"><img src="https://i.imgur.com/6FG0Bd8.jpg"></a></td> | ||
<td><a href="https://youtu.be/bCwcJ98R_Xw" title="Video By JS"><img src="https://i.imgur.com/zO18CbW.jpg"></a></td> | ||
<td><a href="https://youtu.be/BQ0tF3MTyyc" title="Video By Tsai-Fi"><img src="https://i.imgur.com/eZzelq3.jpg"></a></td> | ||
</tr> | ||
</table> | ||
|
||
|
||
Running in a car | ||
------ | ||
|
||
To use openpilot in a car, you need four things | ||
* This software. It's free and available right here. | ||
* One of [the 150+ supported cars](docs/CARS.md). 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 supported device to run this software. This can be a [comma two](https://comma.ai/shop/products/two), [comma three](https://comma.ai/shop/products/three), or if you like to experiment, a [Ubuntu computer with webcams](https://github.com/commaai/openpilot/tree/master/tools/webcam). | ||
* A way to connect to your car. With a comma two or three, you need only a [car harness](https://comma.ai/shop/products/car-harness). With an EON Gold or PC, you also need a [black panda](https://comma.ai/shop/products/panda). | ||
|
||
We have detailed instructions for [how to install the device in a car](https://comma.ai/setup). | ||
|
||
Running on PC | ||
------ | ||
|
||
All of openpilot's services can run as normal on a PC, even without special hardware or a car. To develop or experiment with openpilot you can run openpilot on recorded or simulated data. | ||
|
||
With openpilot's tools you can plot logs, replay drives and watch the full-res camera streams. See [the tools README](tools/README.md) for more information. | ||
|
||
You can also run openpilot in simulation [with the CARLA simulator](tools/sim/README.md). 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. | ||
|
||
|
||
Community and Contributing | ||
------ | ||
|
||
openpilot is developed by [comma](https://comma.ai/) and by users like you. We welcome both pull requests and issues on [GitHub](http://github.com/commaai/openpilot). Bug fixes and new car ports are encouraged. Check out [the contributing docs](docs/CONTRIBUTING.md). | ||
|
||
Documentation related to openpilot development can be found on [docs.comma.ai](https://docs.comma.ai). Information about running openpilot (e.g. FAQ, fingerprinting, troubleshooting, custom forks, community hardware) should go on the [wiki](https://github.com/commaai/openpilot/wiki). | ||
|
||
You can add support for your car by following guides we have written for [Brand](https://blog.comma.ai/how-to-write-a-car-port-for-openpilot/) and [Model](https://blog.comma.ai/openpilot-port-guide-for-toyota-models/) ports. Generally, a car with adaptive cruise control and lane keep assist is a good candidate. [Join our Discord](https://discord.comma.ai) to discuss car ports: most car makes have a dedicated channel. | ||
|
||
Want to get paid to work on openpilot? [comma is hiring](https://comma.ai/jobs/). | ||
|
||
And [follow us on Twitter](https://twitter.com/comma_ai). | ||
|
||
User Data and comma Account | ||
------ | ||
|
||
By default, openpilot uploads the driving data to our servers. You can also access your data through [comma connect](https://connect.comma.ai/). 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](https://comma.ai/privacy). 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](docs/SAFETY.md) for more details. | ||
* openpilot has software in the loop [tests](.github/workflows/selfdrive_tests.yaml) that run on every commit. | ||
* The code enforcing the safety model lives in panda and is written in C, see [code rigor](https://github.com/commaai/panda#code-rigor) for more details. | ||
* panda has software in the loop [safety tests](https://github.com/commaai/panda/tree/master/tests/safety). | ||
* 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](https://github.com/commaai/panda/blob/master/Jenkinsfile). | ||
* 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 | ||
└── 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 | ||
├── camerad # Driver to capture images from the camera sensors | ||
├── car # Car specific code to read states and control actuators | ||
├── common # Shared C/C++ code for the daemons | ||
├── controls # Planning and controls | ||
├── debug # Tools to help you debug and do car ports | ||
├── locationd # Precise localization and vehicle parameter estimation | ||
├── logcatd # Android logcat as a service | ||
├── loggerd # Logger and uploader of car data | ||
├── modeld # Driving and monitoring model runners | ||
├── proclogd # Logs information from proc | ||
├── 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.** | ||
|
||
--- | ||
|
||
<img src="https://d1qb2nb5cznatu.cloudfront.net/startups/i/1061157-bc7e9bf3b246ece7322e6ffe653f6af8-medium_jpg.jpg?buster=1458363130" width="75"></img> <img src="https://cdn-images-1.medium.com/max/1600/1*C87EjxGeMPrkTuVRVWVg4w.png" width="225"></img> | ||
|
||
[![openpilot tests](https://github.com/commaai/openpilot/workflows/openpilot%20tests/badge.svg?event=push)](https://github.com/commaai/openpilot/actions) | ||
[![Total alerts](https://img.shields.io/lgtm/alerts/g/commaai/openpilot.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/commaai/openpilot/alerts/) | ||
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/commaai/openpilot.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/commaai/openpilot/context:python) | ||
[![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/commaai/openpilot.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/commaai/openpilot/context:cpp) | ||
[![codecov](https://codecov.io/gh/commaai/openpilot/branch/master/graph/badge.svg)](https://codecov.io/gh/commaai/openpilot) |
Oops, something went wrong.