nopenpilot/selfdrive/loggerd
Adeeb Shihadeh 8af20af66d
pylint: enforce indentation (W0311) (#24039)
* pylint: enforce indentation (W0311)

* few more
2022-03-24 23:23:29 -07:00
..
include logcatd, loggerd, mapd, modeld, proclogd 2020-01-17 11:20:17 -08:00
tests pylint: enforce indentation (W0311) (#24039) 2022-03-24 23:23:29 -07:00
tools Convert format strings strings to f-strings (#23241) 2021-12-16 14:58:17 +01:00
.gitignore LoggerState: test cases (#21855) 2021-08-30 17:12:09 -07:00
README.md small typo 2021-09-24 10:23:41 +02:00
SConscript scons: fix duplicate environments with test flag (#23702) 2022-02-06 14:08:02 -08:00
__init__.py logcatd, loggerd, mapd, modeld, proclogd 2020-01-17 11:20:17 -08:00
bootlog.cc move lock clearing to uploader (#23826) 2022-02-22 22:30:11 -08:00
config.py Statsd (#23413) 2022-01-10 15:21:48 +01:00
deleter.py deleter: handle files (#24023) 2022-03-23 11:31:29 -07:00
encoder.h loggerd: remove the segment variable from encoders (#20034) 2021-02-07 17:48:46 -08:00
logger.cc move lock clearing to uploader (#23826) 2022-02-22 22:30:11 -08:00
logger.h move lock clearing to uploader (#23826) 2022-02-22 22:30:11 -08:00
loggerd.cc loggerd: less error logging 2022-01-24 21:15:14 -08:00
loggerd.h loggerd: make test_loggerd.py run on PC (#23574) 2022-01-19 13:55:02 -08:00
main.cc util: move all functions into util namespace (#23203) 2021-12-12 14:42:23 -08:00
omx_encoder.cc omx encoder: move writing into thread (#23771) 2022-02-22 13:02:50 +01:00
omx_encoder.h omx encoder: move writing into thread (#23771) 2022-02-22 13:02:50 +01:00
raw_logger.cc Update raw_logger/framereader to new new ffmpeg api (#23799) 2022-02-21 16:39:32 +01:00
raw_logger.h Update raw_logger/framereader to new new ffmpeg api (#23799) 2022-02-21 16:39:32 +01:00
uploader.py C3: detect metered Android hotspot (#23734) 2022-03-09 11:36:52 +01:00
xattr_cache.py Add more type hinting (#23595) 2022-01-21 15:11:16 -08:00

README.md

loggerd

openpilot records routes in one minute chunks called segments. A route starts on the rising edge of ignition and ends on the falling edge.

Check out our python library for reading openpilot logs. Also checkout our tools to replay and view your data. These are the same tools we use to debug and develop openpilot.

log types

For each segment, openpilot records the following log types:

rlog.bz2

rlogs contain all the messages passed amongst openpilot's processes. See cereal/services.py for a list of all the logged services. They're a bzip2 archive of the serialized capnproto messages.

{f,e,d}camera.hevc

Each camera stream is H.265 encoded and written to its respective file.

  • fcamera.hevc is the road camera
  • ecamera.hevc is the wide road camera
  • dcamera.hevc is the driver camera

qlog.bz2 & qcamera.ts

qlogs are a decimated subset of the rlogs. Check out cereal/services.py for the decimation.

qcameras are H.264 encoded, lower res versions of the fcamera.hevc. The video shown in comma connect is from the qcameras.

qlogs and qcameras are designed to be small enough to upload instantly on slow internet and store forever, yet useful enough for most analysis and debugging.