From be7c6ac967a106c43fd3e253371b2119453f788b Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Tue, 8 May 2018 23:23:53 -0700 Subject: [PATCH] PyBullet add getCameraImage to debug urdfEditor/createMultiBody --- examples/pybullet/gym/pybullet_utils/examples/combineUrdf.py | 1 + examples/pybullet/gym/pybullet_utils/examples/combined.py | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/pybullet/gym/pybullet_utils/examples/combineUrdf.py b/examples/pybullet/gym/pybullet_utils/examples/combineUrdf.py index a764341ce..a7192ce70 100644 --- a/examples/pybullet/gym/pybullet_utils/examples/combineUrdf.py +++ b/examples/pybullet/gym/pybullet_utils/examples/combineUrdf.py @@ -98,4 +98,5 @@ ed0.createMultiBody([0,0,0],pgui._client) pgui.setRealTimeSimulation(1) while (pgui.isConnected()): + pgui.getCameraImage(320,200) time.sleep(1./240.) diff --git a/examples/pybullet/gym/pybullet_utils/examples/combined.py b/examples/pybullet/gym/pybullet_utils/examples/combined.py index f8117376b..3a7538442 100644 --- a/examples/pybullet/gym/pybullet_utils/examples/combined.py +++ b/examples/pybullet/gym/pybullet_utils/examples/combined.py @@ -8,5 +8,6 @@ p.loadURDF("combined.urdf", useFixedBase=True) # p.setJointMotorControl2(0,j,p.VELOCITY_CONTROL,targetVelocity=0.1) p.setRealTimeSimulation(1) while (p.isConnected()): + p.getCameraImage(320,200) import time time.sleep(1./240.)