openpilot is an open source driver assistance system. openpilot performs the functions of Automated Lane Centering and Adaptive Cruise Control for over 200 supported car makes and models.
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.
 
 
 
 
 
 
Gijs Koning 0112f4212f Simulator: Fix keyboard input (#24320) 3 years ago
..
lib sim: add ignition toggling (#24043) 3 years ago
test Simulator: Fix keyboard input (#24320) 3 years ago
Dockerfile.sim Carla pip dependency and fix for git init (#24258) 3 years ago
README.md improve sim readme 4 years ago
__init__.py Simulator Tests (#24274) 3 years ago
bridge.py Simulator: Fix keyboard input (#24320) 3 years ago
build_container.sh sim/build_container.sh: fix container name 4 years ago
launch_openpilot.sh Simulator Tests (#24274) 3 years ago
start_carla.sh Simulator Tests (#24274) 3 years ago
start_openpilot_docker.sh sim: mount working dir to the same dir in the container (#20908) 4 years ago
tmux_script.sh sim: fix race condition in tmux script (#22365) 4 years ago

README.md

openpilot in simulator

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

System Requirements

openpilot doesn't have any extreme hardware requirements, however CARLA requires an NVIDIA graphics card and is very resource-intensive and may not run smoothly on your system. For this case, we have a low quality mode you can activate by running:

./start_openpilot_docker.sh --low_quality

You can also check out the CARLA python documentation to find more parameters to tune that might increase performance on your system.

Running the simulator

First, start the CARLA server in one terminal.

./start_carla.sh

Then, start the bridge and openpilot in another terminal.

./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.