-
Download webots R2023b form WebotsR2023
-
Download anaconda from anaconda
-
Create a new conda envirment:
conda create -n env_name python=3.8
-
Add webots address to python install path: Create a file named as webots.pth at python(conda) install path (eg: my conda pthon address is: C:\Users\12466.conda\envs\DeepReinforce). Add the webots head path to the webots.pth:
C:\Program Files\Webots\lib\controller\python C:\Program Files\Webots\msys64\mingw64\bin\ C:\Program Files\Webots\msys64\mingw64\bin\cpp
-
install conda and pytorch in conda env
- start your conda envirment:
conda activate env_name
- open webots world at : project+address/worlds/unitree_a1_pytorch_simTosim.wbt
- python run the code by
python RL_Contorller.py