This is the default method to use the Donkey Car.
Run these commands to setup your donkey car app on your car's raspberry pi.
-
Create and activate your virtual environment.
virtualenv env --python=python3 source env/bin/activate
-
Dowload and install the dependencies for this car template.
git clone https://github.com/autorope/donkey2.git cd donkey2 pip install -r drive_requirements.txt
-
Run the drive script.
python drive.py
Here are the steps to train an autopilot on your computer after you've transfered the the tubs from your car's pi to your laptop.
-
Create and activate your virtual environment.
virtualenv env --python=python3 source env/bin/activate
-
Dowload and install the dependencies for this car template.
git clone https://github.com/autorope/donkey2.git cd donkey2 pip install -r train_requirements.txt
-
Train an autopilot
python train.py /path/to/folder/with/tubs/*