2020-04-01 22:34:41 -07:00
openpilot tools
2020-01-17 10:07:22 -08:00
============
2021-03-22 12:58:58 +11:00
SSH
============
Connecting to your comma device using [SSH ](ssh/README.md )
2021-03-11 15:28:37 -08:00
System requirements
2020-01-17 10:07:22 -08:00
============
2021-03-11 15:28:37 -08:00
openpilot is developed and tested on **Ubuntu 20.04 ** , which is the primary development target aside from the [supported embdedded hardware ](https://github.com/commaai/openpilot#supported-hardware ). We also have a CI test to verify that openpilot builds on macOS, but the tools are untested. For the best experience, stick to Ubuntu 20.04, otherwise openpilot and the tools should work with minimal to no modifications on macOS and other Linux systems.
2020-01-17 10:07:22 -08:00
Setup
============
2021-06-16 22:23:12 -07:00
1. Clone openpilot into your home directory:
``` bash
2021-03-11 15:28:37 -08:00
cd ~
2021-06-16 22:23:12 -07:00
git clone --recurse-submodules https://github.com/commaai/openpilot.git
2020-02-24 21:24:54 -05:00
```
2021-06-16 22:23:12 -07:00
2. Run the setup script:
2020-01-17 10:07:22 -08:00
2021-03-11 15:28:37 -08:00
Ubuntu:
2021-06-16 22:23:12 -07:00
``` bash
2021-03-11 15:28:37 -08:00
openpilot/tools/ubuntu_setup.sh
2020-01-17 10:07:22 -08:00
```
2021-03-11 15:28:37 -08:00
MacOS:
2021-06-16 22:23:12 -07:00
``` bash
2021-03-11 15:28:37 -08:00
openpilot/tools/mac_setup.sh
2020-02-28 23:01:55 -05:00
```
2020-01-17 10:07:22 -08:00
2021-06-16 22:23:12 -07:00
3. Build openpilot by running SCons in the root of the openpilot directory
``` bash
2021-03-11 15:28:37 -08:00
cd openpilot && scons -j$(nproc)
```
2020-01-17 10:07:22 -08:00
2021-03-11 15:28:37 -08:00
4. Try out some tools!
2020-01-17 10:07:22 -08:00
2021-03-11 15:28:37 -08:00
Tools
============
2020-01-17 10:07:22 -08:00
2021-03-11 15:28:37 -08:00
[Plot logs ](plotjuggler )
-------------
2020-04-27 10:49:40 -07:00
2021-03-11 15:28:37 -08:00
Easily plot openpilot logs with [PlotJuggler ](https://github.com/facontidavide/PlotJuggler ), an open source tool for visualizing time series data.
2020-01-17 10:07:22 -08:00
2021-03-11 15:28:37 -08:00
[Run openpilot in a simulator ](sim )
-------------
2020-01-17 10:07:22 -08:00
2021-03-11 15:28:37 -08:00
Test openpilots performance in a simulated environment. The [CARLA simulator ](https://github.com/carla-simulator/carla ) allows you to set a variety of features like:
* Weather
* Environment physics
* Cars
* Traffic and pedestrians
2020-01-17 10:07:22 -08:00
2021-06-16 23:56:35 -07:00
[Replay a drive ](replay )
2020-01-17 10:07:22 -08:00
-------------
2021-03-11 15:28:37 -08:00
Review video and log data from routes and stream CAN messages to your device.
2020-01-17 10:07:22 -08:00
2021-06-11 14:33:17 -07:00
[Debug car controls ](joystick )
2021-03-11 15:28:37 -08:00
-------------
Use a joystick to control your car.
2020-01-17 10:07:22 -08:00
Welcomed contributions
=============
2021-06-16 22:23:12 -07:00
* Documentation: code comments, better tutorials, etc
* Support for platforms other than Ubuntu 20.04
* Performance improvements
2020-01-17 10:07:22 -08:00
* More tools: anything that you think might be helpful to others.
2021-03-11 15:28:37 -08:00
