openpilot0/tools/sim
Willem Melching 05a758d70e build sim container with available cores
old-commit-hash: e2fa4cc212
2020-10-12 15:13:13 +02:00
..
lib dockerize carla + openpilot (#2011) 2020-09-10 12:14:49 +02:00
.gitignore
Dockerfile.sim build sim container with available cores 2020-10-12 15:13:13 +02:00
README.md Add Flags to Control Simulator (#2246) 2020-09-29 14:00:03 -07:00
bridge.py Add Flags to Control Simulator (#2246) 2020-09-29 14:00:03 -07:00
build_container.sh dockerize carla + openpilot (#2011) 2020-09-10 12:14:49 +02:00
install_carla.sh Try only extracting python folder (#2321) 2020-10-12 13:37:01 +02:00
launch_openpilot.sh dockerize carla + openpilot (#2011) 2020-09-10 12:14:49 +02:00
start_carla.sh Enable Ctrl-C for Carla Server (#2240) 2020-09-28 13:41:37 -07:00
start_openpilot_docker.sh Add Flags to Control Simulator (#2246) 2020-09-29 14:00:03 -07:00
tmux_script.sh Add Flags to Control Simulator (#2246) 2020-09-29 14:00:03 -07:00

README.md

openpilot in simulator

Running the simulator

First, start the CARLA server.

./start_carla.sh

Then start bridge and openpilot.

./start_openpilot_docker.sh

To engage openpilot press 1 a few times while focused on bridge.py to increase the cruise speed.

Controls

You can control openpilot driving in the simulation with the following keys

key functionality
1 Cruise up 5 mph
2 Cruise down 5 mph
3 Cruise cancel
q Exit all

To see the options for changing the environment, such as the town, spawn point or precipitation, you can run ./start_openpilot_docker.sh --help. This will print the help output inside the docker container. You need to exit the docker container before running ./start_openpilot_docker.sh again.