Difference between revisions of "DonkeyCar for Jetson Nano-Setup Jetson Nano"
From Waveshare Wiki
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | <div class="wiki-pages jet-green-color"> | ||
==Guides of DonkeyCar== | ==Guides of DonkeyCar== | ||
*[[DonkeyCar for Jetson Nano-Setup Jetson Nano|Setup Jetson Nano]] | *[[DonkeyCar for Jetson Nano-Setup Jetson Nano|Setup Jetson Nano]] | ||
Line 11: | Line 12: | ||
==Step 1. Install libraries== | ==Step 1. Install libraries== | ||
− | Please make sure that you have | + | Please make sure that you have installed the image and that it could start normally. Open the terminal and install the libraries as below |
<pre> | <pre> | ||
sudo apt-get update | sudo apt-get update | ||
Line 25: | Line 26: | ||
source ~/.bashrc | source ~/.bashrc | ||
</pre> | </pre> | ||
− | + | <!-- | |
==Step3. Install OpenCV== | ==Step3. Install OpenCV== | ||
− | *The first step of | + | *The first step of Installing Opencv is to define the Swap-space |
*Jetson Nano has only 4GB RAM, it is not engough for building Opencv. To avoid from memory crashing, we should define swap-space for Jetson Nano | *Jetson Nano has only 4GB RAM, it is not engough for building Opencv. To avoid from memory crashing, we should define swap-space for Jetson Nano | ||
<pre> | <pre> | ||
Line 163: | Line 164: | ||
>>> quit() | >>> quit() | ||
</pre> | </pre> | ||
− | ==Step | + | --> |
− | *Clone | + | ==Step 3. Install DonkeyCar Python codes== |
+ | *Clone donkey car codes from GitHub | ||
<pre> | <pre> | ||
cd ~/projects | cd ~/projects | ||
Line 174: | Line 176: | ||
</pre> | </pre> | ||
− | ==Step | + | ==Step 4. Create DonkeyCar== |
*Create donkeycar example | *Create donkeycar example | ||
<pre> | <pre> | ||
donkey createcar --path ~/mycar | donkey createcar --path ~/mycar | ||
</pre> | </pre> | ||
− | After | + | After running, files will be generated and saved in the directly ~/mycar |
− | *Open | + | *Open the myconfig.py file and modify the camera parameters. |
<pre> | <pre> | ||
nano myconfig.py | nano myconfig.py |
Latest revision as of 01:42, 18 May 2023
Guides of DonkeyCar
- Setup Jetson Nano
- Setup Linux PC
- WEB Control
- Calibrate DonkeyCar
- Teleoperation
- Data Collection
- Train Data
- Auto-Driving
- JetRacer AI Kit WIKI
Step 1. Install libraries
Please make sure that you have installed the image and that it could start normally. Open the terminal and install the libraries as below
sudo apt-get update sudo apt-get upgrade sudo apt-get install build-essential python3 python3-dev python3-pip python3-pandas python3-opencv python3-h5py libhdf5-serial-dev hdf5-tools nano ntp
Step 2. Setup virtual environment
sudo pip3 install virtualenv python3 -m virtualenv -p python3 env echo "source env/bin/activate" >> ~/.bashrc source ~/.bashrc
Step 3. Install DonkeyCar Python codes
- Clone donkey car codes from GitHub
cd ~/projects https://github.com/waveshare/donkeycar cd donkeycar git checkout master pip install -e .[nano] pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v42 tensorflow-gpu==1.13.1+nv19.3
Step 4. Create DonkeyCar
- Create donkeycar example
donkey createcar --path ~/mycar
After running, files will be generated and saved in the directly ~/mycar
- Open the myconfig.py file and modify the camera parameters.
nano myconfig.py
- The camera we use is based on Sony IMX219, so we need to change it to CSIC and set the resolution to 224*224
#CAMERA CAMERA_TYPE = "CSIC" # (PICAM|WEBCAM|CVCAM|CSIC|V4L|MOCK) IMAGE_W = 224 IMAGE_H = 224