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