openpilot/tools
robbederks 6a824d7651
Zookeeper support (#20000)
* zookeeper lib

* add ft4222 to dev pip packages and fix include error

* started on CI

* it's a file

* now it should be happy

* use docker for all on-device tests

* test scripts

* does this work?

* access to devices

* too broad. only usb enough?

* permissions for zookeeper usb

* as env var maybe?

* this?

* try this for now

* all devices

* move to correct location for impoerts

* right paths

* not running in the right agent?

* ofc not

* fix broken merge

* add ft4222 package again

* add timeout

* power monitor

* cleanup

Co-authored-by: Batman <batman@openpilot-ci.internal>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-04-13 15:08:00 -07:00
..
carcontrols improving tools readme (#20305) 2021-03-11 15:28:37 -08:00
clib NUI comma api intergration (#1186) 2020-03-01 22:06:33 -08:00
lib add qcamera support to Route (#20521) 2021-03-30 11:48:27 +02:00
nui tools: cleanup + setup CI (#20104) 2021-02-17 20:37:01 -08:00
plotjuggler increasing time for PlotJuggler CI 2021-03-23 21:33:31 -07:00
replay LateralPlanner should only compute curvature (#20289) 2021-03-11 21:08:51 -08:00
scripts merge tools/misc and tools/scripts 2021-03-08 20:37:21 -08:00
sim start_openpilot_docker.sh: pass in /dev/input for joystick support (#20563) 2021-04-06 09:55:18 +02:00
ssh tools/ssh cleanup 2021-04-06 15:00:11 -07:00
webcam update to python 3.8.5 (#20217) 2021-03-09 13:38:22 -08:00
zookeeper Zookeeper support (#20000) 2021-04-13 15:08:00 -07:00
README.md README.md for SSH (#20365) 2021-03-21 18:58:58 -07:00
__init__.py merge in tools 2020-01-17 10:07:22 -08:00
mac_setup.sh Add mac requirements (#20420) 2021-03-30 15:45:28 -07:00
openpilot_build.sh build script that uses docker container (#1944) 2020-08-30 17:02:36 -07:00
openpilot_env.sh Setup script improvements to MacOS / Ubuntu (#2012) 2020-08-14 18:03:55 -07:00
ubuntu_setup.sh update ubuntu setup 2021-04-03 13:42:05 -07:00

README.md

openpilot tools

SSH

Connecting to your comma device using SSH

System requirements

openpilot is developed and tested on Ubuntu 20.04, which is the primary development target aside from the supported embdedded 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.

Setup

  1. Clone openpilot into home directory:
cd ~

git clone --recurse-submodule https://github.com/commaai/openpilot.git

  1. Run setup script:

Ubuntu:

openpilot/tools/ubuntu_setup.sh

MacOS:

openpilot/tools/mac_setup.sh
  1. Compile openpilot by running SCons in openpilot directory
cd openpilot && scons -j$(nproc)
  1. Try out some tools!

Tools

Plot logs

Easily plot openpilot logs with PlotJuggler, an open source tool for visualizing time series data.

Run openpilot in a simulator

Test openpilots performance in a simulated environment. The CARLA simulator allows you to set a variety of features like:

  • Weather
  • Environment physics
  • Cars
  • Traffic and pedestrians

Replay a drive

Review video and log data from routes and stream CAN messages to your device.

Debug car controls

Use a joystick to control your car.

Welcomed contributions

  • Documentation: code comments, better tutorials, etc..
  • Support for other platforms other than Ubuntu 20.04.
  • Performance improvements: the tools have been developed on high-performance workstations (12+ logical cores with 32+ GB of RAM), so they are not optimized for running efficiently. For example, ui.py might not be able to run real-time on most PCs.
  • More tools: anything that you think might be helpful to others.

Imgur