0

当我尝试运行示例 PyBullet 文件时,如下所示,我不断收到以下错误消息:

import pybullet as p
from time import sleep
import pybullet_data

physicsClient = p.connect(p.GUI)

p.setAdditionalSearchPath(pybullet_data.getDataPath())
p.setGravity(0, 0, -10)
planeId = p.loadURDF("plane.urdf", [0,0,-2])
boxId = p.loadURDF("cube.urdf", [0,3,2],useMaximalCoordinates = True)
bunnyId = p.loadSoftBody("bunny.obj")#.obj")#.vtk")

useRealTimeSimulation = 1

if (useRealTimeSimulation):
    p.setRealTimeSimulation(1)

p.changeDynamics(boxId,-1,mass=10)
while p.isConnected():
    p.setGravity(0, 0, -10)
    if (useRealTimeSimulation):

        sleep(0.01)    # Time in seconds.
    else:
        p.stepSimulation()

错误显示如下:

bunnyId = p.loadSoftBody("bunny.obj")#.obj")#.vtk")

错误:无法加载柔体。

我有 Windows 10。我在笔记本(Python 3.6)上运行 PyBullet,但我在 Visual Studio(Python 3.7)上遇到了同样的错误。我能做些什么来修复它?

4

0 回答 0