Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

開発環境の準備

Yasuo Hayashibara edited this page Oct 8, 2021 · 2 revisions

Microsoft Windows

2021/10/08記載
※トランジスタ技術Jr.に詳しく記載しましたので,できればそちらも御覧ください.

1)Windows用Pythonのインストール
Microsoft StoreからPython 3.9をインストールして下さい.

2)Visual Studio Build Tools 2019のインストール
MicrosoftのウェブページからVisual Studio Build Tools 2019をインストールして下さい.
まずは,Visual Studio Installerをインストールして,『C++によるデスクトップ開発』を選択してインストールして下さい.

3)PyBulletのインストール
コマンドプロンプトを開いて以下を入力します.

pip install wheel
pip install pybullet

サンプルプログラムを実行するためには,さらにNumPyとpython-controlも必要になるため,以下を入力します.

pip install numpy
pip install control

4)gitのインストール
git for windowsをインストールして下さい.

5)こちらのレポジトリのファイルをGitHubからクローン
ファイルをダウンロードするディレクトリに移動して,コマンドプロンプトに以下を入力します.

git clone https://github.com/citbrains/GankenKun_pybullet

6)プログラムの実行
ディレクトリ”GankenKun_pybullet”に移動して,以下を実行します.

python GankenKun.py

ランダムに変化する目的地に対してロボットが歩く様子が見られます.

Clone this wiki locally