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
Adeeb Shihadeh
4852437483
update demo route ( #22381 )
...
old-commit-hash: dd67dc6b34
4 years ago
Willem Melching
a3378ce0f7
replay: fall back to qlog ( #22362 )
...
old-commit-hash: b7c64542f4
4 years ago
Willem Melching
04e5fdb931
replay: send frames based on encodeIdx packet ( #22361 )
...
* send frames based on encodeIdx
* use start of frame time if set
* also use end of frame if set
* fix timestamp for encode packets
* handle all cameras
* add comment
* add twice
old-commit-hash: 6881688af2
4 years ago
Dean Lee
e5d79759ff
c++ replay: more accurate sleep ( #22348 )
...
* precise sleep
* cleanup
* continue
old-commit-hash: 318a8ba854
4 years ago
Dean Lee
48e07756a2
c++ replay: improve seeking&updating events ( #22319 )
...
* improve seeking
* qDebug
* cleanup
* wait on cv
robust
* Trailing underscores for member variables
* group log variables
* small cleanup,remove unnecess std::atomic
* remove debug output
* fix seek problem
* add comment
* better lambda
* faster seek.don't block stream thread if segment already loaded
* remove assert
old-commit-hash: a548d4b5b8
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
e2332a0275
replay: pause/resume using spacebar ( #22278 )
...
* pause/resume using spacebar
* Update selfdrive/ui/replay/replay.cc
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: ec67d2b8f5
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
Dean Lee
e44eabb2f8
replay: don't splits empty strings ( #22271 )
...
old-commit-hash: 8eb92a98ba
4 years ago
Dean Lee
969f992d59
replay: remove array subscript ( #22268 )
...
old-commit-hash: cb49ceabf0
4 years ago
Adeeb Shihadeh
cfed62dd36
replay: add nice arg parser ( #22264 )
...
* replay: add nice arg parser
* demo
* cleanup
old-commit-hash: f49e7629ee
4 years ago
Dean Lee
303cb411b4
replay: thread-safe seek ( #22228 )
...
old-commit-hash: f5aa3a30c9
4 years ago
George Hotz
0fe0095d9f
demo route note in replay
...
old-commit-hash: 8d554abbf7
4 years ago
Dean Lee
1e1c4fcd83
fix Replay::mergeEvents: use std::end() ( #22215 )
...
old-commit-hash: a89bdb6a05
4 years ago
Dean Lee
1fd8466af0
replay: unlock mutex before sleep ( #22213 )
...
old-commit-hash: 365e8bfd93
4 years ago
Dean Lee
b8c56b5b75
replay: fix bugs in merging events ( #22205 )
...
old-commit-hash: eb4a28af11
4 years ago
Dean Lee
7100381a02
replay: thread safe merge & free logs ( #22196 )
...
old-commit-hash: a1a0201069
4 years ago
Dean Lee
0d226299e7
test_replay.cc: temporarily comment out the rand seek test ( #22192 )
...
* Temporarily comment out the rand seek test
* enable ci
* trigger ci
* trigger ci
* trigger ci
* trigger ci
* trigger ci
old-commit-hash: f3683dd4cb
4 years ago
Dean Lee
1d5ca75029
FrameReader: do not depend on Qtunit tests ( #21379 )
...
* add timeout and test case
* remove useless comment
* reduce to 1s
* fix gotframe fail when Duplicate POC in a sequence
* cleanup
* remove space
* fix
old-commit-hash: 81a128cd76
4 years ago
Dean Lee
ecf3ee7603
loggerd: create encoder threads from cameras_logged ( #21875 )
...
old-commit-hash: d9baaf7eb9
4 years ago
ambientocclusion
488f3b2624
Fixed build issues on macOS ( #22075 )
...
* Fixed deprecated enum value
* Changed to build Qt replay on macOS
old-commit-hash: ed271911c2
4 years ago
Dean Lee
ceb40d8384
api: use API_HOST env variable everywhere ( #21814 )
...
* api base url to global constant
* update api/__init__.py
old-commit-hash: 543e019f71
4 years ago
Dean Lee
9d12eb4d3a
HttpRequest: don't send request in ctor ( #21665 )
...
old-commit-hash: c24227c3ab
4 years ago
Dean Lee
701ee27c91
HttpRequest: move http cache to RequestRepeater ( #21228 )
...
* move cache from HttpRequest to RequestRepeater
* apply review
old-commit-hash: 9ebfc2ba8d
4 years ago
Adeeb Shihadeh
2d047aae7e
nicer replay prints
...
old-commit-hash: 060b5caf1b
4 years ago
Dean Lee
d852c98d52
Refactor C++ LogReader ( #21152 )
...
* refactor logreader
* fix include order
* apply review
* remove typedefs
* remove include timing.h
* no parent
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 8c202d1bb4
4 years ago
Maxime Desroches
426df0435b
Convert C++ while loops from int to bool ( #21214 )
...
old-commit-hash: 03df1b08bb
4 years ago
Dean Lee
f70a79b838
Use C++ header files instead of C header files. ( #21192 )
...
* use cstring instead of string.h
* use cstdio instead of stdio.h
* remove inttypes.h
* use cstdlib instead of stdlib.h
* use cstdint instead of stdint.h
* #include <cstddef>
* cstdlib
* use cmath
* remove stddef.h
* use cassert
* use csignal
* use ctime
* use cerror
* rebase master
old-commit-hash: c53cb5d570
4 years ago
Dean Lee
afd0b1ee64
FrameReader: use 'from' in std::min comparison ( #21195 )
...
old-commit-hash: 211212f86b
4 years ago
Dean Lee
7fb038fcf8
refactor FrameReader ( #21141 )
...
* refactor FrameReader
* continue
* move that
* small cleanup
* little more
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 67fe3feb09
4 years ago
Dean Lee
a436b51e84
move c++ framereader to selfdrive/ui/replay ( #21053 )
...
old-commit-hash: bb5bcc7e49
4 years ago
Dean Lee
7b253433f2
Refactor FrameReader ( #21002 )
...
* Refactor FrameReader
* decodeThread
* delete frame
* remove joined
* continue
* less diff
* robust cv wait
* cache fist 15 frames
* notify_all
* rename variables
* need call avformat_find_stream_info before dump_format
* get width&height from codec
* use std::string
* delete in removeSegment
* use std::mutex in lockmgr_cb
* fix wrong min/max
* no get in process
* cleanup
* always notify decodeThread to do prefetch
old-commit-hash: 5540dcae78
4 years ago
Adeeb Shihadeh
d1498aa3d3
replay: fix jwt path on PC
...
old-commit-hash: a394d1017a
4 years ago
iejMac
f786b284d5
Replay: seeking functionality ( #20763 )
...
old-commit-hash: f0d0b82b8d
4 years ago
Dean Lee
e333e4f189
Cleanup selfdrive/ includes ( #20822 )
...
* cleanup include path
* continue
* format includes
* fix testraw.cc
* remove include path from SConstruct
* regroup
* rebase master
* almost done
* apply review
* rename FileReader.xx to filereader.xx
* rename Unlogger.x->unlogger.x
* rename FrameReader.xx -> framereader.xx
* apply reviews
* ui.h
* continue
* fix framebuffer.cc build error:mv util.h up
* full path to msm_media_info
* fix qcom2 camerad
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7222d0f20d
4 years ago
Willem Melching
78bf4f5867
Replace ifdef with hw abstraction layer ( #20843 )
...
* Replace ifdefs with hardware abstraction layer (#20801 )
* add type to class hadwareXXX
* replace ifdefs with hardware layer
* continue
* continue
* new function get_driver_view_transform
* full path to hw.h
* fix build error setup.cc
* apply review
* fix typo
* fix deprecated error:replace deprecated fromPath with new
* fix build error
* Fixes after ifdef clenaup (#20842 )
* inheritance doesnt work with static
* fix debayer
* small cleanup
* Update selfdrive/camerad/cameras/camera_common.cc
* Update selfdrive/ui/qt/offroad/settings.cc
* Update selfdrive/common/modeldata.h
* flip conditions
* fix comment
Co-authored-by: Dean Lee <deanlee3@gmail.com>
old-commit-hash: ab319d4f54
4 years ago
Willem Melching
39c18d4c5a
Revert "Replace ifdefs with hardware abstraction layer ( #20801 )"
...
This reverts commit 9f2ad462f39f4c880f283b71bffbc9248a2b577d.
old-commit-hash: 3a95d3ccaa
4 years ago
Dean Lee
e0282ced49
Replace ifdefs with hardware abstraction layer ( #20801 )
...
* add type to class hadwareXXX
* replace ifdefs with hardware layer
* continue
* continue
* new function get_driver_view_transform
* full path to hw.h
* fix build error setup.cc
* apply review
* fix typo
* fix deprecated error:replace deprecated fromPath with new
* fix build error
old-commit-hash: 757d2923d2
4 years ago
Adeeb Shihadeh
532d19427c
bump cereal
...
old-commit-hash: 8a280fbb8e
4 years ago
Dean Lee
9159291a09
ui/replay: file extensions to .cc and .h ( #20805 )
...
old-commit-hash: bdf4a94cd0
4 years ago
Dean Lee
9a827fea20
c++ cleanup: standardize file extensions to .cc and .h ( #20800 )
...
* c++ cleanup: standardize file extensions to .cc and .h
* cleanup files_common
old-commit-hash: 81491dc57f
4 years ago
Dean Lee
309a873e7d
Qt: use new signal slot syntax ( #20783 )
...
* new signal slot syntax
continue
* continue
old-commit-hash: 4781598e12
4 years ago
Dean Lee
5957d8cc05
Replay: make response a const reference in parseResponse ( #20787 )
...
old-commit-hash: 228308b719
4 years ago
iejMac
86a1616de9
Replay: fix crashing from trimSegment
...
old-commit-hash: aeafb8e00c
4 years ago
iejMac
d991de5d30
CommaApi: use auth.py for request authentication when on PC ( #20755 )
...
* CommaApi: use auth.py for request authentication when on PC
* whitespace
* only when replay
* nicer way to do this
* tabs
* use bool
* tabs
* tabs
* prefer this to just be state
* initialize with stdString
* tabs
* include order
* fix order + ifdef fix
* whitespace'
old-commit-hash: a337097b5e
4 years ago