Commit Graph

1532 Commits

Author SHA1 Message Date
Hoang Bui
8d51127ef7 tools/simulator: Remove superseded build script for sim docker (#32546)
* remove

* add those back
old-commit-hash: d6a738bef7b8d8cfacfe8f7edf9fc01ba435f05a
2024-05-27 09:22:41 -07:00
Adeeb Shihadeh
549bc535cd Revert no pyenv (#32547)
* Revert "`ubuntu_setup`: fix `No module apt_pkg` error when setting up (#32526)"

This reverts commit d850f07acb58e4fc6d530241a31c0917c2b6613e.

* Revert "Removal of pyenv (#32512)"

This reverts commit 41f72d5ca75aab9a9beb3181aca9f177e5a003f8.
old-commit-hash: 1eb938b8e81a3321adf1064e8ef348b8c7073d4c
2024-05-26 21:21:50 -07:00
Adeeb Shihadeh
cc4f53e6c6 manager: move to system/ (#32538)
* manager: move to system/

* one more
old-commit-hash: accdade4cfe73cdca41f5afa73cf4ad085802930
2024-05-25 12:41:17 -07:00
Adeeb Shihadeh
f1c241361c speedup pj demo test
old-commit-hash: cd21d64058d161614b7504f344e8a26df28240c2
2024-05-25 11:40:10 -07:00
Hoang Bui
60b476a5b6 CI/simulator: metadrive test starts when OP engaged and world is initialized (#32523)
* fix metadrive start time

* fix
old-commit-hash: 613f73c53fa1cd3525a0cb3af0615783bd213fd0
2024-05-25 10:37:07 -07:00
Mauricio Alvarez Leon
f90655a1ff ubuntu_setup: fix No module apt_pkg error when setting up (#32526)
* no apt_pkg fix

* check arch

* fix if

* cleanup

* reorder

* increase shm size for selfdrive tests

* add comment explaining reinstall

* refine
old-commit-hash: f4322666c6adc4dd2da569f483f6e108f18fe32a
2024-05-24 21:38:23 -07:00
Mauricio Alvarez Leon
e665f05efe Removal of pyenv (#32512)
* initial removal of pyenv

* remove .python-version copy in dockerfile

* successful image build with ppa

* update prompt

* pip install scons

* apt install scons

* finally fix dockerfile to work with venv

* cleanup userflow

* increase memory to 100m

* typos

* wrong variable

* lmao
old-commit-hash: f5752121f8a2029050c63cfa04f2533901ae4f3a
2024-05-23 07:56:18 -07:00
Hoang Bui
b8fd64f3e7 CI: Drive a loop in MetaDrive (#32308)
* finish failure on crossing any line

* update

* standardize queue messages

* update control_command_gen

* fix

* fix logic

* update closing type

* update test

* update logic

* update test

* add out of lane to local

* ci arrive_dest

* pytest integration

* update ci_config

* fix ruff

* move test termination to time

* better

* better order

* curve_len

* add buffer

* cleanup

* cleanup

* cleanup

* cleanup

* out_of_lane

* cleanup

* merge tests

* run 90s

* change test name

* local out of lane detect

* out_of_lane

* static anal

* cleanup

* test_duration

* change setup_class -> setup_create_bridge

* no print state during test

* new out_of_lane detect

* cleanup print in common.py

* fix

* fix

* check distance vs time

* cleanup

* cleanup increase check time

* minimum bridge test time

* wording

* cleanup
old-commit-hash: fe9a091f116dc0c3bb55d35b31512866663af6af
2024-05-22 10:04:43 -07:00
Adeeb Shihadeh
64c444544f more apt dependency cleanup (#32502)
rm
old-commit-hash: 406f30add493006b99569bfbf49562e3192038cc
2024-05-21 15:40:00 -07:00
Mauricio Alvarez Leon
eca631af2d minimize ubuntu deps. needed to run build openpilot (#32492)
* minimize common deps list

* fix

* fix endline error

* add portaudio3

* add build-essential

* upload old loggerd deps

* libqt5charts5-dev

* libncurses5-dev

* libbz2-dev

* libsqlite3-dev
old-commit-hash: 1203f5eeb363f4ccdf149d6fa1c32380c0c90027
2024-05-20 20:47:53 -07:00
Adeeb Shihadeh
3358745103 ruff: enable UP
old-commit-hash: b2e4c64cf8fe3256d1e411e8715c29e2eb6f4f00
2024-05-20 17:43:54 -07:00
macdoos
52dbb6eae4 split out dev apt dependencies (#32476)
* init

* add more extra packages

* update Dockerfile

* cleanup

* Update Dockerfile.openpilot_base

* needed to build

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: e0fa26b1a44bf54388392d54c8437459d870d78c
2024-05-20 17:35:33 -07:00
Hoang Bui
acd61af9fc CI/simulator: Fix metadrive test pyopencl.CompilerWarning (#32487)
* add pytest.mark.filterwarnings

* remove -W pyopencl.CompilerWarning

* add comment
old-commit-hash: f3f22a56980d7a3fb2cd7c07fec8ac0e9e376a38
2024-05-20 14:41:31 -07:00
Mauricio Alvarez Leon
1600939a38 deps: add rerun-sdk into pyproject.toml (#32472)
* add rerun-sdk into pyproject.toml

* install/wheel cleanup

* unpin version
old-commit-hash: bd6bea39bf9ff61ac0c5e942e929d12851c5c4b7
2024-05-18 17:21:04 -07:00
Adeeb Shihadeh
72b6504595 Revert "ui: single-threaded CameraView (#32291)"
This reverts commit 6adb53abf4d483e70bbe36725588a05cf75681fb.

old-commit-hash: c9531b463a6cb4a2a56792046fd69f9041006d81
2024-05-18 16:34:03 -07:00
Adeeb Shihadeh
0585f670f1 remove libopencv-dev (#32469)
old-commit-hash: 48e24321e814b4b8a805276a0adb3ea2ca19d2f8
2024-05-18 14:29:49 -07:00
Hoang Bui
6c438b8902 CI: fix metadrive test (#32457)
* fix test

* this?

* fix

* this?

* deprecation warning inside

* comment
old-commit-hash: 950aeae5443123e59177444d06a7654a41504373
2024-05-18 14:04:22 -07:00
Adeeb Shihadeh
a06c569595 remove gcc from mac_setup.sh
old-commit-hash: 3e023146d24364daf0a40311b3fe366e7bcd36cd
2024-05-17 21:06:18 -07:00
Dean Lee
4bade99d62 ui: single-threaded CameraView (#32291)
single thread cameraview
old-commit-hash: dd6e2a400b1b9543fad0c3c4a78463abf756da6b
2024-05-17 20:18:41 -07:00
Adeeb Shihadeh
678e05be08 remove dead webcam dockerfile
old-commit-hash: 52acae579763a15510b6788b31c22de975d54271
2024-05-17 20:00:10 -07:00
Hoang Bui
565e06b66a Simulator: standardize queue messages (#32313)
* standardize queue messages

* update control_command_gen

* fix

* fix logic

* update closing type

* qmessagetype -> enum

* update type hint

* old close() makes more sense

* cleanup

* fix

* revert that

* revert that

* better name

* actually this is better
old-commit-hash: 630e1529008ce0c996ba6a111df44877596acfea
2024-05-17 19:51:07 -07:00
Adeeb Shihadeh
eaa6fe2510 remove old valgrind replay test
old-commit-hash: e1a697fee521eedad2210d8e01d668e2bb020ace
2024-05-17 19:43:47 -07:00
cl0cks4fe
639a634f7c Unittest to pytest (#32366)
* add pytest-asyncio

* switch common

* switch selfdrive

* switch system

* switch tools

* small fixes

* fix setUp and valgrind pytest

* switch to setup

* fix random

* switch mock

* switch test_lateral_limits

* revert test_ui

* fix poetry.lock

* add unittest to banned-api

* add inline ignores to remaining unittest imports

* revert test_models

* revert check_can_parser_performance

* one more skip

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dd9d5d4528ff0a61c7699abc1b63ba8fd282632f
2024-05-17 11:01:44 -07:00
Greg Hogan
a17639bddb logreader: skip internal source if connection refused (#32418)
* logreader: skip internal source if connection refused

* fix indentation

* fix spacing

* explicit ipv4 and tcp
old-commit-hash: 2a46d71fc885201d88ca63bc52d26ef715545a23
2024-05-13 16:02:28 -07:00
Adeeb Shihadeh
6e0d84d829 rerun.io proof of concept (#32416)
* Adding demo version for acceleration only

* Adding, plot any event

* Adding dynamic blueprint creation and menu to choose what to plot

* Adding, pool of processes for faster data visualization

* Adding, install rerun if not present

* Adding. thumbnail support

* Refactoring, minor cleanup

* -Use rerun pre-release
-Remove json as a middle format
-Replace recursion with stack-based approach

* Refactoring, using services from cereal instead of hardcoding them

* Use of lr.run_across_segments instead of pool,
Use of python dict instead of capnp objs - better performance
Use LogReader syntax

* Enable logging of liveTracks, pandaStates

* Use of plotjuggler user experience

* Fixing bug in log_msg function

* cleanup

---------

Co-authored-by: savojovic <jovo.savic00@gmail.com>
Co-authored-by: savojovic <74861870+savojovic@users.noreply.github.com>
old-commit-hash: 1c481c5ad32bc6c643ff7bd193b39f207e2acdf7
2024-05-13 15:04:37 -07:00
Julio Salamanca
190fec65f4 Remove qlog param from demo example (#32406)
Remove qlog param from demo instructions

qlog param was removed in this commit

fae2400f40
old-commit-hash: 6aa17ab10a182fac671b9aaef3d4ac0aebb24af2
2024-05-12 17:00:17 -07:00
Shane Smiskol
bd843cc5e7 Cleanup auto_fingerprints.py (#32377)
* messyyy

* super clean car wash

* rm
old-commit-hash: b895095031918dd092061481a9212acda5368c8f
2024-05-08 15:58:27 -07:00
Dean Lee
a2226ad906 cabana: Implement Remote Route Browsing Feature (#32332)
browse remote routes
old-commit-hash: b551e7c1a2d913b18752a45857c4675191eb4419
2024-05-07 19:59:30 -07:00
Shane Smiskol
43cac3cf24 PlatformConfig: clean up and print all flags (#32369)
* script to print flags

* don't need

* SAL

* back

* fix
old-commit-hash: f597d63bf6f2b8c8cf9a48934a059ef25ec69cd7
2024-05-07 15:00:02 -07:00
Adeeb Shihadeh
0020672bfa remove tools/zookeeper/
old-commit-hash: f93b1390983c3761a8dbf98d5d07949024ff2eef
2024-05-06 20:01:15 -07:00
Adeeb Shihadeh
124b4566db remove foxglove, rerun is the future
old-commit-hash: 1de64288965d457cd5827a4128103589831f72b4
2024-05-06 16:29:23 -07:00
Shane Smiskol
40fea75562 debug test_models script fixes (#32362)
* some things were renamed without checking

* fix that
old-commit-hash: e5107b1eabc3a04cb097f0f17d5cf587eb387453
2024-05-06 15:01:06 -07:00
Hoang Bui
29a1763d01 CI/Simulator: Add Metadrive test to CI (#32352)
* works consistently

* ci gha

* fix

* navd

* fix

* cleanup

* change button

* cleanup

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: aca01365e6715c1c5c18242e81e27c6feed151c6
2024-05-05 16:32:08 -07:00
Dean Lee
aa7d828769 cabana: fix the panda serial selector disappeared after buildConfigForm() (#32342)
old-commit-hash: 5f8b53be332bb1d5027605ea3fc69036855a41e9
2024-05-04 09:40:54 -07:00
Dean Lee
60387b191f replay: fix hang issue on system wake-up (#32341)
fix hang issue on system wake-up
old-commit-hash: c0a2ce31ee5c16545fbb3c9489f80abb9a2ae4a0
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: d72f000d98fc63f1ff7da44acedf95251c89faef
2024-05-03 02:42:29 -07:00
Adeeb Shihadeh
cec27f9db5 prep for ubuntu 24.04 (#32307)
* update to ubuntu 24.04

* latest

* revert those

* fix that

* vla

* try that

* fix uid

* keep 20.04 support

* just prep for now
old-commit-hash: a44add160e206aa87a2996372860846cc54ca29c
2024-04-28 16:24:04 -07:00
Dean Lee
65660350dd cabana: show enum string in chart tooltip (#32303)
old-commit-hash: 37877185f812321ecf3c8b5e787838d9b9204b75
2024-04-27 16:31:48 -07:00
Dean Lee
e7aab62050 cabana: increase cache limits (#32295)
old-commit-hash: 3efd0ff4fa504b699171ec967dce6bef9f78baa4
2024-04-25 10:35:49 -07:00
Mauricio Alvarez Leon
8c69ae5381 update pip/poetry versions (#32289)
old-commit-hash: bbbd510fcc37b507010c9499edbb3622574dcf4b
2024-04-24 19:47:22 -07:00
Dean Lee
e41bd18540 replay: shared decoder context (#32255)
share decoder context

cleanup includes
old-commit-hash: b13456f81fdd6b0e83ba79e71f1f67fe6d220af9
2024-04-24 19:44:18 -07:00
Dean Lee
f372bf3a1b cabana: some improvements (#32161)
some improvements
old-commit-hash: 2d1078ee5bcddc12122a06ffaefef31f9656ef65
2024-04-24 15:56:25 -07:00
Dean Lee
e756325451 cabana: improve DBCFile::parse() (#32160)
improve parse()
old-commit-hash: a6396be53e54aa81644a10c2936706d0f1a2d6e8
2024-04-24 15:55:58 -07:00
Dean Lee
9118013d9c cabana: refactor HistoryLog for simplification and enhancements (#32284)
old-commit-hash: 5e61775561b6f7cfee9867a8a2a14f73a7b3b78f
2024-04-23 09:53:50 -07:00
Dean Lee
df13fe2ead replay: optimize memory usage with MonotonicBuffer (#32278)
Optimize Memory Usage with MonotonicBuffe
old-commit-hash: bbd1648f0561b7b3270a2bc7b416841ac10fd9db
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: 618d73efd0bc282c2546776b47e7656af22efc69
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: bab8cdfdef025b242150fb855e210ffcadc83a30
2024-04-21 22:34:24 -07:00
Dean Lee
372bea14e2 replay: bug fixes and improvements (#32193)
old-commit-hash: 2c409e0980e6145d375eb73f2d21cd03b01a5354
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: a824bd75ef38d3e40341151dd8bf5fb1eac02f3c
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: 8124ba5f63ff8275424a2b7aafe09768c5ed26a2
2024-04-17 10:05:32 -07:00