Commit Graph

122 Commits

Author SHA1 Message Date
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
VirtuallyChris
ebf0e7d062 Remove chffrplus mention from tools readme
old-commit-hash: de16043331cd5995daa60ea25b1f200c3c4b5a60
2020-07-07 13:25:54 -07:00
Adeeb Shihadeh
414a3400bd remove duplicate key
old-commit-hash: 3c48b5a3ed2e7c1f315caf4d6b868155e41c9bea
2020-06-29 15:05:47 -07:00
robbederks
4b2775add9 Dos (#1795)
old-commit-hash: df86c476c76f53d385d3c8df63d27588dde3dccd
2020-06-29 12:47:48 +02:00
Johannes Schmitz
b3f972b1b7 Clarify shortcut usage in Carla simulation mode (#1724)
The keys to control openpilot have to be pressed with focus on the
terminal running the Carla bridge.
Also improve table formatting.
old-commit-hash: 2a9b5b395c0efc583b925632d122ba5ad9aa745b
2020-06-17 17:53:17 -07:00
Willem Melching
725c5e742f Modeld: loop over platforms to find CPU/GPU (#1710)
* Modeld: loop over platforms to find gpu

* Remove prints

* PC needs CPU

* Keep default for qcom

* Update error message
old-commit-hash: 4ca8283d739ab31e2fdbd2aeb658cb4f0d2e1bcc
2020-06-15 15:58:12 -07:00
Greg Hogan
b518934573 ffmpeg hwaccel is better
old-commit-hash: 32c4367ffbd5c472ad6f6a84f89458b29b4465e1
2020-06-12 16:11:40 -07:00
Willem Melching
94893781ed Sim hw type is grey panda now
old-commit-hash: 6810333075694c9c72d3c689f05462f6e6565e88
2020-06-12 10:57:30 -07:00
George Hotz
5d069eb8c3 Fixups for Mac, and a bunch for PC (#1654)
* fix mac nui

* fix cereal

* builds on mac without warnings

* ui swap shouldn't be instant on pc

* camerad builds on mac

* modeld, and now everything, builds on mac

* ui draws pictures on mac now

* fix camerad shutdown

* support ui looping on pc

* python3 on that

* SCNu64 should be cross platform

* bump cereal and new apk

* clean up

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 344a9a369983f58fe1e71f84478ded5c766e0d1b
2020-06-11 18:21:59 -07:00
Adeeb Shihadeh
d7d8f3091b clean up webcam readme
old-commit-hash: c6bd1874503b26e8443ecb28afd6819b44684e78
2020-06-06 21:21:25 -07:00
Willem Melching
b831619ec6 use pipenv for dev dependencies
old-commit-hash: 72cc0fc801fc4df60cc23e6818580a91e76f4f18
2020-06-05 14:03:54 -07:00
Adeeb Shihadeh
f69483e094 quick LGTM fixes
old-commit-hash: 3463f1165e5546f8c8054e8dcedc830607ad643b
2020-06-05 11:29:09 -07:00
Willem Melching
ce6dd8d4e9 Model + camerad test (#1622)
* kind of works

* move that

* hack to get camerad to reliably terminate

* not sure why SIGTERM wasn't working before

* compare bytes

* clean up some hacks

* gitignore

* fix that

* WIP

* no reboot

* comparison works

* pretty print

* fix build

* run in jenkins

* python path

* space

* raise timeout

* new eon

* skip the copy

* spinner

* spin less

* update model ref commit

* reenable that

* clean up

* fix jenkinsfile

* parallel

* wrap it in a stage

* fix linter

* better progress

* lower timeout

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 63c8e8439b6d19020055f922340d8e33d906363a
2020-06-04 18:57:25 -07:00
Adeeb
9027018368 Update Flake8 config (#1624)
* update flake8 checks

* add E502

* no whitespace warnings

* fix violations

* no W391

Co-authored-by: Jason Young <jason@comma.ai>
old-commit-hash: 367155168a0c9fb698c8248a5c28c66c2987ae65
2020-06-03 16:13:34 -07:00
Adeeb
d035394ce7 Add pre-commit hooks (#1629)
old-commit-hash: ab83e48ec4f7c7ddaa742d9797b0d38646fdb268
2020-06-03 12:54:49 -07:00
George Hotz
710710364d fetch image from route script
old-commit-hash: d1d2984f366e6b541b80c5364cd1f17f817ecb02
2020-06-03 11:32:51 -07:00
Willem Melching
a56e2b01f8 Make pylint more strict (#1626)
* make pylint more strict

* cleanup in progress

* done cleaning up

* no opendbc
old-commit-hash: 843a64c72fb94397a1edf814fa66044c8d92acbf
2020-06-02 16:29:32 -07:00
VirtuallyChris
ed4709c1d2 Add Putty key
old-commit-hash: 68040408da9809a480f224bbe4d09e8c3be40608
2020-06-01 18:35:28 -07:00
Adeeb Shihadeh
37a67a2a14 enable flake8 E502: backslash is redundant between brackets
old-commit-hash: 6466ec982aa47bcbbc7c6a3a7cf60cec0163be84
2020-05-31 17:41:18 -07:00
Adeeb Shihadeh
8b3418b0f9 enable flake8 E251: unexpected spaces around keyword / parameter equals
old-commit-hash: ebed2d1dcc53f092696b61fd1e004045c9bde893
2020-05-31 17:34:47 -07:00
Adeeb Shihadeh
9823f1164c enable flake8 E303: too many blank lines
old-commit-hash: f3dcf861c73b47c52b5dd77a8f1f8858005ae18b
2020-05-31 17:21:11 -07:00
Adeeb Shihadeh
68a3061c9d enable E261 in flake8: two spaces before inline comment
old-commit-hash: 27754a277c36b82ef4040e536cc918ba8ad77bec
2020-05-31 14:07:29 -07:00
Adeeb Shihadeh
be0b43f339 enable flake8 E231: missing whitespace after comma
old-commit-hash: efd5dffb1e727c70065fdbe7499ec9e009dfd282
2020-05-31 12:49:11 -07:00
Adeeb
7965569766 Flake8 E22X (#1607)
* e221

* e225

* bump opendbc
old-commit-hash: 6051061ff8e7809960cc1f2bad9a582801d5a83e
2020-05-31 00:48:47 -07:00
Adeeb
5e857427ba Enable more flake8 checks (#1602)
* enable some more flake8 checks

* some more quick ones

* bump opendbc

* e401

* e711 e712

* e115 e116

* e222

* e301

* remove that

* e129

* e701 e702

* e125 e131

* e227

* e306

* e262

* W503

* e713

* e704

* e731

* bump opendbc

* fix some e722
old-commit-hash: d9bf9f0a4036f55411f6dfbb438990a5eb7f4930
2020-05-30 20:14:58 -07:00
Greg Hogan
10becfa268 FrameReader env vars FFMPEG_THREADS and FFMPEG_CUDA
old-commit-hash: d112a58366d9d9a8830fa344efe6c50bf587cd00
2020-05-28 17:33:34 -07:00
Willem Melching
2ac27def5a Running pre-commit in CI (#1590)
* Running pre-commit in CI

* fix dockerfile syntax

* dont run on submodule repo folders

* Fix some import errors in ci

* more stuff

* That should be the last one
old-commit-hash: ba2ac1207a554d277e01af5b9514de4500d4f66a
2020-05-28 15:40:48 -07:00
Willem Melching
2b60ee9531 Run mypy commit hook (#1591)
* run mypy commit hook

* fix mypy errors
old-commit-hash: 3d08dcc3b27936cb14c0eae63605be9a6c077380
2020-05-28 15:05:04 -07:00
Greg Hogan
5db5ecd0b9 framereader single threaded env var
old-commit-hash: 2d0686faa1876d65642f6c982a4352630a842676
2020-05-28 13:39:28 -07:00
Willem Melching
57cc3cd69a framereader only has to support h265 and raw (#1588)
old-commit-hash: 639cf2288f3527230d103ba9e12652f52d38ad39
2020-05-28 12:45:38 -07:00
Willem Melching
12a306021d flake8 in pre-commit(#1583)
old-commit-hash: 29aaa44740b5dae3c1cc0c273c72c7eb53135e5e
2020-05-27 20:33:05 -07:00
Willem Melching
c0866d9edb pre-commit pylint (#1580)
* "The commit-hook project sounds interesting though. I would definitely merge something that runs flake8 and pylint on the modified files!"
-  pd0wm, https://github.com/commaai/openpilot/pull/1575#issuecomment-634974344

* add pylint to pre-commit and make everything pass

* Remove uncommented stuff

Co-authored-by: J <user@4800.lan>
old-commit-hash: bd0643424357864287ae0485da03f66df85e1fb1
2020-05-27 20:00:14 -07:00
xx979xx
d7e94a1704 add pygmae dependencies (#1573)
https://www.pygame.org/wiki/CompileUbuntu#Python%203.x%20into%20virtual%20environment
old-commit-hash: 6596dd62ae0a4111066537cb93bce520b05441b3
2020-05-27 12:24:04 -07:00
xx979xx
a3aeab5018 update OpenCL Driver 16.1 > 18.1 (#1524)
old-commit-hash: 2d89f3c6d995e958bd521e185b4603e7977d3dfa
2020-05-21 12:03:30 -07:00
Ewout ter Hoeven
d302078e30 Pip: Move from tensorflow-gpu to tensorflow package (#1530)
* Pip: Move from tensorflow-gpu to tensorflow package

Since tensorflow 2.1 the regular tensorflow package contains GPU support and replaces the tensorflow-gpu package, which will be depreceated at some point.

* Readme: Update Tensorflow version

* Update Pipfile.lock

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 3f8afe593f14a4a6f94ddb9c2f1aed1419d2f69a
2020-05-20 13:17:54 -07:00
Adeeb Shihadeh
afbfee85a3 capnp is no longer in external
old-commit-hash: a415fe1ebec7bf54cf2cdea31b75dd90b0c8809b
2020-05-17 13:32:26 -07:00
Noel Schenk
0f610ac909 tensorflow-gpu==2.1 update (#1525)
not available on current used python version
old-commit-hash: ce8b629fb0fc989d99fa38f49eb96e552dc6e728
2020-05-16 21:59:28 -07:00
Willem Melching
3339270bf3 not needed
old-commit-hash: 43f7fe178dbf3a61422e48ab921fe39128395f43
2020-05-14 17:59:26 -07:00
Willem Melching
9cc9be5bb3 use system capnp
old-commit-hash: 43873c9600527b55bc151f87e15a9300ed0833b7
2020-05-14 17:58:43 -07:00
Adeeb Shihadeh
05a09435b0 add tenacity to tools requirements
old-commit-hash: 44560b5bb74e451767725144c3fa5f1564481a20
2020-05-14 15:19:52 -07:00
Adeeb Shihadeh
097bafdc54 add pycurl to tools requirements
old-commit-hash: f15f24b529a402ec3d0867560b9812e4767661d4
2020-05-14 12:43:41 -07:00
Willem Melching
8505259e41 Library cleanup (#1491)
* library cleanup

* remove fastcv

* Fix build step

* bump cereal

* bump cereal

* Install capnp

* bump

* no docker cache

* Update installation instructions

* Needs sudo

* Can we sudo?

* Cache was not the problem

* remove static libraries from boardd install script

* Update setup script

* Remove import

* No capnp install in lgtm

* Fix dockerfile
old-commit-hash: 72db8d890d04e6eb3ce652be3da9bdf23ebda510
2020-05-12 18:50:07 -07:00