Table of Contents
1. DonkeyCarソフトウェアのインストール
ローカル環境へDonkeyCarのソフトウェアをインストールします。このハンズオンでは次のセルを実行することでローカル環境へインストールできます。ローカル環境に接続していることを確認して、次のセルを実行してください。
プログラム
#DonkeyCarソフトウェアのインストールセル
# Tensorflowインストール
!pip install tensorflow==1.15.0
# DonkeyCarソフトウェア本体をインストール
!git clone https://github.com/autorope/donkeycar
%cd donkeycar
!git checkout master
!pip install -e .[pc]
!pip install -e gym-donkeycar
%cd ../
#シミュレータ用クライアントライブラリをインストール
!pip install gym
!git clone https://github.com/tawnkramer/gym-donkeycar
!pip install -e gym-donkeycar
出力結果
Collecting tensorflow==1.15.0
Downloading tensorflow-1.15.0-cp37-cp37m-win_amd64.whl (295.1 MB)
Collecting tensorflow-estimator==1.15.1
Downloading tensorflow_estimator-1.15.1-py2.py3-none-any.whl (503 kB)
Collecting gast==0.2.2
Downloading gast-0.2.2.tar.gz (10 kB)
Collecting opt-einsum>=2.3.2
Downloading opt_einsum-3.2.1-py3-none-any.whl (63 kB)
Requirement already satisfied: six>=1.10.0 in c:\users\chen\workspace\vdonkey\lib\site-packages (from tensorflow==1.15.0) (1.15.0)
Collecting google-pasta>=0.1.6
Downloading google_pasta-0.2.0-py3-none-any.whl (57 kB)
Collecting absl-py>=0.7.0
Downloading absl-py-0.9.0.tar.gz (104 kB)
Collecting keras-preprocessing>=1.0.5
Downloading Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB)
Collecting protobuf>=3.6.1
Downloading protobuf-3.12.2-cp37-cp37m-win_amd64.whl (1.0 MB)
Collecting wrapt>=1.11.1
Downloading wrapt-1.12.1.tar.gz (27 kB)
Requirement already satisfied: wheel>=0.26 in c:\users\chen\workspace\vdonkey\lib\site-packages (from tensorflow==1.15.0) (0.34.2)
Collecting numpy<2.0,>=1.16.0
Downloading numpy-1.18.5-cp37-cp37m-win_amd64.whl (12.7 MB)
Collecting tensorboard<1.16.0,>=1.15.0
Downloading tensorboard-1.15.0-py3-none-any.whl (3.8 MB)
Collecting grpcio>=1.8.6
Downloading grpcio-1.29.0-cp37-cp37m-win_amd64.whl (2.3 MB)
Collecting astor>=0.6.0
Downloading astor-0.8.1-py2.py3-none-any.whl (27 kB)
Collecting keras-applications>=1.0.8
Downloading Keras_Applications-1.0.8-py3-none-any.whl (50 kB)
Collecting termcolor>=1.1.0
Downloading termcolor-1.1.0.tar.gz (3.9 kB)
Requirement already satisfied: setuptools in c:\users\chen\workspace\vdonkey\lib\site-packages (from protobuf>=3.6.1->tensorflow==1.15.0) (47.1.1)
Collecting markdown>=2.6.8
Downloading Markdown-3.2.2-py3-none-any.whl (88 kB)
Collecting werkzeug>=0.11.15
Downloading Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
Collecting h5py
Downloading h5py-2.10.0-cp37-cp37m-win_amd64.whl (2.5 MB)
Requirement already satisfied: importlib-metadata; python_version < “3.8” in c:\users\chen\workspace\vdonkey\lib\site-packages (from markdown>=2.6.8->tensorboard<1.16.0,>=1.15.0->tensorflow==1.15.0) (1.6.1)
Requirement already satisfied: zipp>=0.5 in c:\users\chen\workspace\vdonkey\lib\site-packages (from importlib-metadata; python_version < “3.8”->markdown>=2.6.8->tensorboard<1.16.0,>=1.15.0->tensorflow==1.15.0) (3.1.0)
Building wheels for collected packages: gast, absl-py, wrapt, termcolor
Building wheel for gast (setup.py): started
Building wheel for gast (setup.py): finished with status ‘done’
Created wheel for gast: filename=gast-0.2.2-py3-none-any.whl size=7547 sha256=976b014641bc9b87fbd9a861fe36ea11c952a6f5cbbd5bdf94d8e407892b122a
Stored in directory: c:\users\chen\appdata\local\pip\cache\wheels\21\7f\02\420f32a803f7d0967b48dd823da3f558c5166991bfd204eef3
Building wheel for absl-py (setup.py): started
Building wheel for absl-py (setup.py): finished with status ‘done’
Created wheel for absl-py: filename=absl_py-0.9.0-py3-none-any.whl size=121935 sha256=0d19f37027732b2398282a0966e888f37be5dd85bc3fde59ce6a0a7afd87e4bf
Stored in directory: c:\users\chen\appdata\local\pip\cache\wheels\cc\af\1a\498a24d0730ef484019e007bb9e8cef3ac00311a672c049a3e
Building wheel for wrapt (setup.py): started
Building wheel for wrapt (setup.py): finished with status ‘done’
Created wheel for wrapt: filename=wrapt-1.12.1-cp37-cp37m-win_amd64.whl size=33437 sha256=4312cf363c094a90f0aa1174726a4f635975f175d8614c6db08472793029d80e
Stored in directory: c:\users\chen\appdata\local\pip\cache\wheels\62\76\4c\aa25851149f3f6d9785f6c869387ad82b3fd37582fa8147ac6
Building wheel for termcolor (setup.py): started
Building wheel for termcolor (setup.py): finished with status ‘done’
Created wheel for termcolor: filename=termcolor-1.1.0-py3-none-any.whl size=4835 sha256=6026fe775667e30e21ac2595634d5c6af4e4537e371cccc657f6227d102b11cf
Stored in directory: c:\users\chen\appdata\local\pip\cache\wheels\3f\e3\ec\8a8336ff196023622fbcb36de0c5a5c218cbb24111d1d4c7f2
Successfully built gast absl-py wrapt termcolor
Installing collected packages: tensorflow-estimator, gast, numpy, opt-einsum, google-pasta, absl-py, keras-preprocessing, protobuf, wrapt, markdown, grpcio, werkzeug, tensorboard, astor, h5py, keras-applications, termcolor, tensorflow
Successfully installed absl-py-0.9.0 astor-0.8.1 gast-0.2.2 google-pasta-0.2.0 grpcio-1.29.0 h5py-2.10.0 keras-applications-1.0.8 keras-preprocessing-1.1.2 markdown-3.2.2 numpy-1.18.5 opt-einsum-3.2.1 protobuf-3.12.2 tensorboard-1.15.0 tensorflow-1.15.0 tensorflow-estimator-1.15.1 termcolor-1.1.0 werkzeug-1.0.1 wrapt-1.12.1
C:\Users\chen\workspace\donkeycar
Cloning into ‘donkeycar’…
Branch ‘master’ set up to track remote branch ‘master’ from ‘origin’.
Switched to a new branch ‘master’
Obtaining file:///C:/Users/chen/workspace/donkeycar
Requirement already satisfied: numpy in c:\users\chen\workspace\vdonkey\lib\site-packages (from donkeycar==3.1.2) (1.18.5)
Collecting pillow
Downloading Pillow-7.1.2-cp37-cp37m-win_amd64.whl (2.0 MB)
Collecting docopt
Downloading docopt-0.6.2.tar.gz (25 kB)
Requirement already satisfied: tornado in c:\users\chen\workspace\vdonkey\lib\site-packages (from donkeycar==3.1.2) (6.0.4)
Collecting requests
Downloading requests-2.23.0-py2.py3-none-any.whl (58 kB)
Requirement already satisfied: h5py in c:\users\chen\workspace\vdonkey\lib\site-packages (from donkeycar==3.1.2) (2.10.0)
Collecting moviepy
Downloading moviepy-1.0.3.tar.gz (388 kB)
Collecting pandas
Downloading pandas-1.0.4-cp37-cp37m-win_amd64.whl (8.7 MB)
Collecting PrettyTable
Downloading prettytable-0.7.2.tar.bz2 (21 kB)
Collecting paho-mqtt
Downloading paho-mqtt-1.5.0.tar.gz (99 kB)
Collecting matplotlib
Downloading matplotlib-3.2.1-cp37-cp37m-win_amd64.whl (9.2 MB)
Collecting idna<3,>=2.5
Downloading idna-2.9-py2.py3-none-any.whl (58 kB)
Collecting certifi>=2017.4.17
Downloading certifi-2020.4.5.2-py2.py3-none-any.whl (157 kB)
Collecting chardet<4,>=3.0.2
Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
Downloading urllib3-1.25.9-py2.py3-none-any.whl (126 kB)
Requirement already satisfied: six in c:\users\chen\workspace\vdonkey\lib\site-packages (from h5py->donkeycar==3.1.2) (1.15.0)
Requirement already satisfied: decorator<5.0,>=4.0.2 in c:\users\chen\workspace\vdonkey\lib\site-packages (from moviepy->donkeycar==3.1.2) (4.4.2)
Collecting tqdm<5.0,>=4.11.2
Downloading tqdm-4.46.1-py2.py3-none-any.whl (63 kB)
Collecting proglog<=1.0.0
Downloading proglog-0.1.9.tar.gz (10 kB)
Collecting imageio<3.0,>=2.5
Downloading imageio-2.8.0-py3-none-any.whl (3.3 MB)
Collecting imageio_ffmpeg>=0.2.0
Downloading imageio_ffmpeg-0.4.2-py3-none-win_amd64.whl (22.6 MB)
Collecting pytz>=2017.2
Downloading pytz-2020.1-py2.py3-none-any.whl (510 kB)
Requirement already satisfied: python-dateutil>=2.6.1 in c:\users\chen\workspace\vdonkey\lib\site-packages (from pandas->donkeycar==3.1.2) (2.8.1)
Collecting cycler>=0.10
Downloading cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Collecting kiwisolver>=1.0.1
Downloading kiwisolver-1.2.0-cp37-none-win_amd64.whl (57 kB)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in c:\users\chen\workspace\vdonkey\lib\site-packages (from matplotlib->donkeycar==3.1.2) (2.4.7)
Building wheels for collected packages: docopt, moviepy, PrettyTable, paho-mqtt, proglog
Building wheel for docopt (setup.py): started
Building wheel for docopt (setup.py): finished with status ‘done’
Created wheel for docopt: filename=docopt-0.6.2-py2.py3-none-any.whl size=13709 sha256=7f37346f718652a5e44c7b023401344170d57540af1dd847d24eb5658357ee55
Stored in directory: c:\users\chen\appdata\local\pip\cache\wheels\72\b0\3f\1d95f96ff986c7dfffe46ce2be4062f38ebd04b506c77c81b9
Building wheel for moviepy (setup.py): started
Building wheel for moviepy (setup.py): finished with status ‘done’
Created wheel for moviepy: filename=moviepy-1.0.3-py3-none-any.whl size=110732 sha256=e7e5e9f2ae522442e175fa878257d000b3a67b031380c67b71a5c8ef9e6be950
Stored in directory: c:\users\chen\appdata\local\pip\cache\wheels\56\dc\2b\9cd600d483c04af3353d66623056fc03faed76b7518faae4df
Building wheel for PrettyTable (setup.py): started
Building wheel for PrettyTable (setup.py): finished with status ‘done’
Created wheel for PrettyTable: filename=prettytable-0.7.2-py3-none-any.whl size=13704 sha256=1968f5ff94aadce077c220dd7ba4f4911bd4dc56be44198d18eff9734f402cfc
Stored in directory: c:\users\chen\appdata\local\pip\cache\wheels\8c\76\0b\eb9eb3da7e2335e3577e3f96a0ae9f74f206e26457bd1a2bc8
Building wheel for paho-mqtt (setup.py): started
Building wheel for paho-mqtt (setup.py): finished with status ‘done’
Created wheel for paho-mqtt: filename=paho_mqtt-1.5.0-py3-none-any.whl size=64726 sha256=fbbdd160b3bbc5c61be22acef953b316e2c141596a1509223c738a7a06e76e6f
Stored in directory: c:\users\chen\appdata\local\pip\cache\wheels\0d\7c\fb\05123381bd60c57ffcdc6fcc1c26e585dedee85b8c1625e2c1
Building wheel for proglog (setup.py): started
Building wheel for proglog (setup.py): finished with status ‘done’
Created wheel for proglog: filename=proglog-0.1.9-py3-none-any.whl size=6153 sha256=58ac1477ad07a26e627464abf4b493e860f7a50478fa9ebfdc74c2bdf77c3844
Stored in directory: c:\users\chen\appdata\local\pip\cache\wheels\12\36\1f\dc61e6ac10781d63cf6fa045eb09fa613a667384e12cb6e6e0
Successfully built docopt moviepy PrettyTable paho-mqtt proglog
Installing collected packages: pillow, docopt, idna, certifi, chardet, urllib3, requests, tqdm, proglog, imageio, imageio-ffmpeg, moviepy, pytz, pandas, PrettyTable, paho-mqtt, cycler, kiwisolver, matplotlib, donkeycar
Running setup.py develop for donkeycar
Successfully installed PrettyTable-0.7.2 certifi-2020.4.5.2 chardet-3.0.4 cycler-0.10.0 docopt-0.6.2 donkeycar idna-2.9 imageio-2.8.0 imageio-ffmpeg-0.4.2 kiwisolver-1.2.0 matplotlib-3.2.1 moviepy-1.0.3 paho-mqtt-1.5.0 pandas-1.0.4 pillow-7.1.2 proglog-0.1.9 pytz-2020.1 requests-2.23.0 tqdm-4.46.1 urllib3-1.25.9
C:\Users\chen\workspace
ERROR: gym-donkeycar is not a valid editable requirement. It should either be a path to a local project or a VCS URL (beginning with svn+, git+, hg+, or bzr+).
Collecting gym
Downloading gym-0.17.2.tar.gz (1.6 MB)
Collecting scipy
Downloading scipy-1.4.1-cp37-cp37m-win_amd64.whl (30.9 MB)
Requirement already satisfied: numpy>=1.10.4 in c:\users\chen\workspace\vdonkey\lib\site-packages (from gym) (1.18.5)
Collecting pyglet<=1.5.0,>=1.4.0
Downloading pyglet-1.5.0-py2.py3-none-any.whl (1.0 MB)
Collecting cloudpickle<1.4.0,>=1.2.0
Downloading cloudpickle-1.3.0-py2.py3-none-any.whl (26 kB)
Collecting future
Downloading future-0.18.2.tar.gz (829 kB)
Building wheels for collected packages: gym, future
Building wheel for gym (setup.py): started
Building wheel for gym (setup.py): finished with status ‘done’
Created wheel for gym: filename=gym-0.17.2-py3-none-any.whl size=1650896 sha256=91afba2ccddbe6c3da5c4591bfd108ec4dbc02c56c26ba3046cba5fbe43740e0
Stored in directory: c:\users\chen4\appdata\local\pip\cache\wheels\18\e1\58\89a2aa24e6c2cc800204fc02010612afdf200926c4d6bfe315
Building wheel for future (setup.py): started
Building wheel for future (setup.py): finished with status ‘done’
Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491062 sha256=0510f64fdcba6f631895b6cbd783b726cc1f7572cfc6c16b956df956450cfb7b
Stored in directory: c:\users\chen4\appdata\local\pip\cache\wheels\56\b0\fe\4410d17b32f1f0c3cf54cdfb2bc04d7b4b8f4ae377e2229ba0
Successfully built gym future
Installing collected packages: scipy, future, pyglet, cloudpickle, gym
Successfully installed cloudpickle-1.3.0 future-0.18.2 gym-0.17.2 pyglet-1.5.0 scipy-1.4.1
Cloning into ‘gym-donkeycar’…
Updating files: 86% (50/58)
Updating files: 87% (51/58)
Updating files: 89% (52/58)
Updating files: 91% (53/58)
Updating files: 93% (54/58)
Updating files: 94% (55/58)
Updating files: 96% (56/58)
Updating files: 98% (57/58)
Updating files: 100% (58/58)
Updating files: 100% (58/58), done.
Obtaining file:///C:/Users/chen4/workspace/gym-donkeycar
Requirement already satisfied: gym in c:\users\chen4\workspace\vdonkey\lib\site-packages (from gym-donkeycar==1.0.14) (0.17.2)
Requirement already satisfied: numpy in c:\users\chen4\workspace\vdonkey\lib\site-packages (from gym-donkeycar==1.0.14) (1.18.5)
Requirement already satisfied: pillow in c:\users\chen4\workspace\vdonkey\lib\site-packages (from gym-donkeycar==1.0.14) (7.1.2)
Collecting pytest
Downloading pytest-5.4.3-py3-none-any.whl (248 kB)
Collecting pytest-mock
Downloading pytest_mock-3.1.1-py3-none-any.whl (10 kB)
Requirement already satisfied: scipy in c:\users\chen4\workspace\vdonkey\lib\site-packages (from gym->gym-donkeycar==1.0.14) (1.4.1)
Requirement already satisfied: cloudpickle<1.4.0,>=1.2.0 in c:\users\chen4\workspace\vdonkey\lib\site-packages (from gym->gym-donkeycar==1.0.14) (1.3.0)
Requirement already satisfied: pyglet<=1.5.0,>=1.4.0 in c:\users\chen4\workspace\vdonkey\lib\site-packages (from gym->gym-donkeycar==1.0.14) (1.5.0)
Requirement already satisfied: wcwidth in c:\users\chen4\workspace\vdonkey\lib\site-packages (from pytest->gym-donkeycar==1.0.14) (0.2.4)
Collecting atomicwrites>=1.0; sys_platform == “win32”
Downloading atomicwrites-1.4.0-py2.py3-none-any.whl (6.8 kB)
Collecting more-itertools>=4.0.0
Downloading more_itertools-8.4.0-py3-none-any.whl (43 kB)
Requirement already satisfied: importlib-metadata>=0.12; python_version < “3.8” in c:\users\chen4\workspace\vdonkey\lib\site-packages (from pytest->gym-donkeycar==1.0.14) (1.6.1)
Collecting py>=1.5.0
Downloading py-1.8.2-py2.py3-none-any.whl (83 kB)
Requirement already satisfied: packaging in c:\users\chen4\workspace\vdonkey\lib\site-packages (from pytest->gym-donkeycar==1.0.14) (20.4)
Collecting pluggy<1.0,>=0.12
Downloading pluggy-0.13.1-py2.py3-none-any.whl (18 kB)
Requirement already satisfied: attrs>=17.4.0 in c:\users\chen4\workspace\vdonkey\lib\site-packages (from pytest->gym-donkeycar==1.0.14) (19.3.0)
Requirement already satisfied: colorama; sys_platform == “win32” in c:\users\chen4\workspace\vdonkey\lib\site-packages (from pytest->gym-donkeycar==1.0.14) (0.4.3)
Requirement already satisfied: future in c:\users\chen4\workspace\vdonkey\lib\site-packages (from pyglet<=1.5.0,>=1.4.0->gym->gym-donkeycar==1.0.14) (0.18.2)
Requirement already satisfied: zipp>=0.5 in c:\users\chen4\workspace\vdonkey\lib\site-packages (from importlib-metadata>=0.12; python_version < “3.8”->pytest->gym-donkeycar==1.0.14) (3.1.0)
Requirement already satisfied: six in c:\users\chen4\workspace\vdonkey\lib\site-packages (from packaging->pytest->gym-donkeycar==1.0.14) (1.15.0)
Requirement already satisfied: pyparsing>=2.0.2 in c:\users\chen4\workspace\vdonkey\lib\site-packages (from packaging->pytest->gym-donkeycar==1.0.14) (2.4.7)
Installing collected packages: atomicwrites, more-itertools, py, pluggy, pytest, pytest-mock, gym-donkeycar
Running setup.py develop for gym-donkeycar
Successfully installed atomicwrites-1.4.0 gym-donkeycar more-itertools-8.4.0 pluggy-0.13.1 py-1.8.2 pytest-5.4.3 pytest-mock-3.1.1