Dean Lee
fd801c454a
c++ replay: get socket name from capnp::Schema ( #22367 )
...
* get socket name from canp::Schema
* use vector
4 years ago
Dean Lee
d28b98c602
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
4 years ago
Dean Lee
fa8ddd992d
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.
4 years ago
Dean Lee
a6da064a93
replay/segment: std::atomic member variables ( #22409 )
4 years ago
grekiki
4c7acf680c
C++ replay cache folder path / fix ( #22396 )
4 years ago
Adeeb Shihadeh
dd67dc6b34
update demo route ( #22381 )
4 years ago
Willem Melching
b7c64542f4
replay: fall back to qlog ( #22362 )
4 years ago
Willem Melching
6881688af2
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
4 years ago
Dean Lee
318a8ba854
c++ replay: more accurate sleep ( #22348 )
...
* precise sleep
* cleanup
* continue
4 years ago
Dean Lee
a548d4b5b8
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
4 years ago
Dean Lee
4e6ff308a8
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
4 years ago
Dean Lee
e888a7e939
load d/e camera by command line flags ( #22341 )
4 years ago
Dean Lee
dff6dbfbe9
rename filereader.cc[h] to logreader.cc[h] ( #22279 )
4 years ago
Dean Lee
ec67d2b8f5
replay: pause/resume using spacebar ( #22278 )
...
* pause/resume using spacebar
* Update selfdrive/ui/replay/replay.cc
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago
Dean Lee
50ae7dd6a9
replay improvements ( #22203 )
...
* refactor replay
* cleanup
small cleanup
* merge 22239
* cleanup
* add optional argument for start time
* small cleaup
4 years ago
Dean Lee
8eb92a98ba
replay: don't splits empty strings ( #22271 )
4 years ago
Dean Lee
cb49ceabf0
replay: remove array subscript ( #22268 )
4 years ago
Adeeb Shihadeh
f49e7629ee
replay: add nice arg parser ( #22264 )
...
* replay: add nice arg parser
* demo
* cleanup
4 years ago
Dean Lee
f5aa3a30c9
replay: thread-safe seek ( #22228 )
4 years ago
George Hotz
8d554abbf7
demo route note in replay
4 years ago
Dean Lee
a89bdb6a05
fix Replay::mergeEvents: use std::end() ( #22215 )
4 years ago
Dean Lee
365e8bfd93
replay: unlock mutex before sleep ( #22213 )
4 years ago
Dean Lee
eb4a28af11
replay: fix bugs in merging events ( #22205 )
4 years ago
Dean Lee
a1a0201069
replay: thread safe merge & free logs ( #22196 )
4 years ago
Dean Lee
f3683dd4cb
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
4 years ago
Dean Lee
81a128cd76
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
4 years ago
Dean Lee
d9baaf7eb9
loggerd: create encoder threads from cameras_logged ( #21875 )
4 years ago
ambientocclusion
ed271911c2
Fixed build issues on macOS ( #22075 )
...
* Fixed deprecated enum value
* Changed to build Qt replay on macOS
4 years ago
Dean Lee
543e019f71
api: use API_HOST env variable everywhere ( #21814 )
...
* api base url to global constant
* update api/__init__.py
4 years ago
Dean Lee
c24227c3ab
HttpRequest: don't send request in ctor ( #21665 )
4 years ago
Dean Lee
9ebfc2ba8d
HttpRequest: move http cache to RequestRepeater ( #21228 )
...
* move cache from HttpRequest to RequestRepeater
* apply review
4 years ago
Adeeb Shihadeh
060b5caf1b
nicer replay prints
4 years ago
Dean Lee
8c202d1bb4
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>
4 years ago
Maxime Desroches
03df1b08bb
Convert C++ while loops from int to bool ( #21214 )
4 years ago
Dean Lee
c53cb5d570
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
4 years ago
Dean Lee
211212f86b
FrameReader: use 'from' in std::min comparison ( #21195 )
4 years ago
Dean Lee
67fe3feb09
refactor FrameReader ( #21141 )
...
* refactor FrameReader
* continue
* move that
* small cleanup
* little more
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago
Dean Lee
bb5bcc7e49
move c++ framereader to selfdrive/ui/replay ( #21053 )
4 years ago
Dean Lee
5540dcae78
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
4 years ago
Adeeb Shihadeh
a394d1017a
replay: fix jwt path on PC
4 years ago
iejMac
f0d0b82b8d
Replay: seeking functionality ( #20763 )
4 years ago
Dean Lee
7222d0f20d
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>
4 years ago
Willem Melching
ab319d4f54
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>
4 years ago
Willem Melching
3a95d3ccaa
Revert "Replace ifdefs with hardware abstraction layer ( #20801 )"
...
This reverts commit 757d2923d2
.
4 years ago
Dean Lee
757d2923d2
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
4 years ago
Adeeb Shihadeh
8a280fbb8e
bump cereal
4 years ago
Dean Lee
bdf4a94cd0
ui/replay: file extensions to .cc and .h ( #20805 )
4 years ago
Dean Lee
81491dc57f
c++ cleanup: standardize file extensions to .cc and .h ( #20800 )
...
* c++ cleanup: standardize file extensions to .cc and .h
* cleanup files_common
4 years ago
Dean Lee
4781598e12
Qt: use new signal slot syntax ( #20783 )
...
* new signal slot syntax
continue
* continue
4 years ago
Dean Lee
228308b719
Replay: make response a const reference in parseResponse ( #20787 )
4 years ago