Skip to content

Latest commit

 

History

History
67 lines (60 loc) · 3.7 KB

README.md

File metadata and controls

67 lines (60 loc) · 3.7 KB

20181125-pybullet

Install python 3.6 with homebrew

Python 3.7 have a problem when installing tensorflow (tensorflow/tensorflow#20444).

# See https://apple.stackexchange.com/questions/329187
$ brew install \
  https://raw.githubusercontent.com/Homebrew/homebrew-core/\
  f2a764ef944b1080be64bd88dca9a1d80130c558/Formula/python.rb

venv

$ cd $WORKDIR
$ python3 -m venv pybullet-env
$ source pybullet-env/bin/activate
$ pip install tensorflow
$ pip install gym
$ git clone https://github.com/openai/baselines.git
$ cd baselines
$ pip install -e .
$ cd ..
$ pip install pybullet
$ pip install ruamel-yaml

Check pybullet

$ cd pybullet-env/lib/python3.6/site-packages/pybullet_envs/examples
$ python kukaGymEnvTest.py
$ python kukaCamGymEnvTest.py # much slower

References

Progress

  • baselinesによる動作はバグのため失敗。 TypeError: learn() missing 1 required positional argument: 'network' というエラー。
  • Tensorflow agents PPOによる 動作確認はできた。ただし訓練のみ。警告が大量に表示されるので消したい。 pendulum という 名前のディレクトリが作成される。Configurationは pybullet_envs/agents/configs.py の中で設定されている。