AI 自動運転 DonkeyCar インストール
country=JP |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev |
update_config=1 |
network={ |
ssid="接続先名" |
psk="パスワード" |
key_mgmt=WPA-PSK |
} |
操作環境 | ツール | コマンド | ユーザー名 | パスワード |
mac | terminal | ssh pi@ラズパイのHostname.local | pi | raspberry |
windows/wsl | コンソール | ssh pi@ラズパイのIPアドレス※ | pi | raspberry |
windows | teraterm 等 | ラズパイのIPアドレス※ | pi | raspberry |
sudo apt-get update --allow-releaseinfo-change |
sudo apt-get upgrade |
sudo raspi-config |
1 System Options | Hostname | 任意の名前 |
2 Display Optino | D1 Resolution | DMT Mode 16 1024×768 60Hz 4:3 |
3 Interface Options | Camera | 有効化 |
5 Localisation Optinons | Timezone | Asia の Tokyo に変更 |
6 Advanced Options | A1 Expand Filesystem | OK |
sudo apt-get install build-essential python3 python3-dev python3-pip python3-virtualenv python3-numpy python3-picamera python3-pandas python3-rpi.gpio i2c-tools avahi-utils joystick libopenjp2-7-dev libtiff5-dev gfortran libatlas-base-dev libopenblas-dev libhdf5-serial-dev libgeos-dev git ntp |
sudo apt-get install libilmbase-dev libopenexr-dev libgstreamer1.0-dev libjasper-dev libwebp-dev libatlas-base-dev libavcodec-dev libavformat-dev libswscale-dev libqtgui4 libqt4-test |
python3 -m virtualenv -p python3 env --system-site-packages |
echo "source ~/env/bin/activate" >> ~/.bashrc |
source ~/.bashrc |
mkdir projects |
cd projects |
git clone https://github.com/autorope/donkeycar |
cd donkeycar |
git checkout main |
pip install -e .[pi] |
pip install https://github.com/lhelontra/tensorflow-on-arm/releases/download/v2.2.0/tensorflow-2.2.0-cp37-none-linux_armv7l.whl |
sudo apt install python3-opencv |
sudo apt install zip |
donkey createcar --path ~/mycar |
pip install git+https://github.com/autorope/keras-vis.git |
pip install moviepy |