Commit Graph

124 Commits

Author SHA1 Message Date
Dean Lee bbdad5d115 Replay: fixed the freq of video and events are unstable after changing the replay speed (#26559)
fix freq is unstable after changing the replay speed
old-commit-hash: 2b4b0cc67f59c896caf32fd937ad6ebf0f7ae640
2022-11-21 10:47:58 -08:00
Dean Lee 5b093b2da3 replay: reduce test running time (#26160)
old-commit-hash: 062267f4696c304b6ed0824a3b1046fecdd07e04
2022-10-23 13:57:32 -07:00
Adeeb Shihadeh e293303d40 Revert "tools/replay: reduce test running time (#26110)"
This reverts commit 0dee43ab9bb8317441e69dca04d9d7d4f65f0fc9.

old-commit-hash: 755a6c0a46f07cdadb06821ced904af458fbf4e3
2022-10-17 19:15:21 -07:00
Dean Lee b44b9b989e tools/replay: reduce test running time (#26110)
old-commit-hash: 6d07268ee5b385010961eab206b0b42a0ae6b5f8
2022-10-17 10:39:07 -07:00
Dean Lee edb488ff41 cabana: increase replay's segment cache limit & add setting dialog (#26019)
* increase replay's segment cache limit

* todo

* add settings dialog

blank line

typo
old-commit-hash: b31932382d574b4db3c2b9b280d5410823adad1c
2022-10-12 19:31:26 -07:00
Cameron Clough e0a63d7041 build extras together (#26051)
* build extras together

* don't check here either
old-commit-hash: 8b5ebbddf684bc7566ae41447face9f2ab053d40
2022-10-12 15:14:02 -07:00
Dean Lee 62adf87f40 Cabana: stable initial release (#26004)
* increase form size & fix wrong charts number

* set max axisy to 1.0 if no value

* show 'close' button in floating window

* alwasy show scroll bar

* complete the logs

* more

* increase size to 50

* keep logs for all messages

* more

* rename signal

* better height

* avoid flicker

* dont call setupdatesenabled

* filter dbc files bye typing

* remove all charts if dbc file changed

* fix wrong idx

* bolder dbc filename

* update chart if signal has been edited

* new signals signalAdded,signalUpdated

* split class Parser into CanMessages and DBCManager

* cleanup

* updateState after set message

* cleanup

* emit msgUpdated

* clear history log if selected range changed

* always update time

* change title layout

* show selected range

hide title bar if no charts

less space between title and chart

* custome historylogmodel for extreme fast update

* move historylog to seperate file

* 2 decimal

* cleanup

cleanup

* left click on the chart to set start time

* todo

* show tooltip for header item&cleanup binaryview

add hline to signal form

* better paint

* cleanup signals/slots

* better range if min==max

* set historylog's minheight to 300

* 3x faster,sortable message list.

* zero copy in queued connection

* proxymodel

* clear log if loop to the begin

* simplify history log

* remove icon

* remove assets

* hide linemarker on initialization

* rubber width may less than 0

* dont zoom char if selected range is too small

* cleanup messageslist

* don't zoom chart if selected range less than 500ms

* typo

* check boundary

* check msg_id

* capital first letter

* move history log out of scrollarea

* Show only one form at a time

* auto scroll to header

d

* reduce msg size
entire row clickable

rename filter_msgs
old-commit-hash: 0fa1588f6c0bf9c9f1bebde91e02699506389ecd
2022-10-12 13:55:17 -07:00
Dean Lee 2d9dacacfe cabana: improve time control (#25985)
* group signals/slots together

* slider:fix wrong minimum

* add TODO

* moveing to mouse click position

* show tickmark

* fix seek back to the old pos after sliderReleased

* reduce data copied in queued connection

* drop packets while seeking

* install event filter in streaming

* stop replay in dctor
old-commit-hash: 750b96aaedb88defd522a60a4bb5fbfeb46332db
2022-10-06 15:02:22 -07:00
Dean Lee f93f4e9f9b canbana: complete basic functions (#25965)
* add chart header

* get all signal val from logs

* loop in selected range

* clear list before append

* automatically zoom on yaxis

* cleanup

* sync charts

* fix event_begin_sec

* set the color of rubber

* add TODO

* sync slider with charts

* keep video aspect ratio

* sync plot buttons

* reduce flickers

* cleanup

* refactor detail view

* clear counters

* more

use qcamera
old-commit-hash: a6ba073231761e06ac6f070a01b434243d9d0693
2022-10-05 21:17:22 -07:00
Dean Lee 292d55cf8a c++ cabana: Initial version (#25946)
* draft

* continue

* fix QChart unresponsive with large points

* build with --extras

* add filter

* save DBC button

* more buttons

* add flag to use qcamera

* stop replay in dctor

* README

* use getMsg

* video control

* edit signal

* add colors

* correct ts

* add/edit signals

* use bus:address as key
old-commit-hash: 1b8324af876e66630b5f4e50623e3136a39f6ecb
2022-10-03 15:19:42 -07:00
Shane Smiskol 867193b686 replay: set CarParamsPersistent
old-commit-hash: 26517a0ef920eb7dc89663ee599c1f1d06166c88
2022-09-26 23:50:49 -07:00
Dean Lee ec96bc52d6 replay: add shortcuts for seeking to the next info, warning, and critical alerts (#25576)
old-commit-hash: 75c434bde708b15f392cea68f897a1450d4d8b78
2022-09-05 14:11:32 -07:00
Adeeb Shihadeh 35ff65121e pre-commit: add codespell (#25571)
old-commit-hash: 6590fb2b93baedb2e1c5267b4f191f8e20fcd1d2
2022-08-30 11:20:55 -07:00
Dean Lee efeb964728 replay/camera: set frame id before send (#25591)
old-commit-hash: 8f3b259f7ce85f0c72a913cdaea53d48b1112e92
2022-08-29 11:56:18 -07:00
Dean Lee 66b0c1c591 replay: add missing format specifier (#25590)
old-commit-hash: cd32f64d0111dc8a304e378207c5666ebab6a025
2022-08-29 11:53:11 -07:00
Dean Lee 06556bd76a replay/CameraServer: yuv_buf should not be null (#25545)
old-commit-hash: f95519cb440ab25e24f14c12d37da535646d8419
2022-08-24 11:03:54 -07:00
Cameron Clough 07084dcbaf user event flagging (#25517)
* setup home_btn in sidebar

* create UserFlag msg

* replay: show and skip to user flags

* update translations

* bump to cereal master

* remove comment

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: b3cfe962cf346e70cce1389fe3c9bf23344a5512
2022-08-22 21:47:09 -07:00
Nelson Chen c824ca1076 Update replay README.md to be more clear that auth.py is in tools/lib (#25366)
and a little minor format fix
old-commit-hash: 4fb318c5be93c2f26e2ad4149b053a6ee830ecc5
2022-08-04 15:06:36 -07:00
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
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
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
Adeeb Shihadeh 7061996882 ui.py: update for nv12
old-commit-hash: f05166ae26eb8165f35e8205b59c36e618d179b8
2022-06-13 13:58:22 -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
grekiki 7cd23af9b1 Mypy fixes for --check-untyped-defs (#24372)
more type fixes
old-commit-hash: 17e33978cdd9322918e9d5d388f7fa47aa30e9b7
2022-05-12 14:08:11 +02:00
Ross Fisher a36e28f2a9 tools: add link to jungle repo (#24477)
old-commit-hash: 32e4dc3869bd83f1a978d4a6dfab0238285f31a6
2022-05-09 14:24:09 -07:00
Shane Smiskol 66454c000e Fix can replay Jungle warning (#24364)
old-commit-hash: 2fa5a59e3faf30c2d4bb45056f20ec2408dcb3f4
2022-04-28 17:43:26 -07:00
Daniel 2201cf91a6 Update can_replay.py (#24346)
Fixed typo from PandaJugnle to PandaJungle
old-commit-hash: c60ce2a770e32a228f5dc234df7a37d2c77c37d1
2022-04-27 21:43:36 -07:00
Adeeb Shihadeh 2130eae8b1 fix panda_jungle static analysis
old-commit-hash: bfeaf35d6dd2c29c65b80a70ccafd9948056731a
2022-04-27 15:45:00 -07:00
grekiki 77d6d9a083 mypy: enable --warn-unused-ignores (#24287)
* this is the easy part to check

* Not sure what this fixes, https://github.com/commaai/openpilot/pull/24282/commits/8aaf00c6a41ac4c9c5e56f8a2dfed8591f153b67

* bump laika

* works here

* cleanup

* add types-certifi

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 049b163ea0494a21956d89d4cb2a527dcbd62c0c
2022-04-27 14:26:15 -07:00
grekiki cc943ac9a5 mypy: enable --warn-unreachable (#24282)
* Optional solves mypy assuming None is always None

* oops

* spaces

* Update registration.py

* fix local error

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: b8b15d5cf1d2507c89bbe0e3b1de1ff043d9078e
2022-04-21 18:27:45 +02:00
Gijs Koning cedd8abc05 Rename RGB vision streams to match YUV streams (#23961)
* Renaming VISION_STREAM_RGB_.. to match yuv names like VISION_STREAM_ROAD
VISION_STREAM_RGB_BACK -> VISION_STREAM_RGB_ROAD
VISION_STREAM_RGB_FRONT -> VISION_STREAM_RGB_DRIVER

* little more

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 57b6fdc17a1f84ec922647c044da5df3cafc0ddc
2022-03-14 14:03:54 -07:00
Adeeb Shihadeh ec47e0fef0 break up selfdrive.config (#23959)
* break up selfdrive.config

* add to release files

* fix import order
old-commit-hash: 5c3f3e44bc7b25c9ce502419bcd0261c12ec2b0d
2022-03-13 21:42:39 -07:00
Willem Melching cc65efe7b0 ui.py: fix model lead plotting
old-commit-hash: efc9084409f61afb8da753353f25d336f51c2163
2022-02-21 11:56:20 +01:00
Ewout ter Hoeven a962365292 Convert format strings strings to f-strings (#23241)
* Convert all text strings to f-strings

Reformats all the text from the old "%-formatted" and .format(...) format to the newer f-string format, as defined in PEP 498. This requires Python 3.6+.

Flynt 0.69 was used to reformat the strings. 120 f-strings were created in 51 files.

F-strings are in general more readable, concise and performant. See also: https://www.python.org/dev/peps/pep-0498/#rationale

* revert pyextra changes

* revert ublox.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 55390d273f36f49da3896e687ac5530f40c1d150
2021-12-16 14:58:17 +01:00
Adeeb Shihadeh 5aebf5466a can_replay: warning & clone cmd if jungle lib is missing
old-commit-hash: b8393f7271c3b1845e7ad49e35db8688c01770cc
2021-11-23 23:33:26 -08:00
Dean Lee 15ed1a50a3 replay: fixed the alignment issue when replaying from C3 qcamera (#22734)
* fix qcamera replay

* fix alignment in replay

* upscale yuv if needed

* remove space
old-commit-hash: 41e5e76596eed1b6391cb5770df2c628c3125023
2021-11-01 11:06:00 +01:00
Willem Melching 67f41f32f1 Sphinx docs generation (#22697)
* add sphinx

* switch theme

* Experiment: sphinx docs generation updated (#22708)

* moved build to root gitignore, added .gitkeep

* Improved makefile doc build process

- Removed auto-generated docs from source control
- Moved apidoc.sh into Makefile
- Removed make.bat (can add back if Windows support desired)
- Added sphinx viewcode and markdown extensions
- Added feature to source /docs in build, so any .rst file in /docs will
  override the respective file during the build process
- Added feature to copy all markdown/rst files from source into /build/
  during build process so they can be easily referenced while writing
  docs (see examples in index.md)
- Wrote basic starter index.md file

TODO: Add new dependencies to Pipfile [dev-packages]

* Revert accidental modification to Pipfile

* fix command substitution

* exclude xx

* improve docs

* dont include all docs in release build

* Add dockerfile

* update title

* include normal readme

* build container in CI

* use buildkit

* add login

Co-authored-by: Chad Bailey <chadbailey904@gmail.com>
old-commit-hash: b816b5b6442c21e63a09108c70986eeedb0372b2
2021-10-28 15:14:37 +02:00
Willem Melching 116ae68bdb do not run on import
old-commit-hash: 59accdd814398b884167c0f41dbf46dcccf0c29c
2021-10-26 14:49:51 +02:00
Adeeb Shihadeh 39099120a5 can_replay: use segments without an FCW
old-commit-hash: 7b5d915a6827be907c4abfc40afe5c287201674e
2021-10-16 15:00:07 -07:00
Dean Lee 09a378d1eb tools/ui.py: support playing qcamera (#22571)
old-commit-hash: f564eca51d72c00ba379fc7d891982bef4c92791
2021-10-16 11:32:24 -07:00
Adeeb Shihadeh 61e3458852 update replay readme
old-commit-hash: cbac96f50cbd959841e8fb24e33d95bd11a89b91
2021-10-12 21:19:36 -07:00
Adeeb Shihadeh 86d84599dd remove old tools camera script
old-commit-hash: 0d10c000260262c11c58452d41be845b96134d40
2021-10-10 16:07:11 -07:00
Greg Hogan ce1c24a0df replay: do not clear ui image when paused (#22467)
* replay: do not clear ui image when paused

* also stop plots

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 720e82eeef7be15d234ac2ea1fe42e43063ec5f8
2021-10-07 11:18:45 +02:00
Willem Melching af467b7b6d ui.py: small plotting cleanup (#22441)
old-commit-hash: 1cfabc3388443a5480310930e12331d508c92bdd
2021-10-05 16:27:29 +02:00
Dean Lee 1240e4a673 replay/ui.py: get image from vipc (#22433)
* get image from vipc

* cleanup import

* if not None

* lgtm

* bump cereal&do reconnect

* bump cereal

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 2a8feb9eb91dad1c17d907543a33367aae109093
2021-10-05 15:14:38 +02:00
Willem Melching d0d63b7fb9 replace unlogger.py with c++ replay (#22430)
old-commit-hash: e233d59e03683b829884a0fea8ec119c9c5a8378
2021-10-04 21:07:40 +02:00
Adeeb Shihadeh 4852437483 update demo route (#22381)
old-commit-hash: dd67dc6b34e4b70af6f7ef13b2a701aad2512174
2021-09-29 18:51:30 -07:00