Commit Graph

1364 Commits

Author SHA1 Message Date
Justin Newberry c03fe6bb13 add example of using the comma car segments database (#31117)
* add vin fingerprinting example

* perhaps!

* remove segment

* easier
old-commit-hash: 389b8ca30d62f81ae40a7d026a299ce3930183da
2024-01-22 18:23:07 -08:00
Justin Newberry f447062b66 CommaCarSegments: public database of segments for each platform (#31114)
* comma car segments

* comma car segments for test_models

* oneliner

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* better name

* not used here

* sort

* remove print

* better comment

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: caa9153974c21fd827d0e991f1789cf3e81b5c3b
2024-01-22 17:33:03 -08:00
Justin Newberry 831826d3e5 Simulator: fix metadrive (#31104)
fix metadrive
old-commit-hash: 81516216b154bbf8c713aa6b4b538d3a2e0ae0b5
2024-01-21 17:34:26 -08:00
Harald Schäfer 66dbadb029 Delete lat planner (#31089)
* Initial commit

* Fixup

* typo

* ignore lateral plan

* Update cereal

* Remove lateralPlan

* Fix release build

* Fix release build

* give car params

* Add carParams to include_all_types

* Write car param in powerdraw test

* add demo mode

* Update model regf

* proc replay ref commit

* Try

* Move enum definition

* Update cereal

* typo

* Write car param for modeld test

* Update ref

* Update model ref again

---------

Co-authored-by: Kacper Rączy <gfw.kra@gmail.com>
old-commit-hash: e6c97c384671b448f307a7ed91416886f2186d80
2024-01-21 12:09:48 -08:00
Justin Newberry b29eea47ce sanitizer: sanitize vin number (#31090)
old-commit-hash: 2c86c023fe2d3072910ed33ff97cd6d3ddf2915d
2024-01-21 12:22:32 -05:00
Justin Newberry 06091f48a9 speedup replay test (#31086)
* speedup replay test

* better name

* comment not required
old-commit-hash: 5c2b7882bf5cddac38b0a323c0d18a91e9d3bc04
2024-01-19 14:39:08 -08:00
Adeeb Shihadeh 972650f0eb remove dashcam branch (#31081)
* remove dashcam branch

* fix

* more cleanup

* remove param

* one more
old-commit-hash: 7cd9568423a2e78187d16018b70a78f56c02027d
2024-01-19 14:05:03 -08:00
Justin Newberry 3d0ae1aaaa prevent typing issue in azure_container (#31044)
prvent that issue
old-commit-hash: 840db1f1b70e5014f504908eb1beb6358c555cf2
2024-01-17 15:34:24 -08:00
Justin Newberry 09b95b715c cleanup azure handling (#31034)
* wip cleanup

* Wip

* fixes

* fix

* cleanup

* keep this for now

* dest
old-commit-hash: 3f0b56b36472b04dca653ac5870f10d4bd53bc01
2024-01-17 14:21:47 -08:00
Justin Newberry a9676e7086 auto_source: optimize api calls and use head to determine if file exists (#31025)
* fast

* catch all

* source

* fix file_exists

* remove duplicate reset

* test multiple loops

* iterations

* cleanup imports
old-commit-hash: 2967cada71fd1b40e86356585fa5d68301d9f1c8
2024-01-16 17:24:37 -08:00
Justin Newberry 5df01b3d22 LogReader: fix plotjuggler not reading properly (#31023)
* fix plotjuggler

* simpler

* fix juggler

* fix that
old-commit-hash: 61fe705160ddb9e5c55292c7f702c5502e2c0d2e
2024-01-16 12:40:49 -08:00
Justin Newberry 4b7edec2b0 LogReader: move opci to tools/lib (#31021)
move opci
old-commit-hash: 7d400112df6692ef026245b03951345cc36dd83e
2024-01-16 10:58:51 -08:00
Justin Newberry 35dcd7ccd8 LogReader: support lists of identifiers (#31020)
* support lists of logs

* mark as slow instead
old-commit-hash: 0739d5d7b25f1fbcb70a4dd2ef9b5071afb2c526
2024-01-16 10:40:00 -08:00
Justin Newberry 13e7366b6d LogReader: support only_union_types (#31019)
support only-union-types
old-commit-hash: 4da8d165144404e7356e611e68b036ecb33126ef
2024-01-16 10:03:55 -08:00
Adeeb Shihadeh bf6fc7a24f more unit test speedup (#30997)
* that's super slow

* fix startup test

* fix
old-commit-hash: fe6aff01311ca3c5a4a549b0eb5d081fa1740f86
2024-01-13 22:21:43 -08:00
Adeeb Shihadeh 96e9a7d3ce CI: speedup unit test job (#30995)
* start

* mv to buildjet

* fix
old-commit-hash: e17e66180c3a9432e6d303ca36ff0e4af763dace
2024-01-13 21:16:35 -08:00
Justin Newberry f138a6eccf Metadrive: fix map config on main (#30983)
* Fix map api too

* dont render
old-commit-hash: 28e5d1bb49000b0740d36d6cd714126e9dab825c
2024-01-12 14:42:40 -08:00
Justin Newberry c8cc30112d rename segmentrangereader to logreader (#30981)
* Replace multilogiterator

* replace logreader

* update readme

* fix from_Bytes

* new section

* reset before iter

* selector

* fix internal

* whitespace
old-commit-hash: 3d73512c0702598d27e04039976fe0a91d5952f0
2024-01-12 12:53:50 -08:00
Justin Newberry a729e102c7 Replace multilogiterator (#30980)
old-commit-hash: 9f1b72ac792b8961cd903e425874f3a00a33ab3e
2024-01-12 11:43:32 -08:00
Justin Newberry 86139fd98e fix metadrive after bump (#30967)
* fix clip

* wip

* oop

* 1.22

* ... ugly

* fix tuning
old-commit-hash: f2c73039d7799da139ec4e55520f525db4fb95cc
2024-01-11 18:09:39 -08:00
Justin Newberry 20e9969f8e move plotjuggler to segment range reader (#30969)
* pj

* limit test to 2 segs

* remove

* fix test
old-commit-hash: d7e7659852f14ca458605f13c2bdae90f5de5a45
2024-01-11 17:02:47 -08:00
Justin Newberry 1b65d5cd85 segmentrangereader: support direct parsing (#30973)
* use correct source

* revert

* cleanup imports

* clean

* direct parsing

* rename

* move up

* fixes

* fix that

* better error message
old-commit-hash: eb09294fc265ffc9cc2ed7f03acc5037d064de81
2024-01-11 16:56:48 -08:00
Justin Newberry 407d302106 car porting examples: add example of plotting the response of brake_pressure vs acceleration (#30958)
* another example

* add comment

* fix that

* oop

* fix link
old-commit-hash: 8d9e431f43d5974d7908aae4645d6fa6fb0e7324
2024-01-11 13:35:50 -08:00
Justin Newberry 3231738be9 move can replay to segmentrangereader (#30971)
can replay
old-commit-hash: 042ccb9244ac167a07d289864c99e0d169bb9e1a
2024-01-11 13:11:59 -08:00
Justin Newberry 11449845e7 segmentrangereader: support more sources (#30970)
* support more sources

* remove this
old-commit-hash: fb994ae782259e8ed4d9212edc3c9fb277f831f6
2024-01-11 12:55:19 -08:00
Justin Newberry dd7921de3f replace more tools with SegmentRangeReader (#30968)
* replace lrfros

* and those ones too
old-commit-hash: 7e9843b5e6d0756bc7c17ef7338c384b7b330df0
2024-01-11 11:46:31 -08:00
Justin Newberry 3b86243f1f SegmentRangeReader: log type selector (#30960)
* log type selector

* test this too

* and this

* invalid selector

* use strenum

* don't hardcode size

* oneline
old-commit-hash: be814ed44747ab09f8db429ff0ee1e7f87180fec
2024-01-11 10:25:24 -08:00
Hoang Bui c17fc021e9 Enable variable pass between test and metadrive processes (#30961)
pass started between processes
old-commit-hash: 1da08460cba9f3d67b7b84249ccd8ee9bd282bf7
2024-01-10 18:13:21 -08:00
Justin Newberry 9e6c6d92b0 segmentrangereader: support sort_by_time (#30954)
support sort-by-time
old-commit-hash: cfb23eb2d160639b870690a9bd6e7ba5350e3bc6
2024-01-10 13:36:55 -08:00
Justin Newberry 1f434b2714 SegmentRangeReader: new format for reading multiple segments (#30940)
* segment range reader

* rename that

* revert that

* cleanup

* revert this for now

* revert this for now

* Fix + test

* rm that

* rm that

* use for auto_fingerprint

* simpler

* for notebook too

* match numpy indexing

* just use numpy directly

* remove that

* spacing

* spacing

* use qlog for auto fingerprint

* add 'read mode'

* pass in read mode

* add test for modes

* numpy indexing

* fix that case

* more examples

* fix the notebook

* cleanup the notebook

* cleaner

* fix those
old-commit-hash: 0d126e1e9e60a3d995bc90454bee206b5d70024f
2024-01-10 11:55:19 -08:00
Hoang Bui 87cadf7262 Python camerad for webcam (#30930)
* webcamd

* remove destroy windows

* block

* shebang execute

* executaleeeee

* executableeeeeee

* she bang for camerad.py

* listener

* no signal?

* good

* ruff fix

* delete listener

* recover sim

* remove assert

* refactor

* fix shell

* fix namedtuple

* little change

* to tuple

* cleanup

* update readme

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 7fdd5c4a7d72d16eb2246b4766a4da6c9aad0765
2024-01-08 19:22:21 -08:00
Shane Smiskol fc23ab6c8d Fix string indentation (#30943)
* fix bad spacing

* more

* these aren't important
old-commit-hash: d689a4e6537b6b48e0ad9948ac919065317258c1
2024-01-08 15:36:43 -08:00
Adeeb Shihadeh 7243b9b68e Revert "UI: single-threaded CameraView (#30397)"
This reverts commit 69dcd240fcf3bac7a6bddb1647219b710d255554.

old-commit-hash: 073fc89ad49461c01ea474125a89a505543d093d
2024-01-07 14:54:39 -08:00
Justin Newberry 090d3d2e41 move profiling tools to tools/profiling (#30917)
move profiling
old-commit-hash: 03d6233743dbf8913ca48b59dd54f111be2ab595
2024-01-05 16:22:45 -08:00
Adeeb Shihadeh 8d11c3b742 Update Python packages and pre-commit hooks (#30597)
* Update Python packages and pre-commit hooks

* fix

---------

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
old-commit-hash: 46f3fdc090cef3b4b1b8bb4938ad68e1ca7cb280
2024-01-05 15:17:49 -08:00
Justin Newberry 25374edffd add the notebook example to car port docs (#30920)
* add the notebook example

* fix link

* add image

* no lfs

* no lfs
old-commit-hash: 239b228ca6987daa54c20090346d458c9bd4493d
2024-01-05 13:57:02 -08:00
Justin Newberry 040223e69f move car porting tools to tools/car_porting (#30916)
just this for now
old-commit-hash: e86d74b347f60a3e575d45b4c99d94d23c8c7d84
2024-01-05 11:53:03 -08:00
Justin Newberry 278eef0c71 tools: add car porting example notebook (#30918)
* add car porting example notebooks

* not required
old-commit-hash: 15e0a906ad70f50594c58a38fb4d2cb1a6c9c89a
2024-01-05 11:52:24 -08:00
Dean Lee 2f8e66dbb8 UI: single-threaded CameraView (#30397)
* single-threaded CameraView

* updateFrame

* inherit from CameraWidget

* clear frame on offroadTransition

* check frame_id

* optional

* unique_ptr

* CameraView

* cleanup

* cleanup

* log skipping frame

* fix driverview

* disconnectVipc

* debug inconsistent frame

* skip frame if uiPlan is outdate

* cleanup

* set connected = false

* support camerad reboot&seeking in replay

* cleanup

* qDebug

* use deque

* cleanup

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 17ac1d3c7b3b481826d51eb82aaf9dbcc3f3bd81
2024-01-03 13:14:29 -08:00
Justin Newberry 7aecd2f91d url_file: fix non-200 files being cached (#30886)
* fix + test

* fix unclosed

* easier to read

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* fix that

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: fba521ecc6d4c260de8f3e93dadbc3e157a9a9a6
2024-01-02 12:42:08 -08:00
Kacper Rączy a97f55dadb metadrive: Change camera position to reflect typical height of a vehicle (#30831)
old-commit-hash: 65ece2081a91b84c8b78de404aea2ec17fa81e7c
2024-01-01 14:36:37 -08:00
Sliicy fc2e961f1b Fixed joystickd.py incorrect steering control (#30879)
old-commit-hash: 6ccf2cbfde4e1f5aa67dc0072f9c0dfd080be064
2024-01-01 14:29:01 -08:00
Robbe Derks 8929336cc0 [Cabana] Fix segfault in sparkline (#30870)
old-commit-hash: eb805e889ef2f9c6e1345dc164533b44494576d0
2023-12-31 13:02:05 -08:00
pencilpusher 63608539b1 replay ui: fix typo in variable name (#30851)
fix typo in variable name
old-commit-hash: ee3544d283523044cc969065af1c4c16acba7bf0
2023-12-26 16:03:59 -08:00
Justin Newberry c3551ea4ec Simulator: fix keyboard ctrl messing with pytest (#30827)
fix
old-commit-hash: a6b17fb1f6063835f6e0065d9bf670fbf069de48
2023-12-20 15:10:11 -08:00
Dean Lee 8056fe5aff cabana: add csv export (#30800)
export csv
old-commit-hash: 5f045176775c8c2cdd7f85e7229f78cf26f0c013
2023-12-19 11:50:16 -08:00
Justin Newberry a3eafc8cd5 Simulator: only send camera frames at rate that they are generated (#30802)
only send frames at rate that they are generated
old-commit-hash: 8017c25f0b2960db13df22295c077fbbd6aa6a07
2023-12-19 10:45:07 -08:00
Dean Lee 6ae3e95542 camerad: cleanup includes (#30782)
* cleanup includes

* continue

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ab0b26d2b8dc8b3957812856917084af2cb3df0a
2023-12-17 22:42:52 -08:00
Adeeb Shihadeh 207073dc4c fix unused
old-commit-hash: 51a93cf9aaa3c1bc07738a412a4e19cb3dc6dcba
2023-12-17 16:32:56 -08:00
royjr d41f215df8 dependency: remove pycurl package (#30771)
* Update qcomgpsd.py

* Update url_file.py

* remove pycurl

* requests -> urllib3

* unused

* redundant

* fix import

* Revert "requests -> urllib3"

This reverts commit 7ca39e618917986f50356519d2795a432e3a5280.

* headless

* fix trail

* use requests.exceptions.RequestException

* use fp.tell

* fix indents

* reorder imports

* change timeout

* fix debug timing

* remove exception

* add timeout

* missing headers

* move to constructor

* move import

* unused import

* fix debug

* try

* no retries
old-commit-hash: 70624ffc819c29d842cb68fd86f42eac95421b10
2023-12-17 16:25:25 -08:00