nopenpilot/selfdrive/loggerd
Ryan aa9e635311
Add more type hinting (#23595)
* Add more type hinting.

* Revert joystick_alert changes.

* Add typing to statsd.

* Update selfdrive/statsd.py

* Update selfdrive/test/test_fingerprints.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-01-21 15:11:16 -08:00
..
include logcatd, loggerd, mapd, modeld, proclogd 2020-01-17 11:20:17 -08:00
tests loggerd: make test_loggerd.py run on PC (#23574) 2022-01-19 13:55:02 -08: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 loggerd: add test case for sync_encoders (#23020) 2021-11-24 13:34:16 -08:00
__init__.py logcatd, loggerd, mapd, modeld, proclogd 2020-01-17 11:20:17 -08:00
bootlog.cc put logcat in bootlog (#23217) 2021-12-14 11:54:54 -08:00
config.py Statsd (#23413) 2022-01-10 15:21:48 +01:00
deleter.py Convert format strings strings to f-strings (#23241) 2021-12-16 14:58:17 +01:00
encoder.h loggerd: remove the segment variable from encoders (#20034) 2021-02-07 17:48:46 -08:00
logger.cc Clear loggerd locks once on boot (#23060) 2021-11-29 12:30:28 +01:00
logger.h Clear loggerd locks once on boot (#23060) 2021-11-29 12:30:28 +01:00
loggerd.cc Use std::unique_ptr to manage memory (#23168) 2021-12-13 14:16:53 +01: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 wshadow: fix comma three build 2021-11-02 17:27:34 +01:00
omx_encoder.h loggerd: always run encoders (#22649) 2021-10-21 16:37:03 -07:00
raw_logger.cc Ensure controlsd can engage again in process replay (#23556) 2022-01-21 13:13:34 +01:00
raw_logger.h loggerd: always run encoders (#22649) 2021-10-21 16:37:03 -07:00
uploader.py Convert format strings strings to f-strings (#23241) 2021-12-16 14:58:17 +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.