Dean Lee
3c765a1f45
replay: eliminate qt dependency ( #34102 )
...
refactor to remove qt dependency and module Replay classes
6 months ago
Dean Lee
f5dc1d08c9
replay: replace HttpRequest with libcurl for accessing comma API ( #33851 )
...
Replay: Replace HttpRequest with libcurl for accessing comma api
7 months ago
Dean Lee
24a32c3dec
replay: remove Qt dependency from Segment and Timeline ( #33847 )
...
remove Segment, Timeline dependency on Qt
7 months ago
Dean Lee
30853a2c41
replay: replace Qt data types with standard C++ data types ( #33823 )
...
replace Qt data types with c++ data types
7 months ago
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
11 months ago
Dean Lee
df13fe2ead
replay: optimize memory usage with `MonotonicBuffer` ( #32278 )
...
Optimize Memory Usage with MonotonicBuffe
old-commit-hash: bbd1648f05
1 year ago
Dean Lee
05d0243ff5
replay/route: adds retry on network failures ( #31948 )
...
old-commit-hash: b8f5f50d39
1 year ago
Dean Lee
ad70ec8e45
replay/cabana : support segment range ( #32026 )
...
* support segment range
* include <QRegularExpression>
old-commit-hash: 0a2a3dfab7
1 year ago
Dean Lee
543ea2bf57
replay: simplify the code for allow/block list ( #30449 )
...
simplify allow/block list
old-commit-hash: da95fd3019
2 years ago
Dean Lee
97e9d55588
cpplint: `build/include_what_you_use` ( #29556 )
...
* include_what_you_use
* remove comments
* include <memory>
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 2d99521e75
2 years ago
Dean Lee
eb3429c5fb
replay: show absolute time ( #26869 )
...
old-commit-hash: 2c7df6efc8
2 years ago
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: a6ba073231
3 years ago
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: fd5b3d7603
3 years ago
Dean Lee
1dae4aef54
replay: fix wrong logging for local route ( #23652 )
...
old-commit-hash: fa3a787e9a
3 years ago
Dean Lee
0c26c21c9c
framereader: support hardware decoding ( #22906 )
...
* support hardware accelerated video decoding
* support cuda only
* print decode info
* add yuv flag back
* fix height
* default is cuda
* fallback to CPU decoding
fix memory leak&cleanup
add output
old-commit-hash: 20d3cf1fcb
4 years ago
Dean Lee
1e67fc25f1
replay: add qcam and YUV flags ( #22788 )
...
* common flags
* cleanup
* remove double semicolon
* camera
* apply reviews
old-commit-hash: fb8ba34f31
4 years ago
Dean Lee
5f454307fc
replay: fix qcam download error ( #22777 )
...
* fix qcam download error
* test loading qlog/qcamera
old-commit-hash: 79651b6c49
4 years ago
Dean Lee
a031b938b0
replay: improve segment download and merge ( #22654 )
...
* no-cache mode
* fix test cases build error
* space
* don't create cache dir in no-cache mode
* fix errors in test cases
* no_local_cache_
* set the number of connections by chunk_size
* use size_t instead of int64_t
* add test case for no-cache mode
* rename variables
* fix SIGSEGV
* cleanup
* faster decompressBZ2
* always decompress bz2
* add test cases
* prepare for python interface
* fix test cases build error
* continue
* camera_replay: cache remote file
* protected inheritance
* single option name
* TODO
* test_case for LogReader&FrameReader
* fix wrong require
* test case for FileReader
* cleanup test
* test:fix wrong filename
* check cached file's checksum
* fix mkdir permissions err
cleanup filereader
* remove initialize libav network libraries.
dd
* abort all loading if one failed
* cleanup tests
* use threadpool to limit concurrent downloads
* cache more segments
* merge 3 segments for replay
* one segment uses about 100M of memory
* use segments_need_merge.size()
* shutdown
* fix stuck if exit replay before keyboard thread started
* load one segment at a time
* small cleanup
* cleanup filereader
* space
* tiny cleanup
* merge master
* cleanup test cases
* use util:create_directories
* cleanup framereader
old-commit-hash: 2b4a477fbc
4 years ago
Dean Lee
ea6ee497e5
replay: parse route string, replay from the specified segment ( #22503 )
...
* parse segment name
* return 0
* update regexp
* with |
* dd
* use struct
* move to class Route
* refactor loadFromLoacal
* simplify loadFromJson
* cleanup load from server
* const ref
old-commit-hash: 107ed35d1e
4 years ago
Dean Lee
e7aa4f16e5
replay: improve segment downloading ( #22504 )
...
* improve segment downloading
dd
* continue
* log retrying
* check aborting_ in loop
* std::endl
* log download information
* cleanup
* continue
* dd
* move download to seperate funciton
* simplify logging
* continue
* guard ts
* cleanup
* typo
old-commit-hash: 8d1d0c2cd7
4 years ago
Dean Lee
c39afc1b7a
replay: fix hanging on shutdown while downloading ( #22592 )
...
old-commit-hash: c73d9ddaa6
4 years ago
Dean Lee
f5335bd42d
replay: refactor Route and Segment ( #22531 )
...
* new functions
* fix wrong call to qUrl::isLocalFile
* cleanup
* keep extension in cached files
* cleanup
* simplify segment
* delete thread
* add output
* pre-decompress
* remove suffix
* revert remove suffix
* 1 connection for log file
* cleanup
* segment may not be continuous,use map
* don't emit finish if aborting_
* use QFuture and thread pool
* cleanup
* fix segfault in LoadFromLocal
* cleanup
* handle segment failed to load
* output info
* continue error handling
* Remove redundant testSeekTo
* cleanup
* always return true
* keep time is ok now
change to 1s
write 1 byte at the end of the sparse file
* log loading segment
* merge #22476
* Update selfdrive/ui/replay/logreader.cc
* correct connect
* pub message in function
* typo
* Update selfdrive/ui/replay/replay.cc
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: acc52ece20
4 years ago
Dean Lee
06a1dd7598
c++ replay: support local routes ( #22288 )
...
* support local route
* kind of works
* works
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 43a846843f
4 years ago
Dean Lee
0f49ecbff7
replay: simplify seek&merge ( #22463 )
...
* simplify seek&merge
* update test cases
update test cases
* cleanup test cases
* new function currentSeconds
* add TODO
* thread safe publishFrame
* cleanup
* fix 'at x S' not printed if seek back to old time
* exit replay if failed to load route
* move out setCurrentSegment from if statement
* cleanup
* use std::find
* const variables
old-commit-hash: 5527736df6
4 years ago
Dean Lee
66ca3985c9
replay : move utility functions into separate file ( #22414 )
...
* move functions into util
* read bz2 into stream
* pre-decompress log in the download thread
* cleanup logreader
* cache sha256 path
* use readBZ2file in test_logger
* Revert "cache sha256 path"
This reverts commit 60459d3ea09a2c80f4560cf95b1ce7d6af59f06d.
* use macro
* use ostringstream
* cleanup readBZ2File
* move precise_nano_sleep into util
old-commit-hash: d28b98c602
4 years ago
Dean Lee
430e9808b3
c++ replay: more robust seek ( #22375 )
...
* skip invalid segment
* test seek
* fix wrong cur_mono_time when route_start_ts is 0
* don't notify stream thread if current segment not merged
* continue merge next segment if current is invalid
* cleanup seekTo
* continue
* fix seek cross-boundary
* new demo route has 11 segments
* continue
* fix cross-boundary
* cleanup & better test cases
cleanup
remoe &
typo
update comment
* update test
* reserve space for new_events
* parallel sorting
* usleep(0)
* Revert "parallel sorting"
This reverts commit d7d1b42f49944aef0b6ca2962e45a7f5318a1152.
old-commit-hash: fa8ddd992d
4 years ago
Dean Lee
0a1fa4fa7b
replay/segment: std::atomic member variables ( #22409 )
...
old-commit-hash: a6da064a93
4 years ago
grekiki
2ea151be3c
C++ replay cache folder path / fix ( #22396 )
...
old-commit-hash: 4c7acf680c
4 years ago
Willem Melching
a3378ce0f7
replay: fall back to qlog ( #22362 )
...
old-commit-hash: b7c64542f4
4 years ago
Dean Lee
9fae8b50f3
c++ replay: chunking and concurrent downloads ( #22308 )
...
* download segment files by chunks in multiple threads
* remove easy_handl on aborting
* add test cases
* better error handling
* update test
* cleanup
* add CURLGlobalInitializer
* check http code
* finish
old-commit-hash: 4e6ff308a8
4 years ago
Dean Lee
bac9a01cb2
load d/e camera by command line flags ( #22341 )
...
old-commit-hash: e888a7e939
4 years ago
Dean Lee
f235e39bda
rename filereader.cc[h] to logreader.cc[h] ( #22279 )
...
old-commit-hash: dff6dbfbe9
4 years ago
Dean Lee
5be69694ba
replay improvements ( #22203 )
...
* refactor replay
* cleanup
small cleanup
* merge 22239
* cleanup
* add optional argument for start time
* small cleaup
old-commit-hash: 50ae7dd6a9
4 years ago