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

verify learned model #82

Open
wants to merge 4 commits into
base: mat
Choose a base branch
from
Open

verify learned model #82

wants to merge 4 commits into from

Conversation

yasuohayashibara
Copy link
Contributor

@yasuohayashibara yasuohayashibara commented Dec 30, 2023

学習済みモデルを検証するための環境を作る.
対戦相手はルールベースで行動を決定するロボット.

デバッギングしやすくするため,シミュレータとコントローラを別に起動できるようにした.

webots --batch mat_train.wbt
python3.8 mat_train.py

IMAGE

@yasuohayashibara
Copy link
Contributor Author

yasuohayashibara commented Jan 1, 2024

環境構築

  1. webots2021bのインストール
    wget https://github.com/cyberbotics/webots/releases/download/R2021b/webots_2021b_amd64.deb
    sudo apt update && sudo apt upgrade
    sudo apt install ./webots_2021b_amd64.deb
  2. sudo apt install python3-pip
  3. pip3 install control controller gym==0.12.4 gymnasium numpy pettingzoo protobuf==3.19.1 tensorboardX==2.5 torch==1.10.2 wandb==0.12.11
  4. git clone -b mat_verify https://github.com/citbrains/GankenKun_webots/
  5. .bashrcに追加
    export WEBOTS_HOME=/usr/local/webots # Defines the path to Webots home.
    export LD_LIBRARY_PATH=$WEBOTS_HOME/lib/webots:$LD_LIBRARY_PATH # Add the Webots libraries to the library path (useful when launching Webots directly without using the launcher).
    export PYTHONPATH=$PYTHONPATH:$WEBOTS_HOME/lib/controller/python38
  6. 実行
    cd GankenKun_webots/worlds/
    webots --batch mat_train.wbt
    cd GankenKun_webots/controllers/mat_train/
    python3 mat_train.py

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant