Commit Graph

163 Commits

Author SHA1 Message Date
doktorsleepelss
444080d1b6 Upgrade pip in ubuntu setup (#2573)
old-commit-hash: e1bda99acbf7f471ec94d76fb6b12f9d488e99bf
2020-11-19 14:54:26 -08:00
Willem Melching
73cda87984 replay assume segment number
old-commit-hash: 5ebc0dd85b49e33b261a533352c2c1dc2fb11951
2020-11-19 12:56:26 +01:00
Adeeb Shihadeh
d4bf764d99 update simulator to ubuntu 20.04 (#2463)
* fix sim build in 20.04

* run ci

* fix docker build

* restore ci cofnig

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: cc1bca542d8a12acc381fc3d284d37b57b12c6ee
2020-11-18 13:10:37 -08:00
Ryan Branch
5cc1ee584a Update Simulator-Related READMEs with links to /wiki/CARLA (#2557)
old-commit-hash: d53325109325399a5794a4916a1ec935a85d3b68
2020-11-15 12:13:12 -08:00
Logan Lasiter
9f2d368340 update panda in sim (#2528)
old-commit-hash: ed34ffb1ba2091a2d8428d196b3c030f1ce8c349
2020-11-11 20:49:54 -08:00
grekiki
0b902a02c1 Scons builder for cython extensions (#2485)
* complie boardd without python

* not good, but don't want to lose the file, because it works

* clean a bit

* update dbc

* should build on CI

* not good, but don't want to lose the file, because it works

* clean a bit

* should build on CI

* remove unneeded path

* reorder paths

* reduce diff

* and now it works?!

* ... should work in CI

* add kj, 30% chance to fix macos

* pydebug

* new way to find path

* fix :)

* tested

* sanity check

* repl. MacOS flags

* hope it works

* need more logs

* need more logs2

* test if it works

* should work on CI

* correct python file

* should not work

* cleanup

* real cleanup

* more removals

* 50% of file

* transformations

* fixed a hardcoded variable

* more logs

* simpl.

* kalman

* all donw if it passes tests

* cleanup

* reduce code by 20 lines if this works

* fix bugs

* cleanup

* SharedLibrary

* cleanup

* ...

* remove unused

* CI fix maybe?

* add more valid path

* more logs

* ...:

* fix webcam CI

* remove WError flag

* deprecated is not an error

* more Wno things

* reduce diff, add Wno to env

* don't import nonexistent stuff

* SharedLibrary v2

* less custom env

* renaming, remove SharedLibs

* pack libs in envCython

* experiment

* better docker caching

* whitespace

* more docker caching

* improvement

* improvements

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 9529764549b8c59f7cf141ff3d2d9613ab53beab
2020-11-11 21:14:51 +01:00
Willem Melching
7d7053a54e ui.py: fix transform
old-commit-hash: ebb20dacb5761269a4c186d82d907b0ed16738eb
2020-11-09 05:35:02 -08:00
Adeeb Shihadeh
0f2dfbfc52 trim trailing whitespace
old-commit-hash: 818bd8a591193b891cee44726203de327c5dd7fb
2020-11-05 14:11:41 -08:00
ZwX1616
4dc3fb994e generalize camera assumptions (#2423)
* clean up 1

* complain

* cleanup

* make models api generic

* clean up 2

* cleanup

* remove unused
old-commit-hash: c0946c8bdbaac0029c67e0b2ba4e591f591790eb
2020-11-05 13:22:28 -08:00
Adeeb Shihadeh
f25cec394e grey panda is unsupported (#2458)
old-commit-hash: 47c21f10f598639307994392e96f4d9293b295c7
2020-11-03 19:56:25 -08:00
Adeeb Shihadeh
2e5247056a ubuntu 16.04 -> 20.04 (#2378)
old-commit-hash: 719c5e3598846a6f3fa08c85bb811d197e0c6d0a
2020-10-29 16:51:09 -07:00
Adeeb Shihadeh
ffd5ea18bc Fix mac CI (#2439)
old-commit-hash: 30c50e64fd0330136563657245ef00937e7dd81f
2020-10-28 14:12:56 -07:00
Adeeb Shihadeh
8f9f31778d get rid of rest of czmq
old-commit-hash: f571b7c751847fbf6f28006fc4c4d57e640636d5
2020-10-27 19:07:56 -07:00
Adeeb Shihadeh
df208e441a bump c++ version for index_log
old-commit-hash: 9a605d2617bd701ce013eedbe0a47782c865fb09
2020-10-23 22:12:30 -07:00
Adeeb Shihadeh
fb935fa5f7 Build openpilot with webcam support in CI (#2070)
old-commit-hash: f4e18e0b7408bc73ffa9320c8ce2689b74993430
2020-10-16 15:16:17 -07:00
Willem Melching
ee0db09976 More macOS CI fixes (#2352)
* Revert "Fix macOS CI (#2345)"

This reverts commit aab966d935e2033254abd64a1fae97145dcc3a6a.

* ignore update output
old-commit-hash: e23bb6113b7abe9ecb092ced1f36ea3f9bfd3611
2020-10-16 20:12:44 +02:00
Willem Melching
e952dd722d Fix macOS CI (#2345)
old-commit-hash: 72a996a8857f98f3cc30c6fe4cef37596e6c6fdf
2020-10-15 14:16:41 +02:00
Willem Melching
dcb8480135 script to add ssh keys
old-commit-hash: 5d0a623b287ed82c3af1975a64ac4c19748c6ef4
2020-10-15 13:35:05 +02:00
Willem Melching
789d5176cb Params path only in one place (#2344)
* fix params paths

* Qcom & qcom2

* This env variable is not used anywhere

* params path in only one place

* fix other PARAMS_PATH references

* absolute path is probably better
old-commit-hash: 3dd944898183be0ecf985f389d462e53c3feb8e5
2020-10-15 13:15:22 +02:00
Willem Melching
05a758d70e build sim container with available cores
old-commit-hash: e2fa4cc212700bf53d1c79813e2351792e1effb0
2020-10-12 15:13:13 +02:00
Willem Melching
af97e71063 Try only extracting python folder (#2321)
old-commit-hash: f258366e0c276bec0818286f5aeca1397eb51621
2020-10-12 13:37:01 +02:00
Willem Melching
1a2893345a add check for partial response code (#2282)
old-commit-hash: 529e9a23ea74b4abd55f95fb5588732585624d1f
2020-10-07 12:14:22 +02:00
Greg Hogan
3ea69f614e eliminate round-trip reading entire file (#2275)
* eliminate round-trip reading entire file

* only if reading entire file

* print headers in errors

* fix end
old-commit-hash: 2293a6a36c4283626d3079294fed1905e0672a76
2020-10-05 16:59:19 -07:00
Tom Dörr
370ba02e6c Add Flags to Control Simulator (#2246)
* Add flags

* Update readme
old-commit-hash: c13c6ef76b1b3bc9249ba08818f6afef0ee37076
2020-09-29 14:00:03 -07:00
Tom Dörr
260ff8cd46 Name openpilot docker container (#2239)
old-commit-hash: 459aa1123d0bd7d6715951c4f8007c34ae83ac1a
2020-09-28 14:44:03 -07:00
Tom Dörr
0768cf8be5 Enable Ctrl-C for Carla Server (#2240)
old-commit-hash: e6eedbe70453c72c695663411b41aca437493202
2020-09-28 13:41:37 -07:00
Willem Melching
d849706bc9 remove parallel url downloader
old-commit-hash: 927ef086f785409931e4d9c5d1274e9ab5d1568a
2020-09-21 10:32:08 +02:00
grekiki
398796a010 FileReader: cache files locally (#2170)
* framework for updates

* File caching

* update .gitignore

* update .gitignore

* Store in home tmp directory

* fix bugs in old code, add tests

* add test

* revert bug

* Fixed some bugs, more testing

* doing some style fixes

* Update caching with lenghts

* doing some style fixes

* doing some style fixes

* doing some style fixes

* subrepositories

* try to fix the tests

* change submodules back

* doing some style fixes

* if we don't cache, we don't cache length either

* fix curls

* make sure tests run in ci

* Cleanup tests

* Use int for cache flag

* fix linter

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 05b64257dfac3e240135e9f40eb5ebaa8f97fdcb
2020-09-17 13:03:34 +02:00
Greg Hogan
f1835a740a more pipenv version updates
old-commit-hash: be2b093d6ea74a9d6b6eb5a4b7858b0889bb29c9
2020-09-15 18:25:16 -07:00
Adeeb Shihadeh
556c862586 fix simulator CI (#2159)
* pull image for cache

* typo

* cleanup dockerfile

* typo

* add pr trigger

* colon?
old-commit-hash: 4cbf965165bab44dcf819aaafbd2d99c89994c97
2020-09-12 14:31:20 -07:00
grekiki
41142635d2 Update README.md
old-commit-hash: 596ab39e0336249c7f75641a530b02c6a65c3e0c
2020-09-11 17:42:31 +02:00
grekiki
dd8fe84a95 Update README.md
old-commit-hash: 5fad5779c92f3a3730cc122f8d596159dd07a273
2020-09-11 17:42:12 +02:00
Vivek Aithal
db0a4ef2dc dockerize carla + openpilot (#2011)
* dockerize carla + openpilot

* separate dockerfile

* bring back CI dockerfile

* cleanup bridge

* add op docker build and start script

* build container in CI

* fix camerad hack

* remove most magic numbers from bridge.py

* openpilot-sim docker build and run scripts

* fix dmonitoring hacks

* revert controlsd hacks

* clean up build scripts

* singular

* fix path

* fix image name

* modify sim readme

* sim readme and start script changes

* dockerfile with working opengl

* working opengl + passing panda build_st in docker

* fix bug in sim docker file

* bugfix sim docker file

* bugfix all op-sim docker issues

* modify readme + run script

* IT DRIVES

* clean this up

* more cleanup

* cleanup docker stuff

* more cleanup

* start with openpilot-base

* install carla python package

* Script is not in lib

* chmod

* everything should be running in docker now, the code may not be nice though

* works locally...

* rhdChecked is deprecated

* Checkout using git lfs when building sim container

* try to pass the tests

* pull latest docker

* gps should not throw an error on openpilot launch in bridge.py

* fixed a coding style error

* Only start ubloxd in car

* fixed more style problems

* revert typo

* Use enviromental variable to prevent errors in a simulator

* Remove unused import

* Attempt to fix missing enviromental variable

* fix typo

* less work for users, auto tmux engagement

* less work for users, auto tmux engagement

* fix check for nvidia

* clean up nvidia check

* remove typo, shorted dockerfile

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Bruce Wayne <batman@workstation-eu-gregor.eu.local>
Co-authored-by: Gregor Kikelj <gregor1234567890@gmail.com>
old-commit-hash: c5dfbe7a72c6f31a0aa3a32b6df3f81409b40faf
2020-09-10 12:14:49 +02:00
Adeeb Shihadeh
0ae5e7403e QT UI: sounds (#2078)
* move android into own dir

* fix name

* maybe this works? qt ui doesn't work on mac

* fix that

* pc sound works

* fix pc build

* lowercase

* that needs to be real_arch

* split into classes

* fix typo in lib

* Fix cycle alerts

* Add qt multimedia libs to install scripts

* Add ui/android folder

* Fix android build

* Raise exception if sound init fails

* add missing return

Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: acd1bde496904fbc0d97f4d89e630358c4d11f7f
2020-09-09 19:04:28 +02:00
Willem Melching
b0a5928933 UI: support multiple frame sizes (#2099)
* support multiple frame sizes

* Fix lookup

* Fix focal

* linter
old-commit-hash: 6b0ac6c8b78d53832776dada64e0c3fb273ec017
2020-09-07 12:25:29 +02:00
Greg Hogan
d200f048b7 fix pylint errors
old-commit-hash: 1e6c7c94e4750547297dc011d36eeedad0ad7e37
2020-09-03 18:46:13 -07:00
Greg Hogan
ece081d471 build script that uses docker container (#1944)
old-commit-hash: e4720eb798fcd1ce960010ef86c95cde345cd58e
2020-08-30 17:02:36 -07:00
Willem Melching
55c441b6dd Systemd logcatd (#2085)
* Systemd logcatd infrastructure

* This should work

* Cleanup

* Split

* More compact and cleanup

* Add to ubuntu setup package list

* Run logcatd on all non pc platforms
old-commit-hash: 5782efe3ae7882a6a8eee0086b9c612c1d276814
2020-08-26 17:09:23 +02:00
Willem Melching
16fe1bb2ad Hardware abstraction class (#2080)
* hardware abstraction class

* De Morgan

* Rename pc hardware class

* Fix sound card in controlsd

* Pc get sim info

* fix hardware in test

* two more

* No more random imei on android

* no randomness on android

* Need to return something that looks like imei for registration to work

* Return proper network strength

* Unused import

* Bug fixes + gpsd is only android
old-commit-hash: c7152d54192605c833912b69cf85514ac2e1b1fc
2020-08-26 14:57:17 +02:00
Adeeb Shihadeh
8f2111b889 type hints for messaging (#2061)
* bump cereal

* fix bugs found by mypy

* bump cereal
old-commit-hash: 520c2676b682903d2be8f661ce98ac85fa50c439
2020-08-23 00:33:19 -07:00
Willem Melching
473fb11d34 Qt ui for PC (#2023)
* qt ui boilerplate

* this kinda works

* cleanup

* render inside other widget

* cleanup

* more cleanup

* Not needed

* Handle click

* Draw at 20Hz

* create paint.hpp

* move stuff around

* update sidebar

* Draw vision

* this works again

* add clickable settings button

* Only collapse sidebar when started

* always use qt on linux

* fix width

* scrollable area

* talk to NetworkManager

* code to add a connection

* params toggles

* small cleanup

* add qt5 to dockerfile

* Qt on mac

* Add qt to release files

* fix macos build

* nore more ifdefs needed

* add icons

* make a bit nicer

* Hide scrollbar

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e115c514521c7705112bd0cb2e4bf865b536501a
2020-08-20 17:16:44 +02:00
Michael Honan
df26e99856 Setup script improvements to MacOS / Ubuntu (#2012)
* Setup script improvements to MacOS / Ubuntu

scons isn't actually required from brew install

pyenv init on all envs

added installation to .zshrc on macos with better dir logic

Using git to detect project root for ubuntu bashrc install

Check shell and determine correct RC file

Update tools/mac_setup.sh

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

Sourcing RC file only if it's found

Removed unnecessary source of rc file

Submodules should never have been bumped...

Output the $RC_FILE when successfully installed

pyenv init every time, and skip RC install on CI

Confused bash conditionals, opposite of what I meant

* Was missing libusb on a fresh MacOS 10.15.6 install

Co-authored-by: Michael Honan <michaelhonan@Michaels-MacBook-Pro.local>
old-commit-hash: 4a9228fcc776d898287ebc015cab0a11fd3cdc64
2020-08-14 18:03:55 -07:00
Adeeb Shihadeh
355e4a40a6 Build openpilot on mac in CI (#1792)
* build on mac in CI

* coreutils

* python stuff

* pipenv

* newer clang

* init pyenv

* verbose

* init pyenv

* install eigen

* ffmpeg

* sdl

* libav

* libtool

* glfw

* add pipfile as cache key

* test cache

* fix cache path

* brew link

* update tools readme

* don't cache on pipfile

* skip python install if installed

* unlink

* simpler cachingm

* here's your key

* cache pip too

* cache pyenv
old-commit-hash: c450110f961173302bec7873b81939f01d5ad1ac
2020-08-10 00:44:24 -07:00
Adeeb Shihadeh
214c6f7e99 Scripts for containerized CARLA (#1987)
* run carla in container

* launch script

* fix launch script

* update carla
old-commit-hash: 6d645b4ce9445e7aa9ef95b3c453eb811e7ca015
2020-08-06 13:26:25 -07:00
Adeeb Shihadeh
a93f0b069a fix counter mismatch in sim
old-commit-hash: 20162f7a4a1d1054e816a67735b3a2cebf5498b9
2020-08-06 13:23:20 -07:00
Adeeb Shihadeh
224b7fd34b Remove get_one_can from messaging (#1946)
* move get_one_can into openpilot

* bump cereal
old-commit-hash: 714f8c3f0bf8fa98a4619763d46ecb3ea29bc9f6
2020-07-28 23:52:18 -07:00
Adeeb Shihadeh
011c336047 Improve on-device CI reliability (#1922)
old-commit-hash: 90fc1c602814b87c1a09fca02e3846a332bc5e03
2020-07-25 02:12:19 -07:00
Willem Melching
9c291968f6 Speedup URLFile (#1888)
* add parallel download support to URLFile

* make python 3.8 happy

* Fix chunk size

* Automatic number of threads

* No daemon threads in unlogger

* Cache length

* dont touch old filereader

* Remove debug info

* remove debug script

* Ignore type
old-commit-hash: c70700758d9e3227a157d2e9fdcb9d3204b433c2
2020-07-20 17:10:08 +02:00
Adeeb Shihadeh
370a68623e minor cleanups from LGTM
old-commit-hash: 35a5b057c1ab6d3f77daae6a40d14c9bff28f08b
2020-07-17 23:34:38 -07:00
Adeeb Shihadeh
44afc4ae3c Build release2 and dashcam in CI (#1834)
* start building release2 in CI

* build script

* bring over changes from test branch

* fix build release test

* remove references to test branches

* ucnomment push

* fix duplicate remove

* two commits for dashcam

* need the key
old-commit-hash: c7156616568ce2fa780db3eafc5f912ab2ead14e
2020-07-07 14:17:09 -07:00