dragonpilot - 基於 openpilot 的開源駕駛輔助系統
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 1e494a5224
unlogger.py: fix YUV replay (#22299)
4 years ago
..
lib ui.py: draw lines on radarState leads 4 years ago
README.md fix small typo in replay docs (#22305) 4 years ago
__init__.py merge in tools 5 years ago
camera.py tools: fix replay/camera.py crash (#21881) 4 years ago
can_replay.py can replay: flashing lock 4 years ago
rqplot.py Add type hints, small cleanups (#21080) 4 years ago
ui.py cleanup old nidec accel override logic (#22181) 4 years ago
unlog_ci_segment.py Hyundai radar parser (#22241) 4 years ago
unlogger.py unlogger.py: fix YUV replay (#22299) 4 years ago

README.md

Stream CAN messages to your device

Replay CAN messages as they were recorded using a panda jungle. The jungle has 6x OBD-C ports for connecting all your comma devices.

can_replay.py is a convenient script for when any CAN data will do.

In order to replay specific route:

MOCK=1 selfdrive/boardd/tests/boardd_old.py

# In another terminal:
python replay/unlogger.py <route-name> <path-to-data-directory>

Replay driving data

unlogger.py replays all the messages logged while running openpilot.

Unlogger with remote data:

# Log in via browser
python lib/auth.py

# Start unlogger
python replay/unlogger.py <route-name>
# Example:
# python replay/unlogger.py '3533c53bb29502d1|2019-12-10--01-13-27'

# In another terminal you can run a debug visualizer:
python replay/ui.py   # Define the environmental variable HORIZONTAL is the ui layout is too tall

# Or run the normal openpilot UI
cd selfdrive/ui && ./ui

Imgur

usage

$ ./unlogger.py -h
usage: unlogger.py [-h] [--no-loop] [--min | --enabled ENABLED] [--disabled DISABLED] [--tl PUBLISH_TIME_LENGTH] [--no-realtime]
                   [--no-interactive] [--bind-early] [--no-visionipc] [--start-time START_TIME]
                   [route_name] [data_dir] [address_mapping [address_mapping ...]]

Mock openpilot components by publishing logged messages.

positional arguments:
  route_name            The route whose messages will be published. (default: None)
  data_dir              Path to directory in which log and camera files are located. (default: None)
  address_mapping       Pairs <service>=<zmq_addr> to publish <service> on <zmq_addr>. (default: None)

optional arguments:
  -h, --help            show this help message and exit
  --no-loop             Stop at the end of the replay. (default: False)
  --min
  --enabled ENABLED
  --disabled DISABLED
  --tl PUBLISH_TIME_LENGTH
                        Length of interval in event time for which messages should be published. (default: None)
  --no-realtime         Publish messages as quickly as possible instead of realtime. (default: True)
  --no-interactive      Disable interactivity. (default: True)
  --bind-early          Bind early to avoid dropping messages. (default: False)
  --no-visionipc        Do not output video over visionipc (default: False)
  --start-time START_TIME
                        Seek to this absolute time (in seconds) upon starting playback. (default: 0.0)