diff --git a/examples/pybullet/gym/pybullet_utils/examples/combineUrdf.py b/examples/pybullet/gym/pybullet_utils/examples/combineUrdf.py index 5ce0a3d14..a7192ce70 100644 --- a/examples/pybullet/gym/pybullet_utils/examples/combineUrdf.py +++ b/examples/pybullet/gym/pybullet_utils/examples/combineUrdf.py @@ -85,21 +85,18 @@ joint.joint_axis_xyz = [0,0,1] #so make sure to insert the joint in the right place, to links/joints match ed0.urdfJoints.insert(insertJointIndex,joint) +ed0.saveUrdf("combined.urdf") print(p0._client) print(p1._client) print("p0.getNumBodies()=",p0.getNumBodies()) print("p1.getNumBodies()=",p1.getNumBodies()) - pgui = bc.BulletClient(connection_mode=pybullet.GUI) ed0.createMultiBody([0,0,0],pgui._client) pgui.setRealTimeSimulation(1) -ed0.saveUrdf("combined.urdf") - - while (pgui.isConnected()): pgui.getCameraImage(320,200) - time.sleep(1./240.) \ No newline at end of file + time.sleep(1./240.)