我從https://github.com/bulletphysics/bullet3.git下載了bullet3 github存儲庫(Bullet Physics SDK),其中包含用於運行增強學習算法的OpenAI Gym示例的python綁定。 我試着運行以下目錄中的kuka_grasp_block_playback.py示例:bullet3-master/examples/pybullet/examples/
我的系統不支持pybullet.GUI,因此我繼續使用pybullet.DIRECT。 但是,使用python kuka_grasp_block_playback.py
運行它,它給我以下錯誤:來自bulletphysics/bullet3(pybullet庫)的kuka_grasp_block_playback.py未在我的系統上運行。
Traceback (most recent call last):
File "kuka_grasp_block_playback.py", line 92, in <module>
stepIndex = int(p.readUserDebugParameter(stepIndexId))
pybullet.error: Failed to read parameter.
如何面對呢?