openpilot is an open source driver assistance system. openpilot performs the functions of Automated Lane Centering and Adaptive Cruise Control for over 200 supported car makes and models.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Willem Melching ba89faa5f7
uploader: ensure requests.put gets file like object (#24462)
3 years ago
..
tests delay bz2 compression from logging to uploading (#24392) 3 years ago
tools Convert format strings strings to f-strings (#23241) 3 years ago
.gitignore loggerd: switch to v4l encoder try 2 (#24380) 3 years ago
README.md small typo 4 years ago
SConscript delay bz2 compression from logging to uploading (#24392) 3 years ago
__init__.py logcatd, loggerd, mapd, modeld, proclogd 5 years ago
bootlog.cc delay bz2 compression from logging to uploading (#24392) 3 years ago
config.py Statsd (#23413) 3 years ago
deleter.py deleter: handle files (#24023) 3 years ago
encoder.h loggerd: switch to v4l encoder try 2 (#24380) 3 years ago
encoderd.cc loggerd: switch to v4l encoder try 2 (#24380) 3 years ago
logger.cc delay bz2 compression from logging to uploading (#24392) 3 years ago
logger.h delay bz2 compression from logging to uploading (#24392) 3 years ago
loggerd.cc delay bz2 compression from logging to uploading (#24392) 3 years ago
loggerd.h loggerd: switch to v4l encoder try 2 (#24380) 3 years ago
main.cc remove comma two support (#24248) 3 years ago
raw_logger.cc loggerd: switch to v4l encoder try 2 (#24380) 3 years ago
raw_logger.h loggerd: switch to v4l encoder try 2 (#24380) 3 years ago
remote_encoder.cc loggerd: switch to v4l encoder try 2 (#24380) 3 years ago
remote_encoder.h loggerd: switch to v4l encoder try 2 (#24380) 3 years ago
uploader.py uploader: ensure requests.put gets file like object (#24462) 3 years ago
v4l_encoder.cc sync qcam p frames (#24459) 3 years ago
v4l_encoder.h loggerd: switch to v4l encoder try 2 (#24380) 3 years ago
video_writer.cc loggerd: switch to v4l encoder try 2 (#24380) 3 years ago
video_writer.h loggerd: switch to v4l encoder try 2 (#24380) 3 years ago
xattr_cache.py Add more type hinting (#23595) 3 years ago

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.