summaryrefslogtreecommitdiff
path: root/examples/pybullet/examples/fileIOPlugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pybullet/examples/fileIOPlugin.py')
-rw-r--r--examples/pybullet/examples/fileIOPlugin.py19
1 files changed, 9 insertions, 10 deletions
diff --git a/examples/pybullet/examples/fileIOPlugin.py b/examples/pybullet/examples/fileIOPlugin.py
index 99a5bac62..3a51c8ac3 100644
--- a/examples/pybullet/examples/fileIOPlugin.py
+++ b/examples/pybullet/examples/fileIOPlugin.py
@@ -3,18 +3,17 @@ import time
p.connect(p.GUI)
fileIO = p.loadPlugin("fileIOPlugin")
-if (fileIO>=0):
- p.executePluginCommand(fileIO, "pickup.zip", [p.AddFileIOAction, p.ZipFileIO])
- objs= p.loadSDF("pickup/model.sdf")
- dobot =objs[0]
- p.changeVisualShape(dobot,-1,rgbaColor=[1,1,1,1])
-
-else:
- print("fileIOPlugin is disabled.")
+if (fileIO >= 0):
+ p.executePluginCommand(fileIO, "pickup.zip", [p.AddFileIOAction, p.ZipFileIO])
+ objs = p.loadSDF("pickup/model.sdf")
+ dobot = objs[0]
+ p.changeVisualShape(dobot, -1, rgbaColor=[1, 1, 1, 1])
+else:
+ print("fileIOPlugin is disabled.")
p.setPhysicsEngineParameter(enableFileCaching=False)
while (1):
- p.stepSimulation()
- time.sleep(1./240.) \ No newline at end of file
+ p.stepSimulation()
+ time.sleep(1. / 240.)