Skip to content
dorkmo edited this page Nov 13, 2020 · 68 revisions

Run openpilot with driving simulator CARLA, which uses docker.

openpilot sim

https://carla.readthedocs.io/en/latest/core_concepts/

https://carla.readthedocs.io/en/latest/start_quickstart/

Download Page

https://github.com/carla-simulator/carla/blob/master/Docs/download.md

https://ubuntu.com/download/desktop

Create an Ubuntu USB stick for install https://ubuntu.com/tutorials/create-a-usb-stick-on-windows#1-overview

https://docs.docker.com/engine/install/ubuntu/


Instructions for running openpilot and Carla via docker.

https://github.com/commaai/openpilot/tree/master/tools/sim#openpilot-in-simulator

Install Drivers and Software

Open a Terminal window by pressing Ctrl + Alt + T

sudo apt-get update

ubuntu-drivers devices

look for the driver that has "recommended" at the end

for example, the 450 version install command is show below:

sudo apt install nvidia-drivers-450

sudo reboot

sudo apt install curl

$ curl https://get.docker.com | sh \
&& sudo systemctl start docker \
&& sudo systemctl enable docker

$ sudo docker run hello-world

sudo apt install git

git clone https://github.com/commaai/openpilot.git

cd openpilot

cd tools

cd sim

./install_carla.sh

sudo INSTALL=1 ./start_carla.sh

Open a second terminal window by pressing Ctrl + Alt + T

sudo ./start_openpilot_docker.sh

Tips

`+0

scrolling press ` and [

exit scroll mode press q

As an aside you can add yourself to the docker group with sudo usermod -aG docker $USER then logout/login to not have to sudo everything

ctrl+d to exit container

ctrl+c to kill process

sudo service docker restart

"communication issue between processes"

disable the issue in controllerd:212 controlsd.py

everything with ctrl+c in both windows, edit file, run openpilot script in window 0 and bridge in window 1

Clone this wiki locally