Commit Graph

420 Commits

Author SHA1 Message Date
Adeeb Shihadeh
6f88ca1c6f MultiLogIterator: add function to reset
old-commit-hash: c95ec211e15e206bf8750bf8d9429206eefedc69
2022-03-25 19:56:22 -07:00
Adeeb Shihadeh
0c9aa1570b sim: add ignition toggling (#24043)
old-commit-hash: bb36a1c8b2136ef556613abddaca308a05d54295
2022-03-25 14:17:45 -07:00
Jack Huang
d44266bed4 CARLA: fix setting camera EOF (#24034)
* Fix Openpilot in Carla isn't accelerating

The scalars of the timestamp are different in real-world and simulation,
which will cause an infinite loop in selfdrive/modeld/modeld.cc.

* Set eof based on the frame ID

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

* remove global

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: db93275d870990979acda75d8c8f9d1d502aabfa
2022-03-25 13:45:08 -07:00
Adeeb Shihadeh
bd71c594a2 pylint: enforce indentation (W0311) (#24039)
* pylint: enforce indentation (W0311)

* few more
old-commit-hash: 8af20af66ddaa6bc06d7f72f9134aa9afeed3ed8
2022-03-24 23:23:29 -07:00
Adeeb Shihadeh
fd37ab2d97 plotjuggler: add lag debugging layout
old-commit-hash: b57c2f4a14248153e6a8bfa6044b05a8fb853a8f
2022-03-22 15:34:49 -07:00
mitchellgoffpc
b7e99b3f45 Ignore BrokenPipeError
old-commit-hash: 5c8c6faa9a6a3041bf2d85b8397656d61b1603ce
2022-03-22 12:52:25 -07:00
whokilleddb
e8d2ac0cdc Sanitize IP zookeeper/enable_and_wait.py (#24007)
* Sanitize IP zookeeper/enable_and_wait.py

* Fixed Identation

* Fixed Gaierror
old-commit-hash: 1bdf29dc5b24b982dbe0d7fdeaa9f8cb633a1cc3
2022-03-21 17:49:03 +01:00
Adeeb Shihadeh
fe6209bd8c plotjuggle: add blockedCnt to controls mismatch debug layout
old-commit-hash: 7eb9416f6b856c1379fe98e1f1a0bb12dfdc56db
2022-03-18 15:48:07 -07:00
Gijs Koning
772cbb7753 Update carla script to easier install docker and nvidia-docker (#23986)
* Easier docker and nvidia-docker install in carla script

* Small cleanup

* cleanuo

* cleanup

* More comments

* Remove adding usergroup step
old-commit-hash: 3d8537ab23197a383fd1dd7082329ddee1acfdb7
2022-03-18 14:07:39 -07:00
George Hotz
e6748f0d9d camerastream: update receive.py with some options
old-commit-hash: fa4b434e432f68dfc8944592c63f3594a9fad0b3
2022-03-14 15:02:42 -07:00
Gijs Koning
cedd8abc05 Rename RGB vision streams to match YUV streams (#23961)
* Renaming VISION_STREAM_RGB_.. to match yuv names like VISION_STREAM_ROAD
VISION_STREAM_RGB_BACK -> VISION_STREAM_RGB_ROAD
VISION_STREAM_RGB_FRONT -> VISION_STREAM_RGB_DRIVER

* little more

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 57b6fdc17a1f84ec922647c044da5df3cafc0ddc
2022-03-14 14:03:54 -07:00
Adeeb Shihadeh
ec47e0fef0 break up selfdrive.config (#23959)
* break up selfdrive.config

* add to release files

* fix import order
old-commit-hash: 5c3f3e44bc7b25c9ce502419bcd0261c12ec2b0d
2022-03-13 21:42:39 -07:00
George Hotz
f13d8a6fce add script to receive camerastream supported by camerad
old-commit-hash: 69736877d6cfe7f2a13112e08ea0dc6d0943a469
2022-03-11 20:05:59 -08:00
Adeeb Shihadeh
8a682597ca can_print_changes improvements
old-commit-hash: 1680f1e251b8feeff9f2b8a52cef1a19f6fedf48
2022-03-10 14:32:19 -08:00
Robbe Derks
6ad1d31896 Add --dbc argument to plotjuggler (#23919)
* add --dbc argument

* Update tools/plotjuggler/juggle.py

* update readme

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 9facd366fb267a7a1269c40b9d303b5e3e83fc6e
2022-03-07 16:04:02 -08:00
xx979xx
663579dd78 tools: add MultiLogIterator example to readme (#23917)
* update LogReader doc

use MultiLogIterator to read the entire route, get timestamps and deal with exceptions

* bring back the old example

* clean f-strings

* simplify

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: da5093045075ee7f8253fe071c74bc5b04117b34
2022-03-07 10:04:41 -08:00
Adeeb Shihadeh
ce42e116c9 mac setup: add catch2
old-commit-hash: c65ca6ab1d609ac291f4b57eb3414236bd648999
2022-03-05 15:29:06 -08:00
Andrew
c8ef3e4990 fix mac_setup w/ tools+plotjuggler (#23552)
* fix pycurl issue:
* use newer curl backend for pip install
* update lib paths based on brew prefix
* fix cert issue when using pycurl using certifi
* make output setup nicer

* fix linter

* typo

* dont need that actually

* revert

* pipenv in brew

* forgot this

* make brew available on fresh install

* undo

* more undo

* oops

* use sytem curl, but homebrew openssl

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: df627de7bf10e2267f7aa66ec9830d004e699b0a
2022-02-23 13:04:50 +01:00
Willem Melching
cc65efe7b0 ui.py: fix model lead plotting
old-commit-hash: efc9084409f61afb8da753353f25d336f51c2163
2022-02-21 11:56:20 +01:00
Greg Hogan
8e9f3ae789 tools: fix segment end index in juggle.py (#23715)
old-commit-hash: a195603f6d4a2502afaa12ad1243780a02711a04
2022-02-06 13:55:41 -08:00
Adeeb Shihadeh
12dcbe8617 test car models improvements (#23668)
* run on all routes

* min segment length

* invalid

* revert that
old-commit-hash: c8429f913e15934cf46564f23584cc454699ffdc
2022-01-30 11:17:51 -08:00
Adeeb Shihadeh
05ba2a5866 sim: fix bridge after default values removed from CANParser
old-commit-hash: 36a3ec04bec98f6b61ada90cdda692dc6fdc0416
2022-01-29 18:22:14 -08:00
Willem Melching
772f394423 Revert "collect C++ code coverage (#23619)"
This reverts commit a97b2e613b275f407576ddb3d7a3bd52b05f612a.

old-commit-hash: a62e9140908f40f6966d977373e9d458bd9a53d2
2022-01-26 10:59:21 +01:00
Willem Melching
6c89b62dd9 collect C++ code coverage (#23619)
* collect cpp coverage

* install llvm

* compile with coverage

* cd to root

* remove broken gcda files

* remove newline

* delete more stuff

* script to collect coverage

* Update tools/collect_coverage.sh

* actually delete
old-commit-hash: 698ab6ac97bef2a00e0a6fa8111a5a0556a064d2
2022-01-25 23:15:24 +01:00
Adeeb Shihadeh
f8d4a599db tools: auto plotjuggler install
old-commit-hash: f295d51fe9c825150e46a1ba3244372258ba2877
2022-01-24 15:32:27 -08:00
Greg Hogan
20670f0740 filereader better name for cd:/ replacement
old-commit-hash: a6b46c311e41875612e6d28f6978f4e1d1e20e46
2022-01-13 18:21:19 -08:00
Greg Hogan
c0e265b859 fix filereader cd:/ replacement
old-commit-hash: df35ebdcebc8704f964d3301004fcaf88e70336f
2022-01-13 16:09:56 -08:00
Greg Hogan
0b659ce9b6 eliminate xx filereader (#23514)
* eliminate xx filereader

* framereader cleanup
old-commit-hash: d5f4fdb1dbda7cfabdcc9d2c9342636e56388716
2022-01-13 15:56:54 -08:00
Adeeb Shihadeh
597535c014 linter: don't allow implicitly concatenated strings (#23513)
* linter: don't allow implicitly concatenated strings

* fix hyundai
old-commit-hash: 2c94f155840b49639b8bf1ec996d99e268fa9a52
2022-01-13 14:19:38 -08:00
Adeeb Shihadeh
8f9a6b06df tools: add bootlog helpers (#23504)
* tools: add bootlog helpers

* this is nice

* types
old-commit-hash: 7d7c0ff35fe91c480711f6213e9869000a3fe148
2022-01-12 21:37:43 -08:00
Adeeb Shihadeh
9908210bd6 tools: better joystick instructions
old-commit-hash: 7eca4d62078b14de62c5f2ce08e382eb31cc7076
2022-01-10 12:03:27 -08:00
Adeeb Shihadeh
1ea1b9072a smaller docker image (#23469)
* save 2gb

* not used

* more cleanup

* little more

* wget too big

* follow

* needed for sim
old-commit-hash: fa3055f280ca56ce4563108a85e6ca6e121310c5
2022-01-10 11:43:18 -08:00
Andrew
192978753d mac: fix setup and re-enable CI (#23365)
* rework mac_setup.sh
* ignore casadi and onnx runtime in pipfile for Darwin
* remove rust stuff
* build and install casadi

* add wget

* explicit python3. dont do onnx just yet

* resource compiler

* replace acados Darwin lib w universal2 libs

* relock Pipfile using linux machine

* Update update_requirements.sh

brackets

* Update update_requirements.sh

oops

* ci: re-enable mac build

* attempt to fix ci build:
* pip stuff?
* move rcc bin path to env script

* oops

* only mac

* k im lazy. does ci like this??

* huh??

* * use curl
* avoid casadi rebuilds
* add comment to remove protobuf
* host detect typo

* python version

* how did the builds not use swig?
* better reinstall check

* sometimes mac clang complain abt error limit

* ci: build OP in venv

* ci: bump to Big Sur
* retry? idk why it failed @ acados link

* * use macos-latest
* move rcc path to scons
* add extra paths for odd homebrew installs
* acados source change

* update macOS README

* uh, maybe?

* k nvm

* ci: ok this is strange. might be scons bug?

* fix conflicts: bump

* just add cppcheck for pre-commit stuff

* agane

* cleanup

* try that

* fix path

* no pyenv update on mac

* source

* fix rpath prefix?

* no examples

* fix exit

* let's get this cached

* add virtualenvs to cache

* why did we cache that

* let's see what's big

* more

* always ruyn

* cache scons cache

* better cache key

* fix for partial hit

* why so long

Co-authored-by: Andrew Tec <andrest@trabus.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Bruce Wayne <batman@openpilot-mac-mini.local>
old-commit-hash: 66644217100f17e0a0c4f95f86aed2fd8c09c28c
2022-01-07 15:15:18 -08:00
rzeydelis
3c7e41d900 tools: update README.md (#23447)
old-commit-hash: 207ce410b4de8d5a85448e8edc59c5596f84cf53
2022-01-07 14:03:27 -08:00
Adeeb Shihadeh
24314bdc3f fix up tools readme
old-commit-hash: f30a702414b75e97ab905797350522f8a12932ab
2022-01-04 19:59:49 -08:00
Greg Hogan
bb3402b54d plotjuggler: support segment names (#23263)
* plotjuggler: support segment names

* update docs

* generic parser

* convert segment number to int when parsing

* add SegmentName

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 71132edf17a78b629e3fa244caa21bebdc488929
2022-01-04 15:55:46 +01:00
Cameron Clough
f9e8fb3145 Joystick: learn axis min/max (#23377)
* Joystick: learn axis min/max

* clean up updating max/min

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 5a77157ea435260b3e7ecacb83f13d3753ede859
2022-01-04 14:17:30 +01:00
Greg Hogan
f6a9445de8 tools: configure PYTHONPATH in pipenv (#23361)
* automatically set PYTHONPATH in pipenv

* remove other place this was set
old-commit-hash: 3e5a2730227603e06e2b0df657dd7a3e874a6bd1
2022-01-03 20:15:10 -08:00
Adeeb Shihadeh
ba30137b2a MultiLogIterator: fix after adding sort_by_time
old-commit-hash: bbb47dc860f37ec6e34287d6696cb45e5637df74
2022-01-02 20:08:57 -08:00
Adeeb Shihadeh
c036e64c86 MultiLogIterator: remove wraparound mode (#23360)
old-commit-hash: 92f194decc2bce39d6dd0dbabf39b2a9b1aa53e5
2022-01-02 15:16:44 -08:00
Adeeb Shihadeh
02f1866b61 CI: use ubuntu_setup.sh (#23349)
* CI: use ubuntu_setup.sh

* works?

* need to fix paths

* set paths

* no batman for now

* pyenv version

* rehash after install packages

* unify python install

* revert that

* fix pyenv path

* no pipenv

* flip that

* fix rehash

* skip that

* revert panda
old-commit-hash: 066e3e3626f56d8f86c120defe4181eaed0182f4
2022-01-02 14:47:16 -08:00
Greg Hogan
2f843c3023 LogReader: add arg to sort by time (#23346)
* logreader optional sort by time

* robust logreader sort by time option
old-commit-hash: 9992ea1ae82dd02199e7e04bbbb8af54728d6200
2022-01-02 11:56:53 -08:00
Greg Hogan
e58562bcb6 plotjuggler: fix layout param (#23348)
old-commit-hash: 92b553be3ea0c4309961647a796dbdde3da5fdf6
2022-01-01 17:17:24 -08:00
Shane Smiskol
0c267f7685 PC: dynamically set PYTHONPATH from real openpilot path (#23322)
* dynamic PYTHONPATH setting based on actual openpilot location

* right above

* fix path

* absolute path all the time

* Revert "absolute path all the time"

This reverts commit c0bc2e08e76bd6c0abd36fa082ee00b4746e62dc.

* Update tools/openpilot_env.sh

Co-authored-by: Willem Melching <willem.melching@gmail.com>

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: fed7cfeef064b12f76b413298ffdf71fec1f537e
2021-12-31 19:34:08 -08:00
Adeeb Shihadeh
55e0fb4a55 fix setup scripts if git isn't installed
old-commit-hash: 7cd6a88638be390e0a7a13210e837afc36e1c18c
2021-12-31 19:29:38 -08:00
Adeeb Shihadeh
3b0d5834bd plotjuggler: add mac support (#23344)
* plotjuggler: add mac support

* fix test?

* update readme

* oops

* fix

* cleanup

* typo

* works

* little more

* fix test

* little faster
old-commit-hash: c26f294218a72e4a42d90b6560bde32e1a9cf5cb
2021-12-31 16:44:57 -08:00
Adeeb Shihadeh
d710eed2d9 mac_setup: install git-lfs
old-commit-hash: 8fe9c0ef931a19be187fe8fceb3cf69e8864f80f
2021-12-31 10:08:34 -08:00
Ewout ter Hoeven
f206ebd054 Pyupgrade 3.6: Update syntax with Python 3.6+ features (#23305)
Updated Python code with Python 3.6+ features:
- utf-8 encoding is now the default (PEP 3120)
- Replace list comprehensions by Generator Expressions (PEP 289)
- Replace yield loop by yield from (PEP 380)
- Remove the (object) subclass when defining a class
- Replace the IOError alias by OSError (PEP 3151)
- Define sets with curly braces {} instead of set()
- Remove "r" parameter from open function, which is default

Co-Authored-By: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com>
Co-Authored-By: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com>

Co-authored-by: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com>
Co-authored-by: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com>
old-commit-hash: 332f568a8241fba9459cb70c76840b9670e6993a
2021-12-24 11:18:39 -08:00
Ewout ter Hoeven
a962365292 Convert format strings strings to f-strings (#23241)
* Convert all text strings to f-strings

Reformats all the text from the old "%-formatted" and .format(...) format to the newer f-string format, as defined in PEP 498. This requires Python 3.6+.

Flynt 0.69 was used to reformat the strings. 120 f-strings were created in 51 files.

F-strings are in general more readable, concise and performant. See also: https://www.python.org/dev/peps/pep-0498/#rationale

* revert pyextra changes

* revert ublox.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 55390d273f36f49da3896e687ac5530f40c1d150
2021-12-16 14:58:17 +01:00
grekiki
9e4cc1f7ff Python: Replace more lists with generators (#23116)
* Replace lists with generators v2

* Replace set with {}

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

* Replace more set() with {}

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6951b3271d1770297cb6bd53878463035ec0bf43
2021-12-03 22:57:19 -08:00