Commit Graph

516 Commits

Author SHA1 Message Date
Dean Lee
908eb73e35 replay: add support for reading from plain logs (#25053)
* read from plain log

* reduce memory copies

* cleanup

* fix test_replay
old-commit-hash: 91eb096ac98b46605c283c637ed1e6b15598dc52
2022-07-15 10:53:10 -07:00
Adeeb Shihadeh
b73f02bf45 controlsd: handle radar missing + cleanup system error handling (#25179)
* controlsd: handle radar missing + cleanup system erorr handling

* fix carla

* update refs
old-commit-hash: 505bbce29d45c246be177d81e618f9289e78aa16
2022-07-14 19:55:18 -07:00
Willem Melching
994b31a585 fix MacOS buid: replay frameworks (#25061)
* replay: fix macos build

* here too

* keep original frameworks
old-commit-hash: 356190f6712b68218237147deddf90fbe6268b6e
2022-07-07 16:13:05 +02:00
Adeeb Shihadeh
fa29abe740 always show avg power
old-commit-hash: d4f4809992c5c73e36ec1041445e6a11b2c68448
2022-07-05 14:28:54 -07:00
Maxime Desroches
4a09ab86ac tools: add support for nv12 in compressed_vipc (#24962)
reshape for nv12
old-commit-hash: 2027d5311d419addfb67ad94d45a198592b2e459
2022-06-30 15:03:15 -07:00
Greg Hogan
7998c45a3f docs: ssh.comma.ai (#25000)
old-commit-hash: e643f8e6815eee04511dceecd23b434e5255f15b
2022-06-30 10:52:56 +02:00
Shane Smiskol
2c5e890a23 UI: wrap all text for translation (#24961)
* rough multiple language demo

* more wrappings

* stash

* add some bad translations

* updates

* map from french to spanish still has same problem of needing to call setText on everything

* add files

* restart UI

* use return code

* relative path

* more translations

* don't loop restart

* Toggle and prime translations

* try on device

* try QComboBox with readable style

* stash

* not yet scrollable

* stash

* dynamic translations (doesn't work for dynamic widget strings yet)

* clean up multiple option selector

* store languages in json

* try transparent

* Try transparent popup

* see how this looks

* tweaks

* clean up

* clean up

* clean up 2 and missing tr

* wrap more strings

* missing updater

* fixes

* add basic test to ensure all strings wrapped

* try in CI

* clean up

* test name

* fix test

* always install qt dev tools

* fix deps

* fast test

* add section so it prints multiple errors

* debug

* debug

get rid of those

* make any difference?

* comment

* oh...

* run with offscreen platform

* try out section

* clean up

* fix missing wrappings (it works!)

* move down

* space

* clear relevant params, set TICI=1
old-commit-hash: 879a7c3201a037c27c92ad6b92143114f52f29d3
2022-06-29 14:47:46 -07:00
Dean Lee
1175e76182 framereader.cc: remove nv12toyuv_buffer (#24991)
remove nv12toyuv_buffer
old-commit-hash: e0cd3bf5fc56229c2a0b835d0ef43a0bf683bfa5
2022-06-29 11:27:37 +02:00
Dean Lee
2156e71e7a move replay from selfdrive/ui/replay to tools/replay (#24971)
* mv to tools/replay

* change folder

* add .gitignore

* fix build doc

* disable warning

* enable warning after build

* build qt/util.cc qt/api.cc to library

* cleanup
old-commit-hash: fd5b3d76036b78864111790931a3abcb1d11ee0f
2022-06-28 16:12:42 +02:00
Shane Smiskol
aecb469f36 can replay: get logs in parallel (#24960)
* get can replay segs in parallel

* total not needed
old-commit-hash: 379dc24ecad7f1bdc9c11fbb2416cc2d68b3a297
2022-06-24 16:49:56 -07:00
ZwX1616
3e2828c9bb fix carla test fake driverState (#24959)
use driverstatev2
old-commit-hash: 6721f0ef57fd5bda5045e80edac815adcfdef380
2022-06-24 14:29:46 -07:00
Robbe Derks
39661f9291 use correct tty device for serial
old-commit-hash: 5cd8bef921c886e17ea6afc9fcdad44be72a998c
2022-06-24 12:37:30 +02:00
Adeeb Shihadeh
f06bb9d5f2 CANParser: invalid until valid (#24945)
* CANParser: invalid until valid

* bump opendbc

* bump opendbc

* fix counter in sim
old-commit-hash: 569a39ff768ff1704bbf478719253b365070c98f
2022-06-22 15:38:38 -07:00
Gijs Koning
5494622601 Improve laikad cpu usage. Less pos fix. Less local imports (#24887)
* Improve laikad cpu usage. Less pos fix. Not local imports

* Add laika to files_common

* Add laika to dockerfile sim

* Fix

* Fix

* undo
old-commit-hash: 1c4b145aa4d85b7107254be6618592781ff7323e
2022-06-20 14:24:11 +02:00
Adeeb Shihadeh
5fcc792527 sim: update cl kernel path
old-commit-hash: 1baf0e3f4a40084a43c6a6d4d1a43b99e4e90532
2022-06-19 15:49:38 -07:00
Adeeb Shihadeh
d9d83b0225 Move camerad to system/ (#24836)
* mv camerad

* add hardware symlink

* fix unit tests
old-commit-hash: 6123ab3d1c901ed3763e1a7cb8e1aac3f6b8fda3
2022-06-19 14:43:49 -07:00
Adeeb Shihadeh
2ca457fcab zookeeper: add avg power to power_monitor.py
old-commit-hash: a27d242e3d35cb76761b0cd14eb0d58e668cfbb9
2022-06-18 19:02:09 -07:00
Adeeb Shihadeh
b2808768f6 little zookeeper fixes (#24861)
* little zookeeper fixes

* bump that up
old-commit-hash: 6757e235f92b72741f2f4375548fde883ede324d
2022-06-14 20:38:25 -07:00
Adeeb Shihadeh
7061996882 ui.py: update for nv12
old-commit-hash: f05166ae26eb8165f35e8205b59c36e618d179b8
2022-06-13 13:58:22 -07:00
Adeeb Shihadeh
5425336963 misc jenkins fixups (#24840)
* bump cereal

* remove that

* pull cl image

* lil docker cleanup
old-commit-hash: 39da6912ea0b8db16d3f96f289f723452e540ab7
2022-06-12 18:00:00 -07:00
Jeroen
75a30612b0 Updated CARLA to v0.9.13 (#24575)
* Updated CARLA to v0.9.13

* pipenv lock

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 1c29b20e72141c2beae6e32cf87dabded3095fda
2022-06-12 09:32:18 -07:00
Adeeb Shihadeh
9a45a3b99b Move selfdrive/hardware/ to system/ (#24725)
* move hardware to system/

* fix mypy
old-commit-hash: 1139fe507b01f34de9714c99228f411558b44231
2022-06-11 16:38:24 -07:00
Maxime Desroches
9a003e9b29 simulator: run simulator test in ci (#24691)
* run simulator test in ci

* block navd process

* block ui

* fix jenkins

* build docker

* remove tty

* remove tty for carla

* detach carla_sim

* more retries

* only build once

* add more time for bridge

* cleanup

* use qt offscreen

* expose to docker

* block ui

* use new dockerimage

* fix

* from ubuntu20.04

* install curl

* add ssh

* add locales

* noninteractive

* syntax

* use base

* smaller image

* add git + git lfs

* kill carla

* run in parallel

* fix missing agents

* default agent?

* little cleanup

* default doesn't work

* not in ci

* fix path

* fix path

* new msg

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 5add0c6159db3810c17f0b27afd3dda882f95586
2022-06-11 15:32:12 -07:00
Shane Smiskol
e3253d87fa PlotJuggler: add torque control layout (#24726)
* add torque control PJ layout

* less custom transformation

* Use curvature, less noisy

* remove that
old-commit-hash: 6a58dd808f3e168fe72129b09ca5f829a4c146db
2022-06-07 15:01:19 -07:00
HaraldSchafer
7c4645f227 Fix onnx model replay (#24702)
* No more C2

* Add test

* Various fixups

* Use ONNXCPU

* rm prints

* LFS pull

* Use sim docker

* Try sim docker again

* Print counter

* Make sure it can fail

* Fails correctly

* comments

* Add more install to opencl base docker

* vim not needed in base
old-commit-hash: a2c6b30c982cc4b5ebea890ab7cdd937dea9b4fa
2022-06-03 10:43:09 -07:00
HaraldSchafer
cf0564382a CL in docker (#24718)
* Move CL to base docker

* Different docker for cl

* add cl base docker

* add to tool

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dc4d4f875b173b92847149918af7f1c63d78701f
2022-06-02 18:26:12 -07:00
Adeeb Shihadeh
3dd10e51e1 Create system/ for generic services (#24717)
* Create system/ for generic services

* logcatd joins the party

* fix those up
old-commit-hash: afd16b2ade7723d87a15fa6c5f5de59734897f51
2022-06-02 17:02:25 -07:00
HaraldSchafer
edb35600b7 Update README.md
old-commit-hash: c2b334acb5fb0703eebf7dd3afb3faaf0fe91de9
2022-06-02 16:45:11 -07:00
Lukas Petersson
a16a20005b process replay: logreader as bytes (#24610)
* willem's changes

* classmethod for bytes

* submodules

* submodules

* Update tools/lib/logreader.py

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

* add back files

* little cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 86f73a507e2dba56bc8c3a1e753818147fb0eb0f
2022-06-01 22:02:42 -07:00
George Hotz
2a6ffaf71d nv12: encoderd avoids a full frame copy (#24519)
* rgb to nv12

* nv12 works (w memcpy)

* correct now

* no copy

* fix nv12 with fast debayer

* reverts of unused stuff

* ui use nv12

* comment out thumbnails for now

* rebase fix

* dm read nv12

* model read nv12

* fix ffmpeg encoder

* thumbnails from nv12

* replay to nv12

* python framereader support nv12

* remove hardcoded frame/buffer sizes

* fix build

* ffmpeg encoder fix buffers

* small cleanup

* reduce power usage test

* fix cpu usage test

* fix snapshot

* fix loggerd test

* bump cereal

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Joost Wooning <jwooning@gmail.com>
old-commit-hash: ea5b8cdfb10686c972d8d2bc1778e6e6567e45a9
2022-06-01 17:18:28 +02:00
Gijs Koning
6a53db981b Simulator: Speed up process by removing second camera (#24679)
* simulator: support running wide camera only

* proper frame id

* use param name that makes more sense

* do some cleanup

* Update tools/sim/bridge.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: b5aed2bf6781cd4d74d28f6f44d24737ec08f0db
2022-05-30 15:25:07 +02:00
Willem Melching
e45155f592 sim no encoderd, move to BLOCK env variable
old-commit-hash: 85b07bf3e878d3e430b5a857b86065588fc2d1fb
2022-05-30 11:49:15 +02:00
Lukas Petersson
e7801f3b3b latency logger: add offset to visualize overlap (#24644)
* plot design

* readme

* y label

* readme img

* bigger gaps

* readme figs

* denser lines

* denser lines

* offset flag

* readme

* cleanup

* Update tools/latencylogger/latency_logger.py

* Update tools/latencylogger/latency_logger.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: cc4107fd1f3bef5b766b8d8d671e0a9cfc951833
2022-05-26 13:41:08 -07:00
Adeeb Shihadeh
3e8625e50b visionipc python shim (#24660)
old-commit-hash: 32a9ccfc37d97e6692435153ac9f0fe72feb1e9f
2022-05-25 20:49:56 -07:00
Willem Melching
7d5546452c ui.py: use YUV stream
old-commit-hash: 2bdb2cb40af1bd159e165f9f475a2dc79f9d3c42
2022-05-25 17:37:21 +02:00
Adeeb Shihadeh
e5f94df332 latency logger: improve plot style
old-commit-hash: 3d74b5429da5c0b2c4c61ee0e32222512274a8df
2022-05-23 20:57:14 -07:00
Adeeb Shihadeh
00f7f96308 little tools fix ups (#24629)
old-commit-hash: b8a32bbc461fea1f15ef7db8021f1aa8f85f7df7
2022-05-23 16:10:36 -07:00
Lukas Petersson
0bb766ea3a Latency logger: binary search for frame ID (#24586)
binary search for frame id
old-commit-hash: 8fbcc49ee3a4d87823c02c1240c4b90e0e82403f
2022-05-23 13:02:23 -07:00
Lukas Petersson
c74b2edc8d latency logger: update demo route (#24608)
* handle no segment

* dont handle no route
old-commit-hash: 522b67f16df9947fb9f4704a55806bac80a1f3d3
2022-05-23 12:48:11 -07:00
George Hotz
eea872ae98 compressed_vipc: use correct system timestamps
old-commit-hash: e4b7791044003663d354c1734d1744dbe69f36e6
2022-05-18 13:18:00 -07:00
George Hotz
d811962f7a add to compressed_vipc
old-commit-hash: bb5a05084063ddf5ab2a353c1ca48c3cc8566d74
2022-05-18 12:58:12 -07:00
Willem Melching
f957c16a7b make normal logreader more robust (#24577)
old-commit-hash: 194e5fdf1c9ba2e01e2ec7faa62432d2a3b1870b
2022-05-18 12:21:01 +02:00
ntegan1
0a3fde5334 Tools: allow using plotjuggler on local data (#24473)
local juggler
old-commit-hash: 07f7570840320aeb16803e9c93f1d8e648568dba
2022-05-17 19:50:23 +02:00
George Hotz
46d11a2583 compressed_vipc: print frame latency
old-commit-hash: fe867df102a393a7a73de07b61d434cec19b3a3c
2022-05-16 20:40:11 -07:00
George Hotz
126014765f compressed_vipc: set NV_LOW_LATENCY flag
old-commit-hash: 2a978e36ac0159fa78861e9075f2685fca5b63fe
2022-05-16 15:58:31 -07:00
Adeeb Shihadeh
39de4d80b4 move models to selfdrive/modeld/ (#24539)
* move models to selfdrive/modeld/

* two more refs
old-commit-hash: 319f3d1475f2f212b63f32dbace476f63b3caf14
2022-05-15 17:29:09 -07:00
Adeeb Shihadeh
29a516bed8 replay: cleanup unused RGB buffers (#24537)
* replay: cleanup unused RGB buffers

* update replay cam

* little more
old-commit-hash: ab75c53792718d32e51d34336be3fae568051d2b
2022-05-14 19:55:12 -07:00
Ross Fisher
bc986e10ff Fix gcc-arm-embedded for m1 mac (#24515)
* Fix gcc-arm-embedded for m1 mac

* put in /tmp

* update comment

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 01a237ef02cf989a3e2dc8a529d5a0338a09e123
2022-05-13 11:12:59 +02:00
Jason Young
a5b2304b06 Improved steering accuracy measurement script (#23583)
* move steering accuracy measurement script

* git rebase is utterly worthless

* fix header width
old-commit-hash: c007c7e68131ed7dc4220700fa1e889e526954f7
2022-05-12 15:09:37 +02:00
Dylan Herman
2dfba97175 add mypy check for return-any (#24379)
* add mypy check for return-any

* remove unused import

* typing

* remove unnecessary variable typing

* cleanup

* cleanup

* bump submodules

* small fixes

* only a problem on mac

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: d2eef1955c777ef6110c7a74d2a9ca9e4e1d958c
2022-05-12 14:59:00 +02:00