tsl/tools/sim
Adeeb Shihadeh 8472df65ea tools/sim: remove special docker image (#32659)
old-commit-hash: 541b5cbf13
2024-06-08 09:18:28 -07:00
..
bridge Simulator: update MetaDrive to latest (#32576) 2024-05-30 11:25:21 -07:00
lib Split cereal into cereal/msgq (#32631) 2024-06-06 14:31:56 -07:00
tests test_*.py files are no longer executable (#32610) 2024-06-03 15:48:56 -07:00
Dockerfile.sim_nvidia
README.md Simulator: add comment about mapbox tokens (#31162) 2024-01-25 12:45:43 -08:00
__init__.py
launch_openpilot.sh manager: move to system/ (#32538) 2024-05-25 12:41:17 -07:00
rgb_to_nv12.cl
run_bridge.py Simulator: prepare to make bridge a PythonProcess (#31201) 2024-01-29 10:11:02 -08:00
start_openpilot_docker.sh Simulator: remove carla (#30690) 2023-12-11 20:38:37 -08:00

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