DonkeyCar for Pi-Setup Linux PC

From Waveshare Wiki
Jump to: navigation, search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Guide of DonkeyCar

Install Linux PC

  • Install Ubuntu 18.04 LTS in your PC (Virtual)
  • Open termnial and install minconda Python 3.7 64bit
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash ./Miniconda3-latest-Linux-x86_64.sh
  • Create directory for project
mkdir projects
cd projects
  • Clone souce codes of DonkeyCar from Github
git clone https://github.com/waveshare/donkeycar
cd donkeycar
git checkout master
  • If you are not the first time to install Donkey, please update Conda and remove the old donkey
conda update -n base -c defaults conda
conda env remove -n donkey
  • Build anaconda environment
conda env create -f install/envs/ubuntu.yml
conda activate donkey
pip install -e .[pc]
  • Install Tensorflow

Note: Herein we use the Tensorflow CPU version.

conda install tensorflow==1.13.1
  • Create local directory
donkey createcar --path ~/mycar

Note:Re-Open the terminal and run conda activate donkey command to enter the donkey virtual