Commit Graph

1300 Commits

Author SHA1 Message Date
Justin Newberry
8c21642780 simulator: set valid flags (#30656)
sim set valid
old-commit-hash: bb9dda976405d62ceb9e366011dbf57c665bfc42
2023-12-08 16:31:30 -08:00
Greg Hogan
e91032efb3 replace common.file_helpers.mkdirs_exists_ok with python os.makedirs funtion (#30618)
replace common.file_helpers.mkdirs_exists_ok with python os.makedirs function
old-commit-hash: db35dcd0b5353d9c009fcf5817e611125a6b0b8b
2023-12-06 09:55:29 -08:00
Kacper Rączy
8edafd97b5 bodyteleop: toggle joystick debug mode (#30611)
* Enable joystick debug mode in web

* Remove mutable vals

* Rename thread back to main
old-commit-hash: 7948a61b0eaf98b3ace03e26027d8493f749e74f
2023-12-05 15:00:05 -08:00
Kacper Rączy
6c9a87556d joystickd: remove WEB (#30612)
Remove WEB option from joystickd
old-commit-hash: 6c62a3146607e87c1c4f796eb5a7c988f733d6c1
2023-12-05 14:42:44 -08:00
Dean Lee
091383e17c cabana: add test case for parsing all opendbc files (#30584)
* test opendbc files

* bump opendbc

* bump opendbc

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 33ee7530b39bf01051c11cb888695b0962c92f95
2023-12-04 17:12:22 -08:00
Adeeb Shihadeh
f3dec8658c Revert "Simplify passive mode handling (#30593)"
old-commit-hash: 99d51bf02c5a13f3064b012da55634f8a319091e
2023-12-04 15:05:05 -08:00
Adeeb Shihadeh
4be789d40a Simplify passive mode handling (#30593)
* simplify passive handling

* makes more sense
old-commit-hash: 5ccff25d885365e4247665fdf8380c6b67c36b28
2023-12-03 13:59:59 -08:00
Adeeb Shihadeh
f38648f84b rename carEvents -> onroadEvents (#30577)
* rename carEvents -> onroadEvents

* bump cereal

* bump cereal
old-commit-hash: b97e5b0e03a5e22ef0ae6d6f5c2523592ee25540
2023-12-01 22:48:29 -08:00
Kacper Rączy
d062a97a26 webrtcd: webrtc streaming server (audio/video/cereal) (#30186)
* WebRTCClient and WebRTCServer abstractions

* webrtc client implementation

* Interactive test scripts

* Send localDescriptions as offer/asnwer, as they are different

* Tracks need to be added after setting remote description for multi-cam streaming to work

* Remove WebRTCStreamingMetadata

* Wait for tracks

* Move stuff to separate files, rename some things

* Refactor everything, create WebRTCStreamBuilder for both offer and answers

* ta flight done time to grind

* wait for incoming tracks and channels

* Dummy track and frame reader track. Fix timing.

* dt based on camera type

* first trial of the new api

* Fix audio track

* methods for checking for incoming tracks

* Web migration part 2

* Fixes for stream api

* use rtc description for web.py

* experimental cereal proxy

* remove old code from bodyav

* fix is_started

* serialize session description

* fix audio

* messaging channel wrapper

* fix audiotrack

* h264 codec preference

* Add codec preference to tracks

* override sdp codecs

* add logging

* Move cli stuff to separate file

* slight cleanup

* Fix audio track

* create codec_mime inside force_codec function

* fix incoming media estimation

* move builders to __init__

* stream updates following builders

* Update example script

* web.py support for new builder

* web speaker fixes

* StreamingMediaInfo API

* Move things around

* should_add_data_channel rename

* is_connected_and_ready

* fix linter errors

* make cli executable

* remove dumb comments

* logging support

* fix parse_info_from_offer

* improve type annotations

* satisfy linters

* Support for waiting for disconnection

* Split device tracks into video/audio files. Move audio speaker to audio.py

* default dt for dummy video track

* Fix cli

* new speaker fixes

* Remove almost all functionality from web.py

* webrtcd

* continue refactoring web.py

* after handling joystick reset in controlsd with #30409, controls are not necessary anymore

* ping endpoint

* Update js files to at least support what worked previously

* Fixes after some tests on the body

* Streaming fixes

* Remove the use of WebRTCStreamBuilder. Subclass use is now required

* Add todo

* delete all streams on shutdown

* Replace lastPing with lastChannelMessageTime

* Update ping text only if rtc is still on

* That should affect the chart too

* Fix paths in web

* use protocol in SSLContext

* remove warnings since aiortc is not used directly anymore

* check if task is done in stop

* remove channel handler wrapper, since theres only one channel

* Move things around

* Moved webrtc abstractions to separate repository

* Moved webrtcd to tools/webrtc

* Update imports

* Add bodyrtc as dependency

* Add webrtcd to process_config

* Remove usage of DummyVideoStreamTrack

* Add main to webrtcd

* Move webrtcd to system

* Fix imports

* Move cereal proxy logic outside of runner

* Incoming proxy abstractions

* Add some tests

* Make it executable

* Fix process config

* Fix imports

* Additional tests. Add tests to pyproject.toml

* Update poetry lock

* New line

* Bump aiortc to 1.6.0

* Added teleoprtc_repo as submodule, and linked its source dir

* Add init file to webrtc module

* Handle aiortc warnings

* Ignore deprecation warnings

* Ignore resource warning too

* Ignore the warnings

* find free port for test_webrtcd

* Start process inside the test case

* random sleep test

* test 2

* Test endpoint function instead

* Update comment

* Add system/webrtc to release

* default arguments for body fields

* Add teleoprtc to release

* Bump teleoprtc

* Exclude teleoprtc from static analysis

* Use separate event loop for stream session tests
old-commit-hash: f058b5d64eed31878533a85f25eb53386ff9e330
2023-12-01 21:13:37 -08:00
Dean Lee
b01e3fe986 cabana: fix missing opendbc files (#30555)
* fix missing dbc files

* remove suffix
old-commit-hash: d87191c1c1982e5c044e5654d7a69c5cc222986c
2023-11-30 20:46:31 -08:00
Greg Hogan
70c662bf30 replay: get api url from env var (#30562)
old-commit-hash: 7e0f0165f4a036760cb3a0c179facffbe39e15ad
2023-11-30 10:42:18 -08:00
Justin Newberry
661132be5a Pytest: more post-test path cleanup (#30556)
* test cleanup

* missed this one

* remove that

* static class
old-commit-hash: 4086795c29bacd245a7cc372a16730e1a6ff974f
2023-11-30 09:55:48 -08:00
Kacper Rączy
9cd71f897a locationd: remove models unused in openpilot (#30481)
* Remove filters used exclusively by xx

* Update SConstruct

* Remove from release

* Accomodate rednose build changes

* Update rednose ref

* rednose/helpers in rpath

* Add rednose_filters to files_common

* Change rednose_root

* Copy rednose site_scons to docker images

* Remove rednose from rpath

* Bump rednose

* Bump rednose

* Bump rednose
old-commit-hash: f65e6bc30e7a3cce8b073f9ae0155facfe6c7646
2023-11-22 13:25:29 -08:00
DevTekVE
0f985f5d13 [cabana] fix clang17 warning (#30490)
[cabana] Improve signal timing calculation in findsingal.cc

The variables `first_sec` and `last_sec` have been separately initialized first before being used in `std::minmax` for signal timings. This resolves compilation warnings and potential risks of using temporary values of these variables.
old-commit-hash: 2a9986d9480063bb9b53d69a0cca47692c52b6ac
2023-11-18 23:05:10 -08:00
Logan Lasiter
4f1ed42285 adding --local-partial-types mypy opt (#30491)
old-commit-hash: 5b2bcf6bf220f88e11978e04a77226127b520efb
2023-11-18 22:47:11 -08:00
Dean Lee
8aac0bdfff replay: support for setting a custom playback speed (#30462)
* support for setting a custom playback speed

* rename to playback speed
old-commit-hash: c5f73a748e6ea9742001d771b96346e3b5eddef9
2023-11-18 22:12:35 -08:00
Dean Lee
6e991ea052 cabana: update message count after filtering (#30461)
update message count after filtering
old-commit-hash: 3d9f394533c3d82fc1fb5493f07fe90b366e5d88
2023-11-15 23:43:59 -08:00
Dean Lee
2a2988f180 cabana: fix double comparisons (#30468)
compare double with epsilon
old-commit-hash: 7ded7a072027ce235b5166e50f695dd184585481
2023-11-14 21:44:22 -08:00
Dean Lee
13d0f243ff cabana: highlight dowloaded segments (#30459)
highlight dowloaded segments
old-commit-hash: 86a5ac383e938d16b19b69bb43e507abe8cdd63b
2023-11-14 03:23:33 -08:00
Harald Schäfer
9bf8ee6c86 Rm more laika references (#30451)
Rm more laikad references
old-commit-hash: 95c6d5140aee76e6fd28990b0b58e1a3dcc5ee62
2023-11-13 16:52:57 -08:00
Dean Lee
543ea2bf57 replay: simplify the code for allow/block list (#30449)
simplify allow/block list
old-commit-hash: da95fd3019473b1f0dd8d671c22c1e618092cdb2
2023-11-13 09:19:39 -08:00
Tim Wilson
c668054d6f C3: add gps_vs_llk plotjuggler layout (#30448)
add gps_vs_llk plotjuggler layout
old-commit-hash: d3b91f266ac98b1f2a86c1eafef30bb969fdbaa8
2023-11-13 09:19:23 -08:00
Dean Lee
0de1648cca replay: remove deprecated support for PANDA_STATE_D_E_P_R_E_C_A_T_E_D (#30447)
old-commit-hash: 9e06525642eb46892a58371cc8daa70fba95f02a
2023-11-12 10:54:08 -08:00
Dean Lee
efa9cce3de cabana: allocate qt objects on the heap instead of stack (#30374)
allocate qobject in heap
old-commit-hash: 86efd70fa9e1ec2d125cc713e58c76740bc6eee5
2023-11-09 20:20:48 -08:00
Dean Lee
6f27ae486f replay: make speed_ atomic (#30429)
make speed_ atomic
old-commit-hash: 26a82e70d547a479c768d1971dca151f34aadcb6
2023-11-09 18:02:48 -08:00
Justin Newberry
3027a428cb Pytest: tici mark for skipping on-device tests (#30412)
* mark tici

* not those ones

* missed that one

* add those

* add pypoetry

* oops
old-commit-hash: aec7cea30d48dc8915eea38c86de7d4effa0548d
2023-11-07 17:35:44 -08:00
Dean Lee
9b5e02d668 cabana: fix QChart leak (#30369)
fix QChart leak
old-commit-hash: f5279284f5b4d993a181e8ba2d9a6ec7985130d5
2023-11-03 11:16:58 -07:00
Dean Lee
76bddbd23d cabana/sparkline: Fix "Painter not active" warning (#30370)
fix painter not active
old-commit-hash: a46544f7084593d028ab0c202783125fa833cc79
2023-11-03 11:16:48 -07:00
Dean Lee
18f8bc79e6 cabana: remove dependence on opendbc (#30329)
* remove dependence on opendbc

* move into function
old-commit-hash: bf932c6277c25294857d68cf1a333ce9d151140c
2023-11-02 22:37:56 -07:00
Adeeb Shihadeh
a4f0826df4 add lfs pull to setup instructions
old-commit-hash: 0788573a735f78b40ce04767de285b768bb2ac1e
2023-11-02 22:36:53 -07:00
Justin Newberry
3ee7b45c94 Cabana: fix wsl compilation (#30366)
fix wsl
old-commit-hash: a73412b39d1f3593c312c37b07cff6e842052433
2023-11-02 20:59:38 -07:00
Kacper Rączy
15d619abae bodyteleop: fix browser audioinput (#30360)
Fix browser mic in bodyteleop
old-commit-hash: 0c6101e267839cfef80bd0bcc0866259ef8fc3a3
2023-11-01 18:04:28 -07:00
Dean Lee
0f9c1bb2a7 cabana: fix messages not updated correctly after seekto() (#30351)
fix messages not updated correctly after seekto
old-commit-hash: bf5a45ed9826af7dbf9e1db82413e1340bbfa074
2023-10-31 11:34:54 -07:00
Dean Lee
be9d291dad cabana: support suppress highlighted bits (#30336)
* support suppress highlighted bits

d

* faster filtering and sorting

* improve livestream

* specify the context in the connections

* remove inline
old-commit-hash: 01610128bb340f83ebf08b344404330806178825
2023-10-30 09:47:23 -07:00
Dean Lee
897a62dcfc cabana: support multiple cameras (#30339)
support multiple cameras
old-commit-hash: fe4ad9670179b6f823b7332d5a903a7049a3ac03
2023-10-29 07:05:59 -10:00
Kacper Rączy
6f51ee8267 URLFile: exception type for failed requests (#30330)
URLFileException for URLFile request errors
old-commit-hash: c27e977475e33e19c8042dfead745f5cbc1ad9ee
2023-10-25 16:20:12 -07:00
Shane Smiskol
78c15b7ea2 cabana: rename signal node
More clear what this is

Receiver Nodes

old-commit-hash: f62ee97cb0d05f71873f768145ccc122c1c82884
2023-10-25 15:03:27 -07:00
Dean Lee
ae8cd280fb cabana: fix two ui bugs (#30327)
fix ui bugs
old-commit-hash: ae2628011818d3bb4277890e33e2a3917ba97f40
2023-10-25 14:39:52 -07:00
Dean Lee
03ba671b96 cabana: save settings to user-specific directory (#30328)
* save settings to user-specific directory

* include
old-commit-hash: b73329092c1eeb9b7472db97fcdf5544ee848156
2023-10-25 14:39:41 -07:00
Dean Lee
920bc9acea cabana: improve playback controller (#30325)
improve playback controller
old-commit-hash: 952838335d318ab3ecc2365d4f466800ad87aac4
2023-10-25 10:57:09 -07:00
Dean Lee
83678f7a87 cabana/chart: populate the points incrementally (#30326)
* populate the points incrementally

* less spacing
old-commit-hash: 57621afcb0f4a95f5fd36cc47a7801a776383af5
2023-10-25 10:56:49 -07:00
Dean Lee
8123daceaf cabana: add Node column to message table (#30317)
* add Node column

* add views menu to toolbar

* match NODE

* rename fetchData to filterAndSort

* simplify sortMessages
old-commit-hash: 691c7c2c66785e9b06aae02bf278e343b8c9397b
2023-10-25 10:56:07 -07:00
Dean Lee
b39bf7c20b cabana: fix sparkline glitch (#30320)
fix glitch
old-commit-hash: f47723d1d16c50c28c19cd79df1af000e93e9dad
2023-10-24 11:25:50 -07:00
Dean Lee
3fb329773e cabana: remove the qlog parsing thread (#30319)
remove the qlog thread
old-commit-hash: e287a5f1641ae93a31deaeb3c03c5fd27ed80759
2023-10-24 10:38:50 -07:00
Dean Lee
47b9097674 cabana: set the COMMA_CACHE environment variable (#29849)
* set COMMA_CACHE enviroment

* use /tmp/comma_donwloand_cache
old-commit-hash: 0431bbaa8b5df4dbde27f91808064d3887512faf
2023-10-23 20:51:39 -07:00
Harald Schäfer
7c4d29c3d1 Rm laikad (#30299)
* rm laika

* Rm laika

* Needed this

* More rm

* More rm
old-commit-hash: 56dea7b0b42e7624a39fef0986cd0db151bb9512
2023-10-23 00:15:39 -07:00
Dean Lee
c096776b31 cabana: remove the installed handlers on exit (#30297)
remove the installed handlers on exit
old-commit-hash: ac19ecee6f323f81607f4e70789be175c184da68
2023-10-20 23:48:48 -07:00
Dean Lee
9affc1c0c9 replay: make installDownloadProgressHandler thread safe (#30296)
old-commit-hash: 9e01f4a85e5bd9583155253c00c3a92a16e0e9a8
2023-10-20 12:41:18 -07:00
YassineYousfi
d18f185115 modeld: parsing and publishing in python (#30273)
* WIP try modeld all in python

* fix plan

* add lane lines stds

* fix lane lines prob

* add lead prob

* add meta

* simplify plan parsing

* add hard brake pred

* add confidence

* fix desire state and desire pred

* check this file for now

* rm prints

* rm debug

* add todos

* add plan_t_idxs

* same as cpp

* removed cython

* add wfd width - rm cpp code

* add new files rm old files

* get metadata at compile time

* forgot this file

* now uses more CPU

* not used

* update readme

* lint

* copy this too

* simplify disengage probs

* update model replay ref commit

* update again

* confidence: remove if statemens

* use publish_state.enqueue

* Revert "use publish_state.enqueue"

This reverts commit d8807c8348338a1f773a8de00fd796abb8181404.

* confidence: better shape defs

* use ModelConstants class

* fix confidence

* Parser

* slightly more power too

* no inline ifs :(

* confidence: just use if statements
old-commit-hash: cad17b125595c4654bfd8299b041b94ccb3faf73
2023-10-19 14:23:51 -07:00
Adeeb Shihadeh
58df021bd7 Update Python packages and pre-commit hooks (#30269)
* Update Python packages and pre-commit hooks

* fix pyqt

---------

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
old-commit-hash: 13bf8c26f35073cdadc7d3d5e38e06c776a362f1
2023-10-18 20:18:08 -07:00