Commit Graph

255 Commits

Author SHA1 Message Date
Will
8a8d8c2272 rerun: fix rp_visualization TypeError (#33749)
* Fixed iteration over liveTracks in radar visualization by ensuring the data structure is iterable and made the background black

* Requested changes, moved conditional to function call

* Simplified conditional, renamed method
2024-10-08 14:50:55 -07:00
Adeeb Shihadeh
853febe21d visionipc: remove RGB support (#33739)
* visionipc: remove RGB support

* bump

* msgq master

* fix sim
2024-10-07 13:24:57 -07:00
Alexandre Nobuharu Sato
4a50526064 Typo on README.md of replay instructions (#33726) 2024-10-03 17:20:01 -07:00
Dean Lee
811bf06f8c replay: improve README with clearer instructions and example (#33560)
improve README with clearer instructions and example
2024-09-24 12:03:08 -07:00
Adeeb Shihadeh
eea06b4c3e camerad: camera_util is spectra (#33597)
* camerad: camera_util is spectra

* lil more

* mv that

* fix build

* runs on device

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-09-19 11:22:46 -07:00
Dean Lee
467bd74944 camerad: remove CameraType enum from camera_common.h (#33588)
remove CameraType from camera_common.h
2024-09-19 10:33:24 -07:00
Dean Lee
fd893dfcb7 replay: optimize decompressZST with pre-allocated buffer (#33562)
improve decompressZST
2024-09-16 09:45:15 -07:00
Adeeb Shihadeh
bd2b09c7b6 Deprecate controlsState state fields (#33437)
* Deprecate controlsState state fields

* sim works

* update refs

* one more

* these too

* update sim
old-commit-hash: 3924ac587b735d1e735af4cb77faf6ccf053f656
2024-09-03 14:40:23 -07:00
Dean Lee
9fb50bd1c6 replay: migrate old ControlState event to new format during log file parsing (#33425)
Migrate Old ControlState Event to New Format During Log File Parsing
old-commit-hash: 6741877fbd
2024-09-01 00:37:40 -07:00
Adeeb Shihadeh
1b2bc44227 controlsd: split out state/alerts into selfdriveState (#33421)
* setup selfdriveState

* little more

* update refs

* migration

* all too slow
old-commit-hash: 87051803ab
2024-08-31 18:48:17 -07:00
Kacper Rączy
786aff27da azure_container: pass the filename explicitely when using get_url (#33407)
* Pass filename explicitely when using azure container

* Do not update segments in test_processes

* openpilotci_source_zst

* Fix static analysisc
old-commit-hash: b5958ebb60
2024-08-29 21:51:55 -07:00
Maxime Desroches
8c8a4b4961 replace python with python3 (#33303)
3
old-commit-hash: 406939b9c0
2024-08-14 15:14:31 -07:00
Maxime Desroches
df13b36638 fix all codespell issues (#33194)
* bring back

* remove 2020 dictionary
old-commit-hash: 44c7144e1c
2024-08-05 15:25:02 -07:00
Andrei Radulescu
7f53342993 fix multiprocessing issue with can_replay.py on macOS (#33139)
fix multiprocessing issue with can_replay.py on mac
old-commit-hash: 4e73b76a12
2024-07-30 10:34:46 -07:00
Dean Lee
55ccea2c52 replay: add support for decompressing ZST log files (#32910)
* Add Support for Decompressing ZST Log Files

* 2 space and check magic number

* match BZ2

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: ade13722cd
2024-07-29 13:48:06 -07:00
Kacper Rączy
4efe8d8118 Fix msgq context overrides (#33014)
* Fix msgq context overrides

* Remove unneccesary changes

* add reset_context helper

* Remove redundant import
old-commit-hash: c96dbd5a0b
2024-07-18 20:19:39 -07:00
Shane Smiskol
a878118b00 Revert "selfdrive/car: ban imports from external modules" (#32993)
Revert "selfdrive/car: ban imports from external modules (#32973)"

This reverts commit c1e8ff2dbc47ccb07fb41a4e88bfb66af2669254.
old-commit-hash: 35a4a773f1
2024-07-15 11:14:04 -07:00
Dean Lee
58df39a2ba selfdrive/car: ban imports from external modules (#32973)
* lint import

* Update selfdrive/car/__init__.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 83d4623590
2024-07-15 11:12:24 -07:00
savojovic
6766df5f38 Replace ui.py with a Rerun visualizer (#32850)
* Replace ui.py with rerun

* Visualizing radarpoints

* Visualizing all points

* Code clean-up

* Merging matrices into one

* Removing pygame depndency

* Replacing ui.py with rp_visualization.py

* Minor fix, changing color names

* Update README.md
old-commit-hash: 75b07c042f
2024-07-13 13:36:21 -07:00
Dean Lee
cb80c49b5a replay: update README (#32966)
update README
old-commit-hash: f1416f337c
2024-07-12 16:42:10 -07:00
Dean Lee
dbf095522f cabana: bug fixes and improvements (#32934)
bug fixes and improvements
old-commit-hash: 36815cc6d5
2024-07-08 14:50:31 -07:00
DevTekVE
a981c26ed7 Processor definition check for __APPLE__ has a typo on replay (#32930)
old-commit-hash: 3c74ad145e
2024-07-08 17:10:26 +00:00
Dean Lee
6601133ad2 replay: handle route not found error with user warning message (#32895)
handle 404
old-commit-hash: 632c484dd5
2024-07-03 15:27:54 -07:00
Dean Lee
1133898f68 replay: fix hangs on exit (#32795)
fix hang on exit
old-commit-hash: 776b08d561
2024-06-20 00:16:14 -07:00
Dean Lee
d1cd5f7ad6 cabana: improved error messaging (#32768)
* check user authenrication

* Update tools/cabana/streams/replaystream.cc

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 54da59c1fe
2024-06-17 12:44:31 -07:00
Dean Lee
06aed0617a cabana: avoid dead locks and improve responsiveness (#32740)
avoid dead locks and improve responsive
old-commit-hash: 865b98a5c4
2024-06-16 12:32:45 -07:00
Harald Schäfer
47d5601d8a long control: new API (#32706)
* Simplify long control

* Seperate

* Rename

* Try new api for toyota

* rm v_pid everywhere

* No speed in reset

* 0 is better default

* unassigned variable

* Update other cars

* Update gm

* SIMPLIFY

* simplify more

* fix API boundry

* Fix stopping bug

* Small fixes

* Update ref
old-commit-hash: bc303df6a0
2024-06-14 00:08:58 -07:00
Harald Schäfer
05ed3d8c15 Restructure msgq (#32652)
* Update ref

* Compiles

* compiles

* Refactor rest of libs

* import all

* small fiex

* cleanup import

* Need msgq simlink too

* Add to openpilot docker too

* try repo

* Updates

* Fix lint

* fix docs

* Try blank slate

* Revert "Try blank slate"

This reverts commit f078ce04acacfe115c19e23e86038b01e2b84a6d.

* Maybe scons needs this to clear cache

* fix tests

* Disable test for now

* Update SConstruct

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

* Fix whitespace

* Write skip normal

* small fixes

* add test path

* Revert repo

* linting

* whitespace

* Bump msgq

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: e70dc90a45
2024-06-09 17:44:34 -07:00
Dean Lee
40de8d615f replay: add stop() function (#32673)
add stop() func
old-commit-hash: 3f84fe3557
2024-06-09 11:04:21 -07:00
Harald Schäfer
f870a968e9 Split cereal into cereal/msgq (#32631)
* squash

* fix doc

* compile device

* compile device

* Update ref

* add msgq to precommit exclusions

* No service ports

* fix compile

* address comments

* More comments

* Delete logger

* Update opendbc

* Linting

* bump msgq
old-commit-hash: e71ec4e8d7
2024-06-06 14:31:56 -07:00
Dean Lee
958bdeda8a cabana: stop stream thread before exiting main event loop (#32634)
stop stream thread before exiting main event loop
old-commit-hash: 1d61f320a8
2024-06-05 08:49:58 -07:00
Adeeb Shihadeh
2c6829ed67 boardd is pandad (#32628)
* boardd is pandad

* rename tests
old-commit-hash: 34e329649d
2024-06-04 19:16:55 -07:00
Dean Lee
60387b191f replay: fix hang issue on system wake-up (#32341)
fix hang issue on system wake-up
old-commit-hash: c0a2ce31ee
2024-05-03 10:46:39 -07:00
Dean Lee
8df37a97d3 cabana: Improve seeking and zooming (#32334)
* Improve seeking and zooming

* No repeated calculation of freq

* set min zoom seconds to 10ms
old-commit-hash: d72f000d98
2024-05-03 02:42:29 -07:00
Dean Lee
e41bd18540 replay: shared decoder context (#32255)
share decoder context

cleanup includes
old-commit-hash: b13456f81f
2024-04-24 19:44:18 -07:00
Dean Lee
df13fe2ead replay: optimize memory usage with MonotonicBuffer (#32278)
Optimize Memory Usage with MonotonicBuffe
old-commit-hash: bbd1648f05
2024-04-22 19:21:42 -07:00
Dean Lee
84f3b07d46 replay: use nanosleep on MacOS (#32263)
* use nanosleep on MacOS

* Update tools/replay/util.cc

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

---------

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 618d73efd0
2024-04-22 13:22:53 -07:00
Dean Lee
437dcc4258 Cabana: bug fixes (#32272)
* Fix SIGSEGV due to thread race conditions after seeking

* adding ID as a secondary sorting factor

* fix gaps
old-commit-hash: bab8cdfdef
2024-04-21 22:34:24 -07:00
Dean Lee
372bea14e2 replay: bug fixes and improvements (#32193)
old-commit-hash: 2c409e0980
2024-04-21 17:09:17 -07:00
Dean Lee
4b2a00ef73 replay: refactor Event to remove the readers (#32252)
Refactor struct Event to remove the MessageReader from it
old-commit-hash: a824bd75ef
2024-04-19 11:15:34 -07:00
Dean Lee
7e5191422d replay/framereader: no longer cache all AVPacket instances in memory (#32236)
old-commit-hash: 8124ba5f63
2024-04-17 10:05:32 -07:00
Dean Lee
2c14e8d540 cabana: gray out inactive messages (#32121)
* improve message list

remove TODO

* improve sort

* remove translate

* fix seeking issue
old-commit-hash: bf61e92518
2024-04-09 19:39:24 -07:00
Dean Lee
620f74d3b9 replay: use clock_nanosleep for precise waiting on the scale of nanoseconds (#32125)
use clock_nanosleep
old-commit-hash: 354cbe5a26
2024-04-08 11:59:17 -07:00
Dean Lee
05d0243ff5 replay/route: adds retry on network failures (#31948)
old-commit-hash: b8f5f50d39
2024-03-30 17:37:14 -07:00
Dean Lee
ad70ec8e45 replay/cabana : support segment range (#32026)
* support segment range

* include <QRegularExpression>
old-commit-hash: 0a2a3dfab7
2024-03-27 09:47:18 -07:00
Dean Lee
46384f94d3 ui.py: quit if the "X"(exit) button is clicked (#31949)
old-commit-hash: 028f6938b2
2024-03-21 10:58:48 -07:00
Dean Lee
eba689d638 replay: get route datetime from INIT_DATA (#31913)
get datetime from INIT_DATA
old-commit-hash: d647361fae
2024-03-19 11:46:39 -07:00
Dean Lee
6ecd7bd524 replay: fix segfault in Replay::queueSegment (#31902)
old-commit-hash: e79cb0edaf
2024-03-17 21:55:27 -07:00
Cameron Clough
46cf28d822 ui.py fix typo (#31870)
old-commit-hash: 4dd5fd4619
2024-03-14 15:00:16 -07:00
Adeeb Shihadeh
da31ce154a refactor camera transformations (#31818)
* refactor camera transormations

* update users

* more stuff

* more fix

* swap

* tici

* lil shorter
old-commit-hash: e3589e4b5c
2024-03-10 16:56:50 -07:00