DonkeyCar for Jetson Nano-Setup Linux PC

From Waveshare Wiki
Revision as of 04:09, 5 February 2020 by Waveshare-eng11 (talk | contribs) (Created page with "==Guides of DonkeyCar== *Setup Jetson Nano *Setup Linux PC *DonkeyCar for Jetson...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Guides 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