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.
 
 
 
 
 
 
Michel Le Bihan 8a03884500
simulator: Correctly handle arrival at destination (#31807)
1 year ago
..
bridge simulator: Correctly handle arrival at destination (#31807) 1 year ago
lib Simulator: Add world status reporting (#31740) 1 year ago
scenarios/metadrive simulator: Correctly handle arrival at destination (#31807) 1 year ago
tests Fix self.started value pass in metadrive test (#31153) 1 year ago
Dockerfile.sim Docker: merge opencl and base images (#31338) 1 year ago
Dockerfile.sim_nvidia simulator: run simulator test in ci (#24691) 3 years ago
README.md Simulator: add comment about mapbox tokens (#31162) 1 year ago
__init__.py Simulator Tests (#24274) 3 years ago
build_container.sh Docker: merge opencl and base images (#31338) 1 year ago
launch_openpilot.sh Simulator: set params enabled (#30195) 2 years ago
rgb_to_nv12.cl sim: Converting RGB frames to NV12 format in OpenCL (#26169) 3 years ago
run_bridge.py Simulator: prepare to make bridge a PythonProcess (#31201) 1 year ago
start_openpilot_docker.sh Simulator: remove carla (#30690) 1 year ago

README.md

openpilot in simulator

openpilot implements a bridge that allows it to run in the MetaDrive simulator.

Launching openpilot

First, start openpilot. Note that you will either need a mapbox token (set with export MAPBOX_TOKEN="1234"), or to disable mapsd with export BLOCK=mapsd

# Run locally
./tools/sim/launch_openpilot.sh

Bridge usage

$ ./run_bridge.py -h
usage: run_bridge.py [-h] [--joystick] [--high_quality] [--dual_camera]
Bridge between the simulator and openpilot.

options:
  -h, --help            show this help message and exit
  --joystick
  --high_quality
  --dual_camera

Bridge Controls:

  • To engage openpilot press 2, then press 1 to increase the speed and 2 to decrease.
  • To disengage, press "S" (simulates a user brake)

All inputs:

| key  |   functionality       |
|------|-----------------------|
|  1   | Cruise Resume / Accel |
|  2   | Cruise Set    / Decel |
|  3   | Cruise Cancel         |
|  r   | Reset Simulation      |
|  i   | Toggle Ignition       |
|  q   | Exit all              |
| wasd | Control manually      |

MetaDrive

Launching Metadrive

Start bridge processes located in tools/sim:

./run_bridge.py