openpilot/tools/sim
Adeeb Shihadeh cc1bca542d
update simulator to ubuntu 20.04 (#2463)
* fix sim build in 20.04

* run ci

* fix docker build

* restore ci cofnig

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-11-18 13:10:37 -08:00
..
lib update simulator to ubuntu 20.04 (#2463) 2020-11-18 13:10:37 -08:00
.gitignore Cleanup simulator and add usage instructions (#1050) 2020-02-04 19:46:57 -08:00
Dockerfile.sim update simulator to ubuntu 20.04 (#2463) 2020-11-18 13:10:37 -08:00
README.md update simulator to ubuntu 20.04 (#2463) 2020-11-18 13:10:37 -08:00
bridge.py update panda in sim (#2528) 2020-11-11 20:49:54 -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 trim trailing whitespace 2020-11-05 14:11:41 -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.