openpilot/tools/sim
Willem Melching e9c4a75a5c
Remove dockerhub references from CI (#20038)
* cache from base image

* specify github repo
2021-02-08 11:53:47 +01:00
..
lib Carla fixes (#19824) 2021-01-18 17:16:32 -08:00
.gitignore Cleanup simulator and add usage instructions (#1050) 2020-02-04 19:46:57 -08:00
Dockerfile.sim Remove dockerhub references from CI (#20038) 2021-02-08 11:53:47 +01:00
README.md update simulator to ubuntu 20.04 (#2463) 2020-11-18 13:10:37 -08:00
bridge.py Cereal cleanup (#20003) 2021-02-03 19:57:30 -08: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 Carla fixes (#19824) 2021-01-18 17:16:32 -08: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.

Further Reading

The following resources contain more details and troubleshooting tips.